Documentation
¶
Index ¶
- Constants
- Variables
- func Decode(encoded string) string
- func DoRequestWithClient(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error)
- func GenerateHash(url, apiKey, secretKey, randomString, body string) string
- func GenerateRandomString() string
- func QueryParams(req interface{}) (string, error)
- type AccountOwner
- type AddCardFingerprintFraudValueListRequest
- type AdditionalAction
- type ApmAdditionalAction
- type ApmDepositPaymentResponse
- type ApmType
- type ApplePayMerchantSessionCreateRequest
- type ApprovalStatus
- type ApproveBnplPaymentRequest
- type AutopilotState
- type BankAccountTracking
- type BankAccountTrackingRecordResponse
- type BankAccountTrackingSource
- type BaseRequest
- type BkmExpress
- func (api *BkmExpress) Complete(ctx context.Context, request CompleteBkmExpressRequest) (*PaymentResponse, error)
- func (api *BkmExpress) GenerateToken(ctx context.Context, request BkmExpressGenerateTokenRequest) (*BkmExpressGenerateTokenResponse, error)
- func (api *BkmExpress) Init(ctx context.Context, request InitBkmExpressRequest) (*InitBkmExpressResponse, error)
- func (api *BkmExpress) RetrievePaymentByToken(ctx context.Context, bkmExpressPaymentToken string) (*PaymentResponse, error)
- type BkmExpressGenerateTokenRequest
- type BkmExpressGenerateTokenResponse
- type BnplBankOffer
- type BnplBankOfferTerm
- type BnplCartItemType
- type BnplLimitInquiryRequest
- type BnplLimitInquiryResponse
- type BnplPaymentCartItem
- type BnplPaymentOfferRequest
- type BnplPaymentOfferResponse
- type BnplPaymentVerifyResponse
- type CancelWithdrawRequest
- type Card
- type CardAssociation
- type CardBrand
- type CardExpiryStatus
- type CardProvider
- type CardType
- type CardVerificationAuthType
- type CardVerifyStatus
- type CheckMasterpassUserRequest
- type CheckMasterpassUserResponse
- type Client
- func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) error
- func (c *Client) DoForByteResponse(ctx context.Context, req *http.Request) ([]byte, error)
- func (c *Client) Info() string
- func (c *Client) NewRequest(ctx context.Context, method, urlStr string, body Request) (*http.Request, error)
- func (c *Client) NewRequestForByteResponse(ctx context.Context, method, urlStr string, body Request) (*http.Request, error)
- func (c *Client) NewRequestWithoutBody(ctx context.Context, method, urlStr string, request Request) (*http.Request, error)
- type ClientOption
- type ClientType
- type CloneStoredCardRequest
- type Complete3DSPaymentRequest
- type CompleteApmPaymentRequest
- type CompleteApmPaymentResponse
- type CompleteBkmExpressRequest
- type CompletePosApmPaymentRequest
- type CreateApmPaymentRequest
- type CreateFundTransferDepositPaymentRequest
- type CreateInstantWalletSettlementRequest
- type CreateInstantWalletSettlementResponse
- type CreateMemberRequest
- type CreateMemberWalletRequest
- type CreateMerchantPosCommission
- type CreateMerchantPosCommissionRequest
- type CreateMerchantPosRequest
- type CreateMerchantPosUser
- type CreateMerchantRequest
- type CreateMerchantResponse
- type CreatePaymentRequest
- type CreatePayoutAccountRequest
- type CreateProductRequest
- type CreateReportRequest
- type CreateWithdrawRequest
- type Currency
- type CustomInstallment
- type DataResponse
- type Date
- type DeleteMerchantPosRequest
- type DeletePayoutAccountRequest
- type DeleteProductRequest
- type DeleteStoredCardRequest
- type DeleteValueListRequest
- type DepositPaymentRequest
- type DepositPaymentResponse
- type EncryptedCard
- type ErrorResponse
- type ExpireCheckoutPaymentRequest
- type FileReporting
- func (api *FileReporting) CreateReport(ctx context.Context, request CreateReportRequest) (*ReportDemandResponse, error)
- func (api *FileReporting) RetrieveDailyPaymentReport(ctx context.Context, request RetrieveDailyPaymentReportRequest) ([]byte, error)
- func (api *FileReporting) RetrieveDailyTransactionReport(ctx context.Context, request RetrieveDailyTransactionReportRequest) ([]byte, error)
- func (api *FileReporting) RetrieveReport(ctx context.Context, retrieveReportRequest RetrieveReportRequest, ...) ([]byte, error)
- type FileStatus
- type Fraud
- func (api *Fraud) AddCardFingerprintToFraudValueList(ctx context.Context, request AddCardFingerprintFraudValueListRequest, ...) error
- func (api *Fraud) AddValueToFraudValueList(ctx context.Context, request FraudValueListRequest) error
- func (api *Fraud) CreateFraudValueList(ctx context.Context, listName string, fraudValueType FraudValueType) error
- func (api *Fraud) DeleteFraudValueList(ctx context.Context, request DeleteValueListRequest) error
- func (api *Fraud) RemoveValueFromFraudValueList(ctx context.Context, request RemoveValueFromValueListRequest) error
- func (api *Fraud) RetrieveAllFraudValueList(ctx context.Context) (*DataResponse[FraudValuesResponse], error)
- func (api *Fraud) RetrieveFraudValueList(ctx context.Context, listName string) (*FraudValuesResponse, error)
- func (api *Fraud) SearchFraudChecks(ctx context.Context, request SearchFraudChecksRequest) (*DataResponse[FraudCheckResponse], error)
- func (api *Fraud) SearchFraudRules(ctx context.Context, request SearchFraudRuleRequest) (*DataResponse[FraudRuleResponse], error)
- func (api *Fraud) UpdateFraudCheckStatus(ctx context.Context, request UpdateFraudCheckStatusRequest) error
- type FraudAction
- type FraudCheckParameters
- type FraudCheckResponse
- type FraudCheckStatus
- type FraudOperation
- type FraudPaymentData
- type FraudResult
- type FraudRuleResponse
- type FraudRuleScope
- type FraudValue
- type FraudValueListRequest
- type FraudValueType
- type FraudValuesResponse
- type FundTransferDepositPaymentResponse
- type GarantiPayInstallment
- type HeaderOptions
- type Hook
- type IVRCardTokenizationResponse
- type Init3DSPaymentRequest
- type Init3DSPaymentResponse
- type InitApmDepositPaymentRequest
- type InitApmPaymentRequest
- type InitApmPaymentResponse
- type InitBkmExpressRequest
- type InitBkmExpressResponse
- type InitBnplPaymentRequest
- type InitBnplPaymentResponse
- type InitCheckoutCardVerifyRequest
- type InitCheckoutCardVerifyResponse
- type InitCheckoutPaymentRequest
- type InitCheckoutPaymentResponse
- type InitGarantiPayPaymentRequest
- type InitGarantiPayPaymentResponse
- type InitJuzdanPaymentRequest
- type InitJuzdanPaymentResponse
- type InitMultiPaymentRequest
- type InitMultiPaymentResponse
- type InitPosApmPaymentRequest
- type InitPosApmPaymentResponse
- type Installment
- type InstallmentListResponse
- type InstallmentPrice
- type InstallmentResponse
- type InstantTransferBank
- type InstantTransferBanksResponse
- type Juzdan
- type Loyalty
- type LoyaltyType
- type Masterpass
- func (api *Masterpass) CheckMasterpassUser(ctx context.Context, request CheckMasterpassUserRequest) (*CheckMasterpassUserResponse, error)
- func (api *Masterpass) Complete3DSMasterpassPayment(ctx context.Context, request MasterpassPaymentThreeDSCompleteRequest) (*PaymentResponse, error)
- func (api *Masterpass) CompleteMasterpassPayment(ctx context.Context, request MasterpassPaymentCompleteRequest) (*PaymentResponse, error)
- func (api *Masterpass) GenerateMasterpassAccountToken(ctx context.Context, request MasterpassAccountTokenGenerateRequest) (*MasterpassAccountTokenGenerateResponse, error)
- func (api *Masterpass) GenerateMasterpassPaymentToken(ctx context.Context, request MasterpassPaymentTokenGenerateRequest) (*MasterpassPaymentTokenGenerateResponse, error)
- func (api *Masterpass) Init3DSMasterpassPayment(ctx context.Context, request MasterpassPaymentThreeDSInitRequest) (*MasterpassPaymentThreeDSInitResponse, error)
- func (api *Masterpass) RetrieveLoyalties(ctx context.Context, request MasterpassRetrieveLoyaltiesRequest) (*RetrieveLoyaltiesResponse, error)
- type MasterpassAccountTokenGenerateRequest
- type MasterpassAccountTokenGenerateResponse
- type MasterpassCreatePayment
- type MasterpassPaymentCompleteRequest
- type MasterpassPaymentThreeDSCompleteRequest
- type MasterpassPaymentThreeDSInitRequest
- type MasterpassPaymentThreeDSInitResponse
- type MasterpassPaymentTokenGenerateRequest
- type MasterpassPaymentTokenGenerateResponse
- type MasterpassRetrieveLoyaltiesRequest
- type MasterpassValidationType
- type MealVoucherCardTokenization
- func (api *MealVoucherCardTokenization) Complete(ctx context.Context, sessionId string, ...) (*MealVoucherCardTokenizationCompleteResponse, error)
- func (api *MealVoucherCardTokenization) Init(ctx context.Context, request MealVoucherCardTokenizationInitRequest) (*MealVoucherCardTokenizationInitResponse, error)
- func (api *MealVoucherCardTokenization) Regenerate(ctx context.Context, sessionId string, ...) (*MealVoucherCardTokenizationInitResponse, error)
- type MealVoucherCardTokenizationCompleteRequest
- type MealVoucherCardTokenizationCompleteResponse
- type MealVoucherCardTokenizationData
- type MealVoucherCardTokenizationInitRequest
- type MealVoucherCardTokenizationInitResponse
- type MealVoucherCardTokenizationRegenerateRequest
- type MemberResponse
- type MemberType
- type MemberWalletResponse
- type Merchant
- func (api *Merchant) CreateMerchantPos(ctx context.Context, request CreateMerchantPosRequest) (*MerchantPosResponse, error)
- func (api *Merchant) DeleteMerchantPosStatus(ctx context.Context, request DeleteMerchantPosRequest) error
- func (api *Merchant) RetrieveMerchantPos(ctx context.Context, id int64) (*MerchantPosResponse, error)
- func (api *Merchant) RetrieveMerchantPosCommissions(ctx context.Context, id int64) (*DataResponse[MerchantPosCommissionResponse], error)
- func (api *Merchant) SearchMerchantPos(ctx context.Context, request SearchMerchantPosRequest) (*DataResponse[MerchantPosResponse], error)
- func (api *Merchant) UpdateMerchantPosCommissions(ctx context.Context, id int64, request CreateMerchantPosCommissionRequest) (*DataResponse[MerchantPosCommissionResponse], error)
- func (api *Merchant) UpdateMerchantPosStatus(ctx context.Context, request UpdateMerchantPosStatusRequest) error
- type MerchantApiCredential
- type MerchantApm
- type MerchantApmListResponse
- type MerchantApmResponse
- type MerchantPos
- type MerchantPosCommissionResponse
- type MerchantPosResponse
- type MerchantPosUser
- type MultiPaymentResponse
- type MultiPaymentStatus
- type Onboarding
- func (api *Onboarding) CreateMember(ctx context.Context, request CreateMemberRequest) (*MemberResponse, error)
- func (api *Onboarding) CreateMerchant(ctx context.Context, request CreateMerchantRequest) (*CreateMerchantResponse, error)
- func (api *Onboarding) RetrieveMember(ctx context.Context, id int64) (*MemberResponse, error)
- func (api *Onboarding) SearchMembers(ctx context.Context, request SearchMembersRequest) (*DataResponse[MemberResponse], error)
- func (api *Onboarding) UpdateMember(ctx context.Context, id int64, request UpdateMemberRequest) (*MemberResponse, error)
- type OnboardingStatus
- type OrderingRule
- type PayByLink
- func (api *PayByLink) CreateProduct(ctx context.Context, request CreateProductRequest) (*ProductResponse, error)
- func (api *PayByLink) DeleteProduct(ctx context.Context, request DeleteProductRequest) error
- func (api *PayByLink) RetrieveProduct(ctx context.Context, id int64) (interface{}, error)
- func (api *PayByLink) SearchProducts(ctx context.Context, request SearchProductsRequest) (*DataResponse[ProductResponse], error)
- func (api *PayByLink) UpdateProduct(ctx context.Context, id int64, request UpdateProductRequest) (*ProductResponse, error)
- type Payment
- func (api *Payment) ApproveBnplPayment(ctx context.Context, request ApproveBnplPaymentRequest) (*PaymentResponse, error)
- func (api *Payment) ApprovePaymentTransactions(ctx context.Context, request PaymentTransactionsApprovalRequest) (*DataResponse[PaymentTransactionsApprovalResponse], error)
- func (api *Payment) BnplLimitInquiry(ctx context.Context, request BnplLimitInquiryRequest) (*BnplLimitInquiryResponse, error)
- func (api *Payment) BnplLimitInquiryInit(ctx context.Context, request BnplLimitInquiryRequest) (*BnplLimitInquiryResponse, error)
- func (api *Payment) CloneStoredCard(ctx context.Context, request CloneStoredCardRequest) (*StoredCardResponse, error)
- func (api *Payment) Complete3DSDepositPayment(ctx context.Context, request Complete3DSPaymentRequest) (*DepositPaymentResponse, error)
- func (api *Payment) Complete3DSPayment(ctx context.Context, request Complete3DSPaymentRequest) (*PaymentResponse, error)
- func (api *Payment) CompleteApmPayment(ctx context.Context, request CompleteApmPaymentRequest) (*CompleteApmPaymentResponse, error)
- func (api *Payment) CompletePosApmPayment(ctx context.Context, request CompletePosApmPaymentRequest) (*PaymentResponse, error)
- func (api *Payment) CreateApmPayment(ctx context.Context, request CreateApmPaymentRequest) (*PaymentResponse, error)
- func (api *Payment) CreateApplePayMerchantSession(ctx context.Context, request ApplePayMerchantSessionCreateRequest) (*interface{}, error)
- func (api *Payment) CreateDepositPayment(ctx context.Context, request DepositPaymentRequest) (*DepositPaymentResponse, error)
- func (api *Payment) CreateFundTransferDepositPayment(ctx context.Context, request CreateFundTransferDepositPaymentRequest) (*FundTransferDepositPaymentResponse, error)
- func (api *Payment) CreatePayment(ctx context.Context, request CreatePaymentRequest) (*PaymentResponse, error)
- func (api *Payment) DeleteStoredCard(ctx context.Context, request DeleteStoredCardRequest) error
- func (api *Payment) DisapprovePaymentTransactions(ctx context.Context, request PaymentTransactionsApprovalRequest) (*DataResponse[PaymentTransactionsApprovalResponse], error)
- func (api *Payment) ExpireCheckoutPayment(ctx context.Context, request ExpireCheckoutPaymentRequest) error
- func (api *Payment) Init3DSDepositPayment(ctx context.Context, request DepositPaymentRequest) (*Init3DSPaymentResponse, error)
- func (api *Payment) Init3DSPayment(ctx context.Context, request Init3DSPaymentRequest) (*Init3DSPaymentResponse, error)
- func (api *Payment) InitApmDepositPayment(ctx context.Context, request InitApmDepositPaymentRequest) (*ApmDepositPaymentResponse, error)
- func (api *Payment) InitApmPayment(ctx context.Context, request InitApmPaymentRequest) (*InitApmPaymentResponse, error)
- func (api *Payment) InitBnplPayment(ctx context.Context, request InitBnplPaymentRequest) (*InitBnplPaymentResponse, error)
- func (api *Payment) InitCheckoutCardVerify(ctx context.Context, request InitCheckoutCardVerifyRequest) (*InitCheckoutCardVerifyResponse, error)
- func (api *Payment) InitCheckoutPayment(ctx context.Context, request InitCheckoutPaymentRequest) (*InitCheckoutPaymentResponse, error)
- func (api *Payment) InitGarantiPayPayment(ctx context.Context, request InitGarantiPayPaymentRequest) (*InitGarantiPayPaymentResponse, error)
- func (api *Payment) InitMultiPayment(ctx context.Context, request InitMultiPaymentRequest) (*InitMultiPaymentResponse, error)
- func (api *Payment) InitPosApmPayment(ctx context.Context, request InitPosApmPaymentRequest) (*InitPosApmPaymentResponse, error)
- func (c *Payment) Is3DSecureCallbackVerified(threeDSecureCallbackKey string, params map[string]string) bool
- func (api *Payment) PostAuthPayment(ctx context.Context, paymentId int64, request PostAuthPaymentRequest) (*PaymentResponse, error)
- func (api *Payment) RefundPayment(ctx context.Context, request RefundPaymentRequest) (*PaymentRefundResponse, error)
- func (api *Payment) RefundPaymentMarkAsRefunded(ctx context.Context, request RefundPaymentRequest) (*PaymentTransactionRefundListResponse, error)
- func (api *Payment) RefundPaymentTransaction(ctx context.Context, request RefundPaymentTransactionRequest) (*PaymentTransactionRefundResponse, error)
- func (api *Payment) RefundPaymentTransactionMarkAsRefunded(ctx context.Context, request RefundPaymentTransactionMarkAsRefundedRequest) (*PaymentTransactionRefundResponse, error)
- func (api *Payment) RefundWaitingPayment(ctx context.Context, request RefundWaitingPaymentRequest) (*WaitingPaymentRefundResponse, error)
- func (api *Payment) RetrieveActiveBanks(ctx context.Context) (*InstantTransferBanksResponse, error)
- func (api *Payment) RetrieveBnplOffers(ctx context.Context, request BnplPaymentOfferRequest) (*BnplPaymentOfferResponse, error)
- func (api *Payment) RetrieveCardFromIvr(ctx context.Context, request RetrieveCardFromIvrRequest) (*IVRCardTokenizationResponse, error)
- func (api *Payment) RetrieveCheckoutCardVerify(ctx context.Context, token string) (*RetrieveCheckoutCardVerifyResponse, error)
- func (api *Payment) RetrieveCheckoutPayment(ctx context.Context, token string) (*PaymentResponse, error)
- func (api *Payment) RetrieveLoyalties(ctx context.Context, request RetrieveLoyaltiesRequest) (*RetrieveLoyaltiesResponse, error)
- func (api *Payment) RetrieveMultiPayment(ctx context.Context, token string) (*MultiPaymentResponse, error)
- func (api *Payment) RetrievePayment(ctx context.Context, paymentId int64) (*PaymentResponse, error)
- func (api *Payment) RetrievePaymentRefund(ctx context.Context, id int64) (*PaymentRefundResponse, error)
- func (api *Payment) RetrievePaymentTransactionRefund(ctx context.Context, id int64) (*PaymentTransactionRefundResponse, error)
- func (api *Payment) RetrieveProviderCards(ctx context.Context, request RetrieveProviderCardRequest) (*DataResponse[StoredCardResponse], error)
- func (api *Payment) SearchStoredCards(ctx context.Context, request SearchStoredCardsRequest) (*DataResponse[StoredCardResponse], error)
- func (api *Payment) StoreCard(ctx context.Context, request StoreCardRequest) (*StoredCardResponse, error)
- func (api *Payment) UpdatePaymentTransaction(ctx context.Context, id int64, request UpdatePaymentTransactionRequest) (*PaymentTransactionResponse, error)
- func (api *Payment) UpdateStoredCard(ctx context.Context, request UpdateStoredCardRequest) (*StoredCardResponse, error)
- func (api *Payment) VerifyBnplPayment(ctx context.Context, request VerifyBnplPaymentRequest) (*BnplPaymentVerifyResponse, error)
- func (api *Payment) VerifyCard(ctx context.Context, request VerifyCardRequest) (*VerifyCardResponse, error)
- type PaymentAuthenticationType
- type PaymentError
- type PaymentGroup
- type PaymentItem
- type PaymentMethod
- type PaymentPhase
- type PaymentProvider
- type PaymentRefundResponse
- type PaymentRefundStatus
- type PaymentReporting
- func (api *PaymentReporting) RetrievePayment(ctx context.Context, id int64) (*ReportingPaymentResponse, error)
- func (api *PaymentReporting) RetrievePaymentRefunds(ctx context.Context, paymentId int64) (*DataResponse[ReportingPaymentRefundResponse], error)
- func (api *PaymentReporting) RetrievePaymentTransactionRefunds(ctx context.Context, paymentId, paymentTransactionId int64) (*DataResponse[ReportingPaymentTransactionRefundResponse], error)
- func (api *PaymentReporting) RetrievePaymentTransactions(ctx context.Context, paymentId int64) (*DataResponse[ReportingPaymentTransactionResponse], error)
- func (api *PaymentReporting) SearchPaymentRefunds(ctx context.Context, request SearchPaymentRefundsRequest) (*DataResponse[ReportingPaymentRefundResponse], error)
- func (api *PaymentReporting) SearchPaymentTransactionRefunds(ctx context.Context, request SearchPaymentTransactionRefundsRequest) (*DataResponse[ReportingPaymentTransactionRefundResponse], error)
- func (api *PaymentReporting) SearchPayments(ctx context.Context, request SearchPaymentsRequest) (*DataResponse[ReportingPaymentResponse], error)
- type PaymentResponse
- type PaymentSource
- type PaymentStatus
- type PaymentTransactionRefundListResponse
- type PaymentTransactionRefundResponse
- type PaymentTransactionResponse
- type PaymentTransactionsApprovalRequest
- type PaymentTransactionsApprovalResponse
- type PaymentType
- type Payout
- type PayoutAccountResponse
- type PayoutAccountType
- type PayoutDetailResponse
- type PayoutDetailTransactionResponse
- type PayoutRowResponse
- type PayoutStatus
- type PosApmInstallment
- type PosApmPaymentProvider
- type PosIntegrator
- type PosOperationType
- type PosStatus
- type PosUserType
- type PostAuthPaymentRequest
- type ProductResponse
- type ProviderError
- type RecordType
- type RefundDestinationType
- type RefundPaymentRequest
- type RefundPaymentTransactionMarkAsRefundedRequest
- type RefundPaymentTransactionRequest
- type RefundStatus
- type RefundType
- type RefundWaitingPaymentRequest
- type RefundWalletTransactionRequest
- type RefundWalletTransactionResponse
- type RemittanceRequest
- type RemittanceResponse
- type RemoveValueFromValueListRequest
- type ReportDemandResponse
- type ReportFileType
- type ReportPeriod
- type ReportType
- type ReportingPaymentRefundResponse
- type ReportingPaymentResponse
- type ReportingPaymentTransactionRefundResponse
- type ReportingPaymentTransactionResponse
- type Request
- type RequestOptions
- type ResetMerchantMemberWalletBalanceRequest
- type Response
- type RetrieveBinNumberResponse
- type RetrieveCardFromIvrRequest
- type RetrieveCheckoutCardVerifyResponse
- type RetrieveDailyPaymentReportRequest
- type RetrieveDailyTransactionReportRequest
- type RetrieveLoyaltiesRequest
- type RetrieveLoyaltiesResponse
- type RetrievePayoutDetailsRequest
- type RetrieveProviderCardRequest
- type RetrieveReportRequest
- type RetrieveWalletTransactionRefundableAmountResponse
- type Reward
- type RoutingOptions
- type SearchBankAccountTrackingRecordRequest
- type SearchFraudChecksRequest
- type SearchFraudRuleRequest
- type SearchInstallmentsRequest
- type SearchMembersRequest
- type SearchMerchantPosRequest
- type SearchPaymentRefundsRequest
- type SearchPaymentTransactionRefundsRequest
- type SearchPaymentsRequest
- type SearchPayoutAccountRequest
- type SearchPayoutBouncedTransactionsRequest
- type SearchPayoutBouncedTransactionsResponse
- type SearchPayoutCompletedTransactionsRequest
- type SearchPayoutCompletedTransactionsResponse
- type SearchPayoutRowRequest
- type SearchProductsRequest
- type SearchStoredCardsRequest
- type SearchWalletTransactionsRequest
- type SearchWalletTransactionsResponse
- type SearchWithdrawsRequest
- type Settlement
- func (api *Settlement) CreateInstantWalletSettlement(ctx context.Context, request CreateInstantWalletSettlementRequest) (*CreateInstantWalletSettlementResponse, error)
- func (api *Settlement) CreatePayoutAccount(ctx context.Context, request CreatePayoutAccountRequest) (*PayoutAccountResponse, error)
- func (api *Settlement) DeletePayoutAccount(ctx context.Context, request DeletePayoutAccountRequest) error
- func (api *Settlement) SearchPayoutAccounts(ctx context.Context, request SearchPayoutAccountRequest) (*DataResponse[PayoutAccountResponse], error)
- func (api *Settlement) UpdatePayoutAccount(ctx context.Context, id int64, request UpdatePayoutAccountRequest) error
- type SettlementEarningsDestination
- type SettlementReporting
- func (api *SettlementReporting) RetrievePayoutDetails(ctx context.Context, payoutDetailId int64) (*PayoutDetailResponse, error)
- func (api *SettlementReporting) SearchPayoutBouncedTransactions(ctx context.Context, request SearchPayoutBouncedTransactionsRequest) (*DataResponse[SearchPayoutBouncedTransactionsResponse], error)
- func (api *SettlementReporting) SearchPayoutCompletedTransactions(ctx context.Context, request SearchPayoutCompletedTransactionsRequest) (*DataResponse[SearchPayoutCompletedTransactionsResponse], error)
- func (api *SettlementReporting) SearchPayoutRows(ctx context.Context, request SearchPayoutRowRequest) (*DataResponse[PayoutRowResponse], error)
- type SettlementType
- type Status
- type StoreCardRequest
- type StoredCardResponse
- type TimeResponse
- type TokenizedCard
- type TokenizedCardType
- type TransactionPayoutStatus
- type TransactionStatus
- type UpdateFraudCheckStatusRequest
- type UpdateMemberRequest
- type UpdateMemberWalletRequest
- type UpdateMerchantPosStatusRequest
- type UpdatePaymentTransactionRequest
- type UpdatePayoutAccountRequest
- type UpdateProductRequest
- type UpdateStoredCardRequest
- type VerifyBnplPaymentRequest
- type VerifyCard
- type VerifyCardRequest
- type VerifyCardResponse
- type Void
- type WaitingPaymentRefundResponse
- type Wallet
- func (api *Wallet) CancelWithdraw(ctx context.Context, request CancelWithdrawRequest) (interface{}, error)
- func (api *Wallet) CreateMemberWallet(ctx context.Context, memberId int64, request CreateMemberWalletRequest) (*MemberWalletResponse, error)
- func (api *Wallet) CreateWithdraw(ctx context.Context, request CreateWithdrawRequest) (*WithdrawResponse, error)
- func (api *Wallet) ReceiveRemittance(ctx context.Context, request RemittanceRequest) (*RemittanceResponse, error)
- func (api *Wallet) RefundWalletTransaction(ctx context.Context, walletTransactionId int64, ...) (*RefundWalletTransactionResponse, error)
- func (api *Wallet) ResetMerchantMemberWalletBalance(ctx context.Context, request ResetMerchantMemberWalletBalanceRequest) (*MemberWalletResponse, error)
- func (api *Wallet) RetrieveMemberWallet(ctx context.Context, memberId int64) (*MemberWalletResponse, error)
- func (api *Wallet) RetrieveMerchantMemberWallet(ctx context.Context) (*MemberWalletResponse, error)
- func (api *Wallet) RetrieveRefundWalletTransactions(ctx context.Context, walletTransactionId int64) (*DataResponse[RefundWalletTransactionResponse], error)
- func (api *Wallet) RetrieveRefundableAmountOfWalletTransaction(ctx context.Context, walletTransactionId int64) (*RetrieveWalletTransactionRefundableAmountResponse, error)
- func (api *Wallet) RetrieveRemittance(ctx context.Context, remittanceId int64) (*RemittanceResponse, error)
- func (api *Wallet) RetrieveWithdraw(ctx context.Context, withdrawId int64) (*WithdrawResponse, error)
- func (api *Wallet) SearchWalletTransactions(ctx context.Context, walletId int64, request SearchWalletTransactionsRequest) (*DataResponse[SearchWalletTransactionsResponse], error)
- func (api *Wallet) SearchWithdraws(ctx context.Context, request SearchWithdrawsRequest) (*DataResponse[WithdrawResponse], error)
- func (api *Wallet) SendRemittance(ctx context.Context, request RemittanceRequest) (*RemittanceResponse, error)
- func (api *Wallet) UpdateMemberWallet(ctx context.Context, memberId int64, walletId int64, ...) (*MemberWalletResponse, error)
- type WalletTransaction
- type WalletTransactionRefundTransactionType
- type WalletTransactionType
- type WebhookData
- type WebhookEventType
- type WebhookStatus
- type WithdrawResponse
Constants ¶
const ( ApiKeyHeaderName = "x-api-key" RandomHeaderName = "x-rnd-key" AuthVersionHeaderName = "x-auth-version" ClientVersionHeaderName = "x-client-version" SignatureHeaderName = "x-signature" IdempotencyKeyHeaderName = "x-idempotency-key" AuthVersion = "1" )
Variables ¶
var ClientVersion = "craftgate-go-client:" + moduleVersion(debug.ReadBuildInfo())
ClientVersion is sent in the x-client-version header. Go records the version of every module dependency (the release tag, e.g. v1.0.32) in the binary, so it doesn't need to be bumped by hand.
Functions ¶
func DoRequestWithClient ¶
func GenerateHash ¶
func GenerateRandomString ¶
func GenerateRandomString() string
func QueryParams ¶
Types ¶
type AccountOwner ¶ added in v1.0.8
type AccountOwner string
const ( AccountOwner_MERCHANT AccountOwner = "MERCHANT" AccountOwner_SUB_MERCHANT_MEMBER AccountOwner = "SUB_MERCHANT_MEMBER" )
type AddCardFingerprintFraudValueListRequest ¶ added in v1.0.31
type AddCardFingerprintFraudValueListRequest struct {
BaseRequest
Label string `json:"label,omitempty"`
Operation FraudOperation `json:"operation,omitempty"`
OperationId string `json:"operationId"`
DurationInSeconds int `json:"durationInSeconds,omitempty"`
}
type AdditionalAction ¶ added in v1.0.9
type AdditionalAction string
const ( AdditionalAction_CONTINUE_IN_CLIENT AdditionalAction = "CONTINUE_IN_CLIENT" AdditionalAction_SHOW_HTML_CONTENT AdditionalAction = "SHOW_HTML_CONTENT" AdditionalAction_REDIRECT_TO_URL AdditionalAction = "REDIRECT_TO_URL" AdditionalAction_NONE AdditionalAction = "NONE" )
type ApmAdditionalAction ¶
type ApmAdditionalAction string
const ( ApmAdditionalAction_REDIRECT_TO_URL ApmAdditionalAction = "REDIRECT_TO_URL" ApmAdditionalAction_OTP_REQUIRED ApmAdditionalAction = "OTP_REQUIRED" ApmAdditionalAction_SHOW_HTML_CONTENT ApmAdditionalAction = "SHOW_HTML_CONTENT" ApmAdditionalAction_WAIT_FOR_WEBHOOK ApmAdditionalAction = "WAIT_FOR_WEBHOOK" ApmAdditionalAction_APPROVAL_REQUIRED ApmAdditionalAction = "APPROVAL_REQUIRED" ApmAdditionalAction_VERIFY_REQUIRED ApmAdditionalAction = "VERIFY_REQUIRED" ApmAdditionalAction_SHOW_QR_CODE ApmAdditionalAction = "SHOW_QR_CODE" ApmAdditionalAction_NONE ApmAdditionalAction = "NONE" )
apm additional action type declaration
type ApmDepositPaymentResponse ¶ added in v1.0.7
type ApmDepositPaymentResponse struct {
PaymentId *int64 `json:"paymentId"`
RedirectUrl *string `json:"redirectUrl"`
PaymentStatus *PaymentStatus `json:"paymentStatus"`
ApmAdditionalAction *ApmAdditionalAction `json:"additionalAction"`
PaymentError *PaymentError `json:"paymentError"`
WalletTransaction *WalletTransaction `json:"walletTransaction"`
}
type ApmType ¶
type ApmType string
const ( ApmType_PAPARA ApmType = "PAPARA" ApmType_PAYONEER ApmType = "PAYONEER" ApmType_SODEXO ApmType = "SODEXO" ApmType_SODEXO_GIFT ApmType = "SODEXO_GIFT" ApmType_SETCARD ApmType = "SETCARD" ApmType_SETCARD_GIFT ApmType = "SETCARD_GIFT" ApmType_METROPOL ApmType = "METROPOL" ApmType_EDENRED ApmType = "EDENRED" ApmType_EDENRED_GIFT ApmType = "EDENRED_GIFT" ApmType_TOKENFLEX ApmType = "TOKENFLEX" ApmType_TOKENFLEX_GIFT ApmType = "TOKENFLEX_GIFT" ApmType_PAYPAL ApmType = "PAYPAL" ApmType_KLARNA ApmType = "KLARNA" ApmType_AFTERPAY ApmType = "AFTERPAY" ApmType_KASPI ApmType = "KASPI" ApmType_INSTANT_TRANSFER ApmType = "INSTANT_TRANSFER" ApmType_TOMPAY ApmType = "TOMPAY" ApmType_MASLAK ApmType = "MASLAK" ApmType_ALFABANK ApmType = "ALFABANK" ApmType_TOM_FINANCE ApmType = "TOM_FINANCE" ApmType_STRIPE ApmType = "STRIPE" ApmType_PAYCELL ApmType = "PAYCELL" ApmType_HASO ApmType = "HASO" ApmType_MULTINET ApmType = "MULTINET" ApmType_MULTINET_GIFT ApmType = "MULTINET_GIFT" ApmType_MULTINET_NEO_GIFT ApmType = "MULTINET_NEO_GIFT" ApmType_ALIPAY ApmType = "ALIPAY" ApmType_APPLEPAY ApmType = "APPLEPAY" ApmType_GOOGLEPAY ApmType = "GOOGLEPAY" ApmType_HEPSIPAY_FINANCE ApmType = "HEPSIPAY_FINANCE" ApmType_HEPSIPAY_WALLET ApmType = "HEPSIPAY_WALLET" ApmType_HEPSIPAY_SHOPPING_LOAN ApmType = "HEPSIPAY_SHOPPING_LOAN" ApmType_ZIP ApmType = "ZIP" ApmType_CHIPPIN ApmType = "CHIPPIN" ApmType_ISPAY ApmType = "ISPAY" ApmType_VODAFONE_DCB ApmType = "VODAFONE_DCB" ApmType_PAYMOB ApmType = "PAYMOB" ApmType_BIZUM ApmType = "BIZUM" ApmType_PAYLANDS_MB_WAY ApmType = "PAYLANDS_MB_WAY" ApmType_PAYCELL_DCB ApmType = "PAYCELL_DCB" ApmType_IWALLET ApmType = "IWALLET" ApmType_PAPEL ApmType = "PAPEL" ApmType_ALBARAKA ApmType = "ALBARAKA" ApmType_FUND_TRANSFER ApmType = "FUND_TRANSFER" ApmType_CASH_ON_DELIVERY ApmType = "CASH_ON_DELIVERY" ApmType_KARACA_FINANS ApmType = "KARACA_FINANS" )
apm type declaration
type ApplePayMerchantSessionCreateRequest ¶ added in v1.0.14
type ApplePayMerchantSessionCreateRequest struct {
BaseRequest
MerchantIdentifier string `json:"merchantIdentifier,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Initiative string `json:"initiative,omitempty"`
InitiativeContext string `json:"initiativeContext,omitempty"`
ValidationUrl string `json:"validationUrl,omitempty"`
}
type ApprovalStatus ¶
type ApprovalStatus string
const ( ApprovalStatus_SUCCESS ApprovalStatus = "SUCCESS" ApprovalStatus_FAILURE ApprovalStatus = "FAILURE" )
approval status declaration
type ApproveBnplPaymentRequest ¶ added in v1.0.32
type ApproveBnplPaymentRequest struct {
BaseRequest
PaymentId int64
}
type AutopilotState ¶ added in v1.0.11
type BankAccountTracking ¶ added in v1.0.10
type BankAccountTracking struct {
Client *Client
}
func (*BankAccountTracking) RetrieveRecords ¶ added in v1.0.10
func (api *BankAccountTracking) RetrieveRecords(ctx context.Context, id int64) (*BankAccountTrackingRecordResponse, error)
func (*BankAccountTracking) SearchRecords ¶ added in v1.0.10
func (api *BankAccountTracking) SearchRecords(ctx context.Context, request SearchBankAccountTrackingRecordRequest) (*DataResponse[BankAccountTrackingRecordResponse], error)
type BankAccountTrackingRecordResponse ¶ added in v1.0.10
type BankAccountTrackingRecordResponse struct {
Id int64 `json:"id"`
Key string `json:"key"`
SenderName string `json:"senderName"`
SenderIban string `json:"senderIban"`
Description string `json:"description"`
Currency Currency `json:"currency"`
Amount float64 `json:"amount"`
RecordDate TimeResponse `json:"recordDate"`
RecordType RecordType `json:"recordType"`
BankAccountTrackingSource BankAccountTrackingSource `json:"bankAccountTrackingSource"`
}
type BankAccountTrackingSource ¶ added in v1.0.10
type BankAccountTrackingSource string
const ( BankAccountTrackingSource_YKB BankAccountTrackingSource = "YKB" BankAccountTrackingSource_GARANTI BankAccountTrackingSource = "GARANTI" )
BankAccountTrackingSource declaration
type BaseRequest ¶ added in v1.0.32
type BaseRequest struct {
HeaderOptions HeaderOptions `json:"-" schema:"-"`
}
type BkmExpress ¶ added in v1.0.19
type BkmExpress struct {
Client *Client
}
func (*BkmExpress) Complete ¶ added in v1.0.19
func (api *BkmExpress) Complete(ctx context.Context, request CompleteBkmExpressRequest) (*PaymentResponse, error)
func (*BkmExpress) GenerateToken ¶ added in v1.0.32
func (api *BkmExpress) GenerateToken(ctx context.Context, request BkmExpressGenerateTokenRequest) (*BkmExpressGenerateTokenResponse, error)
func (*BkmExpress) Init ¶ added in v1.0.19
func (api *BkmExpress) Init(ctx context.Context, request InitBkmExpressRequest) (*InitBkmExpressResponse, error)
func (*BkmExpress) RetrievePaymentByToken ¶ added in v1.0.30
func (api *BkmExpress) RetrievePaymentByToken(ctx context.Context, bkmExpressPaymentToken string) (*PaymentResponse, error)
type BkmExpressGenerateTokenRequest ¶ added in v1.0.32
type BkmExpressGenerateTokenRequest struct {
BaseRequest
GsmNumber string `json:"gsmNumber"`
UserId string `json:"userId"`
}
type BkmExpressGenerateTokenResponse ¶ added in v1.0.32
type BkmExpressGenerateTokenResponse struct {
Token *string `json:"token"`
}
type BnplBankOffer ¶ added in v1.0.11
type BnplBankOffer struct {
BankCode string `json:"bankCode"`
BankName string `json:"bankName"`
BankIconUrl string `json:"bankIconUrl"`
BankTableBannerMessage string `json:"bankTableBannerMessage"`
BankSmallBannerMessage string `json:"bankSmallBannerMessage"`
PreApprovedApplicationId string `json:"preApprovedApplicationId"`
IsSupportNonCustomer bool `json:"isSupportNonCustomer"`
IsPaymentPlanCalculatedByBank bool `json:"isPaymentPlanCalculatedByBank"`
BnplBankOfferTerm *[]BnplBankOfferTerm `json:"bankOfferTerms"`
}
type BnplBankOfferTerm ¶ added in v1.0.11
type BnplCartItemType ¶ added in v1.0.11
type BnplCartItemType string
const ( BnplCartItemType_MOBILE_PHONE_OVER_5000_TRY BnplCartItemType = "MOBILE_PHONE_OVER_5000_TRY" BnplCartItemType_MOBILE_PHONE_BELOW_5000_TRY BnplCartItemType = "MOBILE_PHONE_BELOW_5000_TRY" BnplCartItemType_MOBILE_PHONE_PRICE_ABOVE_REGULATION_LIMIT BnplCartItemType = "MOBILE_PHONE_PRICE_ABOVE_REGULATION_LIMIT" BnplCartItemType_MOBILE_PHONE_PRICE_BELOW_REGULATION_LIMIT BnplCartItemType = "MOBILE_PHONE_PRICE_BELOW_REGULATION_LIMIT" BnplCartItemType_TABLET BnplCartItemType = "TABLET" BnplCartItemType_COMPUTER BnplCartItemType = "COMPUTER" BnplCartItemType_TABLET_WITH_CAMPAIGN BnplCartItemType = "TABLET_WITH_CAMPAIGN" BnplCartItemType_CONSTRUCTION_MARKET BnplCartItemType = "CONSTRUCTION_MARKET" BnplCartItemType_GOLD BnplCartItemType = "GOLD" BnplCartItemType_DIGITAL_PRODUCTS BnplCartItemType = "DIGITAL_PRODUCTS" BnplCartItemType_SUPERMARKET BnplCartItemType = "SUPERMARKET" BnplCartItemType_WHITE_GOODS BnplCartItemType = "WHITE_GOODS" BnplCartItemType_WEARABLE_TECHNOLOGY BnplCartItemType = "WEARABLE_TECHNOLOGY" BnplCartItemType_SMALL_HOME_APPLIANCES BnplCartItemType = "SMALL_HOME_APPLIANCES" BnplCartItemType_TV BnplCartItemType = "TV" BnplCartItemType_GAMES_CONSOLES BnplCartItemType = "GAMES_CONSOLES" BnplCartItemType_AIR_CONDITIONER_AND_HEATER BnplCartItemType = "AIR_CONDITIONER_AND_HEATER" BnplCartItemType_ELECTRONICS BnplCartItemType = "ELECTRONICS" BnplCartItemType_ACCESSORIES BnplCartItemType = "ACCESSORIES" BnplCartItemType_MOM_AND_BABY_AND_KIDS BnplCartItemType = "MOM_AND_BABY_AND_KIDS" BnplCartItemType_SHOES BnplCartItemType = "SHOES" BnplCartItemType_CLOTHING BnplCartItemType = "CLOTHING" BnplCartItemType_COSMETICS_AND_PERSONAL_CARE BnplCartItemType = "COSMETICS_AND_PERSONAL_CARE" BnplCartItemType_FURNITURE BnplCartItemType = "FURNITURE" BnplCartItemType_HOME_LIVING BnplCartItemType = "HOME_LIVING" BnplCartItemType_AUTOMOBILE_MOTORCYCLE BnplCartItemType = "AUTOMOBILE_MOTORCYCLE" BnplCartItemType_MOBILE_PHONE_REFURBISHED BnplCartItemType = "MOBILE_PHONE_REFURBISHED" BnplCartItemType_OTHER BnplCartItemType = "OTHER" )
BnplCartItemType type declaration
type BnplLimitInquiryRequest ¶ added in v1.0.32
type BnplLimitInquiryRequest struct {
BaseRequest
ApmType ApmType `json:"apmType"`
MerchantApmId int64 `json:"merchantApmId,omitempty"`
AdditionalParams map[string]string `json:"additionalParams"`
}
type BnplLimitInquiryResponse ¶ added in v1.0.32
type BnplLimitInquiryResponse struct {
PaymentStatus PaymentStatus `json:"paymentStatus"`
AdditionalAction ApmAdditionalAction `json:"additionalAction"`
ErrorCode string `json:"errorCode"`
ErrorMessage string `json:"errorMessage"`
AdditionalData map[string]any `json:"additionalData"`
}
type BnplPaymentCartItem ¶ added in v1.0.11
type BnplPaymentOfferRequest ¶ added in v1.0.11
type BnplPaymentOfferRequest struct {
BaseRequest
ApmType ApmType `json:"apmType"`
MerchantApmId int64 `json:"merchantApmId,omitempty"`
Price float64 `json:"price"`
Currency Currency `json:"currency"`
ApmOrderId string `json:"apmOrderId,omitempty"`
AdditionalParams map[string]string `json:"additionalParams"`
Items []BnplPaymentCartItem `json:"items"`
}
type BnplPaymentOfferResponse ¶ added in v1.0.11
type BnplPaymentOfferResponse struct {
OfferId string `json:"offerId"`
Price *float64 `json:"price"`
BnplBankOffers *[]BnplBankOffer `json:"bankOffers"`
}
type BnplPaymentVerifyResponse ¶ added in v1.0.26
type BnplPaymentVerifyResponse struct {
PaymentStatus PaymentStatus `json:"paymentStatus"`
AdditionalAction ApmAdditionalAction `json:"additionalAction"`
PaymentError PaymentError `json:"paymentError"`
}
type CancelWithdrawRequest ¶ added in v1.0.32
type CancelWithdrawRequest struct {
BaseRequest
WithdrawId int64
}
type Card ¶
type Card struct {
CardHolderName string `json:"cardHolderName,omitempty"`
CardNumber string `json:"cardNumber,omitempty"`
ExpireYear string `json:"expireYear,omitempty"`
ExpireMonth string `json:"expireMonth,omitempty"`
Cvc string `json:"cvc,omitempty"`
CardAlias string `json:"cardAlias,omitempty"`
CardUserKey string `json:"cardUserKey,omitempty"`
SecureFieldsToken string `json:"secureFieldsToken,omitempty"`
CardToken string `json:"cardToken,omitempty"`
BinNumber string `json:"binNumber,omitempty"`
LastFourDigits string `json:"lastFourDigits,omitempty"`
CardHolderIdentityNumber string `json:"cardHolderIdentityNumber,omitempty"`
Loyalty *Loyalty `json:"loyalty,omitempty"`
StoreCardAfterSuccessPayment bool `json:"storeCardAfterSuccessPayment,omitempty"`
TokenizedCard *TokenizedCard `json:"tokenizedCard,omitempty"`
EncryptedCard *EncryptedCard `json:"encryptedCard,omitempty"`
}
type CardAssociation ¶
type CardAssociation string
const ( CardAssociation_VISA CardAssociation = "VISA" CardAssociation_MASTER_CARD CardAssociation = "MASTER_CARD" CardAssociation_AMEX CardAssociation = "AMEX" CardAssociation_TROY CardAssociation = "TROY" CardAssociation_JCB CardAssociation = "JCB" CardAssociation_UNION_PAY CardAssociation = "UNION_PAY" CardAssociation_MAESTRO CardAssociation = "MAESTRO" CardAssociation_DISCOVER CardAssociation = "DISCOVER" CardAssociation_DINERS_CLUB CardAssociation = "DINERS_CLUB" )
card association declaration
type CardBrand ¶ added in v1.0.11
type CardBrand string
const ( CardBrand_BONUS CardBrand = "Bonus" CardBrand_AXESS CardBrand = "Axess" CardBrand_MAXIMUM CardBrand = "Maximum" CardBrand_WORLD CardBrand = "World" CardBrand_PARAF CardBrand = "Paraf" CardBrand_CARD_FINANS CardBrand = "CardFinans" CardBrand_BANKKART_COMBO CardBrand = "Bankkart Combo" CardBrand_ADVANTAGE CardBrand = "Advantage" CardBrand_SAGLAM_KART CardBrand = "Sağlam Kart" )
type CardExpiryStatus ¶
type CardExpiryStatus string
const ( CardExpiryStatus_EXPIRED CardExpiryStatus = "EXPIRED" CardExpiryStatus_WILL_EXPIRE_NEXT_MONTH CardExpiryStatus = "WILL_EXPIRE_NEXT_MONTH" CardExpiryStatus_NOT_EXPIRED CardExpiryStatus = "NOT_EXPIRED" )
card expiry status declaration
type CardProvider ¶ added in v1.0.25
type CardProvider string
const ( CardProvider_IYZICO CardProvider = "IYZICO" CardProvider_IPARA CardProvider = "IPARA" CardProvider_BIRLESIK_ODEME CardProvider = "BIRLESIK_ODEME" CardProvider_MEX CardProvider = "MEX" )
card provider declaration
type CardVerificationAuthType ¶ added in v1.0.32
type CardVerificationAuthType string
const ( CardVerificationAuthType_NON_THREE_DS CardVerificationAuthType = "NON_THREE_DS" CardVerificationAuthType_THREE_DS CardVerificationAuthType = "THREE_DS" CardVerificationAuthType_NONE CardVerificationAuthType = "NONE" )
type CardVerifyStatus ¶ added in v1.0.32
type CardVerifyStatus string
const ( CardVerifyStatus_SUCCESS CardVerifyStatus = "SUCCESS" CardVerifyStatus_FAILURE CardVerifyStatus = "FAILURE" CardVerifyStatus_THREE_DS_PENDING CardVerifyStatus = "THREE_DS_PENDING" )
type CheckMasterpassUserRequest ¶
type CheckMasterpassUserRequest struct {
BaseRequest
MasterpassGsmNumber string `json:"masterpassGsmNumber"`
}
type CheckMasterpassUserResponse ¶
type CheckMasterpassUserResponse struct {
IsEligibleToUseMasterpass *bool `json:"isEligibleToUseMasterpass"`
IsAnyCardSavedInCustomerProgram *bool `json:"isAnyCardSavedInCustomerProgram"`
HasMasterpassAccount *bool `json:"hasMasterpassAccount"`
HashAnyCardSavedInMasterpassAccount *bool `json:"hashAnyCardSavedInMasterpassAccount"`
IsMasterpassAccountLinkedWithMerchant *bool `json:"isMasterpassAccountLinkedWithMerchant"`
IsMasterpassAccountLocked *bool `json:"isMasterpassAccountLocked"`
IsPhoneNumberUpdatedInAnotherMerchant *bool `json:"isPhoneNumberUpdatedInAnotherMerchant"`
AccountStatus *string `json:"accountStatus"`
}
type Client ¶
type Client struct {
Installment *Installment
Payment *Payment
PaymentReporting *PaymentReporting
Wallet *Wallet
Onboarding *Onboarding
PayByLink *PayByLink
Settlement *Settlement
SettlementReporting *SettlementReporting
FileReporting *FileReporting
Fraud *Fraud
Hook *Hook
Masterpass *Masterpass
BankAccountTracking *BankAccountTracking
Merchant *Merchant
MerchantApm *MerchantApm
Juzdan *Juzdan
BkmExpress *BkmExpress
MealVoucherCardTokenization *MealVoucherCardTokenization
// contains filtered or unexported fields
}
func (*Client) DoForByteResponse ¶
func (*Client) NewRequest ¶
func (*Client) NewRequestForByteResponse ¶
type ClientOption ¶
func WithCustomHTTPClient ¶ added in v1.0.13
func WithCustomHTTPClient(httpClient *http.Client) ClientOption
func WithLocalization ¶ added in v1.0.12
func WithLocalization(lang string) ClientOption
type ClientType ¶ added in v1.0.13
type ClientType string
const ( ClientType_W ClientType = "W" ClientType_M ClientType = "M" )
type CloneStoredCardRequest ¶ added in v1.0.15
type CloneStoredCardRequest struct {
BaseRequest
SourceCardUserKey string `json:"sourceCardUserKey"`
SourceCardToken string `json:"sourceCardToken"`
TargetCardUserKey string `json:"targetCardUserKey,omitempty"`
TargetMerchantId int64 `json:"targetMerchantId"`
}
type Complete3DSPaymentRequest ¶
type Complete3DSPaymentRequest struct {
BaseRequest
PaymentId int64 `json:"paymentId"`
}
type CompleteApmPaymentRequest ¶
type CompleteApmPaymentRequest struct {
BaseRequest
PaymentId int64 `json:"paymentId,omitempty"`
AdditionalParams map[string]string `json:"additionalParams,omitempty"`
}
type CompleteApmPaymentResponse ¶
type CompleteApmPaymentResponse struct {
PaymentId *int64 `json:"paymentId"`
PaymentStatus *PaymentStatus `json:"paymentStatus"`
PaymentError *PaymentError `json:"paymentError"`
}
type CompleteBkmExpressRequest ¶ added in v1.0.19
type CompleteBkmExpressRequest struct {
BaseRequest
Status bool `json:"status"`
Message string `json:"message"`
TicketId string `json:"ticketId"`
BkmExpressPaymentToken string `json:"bkmExpressPaymentToken,omitempty"`
}
type CompletePosApmPaymentRequest ¶ added in v1.0.9
type CompletePosApmPaymentRequest struct {
BaseRequest
PaymentId int64 `json:"paymentId"`
AdditionalParams map[string]interface{} `json:"additionalParams"`
}
type CreateApmPaymentRequest ¶
type CreateApmPaymentRequest struct {
BaseRequest
ApmType ApmType `json:"apmType,omitempty"`
Price float64 `json:"price,omitempty"`
PaidPrice float64 `json:"paidPrice,omitempty"`
Currency Currency `json:"currency,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
ApmOrderId string `json:"apmOrderId,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
Items []PaymentItem `json:"items"`
}
type CreateFundTransferDepositPaymentRequest ¶
type CreateFundTransferDepositPaymentRequest struct {
BaseRequest
Price float64 `json:"price,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
}
type CreateInstantWalletSettlementRequest ¶
type CreateInstantWalletSettlementRequest struct {
BaseRequest
ExcludedSubMerchantMemberIds []int64
}
type CreateInstantWalletSettlementResponse ¶
type CreateInstantWalletSettlementResponse struct {
SettlementResultStatus *string `json:"settlementResultStatus"`
}
type CreateMemberRequest ¶
type CreateMemberRequest struct {
BaseRequest
MemberExternalId string `json:"memberExternalId,omitempty"`
Name string `json:"name,omitempty"`
Address string `json:"address,omitempty"`
Email string `json:"email,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
ContactName string `json:"contactName,omitempty"`
ContactSurname string `json:"contactSurname,omitempty"`
MemberType MemberType `json:"memberType,omitempty"`
LegalCompanyTitle string `json:"legalCompanyTitle,omitempty"`
TaxOffice string `json:"taxOffice,omitempty"`
TaxNumber string `json:"taxNumber,omitempty"`
Iban string `json:"iban,omitempty"`
SettlementEarningsDestination SettlementEarningsDestination `json:"settlementEarningsDestination,omitempty"`
IsBuyer bool `json:"isBuyer,omitempty"`
IsSubMerchant bool `json:"isSubMerchant,omitempty"`
SubMerchantMaximumAllowedNegativeBalance float64 `json:"subMerchantMaximumAllowedNegativeBalance,omitempty"`
SettlementDelayCount int64 `json:"settlementDelayCount,omitempty"`
}
type CreateMemberWalletRequest ¶ added in v1.0.4
type CreateMemberWalletRequest struct {
BaseRequest
NegativeAmountLimit float64 `json:"negativeAmountLimit"`
Currency Currency `json:"currency"`
}
type CreateMerchantPosCommission ¶ added in v1.0.11
type CreateMerchantPosCommission struct {
CardBrandName CardBrand `json:"cardBrandName,omitempty"`
Installment int64 `json:"installment"`
Status Status `json:"status"`
BlockageDay int64 `json:"blockageDay"`
InstallmentLabel string `json:"installmentLabel,omitempty"`
BankOnUsCreditCardCommissionRate float64 `json:"bankOnUsCreditCardCommissionRate"`
BankOnUsDebitCardCommissionRate float64 `json:"bankOnUsDebitCardCommissionRate,omitempty"`
BankNotOnUsCreditCardCommissionRate float64 `json:"bankNotOnUsCreditCardCommissionRate,omitempty"`
BankNotOnUsDebitCardCommissionRate float64 `json:"bankNotOnUsDebitCardCommissionRate,omitempty"`
BankForeignCardCommissionRate float64 `json:"bankForeignCardCommissionRate,omitempty"`
MerchantCommissionRate float64 `json:"merchantCommissionRate,omitempty"`
}
type CreateMerchantPosCommissionRequest ¶ added in v1.0.11
type CreateMerchantPosCommissionRequest struct {
BaseRequest
Commissions []CreateMerchantPosCommission `json:"commissions"`
}
type CreateMerchantPosRequest ¶ added in v1.0.11
type CreateMerchantPosRequest struct {
BaseRequest
Status PosStatus `json:"status"`
Name string `json:"name"`
ClientId string `json:"clientId"`
Currency Currency `json:"currency"`
PosnetId string `json:"posnetId,omitempty"`
TerminalId string `json:"terminalId,omitempty"`
ThreedsPosnetId string `json:"threedsPosnetId,omitempty"`
ThreedsTerminalId string `json:"threedsTerminalId,omitempty"`
ThreedsKey string `json:"threedsKey,omitempty"`
EnableForeignCard bool `json:"enableForeignCard"`
EnableInstallment bool `json:"enableInstallment"`
EnablePaymentWithoutCvc bool `json:"enablePaymentWithoutCvc"`
EnableLoyalty bool `json:"enableLoyalty"`
NewIntegration bool `json:"newIntegration"`
OrderNumber int64 `json:"orderNumber"`
PosIntegrator PosIntegrator `json:"posIntegrator"`
EnabledPaymentAuthenticationTypes []PaymentAuthenticationType `json:"enabledPaymentAuthenticationTypes"`
MerchantPosUsers []CreateMerchantPosUser `json:"merchantPosUsers"`
}
type CreateMerchantPosUser ¶ added in v1.0.11
type CreateMerchantPosUser struct {
PosUsername string `json:"posUsername"`
PosPassword string `json:"posPassword"`
PosUserType PosUserType `json:"posUserType"`
PosOperationType PosOperationType `json:"posOperationType"`
}
type CreateMerchantRequest ¶ added in v1.0.11
type CreateMerchantRequest struct {
BaseRequest
Name string `json:"name"`
LegalCompanyTitle string `json:"legalCompanyTitle"`
Email string `json:"email"`
SecretWord string `json:"secretWord,omitempty"`
Website string `json:"website"`
PhoneNumber string `json:"phoneNumber,omitempty"`
ContactName string `json:"contactName"`
ContactSurname string `json:"contactSurname"`
ContactPhoneNumber string `json:"contactPhoneNumber"`
}
type CreateMerchantResponse ¶ added in v1.0.11
type CreateMerchantResponse struct {
Id *int64 `json:"id"`
Name *string `json:"name"`
MerchantApiCredentials []MerchantApiCredential `json:"merchantApiCredentials"`
}
type CreatePaymentRequest ¶
type CreatePaymentRequest struct {
BaseRequest
Price float64 `json:"price,omitempty"`
PaidPrice float64 `json:"paidPrice,omitempty"`
WalletPrice float64 `json:"walletPrice,omitempty"`
PosAlias string `json:"posAlias,omitempty"`
Installment int `json:"installment,omitempty"`
Currency Currency `json:"currency,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
PaymentPhase PaymentPhase `json:"paymentPhase,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
BankOrderId string `json:"bankOrderId,omitempty"`
Card *Card `json:"card,omitempty"`
RoutingOptions *RoutingOptions `json:"routingOptions,omitempty"`
FraudParams *FraudCheckParameters `json:"fraudParams,omitempty"`
Items []PaymentItem `json:"items"`
AdditionalParams map[string]interface{} `json:"additionalParams,omitempty"`
Retry bool `json:"retry"`
}
type CreatePayoutAccountRequest ¶ added in v1.0.8
type CreatePayoutAccountRequest struct {
BaseRequest
AccountType PayoutAccountType `json:"type,omitempty"`
ExternalAccountId string `json:"externalAccountId,omitempty"`
Currency Currency `json:"currency,omitempty"`
AccountOwner AccountOwner `json:"accountOwner,omitempty"`
SubMerchantMemberId int64 `json:"subMerchantMemberId,omitempty"`
}
type CreateProductRequest ¶
type CreateProductRequest struct {
BaseRequest
Name string `json:"name"`
Channel string `json:"channel,omitempty"`
OrderId string `json:"orderId,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
Stock int `json:"stock,omitempty"`
Price float64 `json:"price"`
Currency Currency `json:"currency"`
Description string `json:"description,omitempty"`
MultiPayment bool `json:"multiPayment,omitempty"`
ForceThreeDS bool `json:"forceThreeDS,omitempty"`
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
EnabledInstallments []int `json:"enabledInstallments"`
BasketIdentifier string `json:"basketIdentifier,omitempty"`
}
type CreateReportRequest ¶ added in v1.0.31
type CreateReportRequest struct {
BaseRequest
StartDate time.Time `json:"startDate,omitempty"`
EndDate time.Time `json:"endDate,omitempty"`
ReportType ReportType `json:"reportType,omitempty"`
ReportPeriod ReportPeriod `json:"reportPeriod,omitempty"`
}
type CreateWithdrawRequest ¶
type CreateWithdrawRequest struct {
BaseRequest
MemberId int64 `json:"memberId"`
Price float64 `json:"price"`
Description string `json:"description"`
Currency Currency `json:"currency"`
}
type Currency ¶
type Currency string
const ( Currency_TRY Currency = "TRY" Currency_USD Currency = "USD" Currency_EUR Currency = "EUR" Currency_GBP Currency = "GBP" Currency_CNY Currency = "CNY" Currency_ARS Currency = "ARS" Currency_BRL Currency = "BRL" Currency_AED Currency = "AED" Currency_IQD Currency = "IQD" Currency_AZN Currency = "AZN" Currency_KZT Currency = "KZT" Currency_KWD Currency = "KWD" Currency_SAR Currency = "SAR" Currency_BHD Currency = "BHD" Currency_RUB Currency = "RUB" Currency_JPY Currency = "JPY" Currency_EGP Currency = "EGP" Currency_MXN Currency = "MXN" Currency_RON Currency = "RON" )
currency declaration
type CustomInstallment ¶ added in v1.0.8
type DataResponse ¶
type Date ¶
type DeleteMerchantPosRequest ¶ added in v1.0.32
type DeleteMerchantPosRequest struct {
BaseRequest
MerchantPosId int64
}
type DeletePayoutAccountRequest ¶ added in v1.0.32
type DeletePayoutAccountRequest struct {
BaseRequest
Id int64
}
type DeleteProductRequest ¶ added in v1.0.32
type DeleteProductRequest struct {
BaseRequest
Id int64
}
type DeleteStoredCardRequest ¶
type DeleteStoredCardRequest struct {
BaseRequest
CardUserKey string `json:"cardUserKey,omitempty"`
CardToken string `json:"cardToken,omitempty"`
}
type DeleteValueListRequest ¶ added in v1.0.32
type DeleteValueListRequest struct {
BaseRequest
ListName string
}
type DepositPaymentRequest ¶
type DepositPaymentRequest struct {
BaseRequest
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
Price float64 `json:"price,omitempty"`
Currency Currency `json:"currency,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
PosAlias string `json:"posAlias,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
Card Card `json:"card"`
RoutingOptions *RoutingOptions `json:"routingOptions,omitempty"`
}
type DepositPaymentResponse ¶
type DepositPaymentResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
Price *float64 `json:"price"`
Currency *string `json:"currency"`
BuyerMemberId *int64 `json:"buyerMemberId"`
ConversationId *string `json:"conversationId"`
BankCommissionRate *float64 `json:"bankCommissionRate"`
BankCommissionRateAmount *float64 `json:"bankCommissionRateAmount"`
AuthCode *string `json:"authCode"`
HostReference *string `json:"hostReference"`
TransId *string `json:"transId"`
OrderId *string `json:"orderId"`
PaymentType *PaymentType `json:"paymentType"`
PaymentStatus *PaymentStatus `json:"paymentStatus"`
CardUserKey *string `json:"cardUserKey"`
CardToken *string `json:"cardToken"`
WalletTransaction *WalletTransaction `json:"walletTransaction"`
FraudId *int64 `json:"fraudId"`
FraudAction *FraudAction `json:"fraudAction"`
FraudRuleId *int64 `json:"fraudRuleId"`
}
type EncryptedCard ¶ added in v1.0.32
type ErrorResponse ¶
type ErrorResponse struct {
ErrorGroup *string `json:"errorGroup"`
ErrorDescription *string `json:"errorDescription"`
ErrorCode *string `json:"errorCode"`
ProviderError *ProviderError `json:"providerError"`
}
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
type ExpireCheckoutPaymentRequest ¶ added in v1.0.32
type ExpireCheckoutPaymentRequest struct {
BaseRequest
Token string
}
type FileReporting ¶
type FileReporting struct {
Client *Client
}
func (*FileReporting) CreateReport ¶ added in v1.0.31
func (api *FileReporting) CreateReport(ctx context.Context, request CreateReportRequest) (*ReportDemandResponse, error)
func (*FileReporting) RetrieveDailyPaymentReport ¶ added in v1.0.25
func (api *FileReporting) RetrieveDailyPaymentReport(ctx context.Context, request RetrieveDailyPaymentReportRequest) ([]byte, error)
func (*FileReporting) RetrieveDailyTransactionReport ¶
func (api *FileReporting) RetrieveDailyTransactionReport(ctx context.Context, request RetrieveDailyTransactionReportRequest) ([]byte, error)
func (*FileReporting) RetrieveReport ¶ added in v1.0.31
func (api *FileReporting) RetrieveReport(ctx context.Context, retrieveReportRequest RetrieveReportRequest, reportId int64) ([]byte, error)
type FileStatus ¶ added in v1.0.7
type FileStatus string
const ( FileStatus_CREATED FileStatus = "CREATED" FileStatus_UPLOADED FileStatus = "UPLOADED" FileStatus_APPROVED FileStatus = "APPROVED" )
type Fraud ¶
type Fraud struct {
Client *Client
}
func (*Fraud) AddCardFingerprintToFraudValueList ¶ added in v1.0.31
func (*Fraud) AddValueToFraudValueList ¶
func (api *Fraud) AddValueToFraudValueList(ctx context.Context, request FraudValueListRequest) error
func (*Fraud) CreateFraudValueList ¶
func (*Fraud) DeleteFraudValueList ¶
func (api *Fraud) DeleteFraudValueList(ctx context.Context, request DeleteValueListRequest) error
func (*Fraud) RemoveValueFromFraudValueList ¶
func (api *Fraud) RemoveValueFromFraudValueList(ctx context.Context, request RemoveValueFromValueListRequest) error
func (*Fraud) RetrieveAllFraudValueList ¶
func (api *Fraud) RetrieveAllFraudValueList(ctx context.Context) (*DataResponse[FraudValuesResponse], error)
func (*Fraud) RetrieveFraudValueList ¶
func (*Fraud) SearchFraudChecks ¶
func (api *Fraud) SearchFraudChecks(ctx context.Context, request SearchFraudChecksRequest) (*DataResponse[FraudCheckResponse], error)
func (*Fraud) SearchFraudRules ¶ added in v1.0.32
func (api *Fraud) SearchFraudRules(ctx context.Context, request SearchFraudRuleRequest) (*DataResponse[FraudRuleResponse], error)
func (*Fraud) UpdateFraudCheckStatus ¶ added in v1.0.32
func (api *Fraud) UpdateFraudCheckStatus(ctx context.Context, request UpdateFraudCheckStatusRequest) error
type FraudAction ¶
type FraudAction string
const ( FraudAction_BLOCK FraudAction = "BLOCK" FraudAction_REVIEW FraudAction = "REVIEW" )
fraud action type declaration
type FraudCheckParameters ¶ added in v1.0.5
type FraudCheckResponse ¶
type FraudCheckResponse struct {
Id *int64 `json:"id"`
Status *Status `json:"status"`
Action *FraudAction `json:"action"`
CheckStatus *FraudCheckStatus `json:"checkStatus"`
PaymentData *FraudPaymentData `json:"paymentData"`
RuleId *int64 `json:"ruleId"`
RuleName *string `json:"ruleName"`
RuleConditions *string `json:"ruleConditions"`
IsGlobalRule *bool `json:"isGlobalRule"`
PaymentId *int64 `json:"paymentId"`
PaymentStatus *PaymentStatus `json:"paymentStatus"`
}
type FraudCheckStatus ¶
type FraudCheckStatus string
const ( FraudCheckStatus_WAITING FraudCheckStatus = "WAITING" FraudCheckStatus_NOT_FRAUD FraudCheckStatus = "NOT_FRAUD" FraudCheckStatus_FRAUD FraudCheckStatus = "FRAUD" )
fraud check status type declaration
type FraudOperation ¶ added in v1.0.31
type FraudOperation string
const ( FraudOperation_PAYMENT FraudOperation = "PAYMENT" FraudOperation_LOYALTY FraudOperation = "LOYALTY" )
type FraudPaymentData ¶
type FraudResult ¶ added in v1.0.31
type FraudResult struct {
Id int64 `json:"id"`
Score *float64 `json:"score"`
FraudAction FraudAction `json:"action"`
}
type FraudRuleResponse ¶ added in v1.0.32
type FraudRuleResponse struct {
Id *int64 `json:"id"`
Status *Status `json:"status"`
Action *FraudAction `json:"action"`
Conditions *string `json:"conditions"`
Operations *[]FraudOperation `json:"operations"`
IsGlobal *bool `json:"isGlobal"`
}
type FraudRuleScope ¶ added in v1.0.32
type FraudRuleScope string
const ( FraudRuleScope_MERCHANT FraudRuleScope = "MERCHANT" FraudRuleScope_GLOBAL FraudRuleScope = "GLOBAL" )
fraud rule scope type declaration
type FraudValue ¶
type FraudValueListRequest ¶
type FraudValueListRequest struct {
BaseRequest
ListName string `json:"listName,omitempty"`
Type FraudValueType `json:"type,omitempty"`
Label string `json:"label,omitempty"`
Value string `json:"value,omitempty"`
PaymentId int64 `json:"paymentId"`
DurationInSeconds int `json:"durationInSeconds,omitempty"`
}
type FraudValueType ¶ added in v1.0.13
type FraudValueType string
const ( FraudValueType_CARD FraudValueType = "CARD" FraudValueType_IP FraudValueType = "IP" FraudValueType_PHONE_NUMBER FraudValueType = "PHONE_NUMBER" FraudValueType_EMAIL FraudValueType = "EMAIL" FraudValueType_OTHER FraudValueType = "OTHER" )
fraud value type type declaration
type FraudValuesResponse ¶
type FraudValuesResponse struct {
Name string `json:"name"`
Values []FraudValue `json:"values"`
}
type FundTransferDepositPaymentResponse ¶
type FundTransferDepositPaymentResponse struct {
Price *float64 `json:"price"`
Currency *string `json:"currency"`
ConversationId *string `json:"conversationId"`
BuyerMemberId *int64 `json:"buyerMemberId"`
WalletTransaction *WalletTransaction `json:"walletTransaction"`
}
type GarantiPayInstallment ¶
type HeaderOptions ¶ added in v1.0.32
type HeaderOptions struct {
IdempotencyKey string
}
type Hook ¶ added in v1.0.1
type Hook struct {
Client *Client
}
func (*Hook) IsWebhookVerified ¶ added in v1.0.1
func (c *Hook) IsWebhookVerified(merchantHookKey, incomingSignature string, webhookData WebhookData) bool
type IVRCardTokenizationResponse ¶ added in v1.0.32
type Init3DSPaymentRequest ¶
type Init3DSPaymentRequest struct {
BaseRequest
Price float64 `json:"price,omitempty"`
PaidPrice float64 `json:"paidPrice,omitempty"`
WalletPrice float64 `json:"walletPrice,omitempty"`
PosAlias string `json:"posAlias,omitempty"`
Installment int `json:"installment,omitempty"`
Currency Currency `json:"currency,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
PaymentPhase PaymentPhase `json:"paymentPhase,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
BankOrderId string `json:"bankOrderId,omitempty"`
Card *Card `json:"card,omitempty"`
RoutingOptions *RoutingOptions `json:"routingOptions,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
Items []PaymentItem `json:"items"`
AdditionalParams map[string]interface{} `json:"additionalParams"`
Retry bool `json:"retry"`
}
type Init3DSPaymentResponse ¶
type Init3DSPaymentResponse struct {
HtmlContent *string `json:"htmlContent"`
PaymentId *int64 `json:"paymentId"`
RedirectUrl *string `json:"redirectUrl"`
PaymentStatus *PaymentStatus `json:"paymentStatus"`
AdditionalAction *AdditionalAction `json:"additionalAction"`
}
func (*Init3DSPaymentResponse) GetDecodedHtmlContent ¶
func (r *Init3DSPaymentResponse) GetDecodedHtmlContent() string
type InitApmDepositPaymentRequest ¶ added in v1.0.7
type InitApmDepositPaymentRequest struct {
BaseRequest
ApmType ApmType `json:"apmType,omitempty"`
MerchantApmId int64 `json:"merchantApmId,omitempty"`
Price float64 `json:"price,omitempty"`
Currency Currency `json:"currency,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
ApmOrderId string `json:"apmOrderId,omitempty"`
ApmUserIdentity string `json:"apmUserIdentity,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
AdditionalParams map[string]string `json:"additionalParams,omitempty"`
}
type InitApmPaymentRequest ¶
type InitApmPaymentRequest struct {
BaseRequest
ApmType ApmType `json:"apmType,omitempty"`
MerchantApmId int64 `json:"merchantApmId,omitempty"`
Price float64 `json:"price,omitempty"`
PaidPrice float64 `json:"paidPrice,omitempty"`
Currency Currency `json:"currency,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
ApmOrderId string `json:"apmOrderId,omitempty"`
ApmUserIdentity string `json:"apmUserIdentity,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
AdditionalParams map[string]string `json:"additionalParams,omitempty"`
Items []PaymentItem `json:"items"`
}
type InitApmPaymentResponse ¶
type InitApmPaymentResponse struct {
PaymentId *int64 `json:"paymentId"`
RedirectUrl *string `json:"redirectUrl"`
HtmlContent *string `json:"htmlContent"`
QrCode *string `json:"qrCode"`
PaymentStatus *PaymentStatus `json:"paymentStatus"`
ApmAdditionalAction *ApmAdditionalAction `json:"additionalAction"`
PaymentError *PaymentError `json:"paymentError"`
AdditionalData map[string]any `json:"additionalData"`
}
type InitBkmExpressRequest ¶ added in v1.0.19
type InitBkmExpressRequest struct {
BaseRequest
Price float64 `json:"price,omitempty"`
PaidPrice float64 `json:"paidPrice,omitempty"`
Currency Currency `json:"currency,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
PaymentPhase PaymentPhase `json:"paymentPhase,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
BankOrderId string `json:"bankOrderId,omitempty"`
Items []PaymentItem `json:"items"`
EnabledInstallments []int `json:"enabledInstallments,omitempty"`
}
type InitBkmExpressResponse ¶ added in v1.0.19
type InitBnplPaymentRequest ¶ added in v1.0.11
type InitBnplPaymentRequest struct {
BaseRequest
ApmType ApmType `json:"apmType"`
MerchantApmId int64 `json:"merchantApmId,omitempty"`
Price float64 `json:"price"`
PaidPrice float64 `json:"paidPrice"`
CommissionRate float64 `json:"commissionRate,omitempty"`
Currency Currency `json:"currency"`
PaymentType PaymentType `json:"paymentType"`
PaymentGroup PaymentGroup `json:"paymentGroup"`
PaymentSource PaymentSource `json:"paymentSource,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
CallbackUrl string `json:"callbackUrl"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
ApmOrderId string `json:"apmOrderId,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
ApmUserIdentity string `json:"apmUserIdentity,omitempty"`
AdditionalParams map[string]string `json:"additionalParams"`
Items []PaymentItem `json:"items"`
BankCode string `json:"bankCode,omitempty"`
CartItems []BnplPaymentCartItem `json:"cartItems"`
}
type InitBnplPaymentResponse ¶ added in v1.0.11
type InitBnplPaymentResponse struct {
PaymentId int64 `json:"paymentId"`
RedirectUrl string `json:"redirectUrl"`
PaymentStatus PaymentStatus `json:"paymentStatus"`
AdditionalAction ApmAdditionalAction `json:"additionalAction"`
PaymentError PaymentError `json:"paymentError"`
AdditionalData map[string]any `json:"additionalData"`
}
type InitCheckoutCardVerifyRequest ¶ added in v1.0.32
type InitCheckoutCardVerifyRequest struct {
BaseRequest
VerificationPrice float64 `json:"verificationPrice,omitempty"`
Currency Currency `json:"currency,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
CardUserKey string `json:"cardUserKey,omitempty"`
PaymentAuthenticationType CardVerificationAuthType `json:"paymentAuthenticationType,omitempty"`
Ttl int64 `json:"ttl,omitempty"`
}
type InitCheckoutCardVerifyResponse ¶ added in v1.0.32
type InitCheckoutCardVerifyResponse struct {
Token *string `json:"token"`
PageUrl *string `json:"pageUrl"`
TokenExpireDate *TimeResponse `json:"tokenExpireDate"`
}
type InitCheckoutPaymentRequest ¶
type InitCheckoutPaymentRequest struct {
BaseRequest
Price float64 `json:"price,omitempty"`
PaidPrice float64 `json:"paidPrice,omitempty"`
Currency Currency `json:"currency,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
OrderId string `json:"orderId,omitempty"`
BasketIdentifier string `json:"basketIdentifier,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
PaymentPhase PaymentPhase `json:"paymentPhase,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
EnabledPaymentMethods []PaymentMethod `json:"enabledPaymentMethods,omitempty"`
MasterpassGsmNumber string `json:"masterpassGsmNumber,omitempty"`
MasterpassUserId string `json:"masterpassUserId,omitempty"`
BexGsmNumber string `json:"bexGsmNumber,omitempty"`
BexUserId string `json:"bexUserId,omitempty"`
CardUserKey string `json:"cardUserKey,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
EnabledInstallments []int `json:"enabledInstallments,omitempty"`
AlwaysStoreCardAfterPayment bool `json:"alwaysStoreCardAfterPayment,omitempty"`
AllowDeleteStoredCard bool `json:"allowDeleteStoredCard,omitempty"`
AllowOnlyStoredCards bool `json:"allowOnlyStoredCards,omitempty"`
AllowOnlyCreditCard bool `json:"allowOnlyCreditCard,omitempty"`
ForceThreeDS bool `json:"forceThreeDS,omitempty"`
ForceAuthForNonCreditCards bool `json:"forceAuthForNonCreditCards,omitempty"`
DepositPayment bool `json:"depositPayment,omitempty"`
ReturnBackUrl string `json:"returnBackUrl,omitempty"`
Ttl int64 `json:"ttl,omitempty"`
CustomInstallments []CustomInstallment `json:"customInstallments,omitempty"`
Items []PaymentItem `json:"items"`
UseTopRedirection bool `json:"useTopRedirection,omitempty"`
RoutingOptions *RoutingOptions `json:"routingOptions,omitempty"`
FraudParams *FraudCheckParameters `json:"fraudParams,omitempty"`
AdditionalParams map[string]interface{} `json:"additionalParams,omitempty"`
CardBrandInstallments map[string][]CustomInstallment `json:"cardBrandInstallments,omitempty"`
Retry *bool `json:"retry,omitempty"`
}
type InitCheckoutPaymentResponse ¶
type InitCheckoutPaymentResponse struct {
Token *string `json:"token"`
PageUrl *string `json:"pageUrl"`
TokenExpireDate *TimeResponse `json:"tokenExpireDate"`
}
type InitGarantiPayPaymentRequest ¶
type InitGarantiPayPaymentRequest struct {
BaseRequest
Price float64 `json:"price,omitempty"`
PaidPrice float64 `json:"paidPrice,omitempty"`
Currency Currency `json:"currency,omitempty"`
PosAlias string `json:"posAlias,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
BankOrderId string `json:"bankOrderId,omitempty"`
Items []PaymentItem `json:"items"`
Installments []GarantiPayInstallment `json:"installments,omitempty"`
EnabledInstallments []int `json:"enabledInstallments"`
}
type InitGarantiPayPaymentResponse ¶
type InitGarantiPayPaymentResponse struct {
HtmlContent *string `json:"htmlContent"`
PaymentId *int64 `json:"paymentId"`
}
func (*InitGarantiPayPaymentResponse) GetDecodedHtmlContent ¶
func (r *InitGarantiPayPaymentResponse) GetDecodedHtmlContent() string
type InitJuzdanPaymentRequest ¶ added in v1.0.13
type InitJuzdanPaymentRequest struct {
BaseRequest
Price float64 `json:"price,omitempty"`
PaidPrice float64 `json:"paidPrice,omitempty"`
Currency Currency `json:"currency,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
PaymentPhase PaymentPhase `json:"paymentPhase,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
BankOrderId string `json:"bankOrderId,omitempty"`
Items []PaymentItem `json:"items"`
ClientType ClientType `json:"clientType,omitempty"`
LoanCampaignId int64 `json:"loanCampaignId,omitempty"`
}
type InitJuzdanPaymentResponse ¶ added in v1.0.13
type InitMultiPaymentRequest ¶ added in v1.0.32
type InitMultiPaymentRequest struct {
BaseRequest
Price float64 `json:"price,omitempty"`
Currency Currency `json:"currency,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
EnabledPaymentMethods []PaymentMethod `json:"enabledPaymentMethods,omitempty"`
EnabledInstallments []int `json:"enabledInstallments,omitempty"`
CardUserKey string `json:"cardUserKey,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
AllowOnlyCreditCard bool `json:"allowOnlyCreditCard,omitempty"`
ForceAuthForNonCreditCards bool `json:"forceAuthForNonCreditCards,omitempty"`
AllowOnlyStoredCards bool `json:"allowOnlyStoredCards,omitempty"`
AllowInstallmentOnlyCommercialCards bool `json:"allowInstallmentOnlyCommercialCards,omitempty"`
AlwaysStoreCardAfterPayment bool `json:"alwaysStoreCardAfterPayment,omitempty"`
DisableStoreCard bool `json:"disableStoreCard,omitempty"`
ForceThreeDS bool `json:"forceThreeDS,omitempty"`
MasterpassGsmNumber string `json:"masterpassGsmNumber,omitempty"`
MasterpassUserId string `json:"masterpassUserId,omitempty"`
ApmUserIdentity string `json:"apmUserIdentity,omitempty"`
Items []PaymentItem `json:"items"`
Ttl int64 `json:"ttl,omitempty"`
MaximumSplitPaymentCount int `json:"maximumSplitPaymentCount,omitempty"`
AdditionalParams map[string]interface{} `json:"additionalParams,omitempty"`
Retry *bool `json:"retry,omitempty"`
}
type InitMultiPaymentResponse ¶ added in v1.0.32
type InitMultiPaymentResponse struct {
Token *string `json:"token"`
PageUrl *string `json:"pageUrl"`
TokenExpireDate *TimeResponse `json:"tokenExpireDate"`
}
type InitPosApmPaymentRequest ¶ added in v1.0.9
type InitPosApmPaymentRequest struct {
BaseRequest
Price float64 `json:"price,omitempty"`
PaidPrice float64 `json:"paidPrice,omitempty"`
PosAlias string `json:"posAlias,omitempty"`
Currency Currency `json:"currency,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
PaymentPhase PaymentPhase `json:"paymentPhase,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
BankOrderId string `json:"bankOrderId,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
Items []PaymentItem `json:"items"`
AdditionalParams map[string]string `json:"additionalParams"`
Installments []PosApmInstallment `json:"installments"`
PaymentProvider PosApmPaymentProvider `json:"paymentProvider,omitempty"`
FraudParams *FraudCheckParameters `json:"fraudParams,omitempty"`
CheckoutFormToken string `json:"checkoutFormToken,omitempty"`
}
type InitPosApmPaymentResponse ¶ added in v1.0.9
type InitPosApmPaymentResponse struct {
PaymentId *int64 `json:"paymentId"`
HtmlContent *string `json:"htmlContent"`
PaymentStatus *PaymentStatus `json:"paymentStatus"`
AdditionalAction *AdditionalAction `json:"additionalAction"`
AdditionalData map[string]any `json:"additionalData"`
PaymentError *PaymentError `json:"paymentError"`
}
type Installment ¶
type Installment struct {
Client *Client
}
func (*Installment) RetrieveBinNumber ¶
func (api *Installment) RetrieveBinNumber(ctx context.Context, binNumber string, includeGlobalBins ...bool) (*RetrieveBinNumberResponse, error)
func (*Installment) SearchInstallments ¶
func (api *Installment) SearchInstallments(ctx context.Context, request SearchInstallmentsRequest) (*InstallmentListResponse, error)
type InstallmentListResponse ¶
type InstallmentListResponse struct {
Items []InstallmentResponse `json:"items"`
}
type InstallmentPrice ¶
type InstallmentPrice struct {
InstallmentPrice *float64 `json:"installmentPrice"`
BankCommissionRate *float64 `json:"bankCommissionRate"`
MerchantCommissionRate *float64 `json:"merchantCommissionRate"`
TotalPrice *float64 `json:"totalPrice"`
InstallmentNumber *int `json:"installmentNumber"`
InstallmentLabel *string `json:"installmentLabel"`
Force3ds *bool `json:"force3ds"`
CvcRequired *bool `json:"cvcRequired"`
PosAlias *string `json:"posAlias"`
}
type InstallmentResponse ¶
type InstallmentResponse struct {
BinNumber *string `json:"binNumber"`
Price *float64 `json:"price"`
CardType *string `json:"cardType"`
CardAssociation *string `json:"cardAssociation"`
CardBrand *string `json:"cardBrand"`
BankName *string `json:"bankName"`
BankCode *int `json:"bankCode"`
Force3Ds *bool `json:"force3ds"`
CvcRequired *bool `json:"cvcRequired"`
Commercial *bool `json:"commercial"`
PosAlias *string `json:"posAlias"`
InstallmentPrices []InstallmentPrice `json:"installmentPrices"`
}
type InstantTransferBank ¶ added in v1.0.14
type InstantTransferBanksResponse ¶ added in v1.0.14
type InstantTransferBanksResponse struct {
Items []InstantTransferBank `json:"items"`
}
type Juzdan ¶ added in v1.0.13
type Juzdan struct {
Client *Client
}
func (*Juzdan) InitJuzdanPayment ¶ added in v1.0.13
func (api *Juzdan) InitJuzdanPayment(ctx context.Context, request InitJuzdanPaymentRequest) (*InitJuzdanPaymentResponse, error)
func (*Juzdan) RetrieveJuzdanPayment ¶ added in v1.0.13
type Loyalty ¶
type Loyalty struct {
LoyaltyType *LoyaltyType `json:"type,omitempty"`
Reward *Reward `json:"reward,omitempty"`
Message *string `json:"message,omitempty"`
}
type LoyaltyType ¶
type LoyaltyType string
const ( LoyaltyType_REWARD_MONEY LoyaltyType = "REWARD_MONEY" LoyaltyType_ADDITIONAL_INSTALLMENT LoyaltyType = "ADDITIONAL_INSTALLMENT" LoyaltyType_POSTPONING_INSTALLMENT LoyaltyType = "POSTPONING_INSTALLMENT" LoyaltyType_EXTRA_POINTS LoyaltyType = "EXTRA_POINTS" LoyaltyType_GAINING_MINUTES LoyaltyType = "GAINING_MINUTES" LoyaltyType_POSTPONING_STATEMENT LoyaltyType = "POSTPONING_STATEMENT" LoyaltyType_POSTPONING_PAYMENT LoyaltyType = "POSTPONING_STATEMENT" )
loyalty type declaration
type Masterpass ¶ added in v1.0.9
type Masterpass struct {
Client *Client
}
func (*Masterpass) CheckMasterpassUser ¶ added in v1.0.9
func (api *Masterpass) CheckMasterpassUser(ctx context.Context, request CheckMasterpassUserRequest) (*CheckMasterpassUserResponse, error)
func (*Masterpass) Complete3DSMasterpassPayment ¶ added in v1.0.9
func (api *Masterpass) Complete3DSMasterpassPayment(ctx context.Context, request MasterpassPaymentThreeDSCompleteRequest) (*PaymentResponse, error)
func (*Masterpass) CompleteMasterpassPayment ¶ added in v1.0.9
func (api *Masterpass) CompleteMasterpassPayment(ctx context.Context, request MasterpassPaymentCompleteRequest) (*PaymentResponse, error)
func (*Masterpass) GenerateMasterpassAccountToken ¶ added in v1.0.32
func (api *Masterpass) GenerateMasterpassAccountToken(ctx context.Context, request MasterpassAccountTokenGenerateRequest) (*MasterpassAccountTokenGenerateResponse, error)
func (*Masterpass) GenerateMasterpassPaymentToken ¶ added in v1.0.9
func (api *Masterpass) GenerateMasterpassPaymentToken(ctx context.Context, request MasterpassPaymentTokenGenerateRequest) (*MasterpassPaymentTokenGenerateResponse, error)
func (*Masterpass) Init3DSMasterpassPayment ¶ added in v1.0.9
func (api *Masterpass) Init3DSMasterpassPayment(ctx context.Context, request MasterpassPaymentThreeDSInitRequest) (*MasterpassPaymentThreeDSInitResponse, error)
func (*Masterpass) RetrieveLoyalties ¶ added in v1.0.25
func (api *Masterpass) RetrieveLoyalties(ctx context.Context, request MasterpassRetrieveLoyaltiesRequest) (*RetrieveLoyaltiesResponse, error)
type MasterpassAccountTokenGenerateRequest ¶ added in v1.0.32
type MasterpassAccountTokenGenerateRequest struct {
BaseRequest
Msisdn string `json:"msisdn,omitempty"`
UserId string `json:"userId,omitempty"`
}
type MasterpassAccountTokenGenerateResponse ¶ added in v1.0.32
type MasterpassAccountTokenGenerateResponse struct {
Token *string `json:"token"`
}
type MasterpassCreatePayment ¶ added in v1.0.9
type MasterpassCreatePayment struct {
Price float64 `json:"price,omitempty"`
PaidPrice float64 `json:"paidPrice,omitempty"`
PosAlias string `json:"posAlias,omitempty"`
Installment int `json:"installment,omitempty"`
Currency Currency `json:"currency,omitempty"`
PaymentGroup PaymentGroup `json:"paymentGroup,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
PaymentPhase PaymentPhase `json:"paymentPhase,omitempty"`
PaymentChannel string `json:"paymentChannel,omitempty"`
BuyerMemberId int64 `json:"buyerMemberId,omitempty"`
BankOrderId string `json:"bankOrderId,omitempty"`
Items []PaymentItem `json:"items"`
AdditionalParams map[string]interface{} `json:"additionalParams,omitempty"`
}
type MasterpassPaymentCompleteRequest ¶ added in v1.0.9
type MasterpassPaymentCompleteRequest struct {
BaseRequest
ReferenceId string `json:"referenceId,omitempty"`
Token string `json:"token,omitempty"`
}
type MasterpassPaymentThreeDSCompleteRequest ¶ added in v1.0.9
type MasterpassPaymentThreeDSCompleteRequest struct {
BaseRequest
PaymentId int64 `json:"paymentId,omitempty"`
}
type MasterpassPaymentThreeDSInitRequest ¶ added in v1.0.9
type MasterpassPaymentThreeDSInitRequest struct {
BaseRequest
ReferenceId string `json:"referenceId,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
}
type MasterpassPaymentThreeDSInitResponse ¶ added in v1.0.9
type MasterpassPaymentTokenGenerateRequest ¶ added in v1.0.9
type MasterpassPaymentTokenGenerateRequest struct {
BaseRequest
Msisdn string `json:"msisdn,omitempty"`
UserId string `json:"userId,omitempty"`
BinNumber string `json:"binNumber,omitempty"`
ForceThreeDS bool `json:"forceThreeDS,omitempty"`
CreatePayment MasterpassCreatePayment `json:"createPayment,omitempty"`
Loyalty *Loyalty `json:"loyalty,omitempty"`
MasterpassIntegrationVersion int `json:"masterpassIntegrationVersion,omitempty"`
ValidationType MasterpassValidationType `json:"validationType,omitempty"`
}
type MasterpassPaymentTokenGenerateResponse ¶ added in v1.0.9
type MasterpassRetrieveLoyaltiesRequest ¶ added in v1.0.25
type MasterpassRetrieveLoyaltiesRequest struct {
BaseRequest
Msisdn string `json:"msisdn,omitempty"`
BinNumber string `json:"binNumber,omitempty"`
CardName string `json:"cardName,omitempty"`
MasterpassIntegrationVersion int `json:"masterpassIntegrationVersion,omitempty"`
}
type MasterpassValidationType ¶ added in v1.0.25
type MasterpassValidationType string
const ( MasterpassValidationType_NONE MasterpassValidationType = "NONE" MasterpassValidationType_OTP MasterpassValidationType = "OTP" MasterpassValidationType_THREE_DS MasterpassValidationType = "THREE_DS" )
type MealVoucherCardTokenization ¶ added in v1.0.32
type MealVoucherCardTokenization struct {
Client *Client
}
func (*MealVoucherCardTokenization) Complete ¶ added in v1.0.32
func (api *MealVoucherCardTokenization) Complete(ctx context.Context, sessionId string, request MealVoucherCardTokenizationCompleteRequest) (*MealVoucherCardTokenizationCompleteResponse, error)
func (*MealVoucherCardTokenization) Init ¶ added in v1.0.32
func (api *MealVoucherCardTokenization) Init(ctx context.Context, request MealVoucherCardTokenizationInitRequest) (*MealVoucherCardTokenizationInitResponse, error)
func (*MealVoucherCardTokenization) Regenerate ¶ added in v1.0.32
func (api *MealVoucherCardTokenization) Regenerate(ctx context.Context, sessionId string, request MealVoucherCardTokenizationRegenerateRequest) (*MealVoucherCardTokenizationInitResponse, error)
type MealVoucherCardTokenizationCompleteRequest ¶ added in v1.0.32
type MealVoucherCardTokenizationCompleteRequest struct {
BaseRequest
ValidationCode string `json:"validationCode,omitempty"`
}
type MealVoucherCardTokenizationCompleteResponse ¶ added in v1.0.32
type MealVoucherCardTokenizationData ¶ added in v1.0.32
type MealVoucherCardTokenizationInitRequest ¶ added in v1.0.32
type MealVoucherCardTokenizationInitRequest struct {
BaseRequest
ApmType ApmType `json:"apmType,omitempty"`
MealVoucherCardTokenizationData MealVoucherCardTokenizationData `json:"mealVoucherCardTokenizationData,omitempty"`
}
type MealVoucherCardTokenizationInitResponse ¶ added in v1.0.32
type MealVoucherCardTokenizationInitResponse struct {
SessionId *string `json:"sessionId"`
AdditionalAction *ApmAdditionalAction `json:"additionalAction"`
HtmlContent *string `json:"htmlContent"`
RedirectUrl *string `json:"redirectUrl"`
}
type MealVoucherCardTokenizationRegenerateRequest ¶ added in v1.0.32
type MealVoucherCardTokenizationRegenerateRequest struct {
BaseRequest
MealVoucherCardTokenizationData MealVoucherCardTokenizationData `json:"mealVoucherCardTokenizationData,omitempty"`
}
type MemberResponse ¶
type MemberResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
UpdatedDate *TimeResponse `json:"updatedDate"`
Status *Status `json:"status"`
IsBuyer *bool `json:"isBuyer"`
IsSubMerchant *bool `json:"isSubMerchant"`
MemberType *MemberType `json:"memberType"`
MemberExternalId *string `json:"memberExternalId"`
Name *string `json:"name"`
Email *string `json:"email"`
Address *string `json:"address"`
PhoneNumber *string `json:"phoneNumber"`
ContactName *string `json:"contactName"`
ContactSurname *string `json:"contactSurname"`
LegalCompanyTitle *string `json:"legalCompanyTitle"`
TaxOffice *string `json:"taxOffice"`
TaxNumber *string `json:"taxNumber"`
SettlementEarningsDestination *SettlementEarningsDestination `json:"settlementEarningsDestination"`
Iban *string `json:"iban"`
SettlementDelayCount *int64 `json:"settlementDelayCount"`
}
type MemberType ¶
type MemberType string
const ( MemberType_PERSONAL MemberType = "PERSONAL" MemberType_PRIVATE_COMPANY MemberType = "PRIVATE_COMPANY" MemberType_LIMITED_OR_JOINT_STOCK_COMPANY MemberType = "LIMITED_OR_JOINT_STOCK_COMPANY" )
member type declaration
type MemberWalletResponse ¶
type MemberWalletResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
UpdatedDate *TimeResponse `json:"updatedDate"`
Amount *float64 `json:"amount"`
WithdrawalAmount *float64 `json:"withdrawalAmount"`
NegativeAmountLimit *float64 `json:"negativeAmountLimit"`
Currency *Currency `json:"currency"`
MemberId *int64 `json:"memberId"`
}
type Merchant ¶ added in v1.0.11
type Merchant struct {
Client *Client
}
func (*Merchant) CreateMerchantPos ¶ added in v1.0.11
func (api *Merchant) CreateMerchantPos(ctx context.Context, request CreateMerchantPosRequest) (*MerchantPosResponse, error)
func (*Merchant) DeleteMerchantPosStatus ¶ added in v1.0.11
func (api *Merchant) DeleteMerchantPosStatus(ctx context.Context, request DeleteMerchantPosRequest) error
func (*Merchant) RetrieveMerchantPos ¶ added in v1.0.11
func (*Merchant) RetrieveMerchantPosCommissions ¶ added in v1.0.11
func (api *Merchant) RetrieveMerchantPosCommissions(ctx context.Context, id int64) (*DataResponse[MerchantPosCommissionResponse], error)
func (*Merchant) SearchMerchantPos ¶ added in v1.0.11
func (api *Merchant) SearchMerchantPos(ctx context.Context, request SearchMerchantPosRequest) (*DataResponse[MerchantPosResponse], error)
func (*Merchant) UpdateMerchantPosCommissions ¶ added in v1.0.11
func (api *Merchant) UpdateMerchantPosCommissions(ctx context.Context, id int64, request CreateMerchantPosCommissionRequest) (*DataResponse[MerchantPosCommissionResponse], error)
func (*Merchant) UpdateMerchantPosStatus ¶ added in v1.0.11
func (api *Merchant) UpdateMerchantPosStatus(ctx context.Context, request UpdateMerchantPosStatusRequest) error
type MerchantApiCredential ¶ added in v1.0.11
type MerchantApm ¶ added in v1.0.26
type MerchantApm struct {
Client *Client
}
func (*MerchantApm) RetrieveApms ¶ added in v1.0.26
func (api *MerchantApm) RetrieveApms(ctx context.Context) (*MerchantApmListResponse, error)
type MerchantApmListResponse ¶ added in v1.0.26
type MerchantApmListResponse struct {
Items []MerchantApmResponse `json:"items"`
}
type MerchantApmResponse ¶ added in v1.0.26
type MerchantPos ¶
type MerchantPosCommissionResponse ¶ added in v1.0.11
type MerchantPosCommissionResponse struct {
Id int64 `json:"id"`
Status Status `json:"status"`
Installment int64 `json:"installment"`
BlockageDay int64 `json:"blockageDay"`
InstallmentLabel string `json:"installmentLabel"`
CardBrandName CardBrand `json:"cardBrandName"`
BankOnUsCreditCardCommissionRate float64 `json:"bankOnUsCreditCardCommissionRate"`
BankNotOnUsCreditCardCommissionRate float64 `json:"bankNotOnUsCreditCardCommissionRate"`
BankOnUsDebitCardCommissionRate float64 `json:"bankOnUsDebitCardCommissionRate"`
BankNotOnUsDebitCardCommissionRate float64 `json:"bankNotOnUsDebitCardCommissionRate"`
BankForeignCardCommissionRate float64 `json:"bankForeignCardCommissionRate"`
MerchantCommissionRate float64 `json:"merchantCommissionRate"`
}
type MerchantPosResponse ¶ added in v1.0.11
type MerchantPosResponse struct {
Id int64 `json:"id"`
Status PosStatus `json:"status"`
Name string `json:"name"`
Alias string `json:"alias"`
PosIntegrator PosIntegrator `json:"posIntegrator"`
Hostname string `json:"hostname"`
ClientId string `json:"clientId"`
PosCurrencyCode string `json:"posCurrencyCode"`
Mode string `json:"mode"`
Path string `json:"path"`
Port int64 `json:"port"`
PosnetId string `json:"posnetId"`
TerminalId string `json:"terminalId"`
ThreedsPosnetId string `json:"threedsPosnetId"`
ThreedsTerminalId string `json:"threedsTerminalId"`
ThreedsPath string `json:"threedsPath"`
EnableForeignCard bool `json:"enableForeignCard"`
EnableInstallment bool `json:"enableInstallment"`
EnablePaymentWithoutCvc bool `json:"enablePaymentWithoutCvc"`
EnableLoyalty bool `json:"enableLoyalty"`
NewIntegration bool `json:"newIntegration"`
OrderNumber int64 `json:"orderNumber"`
AutopilotState AutopilotState `json:"autopilotState"`
Currency Currency `json:"currency"`
BankId int64 `json:"bankId"`
BankName string `json:"bankName"`
IsPf bool `json:"isPf"`
MerchantPosUsers []MerchantPosUser `json:"merchantPosUsers"`
SupportedCardAssociations []CardAssociation `json:"supportedCardAssociations"`
EnabledPaymentAuthenticationTypes []PaymentAuthenticationType `json:"enabledPaymentAuthenticationTypes"`
}
type MerchantPosUser ¶ added in v1.0.11
type MerchantPosUser struct {
Id int64 `json:"id"`
PosUsername string `json:"posUsername"`
PosPassword string `json:"posPassword"`
PosUserType PosUserType `json:"posUserType"`
PosOperationType PosOperationType `json:"posOperationType"`
}
type MultiPaymentResponse ¶ added in v1.0.15
type MultiPaymentResponse struct {
Id *int64 `json:"id"`
MultiPaymentStatus *MultiPaymentStatus `json:"multiPaymentStatus"`
Token *string `json:"token"`
ConversationId *string `json:"conversationId"`
ExternalId *string `json:"externalId"`
Price *float64 `json:"price"`
RemainingAmount *float64 `json:"remainingAmount"`
TokenExpireDate *TimeResponse `json:"tokenExpireDate"`
PaymentIds []int64 `json:"paymentIds"`
}
type MultiPaymentStatus ¶ added in v1.0.15
type MultiPaymentStatus string
const ( MultiPaymentStatus_CREATED MultiPaymentStatus = "CREATED" MultiPaymentStatus_COMPLETED MultiPaymentStatus = "COMPLETED" )
multi payment status declaration
type Onboarding ¶
type Onboarding struct {
Client *Client
}
func (*Onboarding) CreateMember ¶
func (api *Onboarding) CreateMember(ctx context.Context, request CreateMemberRequest) (*MemberResponse, error)
func (*Onboarding) CreateMerchant ¶ added in v1.0.11
func (api *Onboarding) CreateMerchant(ctx context.Context, request CreateMerchantRequest) (*CreateMerchantResponse, error)
func (*Onboarding) RetrieveMember ¶
func (api *Onboarding) RetrieveMember(ctx context.Context, id int64) (*MemberResponse, error)
func (*Onboarding) SearchMembers ¶
func (api *Onboarding) SearchMembers(ctx context.Context, request SearchMembersRequest) (*DataResponse[MemberResponse], error)
func (*Onboarding) UpdateMember ¶
func (api *Onboarding) UpdateMember(ctx context.Context, id int64, request UpdateMemberRequest) (*MemberResponse, error)
type OnboardingStatus ¶ added in v1.0.9
type OnboardingStatus string
const ( OnboardingStatus_APPLICATION_REJECTED OnboardingStatus = "APPLICATION_REJECTED" OnboardingStatus_REGISTERED OnboardingStatus = "REGISTERED" OnboardingStatus_REGISTER_CONFIRMED OnboardingStatus = "REGISTER_CONFIRMED" OnboardingStatus_APPLIED OnboardingStatus = "APPLIED" OnboardingStatus_INTEGRATION OnboardingStatus = "INTEGRATION" OnboardingStatus_LIVE OnboardingStatus = "LIVE" )
onboarding status declaration
type OrderingRule ¶ added in v1.0.32
type OrderingRule string
const ( OrderingRule_ON_US OrderingRule = "ON_US" OrderingRule_LOW_COMMISSION_RATE OrderingRule = "LOW_COMMISSION_RATE" OrderingRule_IN_ORDER OrderingRule = "IN_ORDER" )
type PayByLink ¶
type PayByLink struct {
Client *Client
}
func (*PayByLink) CreateProduct ¶
func (api *PayByLink) CreateProduct(ctx context.Context, request CreateProductRequest) (*ProductResponse, error)
func (*PayByLink) DeleteProduct ¶
func (api *PayByLink) DeleteProduct(ctx context.Context, request DeleteProductRequest) error
func (*PayByLink) RetrieveProduct ¶
func (*PayByLink) SearchProducts ¶
func (api *PayByLink) SearchProducts(ctx context.Context, request SearchProductsRequest) (*DataResponse[ProductResponse], error)
func (*PayByLink) UpdateProduct ¶
func (api *PayByLink) UpdateProduct(ctx context.Context, id int64, request UpdateProductRequest) (*ProductResponse, error)
type Payment ¶
type Payment struct {
Client *Client
}
func (*Payment) ApproveBnplPayment ¶ added in v1.0.11
func (api *Payment) ApproveBnplPayment(ctx context.Context, request ApproveBnplPaymentRequest) (*PaymentResponse, error)
func (*Payment) ApprovePaymentTransactions ¶
func (api *Payment) ApprovePaymentTransactions(ctx context.Context, request PaymentTransactionsApprovalRequest) (*DataResponse[PaymentTransactionsApprovalResponse], error)
func (*Payment) BnplLimitInquiry ¶ added in v1.0.32
func (api *Payment) BnplLimitInquiry(ctx context.Context, request BnplLimitInquiryRequest) (*BnplLimitInquiryResponse, error)
func (*Payment) BnplLimitInquiryInit ¶ added in v1.0.32
func (api *Payment) BnplLimitInquiryInit(ctx context.Context, request BnplLimitInquiryRequest) (*BnplLimitInquiryResponse, error)
func (*Payment) CloneStoredCard ¶ added in v1.0.15
func (api *Payment) CloneStoredCard(ctx context.Context, request CloneStoredCardRequest) (*StoredCardResponse, error)
func (*Payment) Complete3DSDepositPayment ¶
func (api *Payment) Complete3DSDepositPayment(ctx context.Context, request Complete3DSPaymentRequest) (*DepositPaymentResponse, error)
func (*Payment) Complete3DSPayment ¶
func (api *Payment) Complete3DSPayment(ctx context.Context, request Complete3DSPaymentRequest) (*PaymentResponse, error)
func (*Payment) CompleteApmPayment ¶
func (api *Payment) CompleteApmPayment(ctx context.Context, request CompleteApmPaymentRequest) (*CompleteApmPaymentResponse, error)
func (*Payment) CompletePosApmPayment ¶ added in v1.0.9
func (api *Payment) CompletePosApmPayment(ctx context.Context, request CompletePosApmPaymentRequest) (*PaymentResponse, error)
func (*Payment) CreateApmPayment ¶
func (api *Payment) CreateApmPayment(ctx context.Context, request CreateApmPaymentRequest) (*PaymentResponse, error)
func (*Payment) CreateApplePayMerchantSession ¶ added in v1.0.14
func (api *Payment) CreateApplePayMerchantSession(ctx context.Context, request ApplePayMerchantSessionCreateRequest) (*interface{}, error)
func (*Payment) CreateDepositPayment ¶
func (api *Payment) CreateDepositPayment(ctx context.Context, request DepositPaymentRequest) (*DepositPaymentResponse, error)
func (*Payment) CreateFundTransferDepositPayment ¶
func (api *Payment) CreateFundTransferDepositPayment(ctx context.Context, request CreateFundTransferDepositPaymentRequest) (*FundTransferDepositPaymentResponse, error)
func (*Payment) CreatePayment ¶
func (api *Payment) CreatePayment(ctx context.Context, request CreatePaymentRequest) (*PaymentResponse, error)
func (*Payment) DeleteStoredCard ¶
func (api *Payment) DeleteStoredCard(ctx context.Context, request DeleteStoredCardRequest) error
func (*Payment) DisapprovePaymentTransactions ¶
func (api *Payment) DisapprovePaymentTransactions(ctx context.Context, request PaymentTransactionsApprovalRequest) (*DataResponse[PaymentTransactionsApprovalResponse], error)
func (*Payment) ExpireCheckoutPayment ¶ added in v1.0.8
func (api *Payment) ExpireCheckoutPayment(ctx context.Context, request ExpireCheckoutPaymentRequest) error
func (*Payment) Init3DSDepositPayment ¶
func (api *Payment) Init3DSDepositPayment(ctx context.Context, request DepositPaymentRequest) (*Init3DSPaymentResponse, error)
func (*Payment) Init3DSPayment ¶
func (api *Payment) Init3DSPayment(ctx context.Context, request Init3DSPaymentRequest) (*Init3DSPaymentResponse, error)
func (*Payment) InitApmDepositPayment ¶ added in v1.0.7
func (api *Payment) InitApmDepositPayment(ctx context.Context, request InitApmDepositPaymentRequest) (*ApmDepositPaymentResponse, error)
func (*Payment) InitApmPayment ¶
func (api *Payment) InitApmPayment(ctx context.Context, request InitApmPaymentRequest) (*InitApmPaymentResponse, error)
func (*Payment) InitBnplPayment ¶ added in v1.0.11
func (api *Payment) InitBnplPayment(ctx context.Context, request InitBnplPaymentRequest) (*InitBnplPaymentResponse, error)
func (*Payment) InitCheckoutCardVerify ¶ added in v1.0.32
func (api *Payment) InitCheckoutCardVerify(ctx context.Context, request InitCheckoutCardVerifyRequest) (*InitCheckoutCardVerifyResponse, error)
func (*Payment) InitCheckoutPayment ¶
func (api *Payment) InitCheckoutPayment(ctx context.Context, request InitCheckoutPaymentRequest) (*InitCheckoutPaymentResponse, error)
func (*Payment) InitGarantiPayPayment ¶
func (api *Payment) InitGarantiPayPayment(ctx context.Context, request InitGarantiPayPaymentRequest) (*InitGarantiPayPaymentResponse, error)
func (*Payment) InitMultiPayment ¶ added in v1.0.32
func (api *Payment) InitMultiPayment(ctx context.Context, request InitMultiPaymentRequest) (*InitMultiPaymentResponse, error)
func (*Payment) InitPosApmPayment ¶ added in v1.0.9
func (api *Payment) InitPosApmPayment(ctx context.Context, request InitPosApmPaymentRequest) (*InitPosApmPaymentResponse, error)
func (*Payment) Is3DSecureCallbackVerified ¶ added in v1.0.1
func (*Payment) PostAuthPayment ¶
func (api *Payment) PostAuthPayment(ctx context.Context, paymentId int64, request PostAuthPaymentRequest) (*PaymentResponse, error)
func (*Payment) RefundPayment ¶
func (api *Payment) RefundPayment(ctx context.Context, request RefundPaymentRequest) (*PaymentRefundResponse, error)
func (*Payment) RefundPaymentMarkAsRefunded ¶ added in v1.0.31
func (api *Payment) RefundPaymentMarkAsRefunded(ctx context.Context, request RefundPaymentRequest) (*PaymentTransactionRefundListResponse, error)
func (*Payment) RefundPaymentTransaction ¶
func (api *Payment) RefundPaymentTransaction(ctx context.Context, request RefundPaymentTransactionRequest) (*PaymentTransactionRefundResponse, error)
func (*Payment) RefundPaymentTransactionMarkAsRefunded ¶ added in v1.0.31
func (api *Payment) RefundPaymentTransactionMarkAsRefunded(ctx context.Context, request RefundPaymentTransactionMarkAsRefundedRequest) (*PaymentTransactionRefundResponse, error)
func (*Payment) RefundWaitingPayment ¶ added in v1.0.32
func (api *Payment) RefundWaitingPayment(ctx context.Context, request RefundWaitingPaymentRequest) (*WaitingPaymentRefundResponse, error)
func (*Payment) RetrieveActiveBanks ¶ added in v1.0.14
func (api *Payment) RetrieveActiveBanks(ctx context.Context) (*InstantTransferBanksResponse, error)
func (*Payment) RetrieveBnplOffers ¶ added in v1.0.11
func (api *Payment) RetrieveBnplOffers(ctx context.Context, request BnplPaymentOfferRequest) (*BnplPaymentOfferResponse, error)
func (*Payment) RetrieveCardFromIvr ¶ added in v1.0.32
func (api *Payment) RetrieveCardFromIvr(ctx context.Context, request RetrieveCardFromIvrRequest) (*IVRCardTokenizationResponse, error)
func (*Payment) RetrieveCheckoutCardVerify ¶ added in v1.0.32
func (*Payment) RetrieveCheckoutPayment ¶
func (*Payment) RetrieveLoyalties ¶
func (api *Payment) RetrieveLoyalties(ctx context.Context, request RetrieveLoyaltiesRequest) (*RetrieveLoyaltiesResponse, error)
func (*Payment) RetrieveMultiPayment ¶ added in v1.0.15
func (*Payment) RetrievePayment ¶
func (*Payment) RetrievePaymentRefund ¶
func (*Payment) RetrievePaymentTransactionRefund ¶
func (*Payment) RetrieveProviderCards ¶ added in v1.0.24
func (api *Payment) RetrieveProviderCards(ctx context.Context, request RetrieveProviderCardRequest) (*DataResponse[StoredCardResponse], error)
func (*Payment) SearchStoredCards ¶
func (api *Payment) SearchStoredCards(ctx context.Context, request SearchStoredCardsRequest) (*DataResponse[StoredCardResponse], error)
func (*Payment) StoreCard ¶
func (api *Payment) StoreCard(ctx context.Context, request StoreCardRequest) (*StoredCardResponse, error)
func (*Payment) UpdatePaymentTransaction ¶
func (api *Payment) UpdatePaymentTransaction(ctx context.Context, id int64, request UpdatePaymentTransactionRequest) (*PaymentTransactionResponse, error)
func (*Payment) UpdateStoredCard ¶
func (api *Payment) UpdateStoredCard(ctx context.Context, request UpdateStoredCardRequest) (*StoredCardResponse, error)
func (*Payment) VerifyBnplPayment ¶ added in v1.0.26
func (api *Payment) VerifyBnplPayment(ctx context.Context, request VerifyBnplPaymentRequest) (*BnplPaymentVerifyResponse, error)
func (*Payment) VerifyCard ¶ added in v1.0.32
func (api *Payment) VerifyCard(ctx context.Context, request VerifyCardRequest) (*VerifyCardResponse, error)
type PaymentAuthenticationType ¶ added in v1.0.11
type PaymentAuthenticationType string
const ( PaymentAuthenticationType_THREE_DS PaymentAuthenticationType = "THREE_DS" PaymentAuthenticationType_NON_THREE_DS PaymentAuthenticationType = "NON_THREE_DS" PaymentAuthenticationType_BKM_EXPRESS PaymentAuthenticationType = "BKM_EXPRESS" PaymentAuthenticationType_THREE_DS_FALLBACK_TO_NON_THREE_DS PaymentAuthenticationType = "THREE_DS_FALLBACK_TO_NON_THREE_DS" PaymentAuthenticationType_GOOGLEPAY PaymentAuthenticationType = "GOOGLEPAY" PaymentAuthenticationType_APPLEPAY PaymentAuthenticationType = "APPLEPAY" PaymentAuthenticationType_YKB_WORLD_PAY PaymentAuthenticationType = "YKB_WORLD_PAY" PaymentAuthenticationType_YKB_WORLD_PAY_SHOPPING_LOAN PaymentAuthenticationType = "YKB_WORLD_PAY_SHOPPING_LOAN" PaymentAuthenticationType_GARANTI_PAY PaymentAuthenticationType = "GARANTI_PAY" PaymentAuthenticationType_JUZDAN PaymentAuthenticationType = "JUZDAN" )
type PaymentError ¶
type PaymentError ErrorResponse
type PaymentGroup ¶
type PaymentGroup string
const ( PaymentGroup_PRODUCT PaymentGroup = "PRODUCT" PaymentGroup_LISTING_OR_SUBSCRIPTION PaymentGroup = "LISTING_OR_SUBSCRIPTION" )
payment group declaration
type PaymentItem ¶
type PaymentItem struct {
Name string `json:"name,omitempty"`
Price float64 `json:"price,omitempty"`
ExternalId string `json:"externalId,omitempty"`
SubMerchantMemberId int64 `json:"subMerchantMemberId,omitempty"`
SubMerchantMemberPrice float64 `json:"subMerchantMemberPrice,omitempty"`
BlockageDay int `json:"blockageDay,omitempty"`
}
type PaymentMethod ¶
type PaymentMethod string
const ( PaymentMethod_CARD PaymentMethod = "CARD" PaymentMethod_MASTERPASS PaymentMethod = "MASTERPASS" PaymentMethod_PAPARA PaymentMethod = "PAPARA" PaymentMethod_PAYONEER PaymentMethod = "PAYONEER" PaymentMethod_SODEXO PaymentMethod = "SODEXO" PaymentMethod_SODEXO_GIFT PaymentMethod = "SODEXO_GIFT" PaymentMethod_EDENRED PaymentMethod = "EDENRED" PaymentMethod_EDENRED_GIFT PaymentMethod = "EDENRED_GIFT" PaymentMethod_ALIPAY PaymentMethod = "ALIPAY" PaymentMethod_PAYPAL PaymentMethod = "PAYPAL" PaymentMethod_KLARNA PaymentMethod = "KLARNA" PaymentMethod_AFTERPAY PaymentMethod = "AFTERPAY" PaymentMethod_INSTANT_TRANSFER PaymentMethod = "INSTANT_TRANSFER" PaymentMethod_STRIPE PaymentMethod = "STRIPE" PaymentMethod_HEPSIPAY PaymentMethod = "HEPSIPAY" PaymentMethod_GARANTI_PAY PaymentMethod = "GARANTI_PAY" PaymentMethod_JUZDAN PaymentMethod = "JUZDAN" PaymentMethod_YKB_WORLD_PAY PaymentMethod = "YKB_WORLD_PAY" PaymentMethod_YKB_WORLD_PAY_SHOPPING_LOAN PaymentMethod = "YKB_WORLD_PAY_SHOPPING_LOAN" PaymentMethod_TOKENFLEX PaymentMethod = "TOKENFLEX" PaymentMethod_TOKENFLEX_GIFT PaymentMethod = "TOKENFLEX_GIFT" PaymentMethod_MULTINET PaymentMethod = "MULTINET" PaymentMethod_MULTINET_GIFT PaymentMethod = "MULTINET_GIFT" PaymentMethod_MULTINET_NEO_GIFT PaymentMethod = "MULTINET_NEO_GIFT" PaymentMethod_METROPOL PaymentMethod = "METROPOL" PaymentMethod_ISPAY PaymentMethod = "ISPAY" PaymentMethod_PAYMOB PaymentMethod = "PAYMOB" PaymentMethod_VODAFONE_DCB PaymentMethod = "VODAFONE_DCB" PaymentMethod_KASPI PaymentMethod = "KASPI" PaymentMethod_BIZUM PaymentMethod = "BIZUM" PaymentMethod_PAYLANDS_MB_WAY PaymentMethod = "PAYLANDS_MB_WAY" PaymentMethod_ZIP PaymentMethod = "ZIP" PaymentMethod_DKB PaymentMethod = "DKB" PaymentMethod_PAYCELL_DCB PaymentMethod = "PAYCELL_DCB" PaymentMethod_SETCARD PaymentMethod = "SETCARD" PaymentMethod_SETCARD_GIFT PaymentMethod = "SETCARD_GIFT" PaymentMethod_IWALLET PaymentMethod = "IWALLET" PaymentMethod_PAPEL PaymentMethod = "PAPEL" PaymentMethod_BKM_EXPRESS PaymentMethod = "BKM_EXPRESS" )
payment method declaration
type PaymentPhase ¶
type PaymentPhase string
const ( PaymentPhase_AUTH PaymentPhase = "AUTH" PaymentPhase_PRE_AUTH PaymentPhase = "PRE_AUTH" PaymentPhase_POST_AUTH PaymentPhase = "POST_AUTH" )
payment phase declaration
type PaymentProvider ¶
type PaymentProvider string
const ( PaymentProvider_BANK PaymentProvider = "BANK" PaymentProvider_CG_WALLET PaymentProvider = "CG_WALLET" PaymentProvider_MASTERPASS PaymentProvider = "MASTERPASS" PaymentProvider_GARANTI_PAY PaymentProvider = "GARANTI_PAY" PaymentProvider_YKB_WORLD_PAY PaymentProvider = "YKB_WORLD_PAY" PaymentProvider_YKB_WORLD_PAY_SHOPPING_LOAN PaymentProvider = "YKB_WORLD_PAY_SHOPPING_LOAN" PaymentProvider_PAPARA PaymentProvider = "PAPARA" PaymentProvider_PAYONEER PaymentProvider = "PAYONEER" PaymentProvider_SODEXO PaymentProvider = "SODEXO" PaymentProvider_EDENRED PaymentProvider = "EDENRED" PaymentProvider_TOKENFLEX PaymentProvider = "TOKENFLEX" PaymentProvider_METROPOL PaymentProvider = "METROPOL" PaymentProvider_IWALLET PaymentProvider = "IWALLET" PaymentProvider_ALIPAY PaymentProvider = "ALIPAY" PaymentProvider_PAYPAL PaymentProvider = "PAYPAL" PaymentProvider_KLARNA PaymentProvider = "KLARNA" PaymentProvider_AFTERPAY PaymentProvider = "AFTERPAY" PaymentProvider_APPLEPAY PaymentProvider = "APPLEPAY" PaymentProvider_GOOGLEPAY PaymentProvider = "GOOGLEPAY" PaymentProvider_HEPSIPAY PaymentProvider = "HEPSIPAY" PaymentProvider_STRIPE PaymentProvider = "STRIPE" PaymentProvider_KASPI PaymentProvider = "KASPI" PaymentProvider_INSTANT_TRANSFER PaymentProvider = "INSTANT_TRANSFER" PaymentProvider_MASLAK PaymentProvider = "MASLAK" PaymentProvider_TOMPAY PaymentProvider = "TOMPAY" PaymentProvider_TOM_FINANCE PaymentProvider = "TOM_FINANCE" PaymentProvider_ALFABANK PaymentProvider = "ALFABANK" PaymentProvider_ZIP PaymentProvider = "ZIP" PaymentProvider_DKB PaymentProvider = "DKB" PaymentProvider_HASO PaymentProvider = "HASO" PaymentProvider_PAYCELL PaymentProvider = "PAYCELL" PaymentProvider_MULTINET PaymentProvider = "MULTINET" PaymentProvider_CHIPPIN PaymentProvider = "CHIPPIN" PaymentProvider_ISPAY PaymentProvider = "ISPAY" PaymentProvider_PAYMOB PaymentProvider = "PAYMOB" PaymentProvider_VODAFONE PaymentProvider = "VODAFONE" PaymentProvider_BIZUM PaymentProvider = "BIZUM" PaymentProvider_PAYLANDS_MB_WAY PaymentProvider = "PAYLANDS_MB_WAY" PaymentProvider_SETCARD PaymentProvider = "SETCARD" PaymentProvider_PAPEL PaymentProvider = "PAPEL" PaymentProvider_BKM_EXPRESS PaymentProvider = "BKM_EXPRESS" PaymentProvider_ALBARAKA PaymentProvider = "ALBARAKA" PaymentProvider_OFFLINE PaymentProvider = "OFFLINE" )
payment provider declaration
type PaymentRefundResponse ¶
type PaymentRefundResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
Status *RefundStatus `json:"status"`
RefundDestinationType *RefundDestinationType `json:"refundDestinationType"`
RefundPrice *float64 `json:"refundPrice"`
RefundBankPrice *float64 `json:"refundBankPrice"`
RefundWalletPrice *float64 `json:"refundWalletPrice"`
ConversationId *string `json:"conversationId"`
AuthCode *string `json:"authCode"`
HostReference *string `json:"hostReference"`
TransId *string `json:"transId"`
PaymentId *int64 `json:"paymentId"`
RefundType *RefundType `json:"refundType"`
Currency *Currency `json:"currency"`
PaymentTransactionRefunds []PaymentTransactionRefundResponse `json:"paymentTransactionRefunds"`
}
type PaymentRefundStatus ¶
type PaymentRefundStatus string
const ( PaymentRefundStatus_NO_REFUND PaymentRefundStatus = "NO_REFUND" PaymentRefundStatus_NOT_REFUNDED PaymentRefundStatus = "NOT_REFUNDED" PaymentRefundStatus_PARTIAL_REFUNDED PaymentRefundStatus = "PARTIAL_REFUNDED" PaymentRefundStatus_FULLY_REFUNDED PaymentRefundStatus = "FULLY_REFUNDED" )
payment refund status declaration
type PaymentReporting ¶
type PaymentReporting struct {
Client *Client
}
func (*PaymentReporting) RetrievePayment ¶
func (api *PaymentReporting) RetrievePayment(ctx context.Context, id int64) (*ReportingPaymentResponse, error)
func (*PaymentReporting) RetrievePaymentRefunds ¶
func (api *PaymentReporting) RetrievePaymentRefunds(ctx context.Context, paymentId int64) (*DataResponse[ReportingPaymentRefundResponse], error)
func (*PaymentReporting) RetrievePaymentTransactionRefunds ¶
func (api *PaymentReporting) RetrievePaymentTransactionRefunds(ctx context.Context, paymentId, paymentTransactionId int64) (*DataResponse[ReportingPaymentTransactionRefundResponse], error)
func (*PaymentReporting) RetrievePaymentTransactions ¶
func (api *PaymentReporting) RetrievePaymentTransactions(ctx context.Context, paymentId int64) (*DataResponse[ReportingPaymentTransactionResponse], error)
func (*PaymentReporting) SearchPaymentRefunds ¶
func (api *PaymentReporting) SearchPaymentRefunds(ctx context.Context, request SearchPaymentRefundsRequest) (*DataResponse[ReportingPaymentRefundResponse], error)
func (*PaymentReporting) SearchPaymentTransactionRefunds ¶
func (api *PaymentReporting) SearchPaymentTransactionRefunds(ctx context.Context, request SearchPaymentTransactionRefundsRequest) (*DataResponse[ReportingPaymentTransactionRefundResponse], error)
func (*PaymentReporting) SearchPayments ¶
func (api *PaymentReporting) SearchPayments(ctx context.Context, request SearchPaymentsRequest) (*DataResponse[ReportingPaymentResponse], error)
type PaymentResponse ¶
type PaymentResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
Price *float64 `json:"price"`
PaidPrice *float64 `json:"paidPrice"`
WalletPrice *float64 `json:"walletPrice"`
Currency *string `json:"currency"`
BuyerMemberId *int64 `json:"buyerMemberId"`
FraudId *int64 `json:"fraudId"`
Installment *int `json:"installment"`
ConversationId *string `json:"conversationId"`
ExternalId *string `json:"externalId"`
PaymentType *PaymentType `json:"paymentType"`
PaymentProvider *PaymentProvider `json:"paymentProvider"`
PaymentSource *PaymentSource `json:"paymentSource"`
PaymentGroup *PaymentGroup `json:"paymentGroup"`
PaymentStatus *PaymentStatus `json:"paymentStatus"`
PaymentPhase *PaymentPhase `json:"paymentPhase"`
FraudAction *FraudAction `json:"fraudAction"`
FraudScore *float64 `json:"fraudScore"`
FraudRuleId *int64 `json:"fraudRuleId"`
PaymentChannel *string `json:"paymentChannel"`
IsThreeDS *bool `json:"isThreeDS"`
MerchantCommissionRate *float64 `json:"merchantCommissionRate"`
MerchantCommissionRateAmount *float64 `json:"merchantCommissionRateAmount"`
BankCommissionRate *float64 `json:"bankCommissionRate"`
BankCommissionRateAmount *float64 `json:"bankCommissionRateAmount"`
PaidWithStoredCard *bool `json:"paidWithStoredCard"`
BinNumber *string `json:"binNumber"`
LastFourDigits *string `json:"lastFourDigits"`
AuthCode *string `json:"authCode"`
HostReference *string `json:"hostReference"`
TransId *string `json:"transId"`
MdStatus *int `json:"mdStatus"`
OrderId *string `json:"orderId"`
CardHolderName *string `json:"cardHolderName"`
BankCardHolderName *string `json:"bankCardHolderName"`
CardIssuerBankName *string `json:"cardIssuerBankName"`
CardIssuerBankId *int64 `json:"cardIssuerBankId"`
CardType *string `json:"cardType"`
CardAssociation *string `json:"cardAssociation"`
CardBrand *string `json:"cardBrand"`
RequestedPosAlias *string `json:"requestedPosAlias"`
BlockageResolvedDate *TimeResponse `json:"blockageResolvedDate"`
Pos *MerchantPos `json:"pos"`
Loyalty *Loyalty `json:"loyalty"`
PaymentError *PaymentError `json:"paymentError"`
CardUserKey *string `json:"cardUserKey"`
CardToken *string `json:"cardToken"`
PaymentTransactions []PaymentTransactionResponse `json:"paymentTransactions"`
AdditionalData map[string]any `json:"additionalData"`
}
responses
type PaymentSource ¶
type PaymentSource string
const ( PaymentSource_API PaymentSource = "API" PaymentSource_CHECKOUT_FORM PaymentSource = "CHECKOUT_FORM" PaymentSource_PAY_BY_LINK PaymentSource = "PAY_BY_LINK" PaymentSource_HEPSIPAY PaymentSource = "HEPSIPAY" PaymentSource_JUZDAN PaymentSource = "JUZDAN" PaymentSource_MONO PaymentSource = "MONO" )
payment source declaration
type PaymentStatus ¶
type PaymentStatus string
const ( PaymentStatus_FAILURE PaymentStatus = "FAILURE" PaymentStatus_SUCCESS PaymentStatus = "SUCCESS" PaymentStatus_INIT_THREEDS PaymentStatus = "INIT_THREEDS" PaymentStatus_CALLBACK_THREEDS PaymentStatus = "CALLBACK_THREEDS" PaymentStatus_WAITING PaymentStatus = "WAITING" )
payment status declaration
type PaymentTransactionRefundListResponse ¶ added in v1.0.31
type PaymentTransactionRefundListResponse struct {
Items []PaymentTransactionRefundResponse `json:"items"`
}
type PaymentTransactionRefundResponse ¶
type PaymentTransactionRefundResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
Status *RefundStatus `json:"status"`
RefundDestinationType *RefundDestinationType `json:"refundDestinationType"`
RefundPrice *float64 `json:"refundPrice"`
RefundBankPrice *float64 `json:"refundBankPrice"`
RefundWalletPrice *float64 `json:"refundWalletPrice"`
ConversationId *string `json:"conversationId"`
AuthCode *string `json:"authCode"`
HostReference *string `json:"hostReference"`
TransId *string `json:"transId"`
IsAfterSettlement *bool `json:"isAfterSettlement"`
PaymentTransactionId *int64 `json:"paymentTransactionId"`
Currency *Currency `json:"currency"`
PaymentId *int64 `json:"paymentId"`
}
type PaymentTransactionResponse ¶
type PaymentTransactionResponse struct {
ID *int64 `json:"id"`
ExternalID *string `json:"externalId"`
Name *string `json:"name"`
TransactionStatus *string `json:"transactionStatus"`
BlockageResolvedDate *string `json:"blockageResolvedDate"`
Price *float64 `json:"price"`
PaidPrice *float64 `json:"paidPrice"`
WalletPrice *float64 `json:"walletPrice"`
MerchantCommissionRate *float64 `json:"merchantCommissionRate"`
MerchantCommissionRateAmount *float64 `json:"merchantCommissionRateAmount"`
MerchantPayoutAmount *float64 `json:"merchantPayoutAmount"`
SubMerchantMemberID *int64 `json:"subMerchantMemberId"`
SubMerchantMemberPrice *float64 `json:"subMerchantMemberPrice"`
SubMerchantMemberPayoutRate *float64 `json:"subMerchantMemberPayoutRate"`
SubMerchantMemberPayoutAmount *float64 `json:"subMerchantMemberPayoutAmount"`
Payout *Payout `json:"payout"`
}
type PaymentTransactionsApprovalRequest ¶
type PaymentTransactionsApprovalRequest struct {
BaseRequest
PaymentTransactionIds []int64 `json:"paymentTransactionIds,omitempty"`
IsTransactional bool `json:"isTransactional,omitempty"`
}
type PaymentTransactionsApprovalResponse ¶
type PaymentTransactionsApprovalResponse struct {
PaymentTransactionId *int64 `json:"paymentTransactionId"`
ApprovalStatus *ApprovalStatus `json:"approvalStatus"`
FailedReason *string `json:"failedReason"`
}
type PaymentType ¶
type PaymentType string
const ( PaymentType_CARD_PAYMENT PaymentType = "CARD_PAYMENT" PaymentType_WALLET_PAYMENT PaymentType = "WALLET_PAYMENT" PaymentType_CARD_AND_WALLET_PAYMENT PaymentType = "CARD_AND_WALLET_PAYMENT" PaymentType_DEPOSIT_PAYMENT PaymentType = "DEPOSIT_PAYMENT" PaymentType_HEPSIPAY_DEPOSIT_PAYMENT PaymentType = "HEPSIPAY_DEPOSIT_PAYMENT" PaymentType_BANK_TRANSFER PaymentType = "BANK_TRANSFER" PaymentType_APM PaymentType = "APM" )
payment type declaration
type PayoutAccountResponse ¶ added in v1.0.8
type PayoutAccountResponse struct {
Id int64 `json:"id"`
AccountType PayoutAccountType `json:"type"`
ExternalAccountId string `json:"externalAccountId"`
Currency Currency `json:"currency"`
AccountOwner AccountOwner `json:"accountOwner"`
SubMerchantMemberId *int64 `json:"subMerchantMemberId"`
}
type PayoutAccountType ¶ added in v1.0.8
type PayoutAccountType string
const (
PayoutAccountType_WISE PayoutAccountType = "WISE"
)
type PayoutDetailResponse ¶
type PayoutDetailResponse struct {
RowDescription *string `json:"rowDescription"`
PayoutDate *TimeResponse `json:"payoutDate"`
Name *string `json:"name"`
Iban *string `json:"iban"`
PayoutAmount *float64 `json:"payoutAmount"`
Currency *string `json:"currency"`
MerchantId *int64 `json:"merchantId"`
MerchantType *string `json:"merchantType"`
SettlementEarningsDestination *string `json:"settlementEarningsDestination"`
SettlementSource *string `json:"settlementSource"`
BounceStatus *string `json:"bounceStatus"`
PayoutTransactions []PayoutDetailTransactionResponse `json:"payoutTransactions"`
}
type PayoutRowResponse ¶ added in v1.0.7
type PayoutStatus ¶
type PayoutStatus struct {
MerchantStatus *TransactionPayoutStatus `json:"merchantStatus"`
MerchantStatusDate *TimeResponse `json:"merchantStatusDate"`
SubMerchantMemberStatus *TransactionPayoutStatus `json:"subMerchantMemberStatus"`
SubMerchantMemberStatusDate *TimeResponse `json:"subMerchantMemberStatusDate"`
}
type PosApmInstallment ¶ added in v1.0.9
type PosApmPaymentProvider ¶ added in v1.0.9
type PosApmPaymentProvider string
const ( PosApmPaymentProvider_YKB_WORLD_PAY PosApmPaymentProvider = "YKB_WORLD_PAY" PosApmPaymentProvider_YKB_WORLD_PAY_SHOPPING_LOAN PosApmPaymentProvider = "YKB_WORLD_PAY_SHOPPING_LOAN" PosApmPaymentProvider_GOOGLEPAY PosApmPaymentProvider = "GOOGLEPAY" PosApmPaymentProvider_GARANTI_PAY PosApmPaymentProvider = "GARANTI_PAY" )
pos apm payment provider declaration
type PosIntegrator ¶ added in v1.0.9
type PosIntegrator string
const ( PosIntegrator_ADYEN PosIntegrator = "ADYEN" PosIntegrator_AKBANK PosIntegrator = "AKBANK" PosIntegrator_AKBANK_VPOS PosIntegrator = "AKBANK_VPOS" PosIntegrator_ALGORITMA PosIntegrator = "ALGORITMA" PosIntegrator_ANADOLUBANK PosIntegrator = "ANADOLUBANK" PosIntegrator_BIRLESIK_ODEME PosIntegrator = "BIRLESIK_ODEME" PosIntegrator_BRAINTREE PosIntegrator = "BRAINTREE" PosIntegrator_CHECKOUT PosIntegrator = "CHECKOUT" PosIntegrator_DENIZBANK PosIntegrator = "DENIZBANK" PosIntegrator_ELEKSE PosIntegrator = "ELEKSE" PosIntegrator_ENPARA PosIntegrator = "ENPARA" PosIntegrator_FIBABANK PosIntegrator = "FIBABANK" PosIntegrator_FIBABANK_ASSECO PosIntegrator = "FIBABANK_ASSECO" PosIntegrator_FINANSBANK PosIntegrator = "FINANSBANK" PosIntegrator_FINANSKATILIM PosIntegrator = "FINANSKATILIM" PosIntegrator_GARANTI PosIntegrator = "GARANTI" PosIntegrator_HALKBANK PosIntegrator = "HALKBANK" PosIntegrator_HALKBANK_VPOS PosIntegrator = "HALKBANK_VPOS" PosIntegrator_HALKODE PosIntegrator = "HALKODE" PosIntegrator_HALYKBANK PosIntegrator = "HALYKBANK" PosIntegrator_INGBANK PosIntegrator = "INGBANK" PosIntegrator_ISBANK PosIntegrator = "ISBANK" PosIntegrator_ISBANK_VPOS PosIntegrator = "ISBANK_VPOS" PosIntegrator_IYZICO PosIntegrator = "IYZICO" PosIntegrator_KUVEYTTURK PosIntegrator = "KUVEYTTURK" PosIntegrator_MOKA PosIntegrator = "MOKA" PosIntegrator_MONEYPAY PosIntegrator = "MONEYPAY" PosIntegrator_NKOLAY PosIntegrator = "NKOLAY" PosIntegrator_NUVEI PosIntegrator = "NUVEI" PosIntegrator_PAPEL PosIntegrator = "PAPEL" PosIntegrator_PARAM_POS PosIntegrator = "PARAM_POS" PosIntegrator_PAYBYME PosIntegrator = "PAYBYME" PosIntegrator_PAYCELL PosIntegrator = "PAYCELL" PosIntegrator_PAYLANDS PosIntegrator = "PAYLANDS" PosIntegrator_PAYMOB PosIntegrator = "PAYMOB" PosIntegrator_PAYNET PosIntegrator = "PAYNET" PosIntegrator_PAYTABS PosIntegrator = "PAYTABS" PosIntegrator_PAYTR PosIntegrator = "PAYTR" PosIntegrator_QNB_PAY PosIntegrator = "QNB_PAY" PosIntegrator_REDSYS PosIntegrator = "REDSYS" PosIntegrator_RUBIK PosIntegrator = "RUBIK" PosIntegrator_BIN_PAY PosIntegrator = "BIN_PAY" PosIntegrator_TURKONAY PosIntegrator = "TURKONAY" PosIntegrator_SIPAY PosIntegrator = "SIPAY" PosIntegrator_STRIPE PosIntegrator = "STRIPE" PosIntegrator_TAMI PosIntegrator = "TAMI" PosIntegrator_TAP PosIntegrator = "TAP" PosIntegrator_TEB PosIntegrator = "TEB" PosIntegrator_TRPOS PosIntegrator = "TRPOS" PosIntegrator_VAKIFBANK PosIntegrator = "VAKIFBANK" PosIntegrator_VAKIFKATILIM PosIntegrator = "VAKIFKATILIM" PosIntegrator_WORLDPAY PosIntegrator = "WORLDPAY" PosIntegrator_YKB PosIntegrator = "YKB" PosIntegrator_ZIRAATBANK PosIntegrator = "ZIRAATBANK" PosIntegrator_ZIRAATBANK_INNOVA PosIntegrator = "ZIRAATBANK_INNOVA" PosIntegrator_ZIRAATKATILIM PosIntegrator = "ZIRAATKATILIM" )
type PosOperationType ¶ added in v1.0.9
type PosOperationType string
const ( PosOperationType_STANDARD PosOperationType = "STANDARD" PosOperationType_PROVAUT PosOperationType = "PROVAUT" PosOperationType_PROVRFN PosOperationType = "PROVRFN" PosOperationType_PAYMENT PosOperationType = "PAYMENT" PosOperationType_REFUND PosOperationType = "REFUND" PosOperationType_INQUIRY PosOperationType = "INQUIRY" )
type PosUserType ¶ added in v1.0.9
type PosUserType string
const (
PosUserType_API PosUserType = "API"
)
type PostAuthPaymentRequest ¶
type PostAuthPaymentRequest struct {
BaseRequest
PaidPrice float64 `json:"paidPrice"`
}
type ProductResponse ¶
type ProductResponse struct {
Id *int64 `json:"id"`
Name *string `json:"name"`
Description *string `json:"description"`
OrderId *string `json:"orderId,omitempty"`
ConversationId *string `json:"conversationId,omitempty"`
ExternalId *string `json:"externalId,omitempty"`
Status *Status `json:"status"`
Price *float64 `json:"price"`
Currency *Currency `json:"currency"`
Stock *int `json:"stock"`
SoldCount *int `json:"soldCount"`
Token *string `json:"token"`
EnabledInstallments []int `json:"enabledInstallments"`
Url *string `json:"url"`
QrCodeUrl *string `json:"qrCodeUrl"`
Channel *string `json:"channel"`
MultiPayment *bool `json:"multiPayment"`
ForceThreeDS *bool `json:"forceThreeDS"`
ExpiresAt *TimeResponse `json:"expiresAt"`
BasketIdentifier *string `json:"basketIdentifier,omitempty"`
}
type ProviderError ¶ added in v1.0.32
type RecordType ¶ added in v1.0.10
type RecordType string
const ( RecordType_SEND RecordType = "SEND" RecordType_RECEIVE RecordType = "RECEIVE" )
RecordType declaration
type RefundDestinationType ¶
type RefundDestinationType string
const ( RefundDestinationType_PROVIDER RefundDestinationType = "PROVIDER" RefundDestinationType_WALLET RefundDestinationType = "WALLET" )
refundDestinationType type declaration
type RefundPaymentRequest ¶
type RefundPaymentRequest struct {
BaseRequest
PaymentId int64 `json:"paymentId,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
RefundDestinationType RefundDestinationType `json:"refundDestinationType,omitempty"`
ChargeFromMe bool `json:"chargeFromMe,omitempty"`
}
type RefundPaymentTransactionMarkAsRefundedRequest ¶ added in v1.0.31
type RefundPaymentTransactionMarkAsRefundedRequest struct {
BaseRequest
PaymentTransactionId int64 `json:"paymentTransactionId"`
ConversationId *string `json:"conversationId"`
RefundPrice float64 `json:"refundPrice"`
}
type RefundPaymentTransactionRequest ¶
type RefundPaymentTransactionRequest struct {
BaseRequest
PaymentTransactionId int64 `json:"paymentTransactionId"`
ConversationId string `json:"conversationId"`
RefundPrice float64 `json:"refundPrice"`
RefundDestinationType RefundDestinationType `json:"refundDestinationType"`
ChargeFromMe bool `json:"chargeFromMe"`
}
type RefundStatus ¶
type RefundStatus string
const ( RefundStatus_SUCCESS RefundStatus = "SUCCESS" RefundStatus_FAILURE RefundStatus = "FAILURE" RefundStatus_WAITING RefundStatus = "WAITING" )
refund status declaration
type RefundType ¶
type RefundType string
const ( RefundType_CANCEL RefundType = "CANCEL" RefundType_REFUND RefundType = "REFUND" )
refund type declaration
type RefundWaitingPaymentRequest ¶ added in v1.0.32
type RefundWaitingPaymentRequest struct {
BaseRequest
PaymentId int64 `json:"paymentId,omitempty"`
}
type RefundWalletTransactionRequest ¶ added in v1.0.5
type RefundWalletTransactionRequest struct {
BaseRequest
RefundPrice float64 `json:"refundPrice"`
}
type RefundWalletTransactionResponse ¶ added in v1.0.5
type RefundWalletTransactionResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
RefundStatus *string `json:"refundStatus"`
RefundPrice *float64 `json:"refundPrice"`
AuthCode *string `json:"authCode"`
HostReference *string `json:"hostReference"`
TransId *string `json:"transId"`
TransactionId *int64 `json:"transactionId"`
WalletTransactionId *int64 `json:"walletTransactionId"`
PaymentError *PaymentError `json:"paymentError"`
TransactionType *WalletTransactionRefundTransactionType `json:"transactionType"`
}
type RemittanceRequest ¶
type RemittanceResponse ¶
type RemittanceResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
Status *Status `json:"status"`
Price *float64 `json:"price"`
Currency Currency `json:"currency,omitempty"`
MemberId *int64 `json:"memberId"`
RemittanceType *string `json:"remittanceType"`
RemittanceReasonType *string `json:"remittanceReasonType"`
Description *string `json:"description"`
}
type RemoveValueFromValueListRequest ¶ added in v1.0.32
type RemoveValueFromValueListRequest struct {
BaseRequest
ListName string
ValueId string
}
type ReportDemandResponse ¶ added in v1.0.31
type ReportDemandResponse struct {
Id *int64 `json:"id"`
ReportType *ReportType `json:"reportType"`
ReportPeriod *ReportPeriod `json:"reportPeriod"`
StartDate *TimeResponse `json:"startDate"`
EndDate *TimeResponse `json:"endDate"`
}
type ReportFileType ¶
type ReportFileType string
const ( ReportFileType_CSV ReportFileType = "CSV" ReportFileType_XLSX ReportFileType = "XLSX" )
report file type declaration
type ReportPeriod ¶ added in v1.0.31
type ReportPeriod string
const (
ReportPeriod_INSTANT ReportPeriod = "INSTANT"
)
report period declaration
type ReportType ¶ added in v1.0.31
type ReportType string
const ( ReportType_TRANSACTION ReportType = "TRANSACTION" ReportType_PAYMENT ReportType = "PAYMENT" )
report type declaration
type ReportingPaymentRefundResponse ¶
type ReportingPaymentRefundResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
Status *RefundStatus `json:"status"`
RefundDestinationType *RefundDestinationType `json:"refundDestinationType"`
RefundPrice *float64 `json:"refundPrice"`
RefundBankPrice *float64 `json:"refundBankPrice"`
RefundWalletPrice *float64 `json:"refundWalletPrice"`
ConversationId *string `json:"conversationId"`
AuthCode *string `json:"authCode"`
HostReference *string `json:"hostReference"`
PaymentType *PaymentType `json:"paymentType"`
TransId *string `json:"transId"`
PaymentId *int64 `json:"paymentId"`
PaymentError *PaymentError `json:"error"`
}
type ReportingPaymentResponse ¶
type ReportingPaymentResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
Price *float64 `json:"price"`
PaidPrice *float64 `json:"paidPrice"`
WalletPrice *float64 `json:"walletPrice"`
Currency *Currency `json:"currency"`
BuyerMemberId *int64 `json:"buyerMemberId"`
Installment *int `json:"installment"`
ConversationId *string `json:"conversationId"`
ExternalId *string `json:"externalId"`
PaymentType *PaymentType `json:"paymentType"`
PaymentProvider *PaymentProvider `json:"paymentProvider"`
PaymentSource *PaymentSource `json:"paymentSource"`
PaymentGroup *PaymentGroup `json:"paymentGroup"`
PaymentStatus *PaymentStatus `json:"paymentStatus"`
PaymentPhase *PaymentPhase `json:"paymentPhase"`
PaymentChannel *string `json:"paymentChannel"`
IsThreeDS *bool `json:"isThreeDS"`
MerchantCommissionRate *float64 `json:"merchantCommissionRate"`
MerchantCommissionRateAmount *float64 `json:"merchantCommissionRateAmount"`
BankCommissionRate *float64 `json:"bankCommissionRate"`
BankCommissionRateAmount *float64 `json:"bankCommissionRateAmount"`
PaidWithStoredCard *bool `json:"paidWithStoredCard"`
BinNumber *string `json:"binNumber"`
LastFourDigits *string `json:"lastFourDigits"`
AuthCode *string `json:"authCode"`
HostReference *string `json:"hostReference"`
OrderId *string `json:"orderId"`
TransId *string `json:"transId"`
CardHolderName *string `json:"cardHolderName"`
BankCardHolderName *string `json:"bankCardHolderName"`
CardType *CardType `json:"cardType"`
CardAssociation *CardAssociation `json:"cardAssociation"`
CardBrand *string `json:"cardBrand"`
RequestedPosAlias *string `json:"requestedPosAlias"`
RetryCount *int `json:"retryCount"`
RefundablePrice *float64 `json:"refundablePrice"`
RefundStatus *PaymentRefundStatus `json:"refundStatus"`
CardIssuerBankName *string `json:"cardIssuerBankName"`
CardIssuerBankId *int64 `json:"cardIssuerBankId"`
MdStatus *int `json:"mdStatus"`
FraudId *int64 `json:"fraudId"`
FraudAction *FraudAction `json:"fraudAction"`
BuyerMember *MemberResponse `json:"buyerMember"`
Refunds *[]ReportingPaymentRefundResponse `json:"refunds"`
Pos *MerchantPos `json:"pos"`
Loyalty *Loyalty `json:"loyalty"`
PaymentError *PaymentError `json:"paymentError"`
}
type ReportingPaymentTransactionRefundResponse ¶
type ReportingPaymentTransactionRefundResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
Status *RefundStatus `json:"status"`
RefundDestinationType *RefundDestinationType `json:"refundDestinationType"`
RefundPrice *float64 `json:"refundPrice"`
RefundBankPrice *float64 `json:"refundBankPrice"`
RefundWalletPrice *float64 `json:"refundWalletPrice"`
ConversationId *string `json:"conversationId"`
AuthCode *string `json:"authCode"`
HostReference *string `json:"hostReference"`
TransId *string `json:"transId"`
IsAfterSettlement *bool `json:"isAfterSettlement"`
PaymentTransactionId *int64 `json:"paymentTransactionId"`
PaymentError *PaymentError `json:"error"`
}
type ReportingPaymentTransactionResponse ¶
type ReportingPaymentTransactionResponse struct {
Id *int64 `json:"id"`
Name *string `json:"name"`
ExternalId *string `json:"externalId"`
Price *float64 `json:"price"`
PaidPrice *float64 `json:"paidPrice"`
WalletPrice *float64 `json:"walletPrice"`
MerchantCommissionRate *float64 `json:"merchantCommissionRate"`
MerchantCommissionRateAmount *float64 `json:"merchantCommissionRateAmount"`
MerchantPayoutAmount *float64 `json:"merchantPayoutAmount"`
SubMerchantMemberId *int64 `json:"subMerchantMemberId"`
SubMerchantMemberPrice *float64 `json:"subMerchantMemberPrice"`
SubMerchantMemberPayoutRate *float64 `json:"subMerchantMemberPayoutRate"`
SubMerchantMemberPayoutAmount *float64 `json:"subMerchantMemberPayoutAmount"`
TransactionStatus *TransactionStatus `json:"transactionStatus"`
BlockageResolvedDate *TimeResponse `json:"blockageResolvedDate"`
CreatedDate *TimeResponse `json:"createdDate"`
TransactionStatusDate *TimeResponse `json:"transactionStatusDate"`
RefundablePrice *float64 `json:"refundablePrice"`
BankCommissionRate *float64 `json:"bankCommissionRate"`
BankCommissionRateAmount *float64 `json:"bankCommissionRateAmount"`
Payout *Payout `json:"payout"`
SubMerchantMember *MemberResponse `json:"subMerchantMember"`
RefundStatus *PaymentRefundStatus `json:"refundStatus"`
PayoutStatus *PayoutStatus `json:"payoutStatus"`
}
type Request ¶ added in v1.0.32
type Request interface {
// contains filtered or unexported methods
}
type RequestOptions ¶
type ResetMerchantMemberWalletBalanceRequest ¶
type ResetMerchantMemberWalletBalanceRequest struct {
BaseRequest
WalletAmount float64 `json:"walletAmount"`
}
type Response ¶
type Response[T any] struct { Data *T `json:"data"` Errors *ErrorResponse `json:"errors"` }
type RetrieveBinNumberResponse ¶
type RetrieveBinNumberResponse struct {
BinNumber *string `json:"binNumber"`
CardType *string `json:"cardType"`
CardAssociation *string `json:"cardAssociation"`
CardBrand *string `json:"cardBrand"`
BankName *string `json:"bankName"`
BankCode *int `json:"bankCode"`
Commercial *bool `json:"commercial"`
}
type RetrieveCardFromIvrRequest ¶ added in v1.0.32
type RetrieveCardFromIvrRequest struct {
BaseRequest
CardUserKey string `json:"cardUserKey,omitempty"`
CallToken string `json:"callToken,omitempty"`
}
type RetrieveCheckoutCardVerifyResponse ¶ added in v1.0.32
type RetrieveCheckoutCardVerifyResponse struct {
Token *string `json:"token"`
Card *StoredCardResponse `json:"card"`
}
type RetrieveDailyPaymentReportRequest ¶ added in v1.0.25
type RetrieveDailyPaymentReportRequest struct {
BaseRequest
ReportDate Date `schema:"reportDate,omitempty"`
FileType ReportFileType `schema:"fileType,omitempty"`
}
type RetrieveDailyTransactionReportRequest ¶
type RetrieveDailyTransactionReportRequest struct {
BaseRequest
ReportDate Date `schema:"reportDate,omitempty"`
FileType ReportFileType `schema:"fileType,omitempty"`
}
type RetrieveLoyaltiesRequest ¶
type RetrieveLoyaltiesRequest struct {
BaseRequest
CardNumber string `json:"cardNumber,omitempty"`
ExpireYear string `json:"expireYear,omitempty"`
ExpireMonth string `json:"expireMonth,omitempty"`
Cvc string `json:"cvc,omitempty"`
LoyaltyType LoyaltyType `json:"loyaltyType,omitempty"`
Installment int `json:"installment,omitempty"`
CardUserKey string `json:"cardUserKey,omitempty"`
CardToken string `json:"cardToken,omitempty"`
SecureFieldsToken string `json:"secureFieldsToken,omitempty"`
ClientIp *string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
ConversationId *string `json:"conversationId,omitempty"`
FraudParams *FraudCheckParameters `json:"fraudParams,omitempty"`
}
type RetrieveLoyaltiesResponse ¶
type RetrieveLoyaltiesResponse struct {
CardBrand *string `json:"cardBrand"`
CardIssuerBankName *string `json:"cardIssuerBankName"`
CardIssuerBankId *int64 `json:"cardIssuerBankId"`
Force3ds *bool `json:"force3ds"`
Pos *MerchantPos `json:"pos"`
FraudResult *FraudResult `json:"fraudResult"`
Loyalties []Loyalty `json:"loyalties"`
}
type RetrievePayoutDetailsRequest ¶
type RetrievePayoutDetailsRequest struct {
BaseRequest
PayoutDetailId int64
}
type RetrieveProviderCardRequest ¶ added in v1.0.19
type RetrieveProviderCardRequest struct {
BaseRequest
ProviderCardToken string `json:"providerCardToken,omitempty"`
ExternalId string `json:"externalId,omitempty"`
ProviderCardUserId string `json:"providerCardUserId,omitempty"`
CardProvider string `json:"cardProvider,omitempty"`
}
type RetrieveReportRequest ¶ added in v1.0.31
type RetrieveReportRequest struct {
BaseRequest
FileType ReportFileType `schema:"fileType,omitempty"`
}
type RetrieveWalletTransactionRefundableAmountResponse ¶
type RetrieveWalletTransactionRefundableAmountResponse struct {
RefundableAmount *float64 `json:"refundableAmount"`
}
type RoutingOptions ¶ added in v1.0.32
type RoutingOptions struct {
OrderingRule *OrderingRule `json:"orderingRule,omitempty"`
PosAliases []string `json:"posAliases,omitempty"`
IgnoreAdvancedPosRoutingRules bool `json:"ignoreAdvancedPosRoutingRules,omitempty"`
}
type SearchBankAccountTrackingRecordRequest ¶ added in v1.0.10
type SearchBankAccountTrackingRecordRequest struct {
BaseRequest
SenderName string `schema:"senderName,omitempty"`
SenderIban string `schema:"senderIban,omitempty"`
Description string `schema:"description,omitempty"`
Currency Currency `schema:"currency,omitempty"`
MinRecordDate time.Time `schema:"minRecordDate,omitempty"`
MaxRecordDate time.Time `schema:"maxRecordDate,omitempty"`
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
}
type SearchFraudChecksRequest ¶
type SearchFraudChecksRequest struct {
BaseRequest
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
Action FraudAction `schema:"action,omitempty"`
CheckStatus FraudCheckStatus `schema:"checkStatus,omitempty"`
MinCreatedDate time.Time `schema:"minCreatedDate,omitempty"`
MaxCreatedDate time.Time `schema:"maxCreatedDate,omitempty"`
RuleId int64 `schema:"ruleId,omitempty"`
PaymentId int64 `schema:"paymentId,omitempty"`
PaymentStatus PaymentStatus `schema:"paymentStatus,omitempty"`
}
type SearchFraudRuleRequest ¶ added in v1.0.32
type SearchFraudRuleRequest struct {
BaseRequest
Name string `json:"name,omitempty"`
MinCreatedDate time.Time `schema:"minCreatedDate,omitempty"`
MaxCreatedDate time.Time `schema:"maxCreatedDate,omitempty"`
Action FraudAction `schema:"action,omitempty"`
Operation FraudOperation `schema:"operation,omitempty"`
Scope FraudRuleScope `schema:"scope,omitempty"`
Size int `schema:"size,omitempty"`
Page int `schema:"page,omitempty"`
}
type SearchInstallmentsRequest ¶
type SearchInstallmentsRequest struct {
BaseRequest
BinNumber string `schema:"binNumber,omitempty"`
Price float64 `schema:"price"`
Currency Currency `schema:"currency"`
DistinctCardBrandsWithLowestCommissions bool `schema:"distinctCardBrandsWithLowestCommissions"`
LoyaltyExists bool `schema:"loyaltyExists"`
}
type SearchMembersRequest ¶
type SearchMembersRequest struct {
BaseRequest
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
IsBuyer bool `schema:"isBuyer,omitempty"`
IsSubMerchant bool `schema:"isSubMerchant,omitempty"`
Name string `schema:"name,omitempty"`
MemberIds []int64 `schema:"memberIds,omitempty"`
MemberType MemberType `schema:"memberType,omitempty"`
MemberExternalId string `schema:"memberExternalId,omitempty"`
}
type SearchMerchantPosRequest ¶ added in v1.0.11
type SearchMerchantPosRequest struct {
BaseRequest
Name string `schema:"name,omitempty"`
Alias string `schema:"alias,omitempty"`
Currency Currency `schema:"currency,omitempty"`
EnableInstallment bool `schema:"enableInstallment,omitempty"`
EnableForeignCard bool `schema:"enableForeignCard,omitempty"`
BankName string `schema:"bankName,omitempty"`
Page int64 `schema:"page,omitempty"`
Size int64 `schema:"size,omitempty"`
}
type SearchPaymentRefundsRequest ¶
type SearchPaymentRefundsRequest struct {
BaseRequest
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
Id int64 `schema:"id,omitempty"`
PaymentId int64 `schema:"paymentId,omitempty"`
BuyerMemberId int64 `schema:"buyerMemberId,omitempty"`
ConversationId string `schema:"conversationId,omitempty"`
Status RefundStatus `schema:"status,omitempty"`
Currency Currency `schema:"currency,omitempty"`
MinRefundPrice float64 `schema:"minRefundPrice,omitempty"`
MaxRefundPrice float64 `schema:"maxRefundPrice,omitempty"`
MinCreatedDate time.Time `schema:"minCreatedDate,omitempty"`
MaxCreatedDate time.Time `schema:"maxCreatedDate,omitempty"`
}
type SearchPaymentTransactionRefundsRequest ¶
type SearchPaymentTransactionRefundsRequest struct {
BaseRequest
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
Id int64 `schema:"id,omitempty"`
PaymentId int64 `schema:"paymentId,omitempty"`
PaymentTransactionId int64 `schema:"paymentTransactionId,omitempty"`
BuyerMemberId int64 `schema:"buyerMemberId,omitempty"`
ConversationId string `schema:"conversationId,omitempty"`
Status RefundStatus `schema:"status,omitempty"`
Currency Currency `schema:"currency,omitempty"`
IsAfterSettlement bool `schema:"isAfterSettlement,omitempty"`
MinRefundPrice float64 `schema:"minRefundPrice,omitempty"`
MaxRefundPrice float64 `schema:"maxRefundPrice,omitempty"`
MinCreatedDate time.Time `schema:"minCreatedDate,omitempty"`
MaxCreatedDate time.Time `schema:"maxCreatedDate,omitempty"`
}
type SearchPaymentsRequest ¶
type SearchPaymentsRequest struct {
BaseRequest
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
PaymentId int64 `schema:"paymentId,omitempty"`
PaymentTransactionId int64 `schema:"paymentTransactionId,omitempty"`
BuyerMemberId int64 `schema:"buyerMemberId,omitempty"`
SubMerchantMemberId int64 `schema:"subMerchantMemberId,omitempty"`
ConversationId string `schema:"conversationId,omitempty"`
ExternalId string `schema:"externalId,omitempty"`
OrderId string `schema:"orderId,omitempty"`
PaymentType PaymentType `schema:"paymentType,omitempty"`
PaymentProvider PaymentProvider `schema:"paymentProvider,omitempty"`
PaymentStatus PaymentStatus `schema:"paymentStatus,omitempty"`
PaymentSource PaymentSource `schema:"paymentSource,omitempty"`
PaymentChannel string `schema:"paymentChannel,omitempty"`
BinNumber string `schema:"binNumber,omitempty"`
LastFourDigits string `schema:"lastFourDigits,omitempty"`
Currency Currency `schema:"currency,omitempty"`
MinPaidPrice float64 `schema:"minPaidPrice,omitempty"`
MaxPaidPrice float64 `schema:"maxPaidPrice,omitempty"`
Installment int `schema:"installment,omitempty"`
IsThreeDS bool `schema:"isThreeDS,omitempty"`
MinCreatedDate time.Time `schema:"minCreatedDate,omitempty"`
MaxCreatedDate time.Time `schema:"maxCreatedDate,omitempty"`
}
type SearchPayoutAccountRequest ¶ added in v1.0.8
type SearchPayoutAccountRequest struct {
BaseRequest
Currency Currency `json:"currency,omitempty"`
AccountOwner AccountOwner `json:"accountOwner,omitempty"`
SubMerchantMemberId int64 `json:"subMerchantMemberId,omitempty"`
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
}
type SearchPayoutBouncedTransactionsRequest ¶
type SearchPayoutBouncedTransactionsRequest struct {
BaseRequest
StartDate time.Time `schema:"startDate,omitempty"`
EndDate time.Time `schema:"endDate,omitempty"`
}
type SearchPayoutBouncedTransactionsResponse ¶
type SearchPayoutBouncedTransactionsResponse struct {
Id *int64 `json:"id"`
Iban *string `json:"iban"`
CreatedDate *TimeResponse `json:"createdDate"`
UpdatedDate *TimeResponse `json:"updatedDate"`
PayoutId *int64 `json:"payoutId"`
PayoutAmount *float64 `json:"payoutAmount"`
ContactName *string `json:"contactName"`
ContactSurname *string `json:"contactSurname"`
LegalCompanyTitle *string `json:"legalCompanyTitle"`
RowDescription *string `json:"rowDescription"`
}
type SearchPayoutCompletedTransactionsRequest ¶
type SearchPayoutCompletedTransactionsRequest struct {
BaseRequest
SettlementFileId int64 `schema:"settlementFileId,omitempty"`
SettlementType SettlementType `schema:"settlementType,omitempty"`
StartDate time.Time `schema:"startDate,omitempty"`
EndDate time.Time `schema:"endDate,omitempty"`
Page int `schema:"page"`
Size int `schema:"size"`
}
type SearchPayoutCompletedTransactionsResponse ¶
type SearchPayoutCompletedTransactionsResponse struct {
PayoutId *int64 `json:"payoutId"`
TransactionId *int64 `json:"transactionId"`
TransactionType *string `json:"transactionType"`
PayoutAmount *float64 `json:"payoutAmount"`
PayoutDate *TimeResponse `json:"payoutDate"`
Currency *Currency `json:"currency"`
MerchantId *int64 `json:"merchantId"`
MerchantType *string `json:"merchantType"`
SettlementEarningsDestination *string `json:"settlementEarningsDestination"`
SettlementSource *string `json:"settlementSource"`
}
type SearchPayoutRowRequest ¶ added in v1.0.7
type SearchPayoutRowRequest struct {
BaseRequest
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
FileStatus FileStatus `schema:"fileStatus,omitempty"`
StartDate time.Time `schema:"startDate,omitempty"`
EndDate time.Time `schema:"endDate,omitempty"`
}
type SearchProductsRequest ¶
type SearchProductsRequest struct {
BaseRequest
Id int64 `schema:"id,omitempty"`
Name string `schema:"name,omitempty"`
OrderId string `schema:"orderId,omitempty"`
ConversationId string `schema:"conversationId,omitempty"`
ExternalId string `schema:"externalId,omitempty"`
MinPrice float64 `schema:"minPrice,omitempty"`
MaxPrice float64 `schema:"maxPrice,omitempty"`
Currency Currency `schema:"currency,omitempty"`
Channel string `schema:"channel,omitempty"`
MinExpiresAt time.Time `schema:"minExpiresAt,omitempty"`
MaxExpiresAt time.Time `schema:"maxExpiresAt,omitempty"`
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
}
type SearchStoredCardsRequest ¶
type SearchStoredCardsRequest struct {
BaseRequest
CardAlias string `schema:"cardAlias,omitempty"`
CardBrand string `schema:"cardBrand,omitempty"`
CardType CardType `schema:"cardType,omitempty"`
CardUserKey string `schema:"cardUserKey,omitempty"`
CardToken string `schema:"cardToken,omitempty"`
CardBankName string `schema:"cardBankName,omitempty"`
CardAssociation CardAssociation `schema:"cardAssociation,omitempty"`
MinCreatedDate time.Time `schema:"minCreatedDate,omitempty"`
MaxCreatedDate time.Time `schema:"maxCreatedDate,omitempty"`
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
}
type SearchWalletTransactionsRequest ¶
type SearchWalletTransactionsRequest struct {
BaseRequest
WalletTransactionTypes []WalletTransactionType `schema:"walletTransactionTypes,omitempty"`
MinAmount float64 `schema:"minAmount,omitempty"`
MaxAmount float64 `schema:"maxAmount,omitempty"`
MinCreatedDate time.Time `schema:"minCreatedDate,omitempty"`
MaxCreatedDate time.Time `schema:"maxCreatedDate,omitempty"`
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
}
type SearchWithdrawsRequest ¶
type SearchWithdrawsRequest struct {
BaseRequest
MemberId int64 `schema:"memberId,omitempty"`
PayoutStatus string `schema:"payoutStatus,omitempty"`
Currency Currency `schema:"currency,omitempty"`
MinWithdrawPrice float64 `schema:"minWithdrawPrice,omitempty"`
MaxWithdrawPrice float64 `schema:"maxWithdrawPrice,omitempty"`
MinCreatedDate time.Time `schema:"minCreatedDate,omitempty"`
MaxCreatedDate time.Time `schema:"maxCreatedDate,omitempty"`
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
}
type Settlement ¶
type Settlement struct {
Client *Client
}
func (*Settlement) CreateInstantWalletSettlement ¶
func (api *Settlement) CreateInstantWalletSettlement(ctx context.Context, request CreateInstantWalletSettlementRequest) (*CreateInstantWalletSettlementResponse, error)
func (*Settlement) CreatePayoutAccount ¶ added in v1.0.8
func (api *Settlement) CreatePayoutAccount(ctx context.Context, request CreatePayoutAccountRequest) (*PayoutAccountResponse, error)
func (*Settlement) DeletePayoutAccount ¶ added in v1.0.8
func (api *Settlement) DeletePayoutAccount(ctx context.Context, request DeletePayoutAccountRequest) error
func (*Settlement) SearchPayoutAccounts ¶ added in v1.0.8
func (api *Settlement) SearchPayoutAccounts(ctx context.Context, request SearchPayoutAccountRequest) (*DataResponse[PayoutAccountResponse], error)
func (*Settlement) UpdatePayoutAccount ¶ added in v1.0.8
func (api *Settlement) UpdatePayoutAccount(ctx context.Context, id int64, request UpdatePayoutAccountRequest) error
type SettlementEarningsDestination ¶
type SettlementEarningsDestination string
const ( SettlementEarningsDestination_IBAN SettlementEarningsDestination = "IBAN" SettlementEarningsDestination_WALLET SettlementEarningsDestination = "WALLET" SettlementEarningsDestination_CROSS_BORDER SettlementEarningsDestination = "CROSS_BORDER" SettlementEarningsDestination_NONE SettlementEarningsDestination = "NONE" )
settlementEarningsDestination type declaration
type SettlementReporting ¶
type SettlementReporting struct {
Client *Client
}
func (*SettlementReporting) RetrievePayoutDetails ¶
func (api *SettlementReporting) RetrievePayoutDetails(ctx context.Context, payoutDetailId int64) (*PayoutDetailResponse, error)
func (*SettlementReporting) SearchPayoutBouncedTransactions ¶
func (api *SettlementReporting) SearchPayoutBouncedTransactions(ctx context.Context, request SearchPayoutBouncedTransactionsRequest) (*DataResponse[SearchPayoutBouncedTransactionsResponse], error)
func (*SettlementReporting) SearchPayoutCompletedTransactions ¶
func (api *SettlementReporting) SearchPayoutCompletedTransactions(ctx context.Context, request SearchPayoutCompletedTransactionsRequest) (*DataResponse[SearchPayoutCompletedTransactionsResponse], error)
func (*SettlementReporting) SearchPayoutRows ¶ added in v1.0.7
func (api *SettlementReporting) SearchPayoutRows(ctx context.Context, request SearchPayoutRowRequest) (*DataResponse[PayoutRowResponse], error)
type SettlementType ¶
type SettlementType string
const ( SettlementType_SETTLEMENT SettlementType = "SETTLEMENT" SettlementType_BOUNCED_SETTLEMENT SettlementType = "BOUNCED_SETTLEMENT" SettlementType_WITHDRAW SettlementType = "WITHDRAW" )
settlement type declaration
type StoreCardRequest ¶
type StoreCardRequest struct {
BaseRequest
CardHolderName string `json:"cardHolderName,omitempty"`
CardNumber string `json:"cardNumber,omitempty"`
ExpireYear string `json:"expireYear,omitempty"`
ExpireMonth string `json:"expireMonth,omitempty"`
CardAlias string `json:"cardAlias,omitempty"`
CardUserKey string `json:"cardUserKey,omitempty"`
SecureFieldsToken string `json:"secureFieldsToken,omitempty"`
EncryptedCard *EncryptedCard `json:"encryptedCard,omitempty"`
}
type StoredCardResponse ¶
type StoredCardResponse struct {
BinNumber *string `json:"binNumber"`
LastFourDigits *string `json:"lastFourDigits"`
CardUserKey *string `json:"cardUserKey"`
CardToken *string `json:"cardToken"`
CardHolderName *string `json:"cardHolderName"`
CardAlias *string `json:"cardAlias"`
CardType *CardType `json:"cardType"`
CardAssociation *CardAssociation `json:"cardAssociation"`
CardExpiryStatus *CardExpiryStatus `json:"cardExpiryStatus"`
CardBrand *string `json:"cardBrand"`
CardBankName *string `json:"cardBankName"`
CardBankId *int64 `json:"cardBankId"`
ExpireYear *string `json:"expireYear"`
ExpireMonth *string `json:"expireMonth"`
IsCommercial *bool `json:"isCommercial"`
CreatedAt *TimeResponse `json:"createdAt"`
}
type TimeResponse ¶
func (*TimeResponse) UnmarshalJSON ¶
func (v *TimeResponse) UnmarshalJSON(b []byte) error
type TokenizedCard ¶ added in v1.0.14
type TokenizedCard struct {
TokenizedCardType TokenizedCardType `json:"type,omitempty"`
Data map[string]interface{} `json:"data,omitempty"`
}
type TokenizedCardType ¶ added in v1.0.14
type TokenizedCardType string
const ( TokenizedCardType_APPLE_PAY TokenizedCardType = "APPLE_PAY" TokenizedCardType_BKM_EXPRESS TokenizedCardType = "BKM_EXPRESS" )
tokenized card type declaration
type TransactionPayoutStatus ¶
type TransactionPayoutStatus string
const ( TransactionPayoutStatus_CANCELLED TransactionPayoutStatus = "CANCELLED" TransactionPayoutStatus_NO_PAYOUT TransactionPayoutStatus = "NO_PAYOUT" TransactionPayoutStatus_WAITING_FOR_PAYOUT TransactionPayoutStatus = "WAITING_FOR_PAYOUT" TransactionPayoutStatus_PAYOUT_STARTED TransactionPayoutStatus = "PAYOUT_STARTED" TransactionPayoutStatus_PAYOUT_COMPLETED TransactionPayoutStatus = "PAYOUT_COMPLETED" )
transaction payout status declaration
type TransactionStatus ¶
type TransactionStatus string
const ( TransactionStatus_WAITING_FOR_APPROVAL TransactionStatus = "WAITING_FOR_APPROVAL" TransactionStatus_APPROVED TransactionStatus = "APPROVED" TransactionStatus_PAYOUT_STARTED TransactionStatus = "PAYOUT_STARTED" )
transaction status declaration
type UpdateFraudCheckStatusRequest ¶ added in v1.0.32
type UpdateFraudCheckStatusRequest struct {
BaseRequest
Id int64 `json:"-"`
CheckStatus FraudCheckStatus `json:"checkStatus,omitempty"`
}
type UpdateMemberRequest ¶
type UpdateMemberRequest struct {
BaseRequest
Name string `json:"name,omitempty"`
Address string `json:"address,omitempty"`
Email string `json:"email,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
ContactName string `json:"contactName,omitempty"`
ContactSurname string `json:"contactSurname,omitempty"`
MemberType MemberType `json:"memberType,omitempty"`
LegalCompanyTitle string `json:"legalCompanyTitle,omitempty"`
TaxOffice string `json:"taxOffice,omitempty"`
TaxNumber string `json:"taxNumber,omitempty"`
Iban string `json:"iban,omitempty"`
SettlementEarningsDestination SettlementEarningsDestination `json:"settlementEarningsDestination,omitempty"`
IsBuyer bool `json:"isBuyer,omitempty"`
IsSubMerchant bool `json:"isSubMerchant,omitempty"`
SubMerchantMaximumAllowedNegativeBalance float64 `json:"subMerchantMaximumAllowedNegativeBalance,omitempty"`
SettlementDelayCount int64 `json:"settlementDelayCount,omitempty"`
}
type UpdateMemberWalletRequest ¶ added in v1.0.7
type UpdateMemberWalletRequest struct {
BaseRequest
NegativeAmountLimit float64 `json:"negativeAmountLimit"`
}
type UpdateMerchantPosStatusRequest ¶ added in v1.0.32
type UpdateMerchantPosStatusRequest struct {
BaseRequest
MerchantPosId int64
PosStatus PosStatus
}
type UpdatePaymentTransactionRequest ¶
type UpdatePaymentTransactionRequest struct {
BaseRequest
SubMerchantMemberId int64 `json:"subMerchantMemberId,omitempty"`
SubMerchantMemberPrice float64 `json:"subMerchantMemberPrice,omitempty"`
BlockageResolvedDate *time.Time `json:"blockageResolvedDate,omitempty"`
}
type UpdatePayoutAccountRequest ¶ added in v1.0.8
type UpdatePayoutAccountRequest struct {
BaseRequest
AccountType PayoutAccountType `json:"type,omitempty"`
ExternalAccountId string `json:"externalAccountId,omitempty"`
}
type UpdateProductRequest ¶
type UpdateProductRequest struct {
BaseRequest
Name string `json:"name"`
Channel string `json:"channel,omitempty"`
OrderId string `json:"orderId,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
ExternalId string `json:"externalId,omitempty"`
Stock int `json:"stock,omitempty"`
Status Status `json:"status"`
Price float64 `json:"price"`
Currency Currency `json:"currency"`
Description string `json:"description,omitempty"`
MultiPayment bool `json:"multiPayment,omitempty"`
ForceThreeDS bool `json:"forceThreeDS,omitempty"`
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
EnabledInstallments []int `json:"enabledInstallments"`
BasketIdentifier string `json:"basketIdentifier,omitempty"`
}
type UpdateStoredCardRequest ¶
type VerifyBnplPaymentRequest ¶ added in v1.0.32
type VerifyBnplPaymentRequest struct {
BaseRequest
PaymentId int64
}
type VerifyCard ¶ added in v1.0.32
type VerifyCard struct {
CardHolderName string `json:"cardHolderName,omitempty"`
CardNumber string `json:"cardNumber,omitempty"`
ExpireYear string `json:"expireYear,omitempty"`
ExpireMonth string `json:"expireMonth,omitempty"`
Cvc string `json:"cvc,omitempty"`
CardAlias string `json:"cardAlias,omitempty"`
CardUserKey string `json:"cardUserKey,omitempty"`
}
type VerifyCardRequest ¶ added in v1.0.32
type VerifyCardRequest struct {
BaseRequest
Card *VerifyCard `json:"card,omitempty"`
PaymentAuthenticationType CardVerificationAuthType `json:"paymentAuthenticationType,omitempty"`
VerificationPrice float64 `json:"verificationPrice,omitempty"`
Currency Currency `json:"currency,omitempty"`
ClientIp string `json:"clientIp,omitempty"`
ClientPort int `json:"clientPort,omitempty"`
ConversationId string `json:"conversationId,omitempty"`
CallbackUrl string `json:"callbackUrl,omitempty"`
}
type VerifyCardResponse ¶ added in v1.0.32
type VerifyCardResponse struct {
CardUserKey *string `json:"cardUserKey"`
CardToken *string `json:"cardToken"`
HtmlContent *string `json:"htmlContent"`
RedirectUrl *string `json:"redirectUrl"`
MerchantCallbackUrl *string `json:"merchantCallbackUrl"`
RefundStatus *RefundStatus `json:"refundStatus"`
CardVerifyStatus *CardVerifyStatus `json:"cardVerifyStatus"`
}
type WaitingPaymentRefundResponse ¶ added in v1.0.32
type WaitingPaymentRefundResponse struct {
Status *RefundStatus `json:"status"`
}
type Wallet ¶
type Wallet struct {
Client *Client
}
func (*Wallet) CancelWithdraw ¶
func (api *Wallet) CancelWithdraw(ctx context.Context, request CancelWithdrawRequest) (interface{}, error)
func (*Wallet) CreateMemberWallet ¶ added in v1.0.4
func (api *Wallet) CreateMemberWallet(ctx context.Context, memberId int64, request CreateMemberWalletRequest) (*MemberWalletResponse, error)
func (*Wallet) CreateWithdraw ¶
func (api *Wallet) CreateWithdraw(ctx context.Context, request CreateWithdrawRequest) (*WithdrawResponse, error)
func (*Wallet) ReceiveRemittance ¶
func (api *Wallet) ReceiveRemittance(ctx context.Context, request RemittanceRequest) (*RemittanceResponse, error)
func (*Wallet) RefundWalletTransaction ¶ added in v1.0.5
func (api *Wallet) RefundWalletTransaction(ctx context.Context, walletTransactionId int64, request RefundWalletTransactionRequest) (*RefundWalletTransactionResponse, error)
func (*Wallet) ResetMerchantMemberWalletBalance ¶
func (api *Wallet) ResetMerchantMemberWalletBalance(ctx context.Context, request ResetMerchantMemberWalletBalanceRequest) (*MemberWalletResponse, error)
func (*Wallet) RetrieveMemberWallet ¶
func (*Wallet) RetrieveMerchantMemberWallet ¶
func (api *Wallet) RetrieveMerchantMemberWallet(ctx context.Context) (*MemberWalletResponse, error)
func (*Wallet) RetrieveRefundWalletTransactions ¶ added in v1.0.5
func (api *Wallet) RetrieveRefundWalletTransactions(ctx context.Context, walletTransactionId int64) (*DataResponse[RefundWalletTransactionResponse], error)
func (*Wallet) RetrieveRefundableAmountOfWalletTransaction ¶
func (*Wallet) RetrieveRemittance ¶
func (*Wallet) RetrieveWithdraw ¶
func (*Wallet) SearchWalletTransactions ¶
func (api *Wallet) SearchWalletTransactions(ctx context.Context, walletId int64, request SearchWalletTransactionsRequest) (*DataResponse[SearchWalletTransactionsResponse], error)
func (*Wallet) SearchWithdraws ¶
func (api *Wallet) SearchWithdraws(ctx context.Context, request SearchWithdrawsRequest) (*DataResponse[WithdrawResponse], error)
func (*Wallet) SendRemittance ¶
func (api *Wallet) SendRemittance(ctx context.Context, request RemittanceRequest) (*RemittanceResponse, error)
func (*Wallet) UpdateMemberWallet ¶ added in v1.0.7
func (api *Wallet) UpdateMemberWallet(ctx context.Context, memberId int64, walletId int64, request UpdateMemberWalletRequest) (*MemberWalletResponse, error)
type WalletTransaction ¶
type WalletTransaction struct {
Id *int64 `json:"id"`
WalletTransactionType *WalletTransactionType `json:"walletTransactionType"`
Amount *float64 `json:"amount"`
WalletId *int64 `json:"walletId"`
}
type WalletTransactionRefundTransactionType ¶ added in v1.0.5
type WalletTransactionRefundTransactionType string
const ( WalletTransactionRefundCardTransactionType_PAYMENT WalletTransactionRefundTransactionType = "PAYMENT" WalletTransactionRefundCardTransactionType_PAYMENT_TX WalletTransactionRefundTransactionType = "PAYMENT_TX" WalletTransactionRefundCardTransactionType_WALLET_TX WalletTransactionRefundTransactionType = "WALLET_TX" )
wallet transaction refund type declaration
type WalletTransactionType ¶
type WalletTransactionType string
const ( WalletTransactionType_PAYMENT_REDEEM WalletTransactionType = "PAYMENT_REDEEM" WalletTransactionType_REFUND_DEPOSIT WalletTransactionType = "REFUND_DEPOSIT" WalletTransactionType_REFUND_TX_DEPOSIT WalletTransactionType = "REFUND_TX_DEPOSIT" WalletTransactionType_WITHDRAW WalletTransactionType = "WITHDRAW" WalletTransactionType_CANCEL_REFUND_WALLET_TO_CARD WalletTransactionType = "CANCEL_REFUND_WALLET_TO_CARD" WalletTransactionType_REFUND_WALLET_TX_TO_CARD WalletTransactionType = "REFUND_WALLET_TX_TO_CARD" WalletTransactionType_REFUND_WALLET_TX_FUND_TRANSFER WalletTransactionType = "REFUND_WALLET_TX_FUND_TRANSFER" WalletTransactionType_CANCEL_REFUND_TO_WALLET WalletTransactionType = "CANCEL_REFUND_TO_WALLET" WalletTransactionType_REFUND_TX_TO_WALLET WalletTransactionType = "REFUND_TX_TO_WALLET" WalletTransactionType_MANUAL_REFUND_TX_TO_WALLET WalletTransactionType = "MANUAL_REFUND_TX_TO_WALLET" WalletTransactionType_SETTLEMENT_EARNINGS WalletTransactionType = "SETTLEMENT_EARNINGS" WalletTransactionType_DEPOSIT_FROM_CARD WalletTransactionType = "DEPOSIT_FROM_CARD" WalletTransactionType_DEPOSIT_FROM_APM WalletTransactionType = "DEPOSIT_FROM_APM" WalletTransactionType_DEPOSIT_FROM_FUND_TRANSFER WalletTransactionType = "DEPOSIT_FROM_FUND_TRANSFER" WalletTransactionType_REMITTANCE WalletTransactionType = "REMITTANCE" WalletTransactionType_LOYALTY WalletTransactionType = "LOYALTY" WalletTransactionType_WITHDRAW_CANCEL WalletTransactionType = "WITHDRAW_CANCEL" WalletTransactionType_MERCHANT_BALANCE_RESET WalletTransactionType = "MERCHANT_BALANCE_RESET" )
wallet transaction type declaration
type WebhookData ¶ added in v1.0.1
type WebhookData struct {
EventType WebhookEventType
EventTime time.Time
EventTimestamp int64
Status WebhookStatus
PayloadId string
}
type WebhookEventType ¶ added in v1.0.1
type WebhookEventType string
const ( WebhookEventType_API_AUTH WebhookEventType = "API_AUTH" WebhookEventType_API_VERIFY_AND_AUTH WebhookEventType = "API_VERIFY_AND_AUTH" WebhookEventType_CHECKOUTFORM_AUTH WebhookEventType = "CHECKOUTFORM_AUTH" WebhookEventType_THREEDS_VERIFY WebhookEventType = "THREEDS_VERIFY" WebhookEventType_REFUND WebhookEventType = "REFUND" WebhookEventType_REFUND_TX WebhookEventType = "REFUND_TX" WebhookEventType_PAYOUT_COMPLETED WebhookEventType = "PAYOUT_COMPLETED" WebhookEventType_AUTOPILOT WebhookEventType = "AUTOPILOT" WebhookEventType_WALLET_CREATED WebhookEventType = "WALLET_CREATED" WebhookEventType_WALLET_TX_CREATED WebhookEventType = "WALLET_TX_CREATED" WebhookEventType_BNPL_NOTIFICATION WebhookEventType = "BNPL_NOTIFICATION" WebhookEventType_BANK_ACCOUNT_TRACKING_RECORD WebhookEventType = "BANK_ACCOUNT_TRACKING_RECORD" WebhookEventType_BKM_EXPRESS_PAYMENT_NOTIFICATION WebhookEventType = "BKM_EXPRESS_PAYMENT_NOTIFICATION" WebhookEventType_MULTI_PAYMENT_COMPLETED WebhookEventType = "MULTI_PAYMENT_COMPLETED" WebhookEventType_MULTI_PAYMENT_EXPIRED WebhookEventType = "MULTI_PAYMENT_EXPIRED" WebhookEventType_REPORT_CREATED WebhookEventType = "REPORT_CREATED" )
type WebhookStatus ¶ added in v1.0.1
type WebhookStatus string
const ( WebhookStatus_SUCCESS WebhookStatus = "SUCCESS" WebhookStatus_FAILURE WebhookStatus = "FAILURE" )
type WithdrawResponse ¶
type WithdrawResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
Status *Status `json:"status"`
MemberId *int64 `json:"memberId"`
PayoutId *int64 `json:"payoutId"`
Price *float64 `json:"price"`
Description *string `json:"description"`
Currency *Currency `json:"currency"`
PayoutStatus *TransactionPayoutStatus `json:"payoutStatus"`
}
Source Files
¶
- bank_account_tracking.go
- bkm_express.go
- client_version.go
- craftgate.go
- file_reporting.go
- fraud.go
- hook.go
- installment.go
- juzdan.go
- masterpass.go
- meal_voucher_card_tokenization.go
- merchant.go
- merchant_apm.go
- model.go
- onboarding.go
- pay_by_link.go
- payment.go
- payment_reporting.go
- retrieve_checkout_card_verify_model.go
- settlement.go
- settlement_reporting.go
- wallet.go