Documentation
¶
Index ¶
- type AmazonPayment
- type BankAccount
- type BillingAddress
- type Card
- type CreateBankAccountBankAccountParams
- type CreateBankAccountRequestParams
- type CreateCardCardParams
- type CreateCardRequestParams
- type CreateUsingPaymentIntentPaymentIntentParams
- type CreateUsingPaymentIntentRequestParams
- type CreateUsingPermanentTokenBillingAddressParams
- type CreateUsingPermanentTokenCardParams
- type CreateUsingPermanentTokenRequestParams
- type CreateUsingTempTokenRequestParams
- type CreateUsingTokenRequestParams
- type CreateVoucherPaymentSourceRequestParams
- type CreateVoucherPaymentSourceVoucherPaymentSourceParams
- type CustVoucherSource
- type ExportPaymentSourceRequestParams
- type KlarnaPayNow
- type ListRequestParams
- type Mandate
- type PaymentSource
- type Paypal
- type SwitchGatewayAccountRequestParams
- type UpdateBankAccountBankAccountParams
- type UpdateBankAccountRequestParams
- type UpdateCardCardParams
- type UpdateCardRequestParams
- type Upi
- type Venmo
- type VerifyBankAccountRequestParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmazonPayment ¶
type BankAccount ¶
type BankAccount struct {
Last4 string `json:"last4"`
NameOnAccount string `json:"name_on_account"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
DirectDebitScheme enum.DirectDebitScheme `json:"direct_debit_scheme"`
BankName string `json:"bank_name"`
MandateId string `json:"mandate_id"`
AccountType enum.AccountType `json:"account_type"`
EcheckType enum.EcheckType `json:"echeck_type"`
AccountHolderType enum.AccountHolderType `json:"account_holder_type"`
Email string `json:"email"`
Object string `json:"object"`
}
type BillingAddress ¶ added in v3.6.0
type BillingAddress struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Email string `json:"email"`
Company string `json:"company"`
Phone string `json:"phone"`
Line1 string `json:"line1"`
Line2 string `json:"line2"`
Line3 string `json:"line3"`
City string `json:"city"`
StateCode string `json:"state_code"`
State string `json:"state"`
Country string `json:"country"`
Zip string `json:"zip"`
ValidationStatus enum.ValidationStatus `json:"validation_status"`
Object string `json:"object"`
}
type Card ¶
type Card struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Iin string `json:"iin"`
Last4 string `json:"last4"`
Brand paymentSourceEnum.CardBrand `json:"brand"`
FundingType paymentSourceEnum.CardFundingType `json:"funding_type"`
ExpiryMonth int32 `json:"expiry_month"`
ExpiryYear int32 `json:"expiry_year"`
BillingAddr1 string `json:"billing_addr1"`
BillingAddr2 string `json:"billing_addr2"`
BillingCity string `json:"billing_city"`
BillingStateCode string `json:"billing_state_code"`
BillingState string `json:"billing_state"`
BillingCountry string `json:"billing_country"`
BillingZip string `json:"billing_zip"`
MaskedNumber string `json:"masked_number"`
Object string `json:"object"`
}
type CreateBankAccountBankAccountParams ¶
type CreateBankAccountBankAccountParams struct {
GatewayAccountId string `json:"gateway_account_id,omitempty"`
Iban string `json:"iban,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Company string `json:"company,omitempty"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
BankName string `json:"bank_name,omitempty"`
AccountNumber string `json:"account_number,omitempty"`
RoutingNumber string `json:"routing_number,omitempty"`
BankCode string `json:"bank_code,omitempty"`
AccountType enum.AccountType `json:"account_type,omitempty"`
AccountHolderType enum.AccountHolderType `json:"account_holder_type,omitempty"`
EcheckType enum.EcheckType `json:"echeck_type,omitempty"`
SwedishIdentityNumber string `json:"swedish_identity_number,omitempty"`
BillingAddress map[string]interface{} `json:"billing_address,omitempty"`
}
type CreateBankAccountRequestParams ¶
type CreateBankAccountRequestParams struct {
CustomerId string `json:"customer_id"`
BankAccount *CreateBankAccountBankAccountParams `json:"bank_account,omitempty"`
IssuingCountry string `json:"issuing_country,omitempty"`
ReplacePrimaryPaymentSource *bool `json:"replace_primary_payment_source,omitempty"`
}
type CreateCardCardParams ¶
type CreateCardCardParams struct {
GatewayAccountId string `json:"gateway_account_id,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Number string `json:"number"`
ExpiryMonth *int32 `json:"expiry_month"`
ExpiryYear *int32 `json:"expiry_year"`
Cvv string `json:"cvv,omitempty"`
PreferredScheme cardEnum.PreferredScheme `json:"preferred_scheme,omitempty"`
BillingAddr1 string `json:"billing_addr1,omitempty"`
BillingAddr2 string `json:"billing_addr2,omitempty"`
BillingCity string `json:"billing_city,omitempty"`
BillingStateCode string `json:"billing_state_code,omitempty"`
BillingState string `json:"billing_state,omitempty"`
BillingZip string `json:"billing_zip,omitempty"`
BillingCountry string `json:"billing_country,omitempty"`
AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
}
type CreateCardRequestParams ¶
type CreateCardRequestParams struct {
CustomerId string `json:"customer_id"`
Card *CreateCardCardParams `json:"card,omitempty"`
ReplacePrimaryPaymentSource *bool `json:"replace_primary_payment_source,omitempty"`
}
type CreateUsingPaymentIntentPaymentIntentParams ¶
type CreateUsingPaymentIntentPaymentIntentParams struct {
Id string `json:"id,omitempty"`
GatewayAccountId string `json:"gateway_account_id,omitempty"`
GwToken string `json:"gw_token,omitempty"`
PaymentMethodType paymentIntentEnum.PaymentMethodType `json:"payment_method_type,omitempty"`
ReferenceId string `json:"reference_id,omitempty"`
GwPaymentMethodId string `json:"gw_payment_method_id,omitempty"`
AdditionalInfo map[string]interface{} `json:"additional_info,omitempty"`
AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
}
type CreateUsingPaymentIntentRequestParams ¶
type CreateUsingPaymentIntentRequestParams struct {
CustomerId string `json:"customer_id"`
PaymentIntent *CreateUsingPaymentIntentPaymentIntentParams `json:"payment_intent,omitempty"`
ReplacePrimaryPaymentSource *bool `json:"replace_primary_payment_source,omitempty"`
}
type CreateUsingPermanentTokenBillingAddressParams ¶ added in v3.13.0
type CreateUsingPermanentTokenBillingAddressParams struct {
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Email string `json:"email,omitempty"`
Line1 string `json:"line1,omitempty"`
Line2 string `json:"line2,omitempty"`
Line3 string `json:"line3,omitempty"`
City string `json:"city,omitempty"`
StateCode string `json:"state_code,omitempty"`
State string `json:"state,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
}
type CreateUsingPermanentTokenCardParams ¶ added in v3.13.0
type CreateUsingPermanentTokenCardParams struct {
Last4 string `json:"last4,omitempty"`
Iin string `json:"iin,omitempty"`
ExpiryMonth *int32 `json:"expiry_month,omitempty"`
ExpiryYear *int32 `json:"expiry_year,omitempty"`
Brand paymentSourceEnum.CardBrand `json:"brand,omitempty"`
FundingType cardEnum.FundingType `json:"funding_type,omitempty"`
}
type CreateUsingPermanentTokenRequestParams ¶
type CreateUsingPermanentTokenRequestParams struct {
CustomerId string `json:"customer_id"`
Type enum.Type `json:"type"`
GatewayAccountId string `json:"gateway_account_id,omitempty"`
ReferenceId string `json:"reference_id,omitempty"`
IssuingCountry string `json:"issuing_country,omitempty"`
ReplacePrimaryPaymentSource *bool `json:"replace_primary_payment_source,omitempty"`
PaymentMethodToken string `json:"payment_method_token,omitempty"`
CustomerProfileToken string `json:"customer_profile_token,omitempty"`
NetworkTransactionId string `json:"network_transaction_id,omitempty"`
MandateId string `json:"mandate_id,omitempty"`
SkipRetrieval *bool `json:"skip_retrieval,omitempty"`
Card *CreateUsingPermanentTokenCardParams `json:"card,omitempty"`
BillingAddress *CreateUsingPermanentTokenBillingAddressParams `json:"billing_address,omitempty"`
AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
}
type CreateUsingTempTokenRequestParams ¶
type CreateUsingTempTokenRequestParams struct {
CustomerId string `json:"customer_id"`
GatewayAccountId string `json:"gateway_account_id,omitempty"`
Type enum.Type `json:"type"`
TmpToken string `json:"tmp_token"`
IssuingCountry string `json:"issuing_country,omitempty"`
ReplacePrimaryPaymentSource *bool `json:"replace_primary_payment_source,omitempty"`
AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
}
type CreateVoucherPaymentSourceRequestParams ¶ added in v3.6.0
type CreateVoucherPaymentSourceRequestParams struct {
CustomerId string `json:"customer_id"`
VoucherPaymentSource *CreateVoucherPaymentSourceVoucherPaymentSourceParams `json:"voucher_payment_source,omitempty"`
}
type CreateVoucherPaymentSourceVoucherPaymentSourceParams ¶ added in v3.6.0
type CreateVoucherPaymentSourceVoucherPaymentSourceParams struct {
VoucherType enum.VoucherType `json:"voucher_type"`
GatewayAccountId string `json:"gateway_account_id,omitempty"`
TaxId string `json:"tax_id,omitempty"`
BillingAddress map[string]interface{} `json:"billing_address,omitempty"`
}
type CustVoucherSource ¶ added in v3.6.0
type ExportPaymentSourceRequestParams ¶
type ExportPaymentSourceRequestParams struct {
GatewayAccountId string `json:"gateway_account_id"`
}
type KlarnaPayNow ¶ added in v3.17.0
type ListRequestParams ¶
type ListRequestParams struct {
Limit *int32 `json:"limit,omitempty"`
Offset string `json:"offset,omitempty"`
SubscriptionId string `json:"subscription_id,omitempty"`
IncludeDeleted *bool `json:"include_deleted,omitempty"`
CustomerId *filter.StringFilter `json:"customer_id,omitempty"`
Type *filter.EnumFilter `json:"type,omitempty"`
Status *filter.EnumFilter `json:"status,omitempty"`
UpdatedAt *filter.TimestampFilter `json:"updated_at,omitempty"`
CreatedAt *filter.TimestampFilter `json:"created_at,omitempty"`
SortBy *filter.SortFilter `json:"sort_by,omitempty"`
}
type PaymentSource ¶
type PaymentSource struct {
Id string `json:"id"`
ResourceVersion int64 `json:"resource_version"`
UpdatedAt int64 `json:"updated_at"`
CreatedAt int64 `json:"created_at"`
CustomerId string `json:"customer_id"`
Type enum.Type `json:"type"`
ReferenceId string `json:"reference_id"`
Status paymentSourceEnum.Status `json:"status"`
Gateway enum.Gateway `json:"gateway"`
GatewayAccountId string `json:"gateway_account_id"`
IpAddress string `json:"ip_address"`
IssuingCountry string `json:"issuing_country"`
Card *Card `json:"card"`
BankAccount *BankAccount `json:"bank_account"`
Boleto *CustVoucherSource `json:"boleto"`
BillingAddress *BillingAddress `json:"billing_address"`
AmazonPayment *AmazonPayment `json:"amazon_payment"`
Upi *Upi `json:"upi"`
Paypal *Paypal `json:"paypal"`
Venmo *Venmo `json:"venmo"`
KlarnaPayNow *KlarnaPayNow `json:"klarna_pay_now"`
Mandates []*Mandate `json:"mandates"`
Deleted bool `json:"deleted"`
BusinessEntityId string `json:"business_entity_id"`
Object string `json:"object"`
}
type SwitchGatewayAccountRequestParams ¶
type SwitchGatewayAccountRequestParams struct {
GatewayAccountId string `json:"gateway_account_id"`
}
type UpdateBankAccountRequestParams ¶
type UpdateBankAccountRequestParams struct {
BankAccount *UpdateBankAccountBankAccountParams `json:"bank_account,omitempty"`
}
type UpdateCardCardParams ¶
type UpdateCardCardParams struct {
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
ExpiryMonth *int32 `json:"expiry_month,omitempty"`
ExpiryYear *int32 `json:"expiry_year,omitempty"`
BillingAddr1 string `json:"billing_addr1,omitempty"`
BillingAddr2 string `json:"billing_addr2,omitempty"`
BillingCity string `json:"billing_city,omitempty"`
BillingZip string `json:"billing_zip,omitempty"`
BillingStateCode string `json:"billing_state_code,omitempty"`
BillingState string `json:"billing_state,omitempty"`
BillingCountry string `json:"billing_country,omitempty"`
AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
}
type UpdateCardRequestParams ¶
type UpdateCardRequestParams struct {
Card *UpdateCardCardParams `json:"card,omitempty"`
GatewayMetaData map[string]interface{} `json:"gateway_meta_data,omitempty"`
ReferenceTransaction string `json:"reference_transaction,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.