igcclient

package module
v0.0.0-...-f054ca0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 13 Imported by: 0

README

igcclient

Client for using the IGC REST API writen in Go

Documentation

Index

Constants

View Source
const (
	DefaultLogMaxResponseSize = 10000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationService

type AuthenticationService service

func (*AuthenticationService) AllowIP

func (s *AuthenticationService) AllowIP(body models.AllowIPModel, headers map[string]string, log logger.Logger) (response models.OperationResponse, err error)

Allows to bind UserAgent and IP to the authentication token param: New IP and User Agent to bind to

func (*AuthenticationService) AuthenticateWithChallenge

func (s *AuthenticationService) AuthenticateWithChallenge(challengeToken string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfGuid, err error)

Authenticate a user using a one time challenge token. param challengeToken: challenge token aquired from Poker/GetChallengeToken

func (*AuthenticationService) ChangeEmail

func (s *AuthenticationService) ChangeEmail(body models.ChangeEmailModel, headers map[string]string, log logger.Logger) (response models.OperationResponse, err error)

Change User's Email Address

func (*AuthenticationService) ChangePassword

func (s *AuthenticationService) ChangePassword(body models.ChangePasswordModel, headers map[string]string, log logger.Logger) (response models.OperationResponse, err error)

Change User's password

func (*AuthenticationService) ChangeSecurityQuestion

func (s *AuthenticationService) ChangeSecurityQuestion(body models.ChangeSecurityQuestionModel, headers map[string]string, log logger.Logger) (response models.OperationResponse, err error)

Change User's Security Question

func (*AuthenticationService) ForgotPassword

func (s *AuthenticationService) ForgotPassword(body models.ResetPasswordModel, headers map[string]string, log logger.Logger) (response models.OperationResponse, err error)

Start Forgot Password Process

func (*AuthenticationService) ForgotPasswordChange

func (s *AuthenticationService) ForgotPasswordChange(body models.ForgotPasswordChangeModel, headers map[string]string, log logger.Logger) (response models.OperationResponse, err error)

Change User's Forgotten Password

func (*AuthenticationService) ForgotPasswordChangeSMS

func (s *AuthenticationService) ForgotPasswordChangeSMS(body models.ForgotPasswordChangeBySMSModel, headers map[string]string, log logger.Logger) (response models.OperationResponse, err error)

Change User's Forgotten Password by using a Mobile Verification Code

func (*AuthenticationService) ForgotPasswordSMS

func (s *AuthenticationService) ForgotPasswordSMS(body models.ShortMessageServiceModel, headers map[string]string, log logger.Logger) (response models.OperationResponse, err error)

Attempts to send a mobile verification code to the mobile number specified in the arguments for reset password purposes

func (*AuthenticationService) GetPasswordRegex

func (s *AuthenticationService) GetPasswordRegex(headers map[string]string, log logger.Logger) (response models.OperationResponseOfString, err error)

Retrieves password validation Regex for operator depending on Core.Settings. Default if not found: ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,25}$

func (*AuthenticationService) IsLoggedIn

func (s *AuthenticationService) IsLoggedIn(headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Checks if the User is logged in

func (*AuthenticationService) Login

func (s *AuthenticationService) Login(loginModel models.LoginModel, headers map[string]string, log logger.Logger) (response models.OperationResponseOfAuthResponseDTO, err error)

Used to log-in an end user to the system

func (*AuthenticationService) Logout

func (s *AuthenticationService) Logout(headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Logout the User

func (*AuthenticationService) Register

Before calling this method the method "GetUserVerifyRegistrationTypes()" should be called to get a list of allowed verification types for a particular IP. This is of course is only valid if the country-verification type whitelist is going to be used

Note that verification types can be whitelisted for each country from the Backoffice. Note: Verification Type ID property is always required when posting to this endpoint

Verification Type ID 1 (SMS): SMS verification is required during registration

#1 POST to this endpoint with the properties UserName, Email, Mobile Prefix and Mobile
#2 If all properties are valid the error code "MOBILE_MOBILE_VERIFICATION_CODE_COMBINATION_INVALID" will be returned. This indicates that an SMS has been sent to the provided Mobile.
#3 POST to the endpoint once more when the user enters the Mobile Verification Code and the rest of his details

Verification Type ID 2 (Email): Email verification is required after registration

#1 POST to this endpoint with all the required properties. This sends out a verification Email once a user record is created.

Verification Type ID 3 (SMS and Email): This is a combination of Type 1 and Type 2

#1 POST to this endpoint with the properties UserName, Email, Mobile Prefix and Mobile
#2 If all properties are valid the error code "MOBILE_MOBILE_VERIFICATION_CODE_COMBINATION_INVALID" will be returned. This indicates that an SMS has been sent to the provided Mobile.
#3 POST to the endpoint once more when the user enters the Mobile Verification Code and the rest of his details. At this point we will send out a verification Email.

Verification Type ID 4 (MANUAL): No verification methods are activated automatically

#1 POST to this endpoint with all the required properties. THIS WILL NOT SEND OUT ANY VERIFICATION EMAILS OR SMS's ** At this point you are able to call "Verify/SMS/Send" or/and "Verify/Email/Send" to verify the user at any point desired.

func (*AuthenticationService) SecurityQuestion

func (s *AuthenticationService) SecurityQuestion(body models.EmailModel, headers map[string]string, log logger.Logger) (response models.OperationResponseOfSecurityQuestion, err error)

Get security question for email

func (*AuthenticationService) VerifyActivationTokenGet

func (s *AuthenticationService) VerifyActivationTokenGet(body models.GetVerificationTokenModel, headers map[string]string, log logger.Logger) (response models.OperationResponseOfGuid, err error)

Get user account activation token

func (*AuthenticationService) VerifyEmail

func (s *AuthenticationService) VerifyEmail(verificationCode string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfGuid, err error)

Verifies an email address with the GUID recieved in the email. Upon successful verificaton, the user will be logged in. Allows user to verify even though they are blocked. If blocked we will return ACCOUNT_BLOCKED error code.

func (*AuthenticationService) VerifyEmailSend

func (s *AuthenticationService) VerifyEmailSend(email string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Used to send the verify email. Returns false if email is null or empty. USER_NOT_FOUND if user with the given email does not exist or exists but is already verified.

func (*AuthenticationService) VerifySMS

Activate a user's account using the correct mobile prefix, mobile, and mobile verification code combination. We allow blocked users to be verified. We return ACCOUNT_BLOCKED in the list of errors even though successfully verified.

func (*AuthenticationService) VerifySMSSend

func (s *AuthenticationService) VerifySMSSend(body models.ShortMessageServiceModel, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Send a verification SMS to an unverified user using mobile prefix and mobile combination. The SMS language is selected using the user's registered LanguageID property. Sends SMS even though user is blocked.

type BanksService

type BanksService service

func (*BanksService) BankByID

func (s *BanksService) BankByID(id int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBankObject, err error)

Get a single bank by Bank ID

func (*BanksService) Banks

func (s *BanksService) Banks(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfBankObject, err error)

Get all the banks sorted in display order, ascending, bank name decrypted

type BonusesService

type BonusesService service

func (*BonusesService) BonusCodeDetails

func (s *BonusesService) BonusCodeDetails(bonusCode string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfPublicBonusesObject, err error)

Return the bonus details of a bonus code

func (*BonusesService) Bonuses

Gets the user current bonuses AuthenticationToken is required.

func (*BonusesService) BonusesByUserID

func (s *BonusesService) BonusesByUserID(userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfFrontEndUserBonusObject, err error)

Gets the user current bonuses X-Api-Key is required.

func (*BonusesService) Credit

func (s *BonusesService) Credit(promoCode string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfBonusDetails, err error)

Credit bonus to user AuthenticationToken is required

func (*BonusesService) CreditByUserID

func (s *BonusesService) CreditByUserID(promoCode string, userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfBonusDetails, err error)

Credit bonus to user X-Api-Key is required

func (*BonusesService) Delete

func (s *BonusesService) Delete(userBonusID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Forfeit user bonus

func (*BonusesService) FullHistory

func (s *BonusesService) FullHistory(headers map[string]string, log logger.Logger) (response models.OperationResponseOfFrontAllUserBonuses, err error)

Gets all user bonuses - including claimed free spins

func (*BonusesService) GetAvailable

func (s *BonusesService) GetAvailable(deviceTypeID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfPublicBonusesObject, err error)

Get a list of bonuses that are public and can be claimed by the logged in user (Bonuses that are 'IncludedInlist' and not 'Manual Bonuses') AuthenticationToken header is required.

func (*BonusesService) GetAvailableByUserID

func (s *BonusesService) GetAvailableByUserID(deviceTypeID int64, userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfPublicBonusesObject, err error)

Get a list of bonuses that are public and can be claimed by the logged in user (Bonuses that are 'IncludedInlist' and not 'Manual Bonuses') X-Api-Key header is required.

func (*BonusesService) GetBonusTypes

func (s *BonusesService) GetBonusTypes(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfPublicBonusTypeObject, err error)

Get a list of bonus types that are available

func (*BonusesService) GetPublicBonuses

func (s *BonusesService) GetPublicBonuses(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfPublicBonusesObject, err error)

Get a list of bonuses that are public to the users (Bonuses that are 'IncludedInlist' and not 'Manual Bonuses')

func (*BonusesService) History

Gets all user bonuses

func (*BonusesService) PromoCodesAdd

func (s *BonusesService) PromoCodesAdd(bonusID int64, promoCode string, promoValidity int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Add a Promo Code to a Bonus which can be claimed only by the logged in user

func (*BonusesService) PromoCodesPending

func (s *BonusesService) PromoCodesPending(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfPublicPromoCodeObj, err error)

Return a list of unclaimed Promo Codes assigned to this user

func (*BonusesService) PromoCodesReject

func (s *BonusesService) PromoCodesReject(promoID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

User rejects promo code

func (*BonusesService) PromoCodesStatuses

func (s *BonusesService) PromoCodesStatuses(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfPromoStatuses, err error)

Return a list of PromoCode Statuses

type Config

type Config struct {
	BaseURL              string
	LogRequestBody       bool
	LogResponseData      bool
	LogRequestBlacklist  []string
	LogResponseBlacklist []string
	LogBlacklist         []string
	LogMaxResponseSize   int64
	Debug                bool
	InvalidAuthCallback  *func(string)
}

type ConsentService

type ConsentService service

func (*ConsentService) GetConsents

func (s *ConsentService) GetConsents(languageAlpha2Code string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfPublicConsentModel, err error)

Get All Consents by Language X-Api-Key is required.

func (*ConsentService) HasPendingConsents

func (s *ConsentService) HasPendingConsents(headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Checks if user has any pending mandatory consents

func (*ConsentService) RequiresLegacyUpdate

func (s *ConsentService) RequiresLegacyUpdate(headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Checks if user has any migrated consents that require and update

func (*ConsentService) SaveUserConsents

func (s *ConsentService) SaveUserConsents(body []models.ConsentVersionSaveModel, userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Save user consents

func (*ConsentService) Unsubscribe

func (s *ConsentService) Unsubscribe(triggerCode string, userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfObject, err error)

Unsubscribe all Consents by trigger code This will require CRM X-api key:

func (*ConsentService) UserConsents

func (s *ConsentService) UserConsents(languageAlpha2Code string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfPublicUserConsentsListModel, err error)

Gets list of user consents with content and user's acceptance

func (*ConsentService) UserConsentsByUserID

func (s *ConsentService) UserConsentsByUserID(languageAlpha2Code string, userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfPublicUserConsentsListModel, err error)

Gets list of user consents with content and user's acceptence X-Api-Key is required

func (*ConsentService) UserPendingConsents

func (s *ConsentService) UserPendingConsents(languageAlpha2Code string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfPublicUserConsentsListModel, err error)

Gets mandatory consents with content which user need to consent to by language

type CountriesService

type CountriesService service

countries is an private struct Use IGCClient.Countries() to access its methods

func (*CountriesService) Countries

func (s *CountriesService) Countries(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfCountriesObject, err error)

GetCountries returns all the countries

func (*CountriesService) CountriesTop

func (s *CountriesService) CountriesTop(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfCountriesObject, err error)

GetCountriesTop returns the top countries

func (*CountriesService) CountryByAlphaCode2

func (s *CountriesService) CountryByAlphaCode2(alphaCode2 string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfCountriesObject, err error)

GetCountryByAlphaCode2 returns country by the Alpha Code 2

func (*CountriesService) CountryByAlphaCode3

func (s *CountriesService) CountryByAlphaCode3(alphaCode3 string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfCountriesObject, err error)

GetCountryByAlphaCode3 returns country by the Alpha Code 3

func (*CountriesService) CountryByID

func (s *CountriesService) CountryByID(id int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfCountriesObject, err error)

GetCountryByID returns country by country ID

type CurrenciesService

type CurrenciesService service

func (*CurrenciesService) Currencies

func (s *CurrenciesService) Currencies(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfCurrenciesObject, err error)

Gets all the currencies

func (*CurrenciesService) CurrencyByCode

func (s *CurrenciesService) CurrencyByCode(code string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfCurrenciesObject, err error)

Gets a single curency by currency code

func (*CurrenciesService) CurrencyByID

func (s *CurrenciesService) CurrencyByID(id int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfCurrenciesObject, err error)

Gets a single currency by currency ID

type DevicesService

type DevicesService service

func (*DevicesService) Devices

func (s *DevicesService) Devices(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfDeviceTypeObject, err error)

Get all the device types

func (*DevicesService) DevicesByID

func (s *DevicesService) DevicesByID(deviceId int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfDeviceTypeObject, err error)

Get a single device by device ID

func (*DevicesService) GetPlatform

Get the platform from the details passed in the DevicesDetectionModel

type GamesService

type GamesService service

func (*GamesService) AffiliateGameDetails

func (s *GamesService) AffiliateGameDetails(headers map[string]string, log logger.Logger) (response models.OperationalResponseOfIEnumerableOfGameDetailsAffiliates, err error)

func (*GamesService) Categories

func (s *GamesService) Categories(alphaCode2 string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfIEnumerableOfCategory, err error)

Get all Game Categories by language alphaCode2

func (*GamesService) Details

func (s *GamesService) Details(headers map[string]string, log logger.Logger) (response models.OperationResponseOfIEnumerableOfGameDetails, err error)

Get details of all the games.

func (*GamesService) GameByID

func (s *GamesService) GameByID(gameID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfGameFront, err error)

Get a single Game by Game ID

func (*GamesService) Games

Gets a list available of Games supported by the system.

func (*GamesService) Jackpots

func (s *GamesService) Jackpots(currency string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfIEnumerableOfJackpot, err error)

Gets all the Jackpots for the requested Currency

func (*GamesService) LastPlayed

Get all last played games

func (*GamesService) MD5

func (s *GamesService) MD5(data models.GameFilterModel, headers map[string]string, log logger.Logger) (response models.OperationResponseOfString, err error)

Gets the MD5 hash for the requested games list. This can be used to cache games request on the client.

func (*GamesService) RecentWinners

Get all recent game winners.

func (*GamesService) URL

func (s *GamesService) URL(gameID int64, body models.GameURLModel, headers map[string]string, log logger.Logger) (response models.OperationResponseOfString, err error)

Get the URL of the Game to be used in the iFrame or to redirect to

func (*GamesService) Vendors

func (s *GamesService) Vendors(enabledOnly bool, headers map[string]string, log logger.Logger) (response models.OperationResponseOfIEnumerableOfVendor, err error)

Get a list of all the Vendors

type IGCClient

type IGCClient struct {
	HTTPClient *http.Client

	Authentication    *AuthenticationService
	Banks             *BanksService
	Bonuses           *BonusesService
	Consent           *ConsentService
	Countries         *CountriesService
	Currencies        *CurrenciesService
	Devices           *DevicesService
	Games             *GamesService
	IPWhois           *IPWhoisService
	KYC               *KYCService
	Languages         *LanguagesService
	Payments          *PaymentsService
	RealityCheck      *RealityCheckService
	ResponsibleGaming *ResponsibleGamingService
	Roles             *RolesService
	SecurityQuestions *SecurityQuestionsService
	User              *UserService
	Validation        *ValidationService
	Wallet            *WalletService
	// contains filtered or unexported fields
}

func NewIGCClient

func NewIGCClient(cfg Config) (client *IGCClient, err error)

type IPWhoisService

type IPWhoisService service

func (*IPWhoisService) IPWhois

func (s *IPWhoisService) IPWhois(body models.IPWhoisRequest, headers map[string]string, log logger.Logger) (response models.OperationResponseOfCountriesObject, err error)

Get the country object from the IP passed in the IPWhoisRequest object

type KYCService

type KYCService service

func (*KYCService) GetAMLVerificationStatus

func (s *KYCService) GetAMLVerificationStatus(headers map[string]string, log logger.Logger) (response models.OperationResponseOfGetAmlVerificationStatusDTO, err error)

Gets the AML verification status. Headers required: AuthenticationToken

func (*KYCService) GetKYCVerificationStatus

func (s *KYCService) GetKYCVerificationStatus(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfUserKycStatusResponseDTO, err error)

Gets the list of KYC types and statuses. Headers required: AuthenticationToken

func (*KYCService) GetKYCVerificationStatusByUserID

func (s *KYCService) GetKYCVerificationStatusByUserID(userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfUserKycStatusResponseDTO, err error)

Get the kyc Status for the specified userId. Available only with X-Api-Key!

func (*KYCService) GetSowQuestionnaire

func (s *KYCService) GetSowQuestionnaire(headers map[string]string, log logger.Logger) (response models.OperationResponseOfSowQuestionnaire, err error)

Gets the Source of Wealth Questionnaire data - questions along with question types and possible answers. Headers required: AuthenticationToken

func (*KYCService) PostSowQuestionnaire

func (s *KYCService) PostSowQuestionnaire(body models.UserSowQuestionnaireData, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Saves the Source of Wealth Questionnaire user answers. Headers required: AuthenticationToken

type LanguagesService

type LanguagesService service

func (*LanguagesService) Languages

func (s *LanguagesService) Languages(isLiveOnly bool, headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfLanguageObject, err error)

Returns a list of cached Languages supported by the system. If parameter 'isLiveOnly' is not sent as part of the request, the default value is set

func (*LanguagesService) LanguagesByAlphaCode2

func (s *LanguagesService) LanguagesByAlphaCode2(alphaCode2 string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfLanguageObject, err error)

Get language properties by alpha code 2

func (*LanguagesService) LanguagesByAlphaCode3

func (s *LanguagesService) LanguagesByAlphaCode3(alphaCode3 string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfLanguageObject, err error)

Get language properties by alpha code 3

func (*LanguagesService) LanguagesByID

func (s *LanguagesService) LanguagesByID(id int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfLanguageObject, err error)

Get language properties by language ID

func (*LanguagesService) LanguagesByName

func (s *LanguagesService) LanguagesByName(name string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfLanguageObject, err error)

Get language properties by name

type PaymentsService

type PaymentsService service

func (*PaymentsService) CancelWithdrawal

func (s *PaymentsService) CancelWithdrawal(transactionId int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

This method cancels and withdrawal transaction which is in Pending or WaitingApproval status. User Authentication (authentication token) is required.

func (*PaymentsService) GetAllDepositMethods

func (s *PaymentsService) GetAllDepositMethods(countryID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfIEnumerableOfPaymentMethod, err error)

Get all the Deposit methods for a specific country

func (*PaymentsService) GetAllPaymentMethods

func (s *PaymentsService) GetAllPaymentMethods(headers map[string]string, log logger.Logger) (response models.OperationResponseOfIEnumerableOfPaymentMethod, err error)

Retrieves all payment methods regardless of their availability or country.

func (*PaymentsService) GetAllWithdrawMethods

func (s *PaymentsService) GetAllWithdrawMethods(countryID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfIEnumerableOfPaymentMethod, err error)

Get all the Deposit methods for a specific country

func (*PaymentsService) GetDepositMetaData

func (s *PaymentsService) GetDepositMetaData(paymentTypeID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfPaymentMetaDataModel, err error)

Get the Form Meta Data for Deposit. User Authentication (authentication token) is required.

func (*PaymentsService) GetDepositRequest

func (s *PaymentsService) GetDepositRequest(body models.PayRequestModel, headers map[string]string, log logger.Logger) (response models.OperationResponseOfPaymentApiResponse, err error)

Make a Deposit request. User Authentication (authentication token) is required.

func (*PaymentsService) GetQuickDepositMetaData

func (s *PaymentsService) GetQuickDepositMetaData(paymentTypeID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfPaymentMetaDataModel, err error)

Get the Form Meta Data for Quick Deposit. User Authentication (authentication token) is required.

func (*PaymentsService) GetQuickDepositRequest

func (s *PaymentsService) GetQuickDepositRequest(body models.QuickPayRequestModel, headers map[string]string, log logger.Logger) (response models.OperationResponseOfPaymentApiResponse, err error)

Make a Quick Deposit Deposit request. User Authentication (authentication token) is required.

func (*PaymentsService) GetUserDepositMethods

func (s *PaymentsService) GetUserDepositMethods(countryID int64, currencyID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfIEnumerableOfPaymentMethod, err error)

Get the Deposit methods that the user can use. User Authentication (authentication token) is required.

func (*PaymentsService) GetUserWithdrawMethods

func (s *PaymentsService) GetUserWithdrawMethods(countryID int64, userID int64, currencyID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfIEnumerableOfPaymentMethod, err error)

Get the Withdraw methods that the user can use. User Authentication (authentication token) is required.

func (*PaymentsService) GetWithdrawMetaData

func (s *PaymentsService) GetWithdrawMetaData(paymentTypeID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfPaymentMetaDataModel, err error)

Get the Form Meta Data for Withdraw. User Authentication (authentication token) is required.

func (*PaymentsService) GetWithdrawRequest

func (s *PaymentsService) GetWithdrawRequest(body models.PayRequestModel, headers map[string]string, log logger.Logger) (response models.OperationResponseOfPaymentApiResponse, err error)

Make a Withdraw request. User Authentication (authentication token) is required.

func (*PaymentsService) LastSuccessfulDeposit

func (s *PaymentsService) LastSuccessfulDeposit(headers map[string]string, log logger.Logger) (response models.OperationResponseOfTransactionModel, err error)

Returns the last successful deposit.

func (*PaymentsService) OperatorWalletsTransactions

func (s *PaymentsService) OperatorWalletsTransactions(body models.WalletRequest, operatorTransactionId int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfWalletResponse, err error)

Creates a wallet and a payment transaction (Headers required X-Api-Key and AuthenticationToken)

func (*PaymentsService) TransactionDetails

func (s *PaymentsService) TransactionDetails(body models.TransactionSearchModel, headers map[string]string, log logger.Logger) (response models.OperationResponseOfTransactionModel, err error)

Returns the transaction details of a given transaction.

type RealityCheckService

type RealityCheckService service

func (*RealityCheckService) GetRealityCheckOptions

func (s *RealityCheckService) GetRealityCheckOptions(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfRealityCheckOption, err error)

Gets the reality check options for the current user's country of access

func (*RealityCheckService) GetUserRealityCheck

func (s *RealityCheckService) GetUserRealityCheck(headers map[string]string, log logger.Logger) (response models.OperationResponseOfRealityCheckUserSetting, err error)

Gets the reality check settings for the authenticated user

func (*RealityCheckService) SaveUserRealityCheck

func (s *RealityCheckService) SaveUserRealityCheck(interval int64, headers map[string]string, log logger.Logger) (response models.OperationResponse, err error)

Saves the reality check interval for the authenticated user

type ResponsibleGamingService

type ResponsibleGamingService service

func (*ResponsibleGamingService) AddSelfExclusion

func (s *ResponsibleGamingService) AddSelfExclusion(selfExclusionCategoryID int64, blockReason int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Add a self-exclusion for the current authenticated user.

func (*ResponsibleGamingService) AddTimeoutByEndDate

func (s *ResponsibleGamingService) AddTimeoutByEndDate(endDate string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Add a timeout for the current authenticated user.

func (*ResponsibleGamingService) AddTimeoutByTimeoutCategoryID

func (s *ResponsibleGamingService) AddTimeoutByTimeoutCategoryID(timeoutCategoryID int64, blockReason int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Add a timeout for the current authenticated user.

func (*ResponsibleGamingService) GetEndDateOfActiveResponsibleUserBlocks

func (s *ResponsibleGamingService) GetEndDateOfActiveResponsibleUserBlocks(userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfUserBlockResponseDTO, err error)

Get the last to expire Active Responsible User Blocks end date of a user.

func (*ResponsibleGamingService) GetLimits

No documentation available.

func (*ResponsibleGamingService) GetUserLimitHistory

func (s *ResponsibleGamingService) GetUserLimitHistory(headers map[string]string, log logger.Logger) (response models.OperationResponseOfIEnumerableOfUserLimitResponse, err error)

Fetches the responsible limit history for the past 6 months for the current logged in user.

func (*ResponsibleGamingService) GetUserLimits

Responsible for returning the active and future limits for a specific user (Headers supported AuthenticationToken The list of Limits will contains all important limit details and for session limits Amount = Amount in mins Amount_HR - amount in hour Amount_DAY - Amount in Days for other limits ignore Amount_HR and Amount_DAY are not applicable

func (*ResponsibleGamingService) SelfExclusionCategories

func (s *ResponsibleGamingService) SelfExclusionCategories(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfSelfExclusionCategory, err error)

Retrieves all self exclusion categories.

func (*ResponsibleGamingService) SelfExclusionDurations

func (s *ResponsibleGamingService) SelfExclusionDurations(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfSelfExclusionCategoryDuration, err error)

Retrieves all self exclusion durations.

func (*ResponsibleGamingService) SetUserLimits

func (s *ResponsibleGamingService) SetUserLimits(body []models.SetUserLimitModelV2, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

No documentation available.

func (*ResponsibleGamingService) TimeoutCategories

func (s *ResponsibleGamingService) TimeoutCategories(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfSelfExclusionCategory, err error)

Retrieves all timeout categories.

func (*ResponsibleGamingService) TimeoutDurations

Retrieves all timeout durations.

func (*ResponsibleGamingService) UserPlayStatsAndLimits

func (s *ResponsibleGamingService) UserPlayStatsAndLimits(months int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfUserRgStatsResponseDTO, err error)

This api will provide the configured deposit limits information and the total win/loss during the past period of input months

type RolesService

type RolesService service

func (*RolesService) Roles

Fetches all existing roles.

func (*RolesService) RolesByUserID

func (s *RolesService) RolesByUserID(userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfIEnumerableOfRoleResponse, err error)

Gets list of roles associated to a user

type SecurityQuestionsService

type SecurityQuestionsService service

func (*SecurityQuestionsService) SecurityQuestions

func (s *SecurityQuestionsService) SecurityQuestions(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfSecurityQuestionModel, err error)

type UserService

type UserService service

func (*UserService) AcceptTerms

func (s *UserService) AcceptTerms(headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Accept terms for the logged in user

func (*UserService) AddKYCRequirements

func (s *UserService) AddKYCRequirements(headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Adds in a KYC requirement where needed for Photo ID, Proof of Address and Proof of Payment

func (*UserService) AddUserNote

func (s *UserService) AddUserNote(note string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Adds a Note to the Logged In User

func (*UserService) CheckCombination

func (s *UserService) CheckCombination(body models.UserObject, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Combination validation This check if the user firstname, lastname, address and phone match with an existing user

func (*UserService) CheckEmail

func (s *UserService) CheckEmail(body models.CheckUser, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Email validation

func (*UserService) CheckUsername

func (s *UserService) CheckUsername(body models.CheckUser, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Username validation

func (*UserService) CloseAccount

func (s *UserService) CloseAccount(body models.CloseAccountDOBRequestDto, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Close user's account at their request. Requires user's date of birth to proceed Errors: USER_NOT_FOUND if user does not exist. INVALID_DATE_RANGE if date of birth is Empty/Incorrect. INVALID_DOB if date of birth is incorrect.

func (*UserService) GetLoginHistory

func (s *UserService) GetLoginHistory(headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfDBTokenIP, err error)

Get user last logins

func (*UserService) GetSimilarUserCount

func (s *UserService) GetSimilarUserCount(body models.SimilarUser, headers map[string]string, log logger.Logger) (response models.OperationResponseOfInt32, err error)

Gets the Count of Similar Users with the exact same First Name and Last Name

func (*UserService) GetUserActiveBlocks

func (s *UserService) GetUserActiveBlocks(userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfIListOfUserActiveBlock, err error)

func (*UserService) GetUsersWithNoActivity

func (s *UserService) GetUsersWithNoActivity(fromDate string, limit int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfIEnumerableOfUserWithNoActivity, err error)

Returns a list of users with no activity since the fromDate specified as parameter fromDate - should be in following format: 2017-01-01 limit - the maximum number if users to return

func (*UserService) GracePeriod

func (s *UserService) GracePeriod(userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfUserGracePeriodDTO, err error)

func (*UserService) KYC

Gets the KYC for the current user ordered by status and then by KYC type AuthenticationToken header is required

func (*UserService) KYCByUserID

func (s *UserService) KYCByUserID(userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfListOfKYCLinkedObject, err error)

Gets the KYC for the user with supplied user id ordered by status and then by KYC type X-Api-Key header is required

func (*UserService) KYCDocumentRequest

func (s *UserService) KYCDocumentRequest(documentToRequest int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Allows the requesting of the following documents: ID, Proof of address, Payment method

func (*UserService) KYCUpload

func (s *UserService) KYCUpload(body models.KYCUpload, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Uploads a KYC file for the specified KYC item.

func (*UserService) PasswordSetOnce

func (s *UserService) PasswordSetOnce(body models.PasswordRequestDto, headers map[string]string, log logger.Logger) (response models.OperationResponse, err error)

func (*UserService) SendEmail

Sends an email. Currently supports the following email template ids:

1 (Contact Form template),
2 (Manual Deposit Request template)
	Does not consider currently authenticated user.
	All information is to be included in the EmailBodyPlaceholderValues.
	Key "Email" and "FullName" is reserved and not to be used - will exit with error if used.

Expected error codes: UNSUPPORTED_EMAIL_TEMPLATE_ID, REQUEST_DATA_INVALID, RESERVED_KEY_EMAIL_TEMPLATE_PLACEHOLDER_VALUES

func (*UserService) SessionTurnover

func (s *UserService) SessionTurnover(headers map[string]string, log logger.Logger) (response models.OperationResponseOfDecimal, err error)

Get the turnover of a user for the current session

func (*UserService) SetAffiliateReference

func (s *UserService) SetAffiliateReference(userID int64, affiliateReference string, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Associates a user with an affiliate reference. Errors:

USER_NOT_FOUND if user does not exist.
USER_ALREADY_AFFILIATED if user is already affiliated.
INVALID_AFFILIATE_REFERENCE if affiliate reference is null or empty.

func (*UserService) Update

func (s *UserService) Update(body models.UpdateUserObject, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Update user details

func (*UserService) User

func (s *UserService) User(headers map[string]string, log logger.Logger) (response models.OperationResponseOfSafeUserDetails, err error)

Get the logged in user using the Authentication Token

func (*UserService) UserByID

func (s *UserService) UserByID(userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfSafeUserDetails, err error)

Get user using the userID

func (*UserService) UserV2

func (s *UserService) UserV2(headers map[string]string, log logger.Logger) (response models.OperationResponseOfUserResponseDTO, err error)

Get the logged in user using the Authentication Token

type ValidationService

type ValidationService service

func (*ValidationService) Email

func (s *ValidationService) Email(body models.ValidationEmailModel, ignoreExisting bool, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Determines whether the mobile and prefix combination isvalid. If ignoreExisting is set to true [ignore existing].

func (*ValidationService) Mobile

func (s *ValidationService) Mobile(body models.ValidationMobileModel, ignoreExisting bool, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Determines whether the mobile and prefix combination isvalid. If ignoreExisting is set to true [ignore existing].

func (*ValidationService) Username

func (s *ValidationService) Username(body models.ValidationUsernameModel, ignoreExisting bool, headers map[string]string, log logger.Logger) (response models.OperationResponseOfBoolean, err error)

Determines whether the is username available and valid. If ignoreExisting is set to true [ignore existing].

type WalletService

type WalletService service

func (*WalletService) GetOMCurrentBonus

func (s *WalletService) GetOMCurrentBonus(headers map[string]string, log logger.Logger) (response models.OperationResponseOfBonus, err error)

Gets the current OM bonus

func (*WalletService) GetOMWallet

func (s *WalletService) GetOMWallet(headers map[string]string, log logger.Logger) (response models.OperationResponseOfOMUserWalletPublic, err error)

Gets the users OM wallet

func (*WalletService) Transactions

No documentation available.

func (*WalletService) Wallet

func (s *WalletService) Wallet(headers map[string]string, log logger.Logger) (response models.OperationResponseOfUserWalletPublic, err error)

Gets the User Wallet

func (*WalletService) WalletByUserID

func (s *WalletService) WalletByUserID(userID int64, headers map[string]string, log logger.Logger) (response models.OperationResponseOfUserWalletPublic, err error)

Gets the User Wallet

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL