Documentation ¶
Index ¶
- func BuildDefaultClient() *http.Client
- func BuildPath(params ...string) string
- func BuildQueryPath(path string, queryValues interface{}) (string, error)
- func EscapeQuotes(s string) string
- func Marshal(request interface{}) (*bytes.Buffer, error)
- func Unmarshal(metadata *HttpMetadata, responseMapping interface{}) error
- type AccountHolder
- type AccountHolderIdentification
- type AccountHolderIdentificationType
- type AccountHolderType
- type AccountType
- type Address
- type AlternativeResponse
- type AmountAllocations
- type BankDetails
- type CardCategory
- type CardType
- type ChallengeIndicator
- type Commission
- type Country
- type Currency
- type CustomerRequest
- type CustomerResponse
- type Exemption
- type File
- type FileResponse
- type FileUpload
- type FileUploadRequest
- type Headers
- type HttpMetadata
- type IdResponse
- type InstrumentCustomerResponse
- type InstrumentDetails
- type Link
- type MarketplaceDatadeprecated
- type MetadataResponse
- type Phone
- type Purpose
- type ThreeDsFlowType
- type ThreeDsMethodCompletion
- type TypeMapping
- type UpdateCustomerRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDefaultClient ¶ added in v1.0.0
func BuildQueryPath ¶ added in v1.0.0
func EscapeQuotes ¶ added in v1.0.0
func Unmarshal ¶ added in v1.0.0
func Unmarshal(metadata *HttpMetadata, responseMapping interface{}) error
Types ¶
type AccountHolder ¶ added in v1.0.0
type AccountHolder struct { Type AccountHolderType `json:"type,omitempty"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` CompanyName string `json:"company_name,omitempty"` TaxId string `json:"tax_id,omitempty"` DateOfBirth string `json:"date_of_birth,omitempty"` CountryOfBirth string `json:"country_of_birth,omitempty"` ResidentialStatus string `json:"residential_status,omitempty"` BillingAddress *Address `json:"billing_address,omitempty"` Phone *Phone `json:"phone,omitempty"` Identification *AccountHolderIdentification `json:"identification,omitempty"` Email string `json:"email,omitempty"` Gender string `json:"gender,omitempty"` }
type AccountHolderIdentification ¶ added in v1.0.0
type AccountHolderIdentification struct { Type AccountHolderIdentificationType `json:"type,omitempty"` Number string `json:"number,omitempty"` IssuingCountry Country `json:"issuing_country,omitempty"` DateOfExpiry AccountHolderType `json:"date_of_expiry,omitempty"` }
type AccountHolderIdentificationType ¶ added in v1.0.0
type AccountHolderIdentificationType string
const ( Passport AccountHolderIdentificationType = "passport" DrivingLicence AccountHolderIdentificationType = "driving_licence" NationalId AccountHolderIdentificationType = "national_id" CompanyRegistration AccountHolderIdentificationType = "company_registration" TaxId AccountHolderIdentificationType = "tax_id" )
type AccountHolderType ¶ added in v1.0.0
type AccountHolderType string
const ( Individual AccountHolderType = "individual" Corporate AccountHolderType = "corporate" Government AccountHolderType = "government" )
type AccountType ¶ added in v1.0.0
type AccountType string
const ( Savings AccountType = "savings" Current AccountType = "current" Cash AccountType = "cash" )
type AlternativeResponse ¶ added in v1.0.0
type AlternativeResponse map[string]interface{}
type AmountAllocations ¶ added in v1.0.0
type AmountAllocations struct { Id string `json:"id,omitempty"` Amount int `json:"amount,omitempty"` Reference string `json:"reference,omitempty"` Commission *Commission `json:"commission,omitempty"` }
type BankDetails ¶ added in v1.0.0
type CardCategory ¶
type CardCategory string
const ( Consumer CardCategory = "Consumer" Commercial CardCategory = "Commercial" All CardCategory = "All" OtherCardCategory CardCategory = "Other" )
type ChallengeIndicator ¶ added in v1.0.0
type ChallengeIndicator string
const ( NoPreference ChallengeIndicator = "no_preference" NoChallengeRequested ChallengeIndicator = "no_challenge_requested" ChallengeRequested ChallengeIndicator = "challenge_requested" ChallengeRequestedMandate ChallengeIndicator = "challenge_requested_mandate" )
type Commission ¶ added in v1.0.0
type Country ¶ added in v1.0.0
type Country string
const ( AF Country = "AF" AX Country = "AX" AL Country = "AL" DZ Country = "DZ" AS Country = "AS" AD Country = "AD" AO Country = "AO" AI Country = "AI" AG Country = "AG" AR Country = "AR" AM Country = "AM" AW Country = "AW" AC Country = "AC" AU Country = "AU" AQ Country = "AQ" AT Country = "AT" AZ Country = "AZ" BS Country = "BS" BH Country = "BH" BD Country = "BD" BB Country = "BB" BY Country = "BY" BE Country = "BE" BZ Country = "BZ" BJ Country = "BJ" BM Country = "BM" BT Country = "BT" BO Country = "BO" BQ Country = "BQ" BA Country = "BA" BW Country = "BW" BV Country = "BV" BR Country = "BR" IO Country = "IO" VG Country = "VG" BN Country = "BN" BG Country = "BG" BF Country = "BF" BI Country = "BI" KH Country = "KH" CM Country = "CM" CA Country = "CA" CV Country = "CV" KY Country = "KY" CF Country = "CF" TD Country = "TD" CL Country = "CL" CN Country = "CN" TW Country = "TW" CX Country = "CX" PF Country = "PF" CC Country = "CC" CO Country = "CO" KM Country = "KM" CG Country = "CG" CD Country = "CD" CK Country = "CK" CR Country = "CR" CI Country = "CI" HR Country = "HR" CU Country = "CU" CW Country = "CW" CY Country = "CY" CZ Country = "CZ" DK Country = "DK" DJ Country = "DJ" DM Country = "DM" DO Country = "DO" EC Country = "EC" EG Country = "EG" SV Country = "SV" GQ Country = "GQ" ER Country = "ER" EE Country = "EE" SZ Country = "SZ" ET Country = "ET" FK Country = "FK" FO Country = "FO" FJ Country = "FJ" FI Country = "FI" FR Country = "FR" GF Country = "GF" TF Country = "TF" GA Country = "GA" GM Country = "GM" GE Country = "GE" DE Country = "DE" GH Country = "GH" GI Country = "GI" GR Country = "GR" GL Country = "GL" GD Country = "GD" GP Country = "GP" GU Country = "GU" GT Country = "GT" GG Country = "GG" GN Country = "GN" GW Country = "GW" GY Country = "GY" HT Country = "HT" HM Country = "HM" HN Country = "HN" HK Country = "HK" HU Country = "HU" IS Country = "IS" IN Country = "IN" ID Country = "ID" IR Country = "IR" IQ Country = "IQ" IE Country = "IE" IM Country = "IM" IL Country = "IL" IT Country = "IT" JM Country = "JM" JP Country = "JP" JE Country = "JE" JO Country = "JO" KZ Country = "KZ" KE Country = "KE" KI Country = "KI" KP Country = "KP" KR Country = "KR" KW Country = "KW" KG Country = "KG" LA Country = "LA" LV Country = "LV" LB Country = "LB" LS Country = "LS" LR Country = "LR" LY Country = "LY" LI Country = "LI" LT Country = "LT" LU Country = "LU" MO Country = "MO" MK Country = "MK" MG Country = "MG" MW Country = "MW" MY Country = "MY" MV Country = "MV" ML Country = "ML" MT Country = "MT" MH Country = "MH" MQ Country = "MQ" MR Country = "MR" MU Country = "MU" YT Country = "YT" MX Country = "MX" FM Country = "FM" MD Country = "MD" MC Country = "MC" MN Country = "MN" ME Country = "ME" MS Country = "MS" MA Country = "MA" MZ Country = "MZ" MM Country = "MM" NA Country = "NA" NR Country = "NR" NP Country = "NP" NL Country = "NL" AN Country = "AN" NC Country = "NC" NZ Country = "NZ" NI Country = "NI" NE Country = "NE" NG Country = "NG" NU Country = "NU" NF Country = "NF" MP Country = "MP" NO Country = "NO" OM Country = "OM" PK Country = "PK" PW Country = "PW" PA Country = "PA" PG Country = "PG" PY Country = "PY" PE Country = "PE" PH Country = "PH" PN Country = "PN" PL Country = "PL" PT Country = "PT" PR Country = "PR" QA Country = "QA" RE Country = "RE" RO Country = "RO" RU Country = "RU" RW Country = "RW" BL Country = "BL" SH Country = "SH" KN Country = "KN" LC Country = "LC" MF Country = "MF" PM Country = "PM" VC Country = "VC" WS Country = "WS" SM Country = "SM" ST Country = "ST" SA Country = "SA" SN Country = "SN" RS Country = "RS" SC Country = "SC" SL Country = "SL" SG Country = "SG" SX Country = "SX" SK Country = "SK" SI Country = "SI" SB Country = "SB" SO Country = "SO" ZA Country = "ZA" GS Country = "GS" SS Country = "SS" ES Country = "ES" LK Country = "LK" SD Country = "SD" SR Country = "SR" SJ Country = "SJ" SE Country = "SE" CH Country = "CH" SY Country = "SY" TJ Country = "TJ" TZ Country = "TZ" TH Country = "TH" TL Country = "TL" TG Country = "TG" TK Country = "TK" TO Country = "TO" TT Country = "TT" TA Country = "TA" TN Country = "TN" TR Country = "TR" TM Country = "TM" TC Country = "TC" TV Country = "TV" VI Country = "VI" UG Country = "UG" UA Country = "UA" AE Country = "AE" GB Country = "GB" US Country = "US" UY Country = "UY" UZ Country = "UZ" VU Country = "VU" VA Country = "VA" VE Country = "VE" VN Country = "VN" UM Country = "UM" WF Country = "WF" EH Country = "EH" YE Country = "YE" ZM Country = "ZM" ZW Country = "ZW" PS Country = "PS" QZ Country = "QZ" )
type Currency ¶ added in v1.0.0
type Currency string
const ( AED Currency = "AED" AFN Currency = "AFN" ALL Currency = "ALL" AMD Currency = "AMD" ANG Currency = "ANG" AOA Currency = "AOA" ARS Currency = "ARS" AUD Currency = "AUD" AWG Currency = "AWG" AZN Currency = "AZN" BAM Currency = "BAM" BBD Currency = "BBD" BDT Currency = "BDT" BGN Currency = "BGN" BHD Currency = "BHD" BIF Currency = "BIF" BMD Currency = "BMD" BND Currency = "BND" BOB Currency = "BOB" BRL Currency = "BRL" BSD Currency = "BSD" BTN Currency = "BTN" BWP Currency = "BWP" BYN Currency = "BYN" BZD Currency = "BZD" CAD Currency = "CAD" CDF Currency = "CDF" CHF Currency = "CHF" CLF Currency = "CLF" CLP Currency = "CLP" CNY Currency = "CNY" COP Currency = "COP" CRC Currency = "CRC" CUP Currency = "CUP" CVE Currency = "CVE" CZK Currency = "CZK" DJF Currency = "DJF" DKK Currency = "DKK" DOP Currency = "DOP" DZD Currency = "DZD" EEK Currency = "EEK" EGP Currency = "EGP" ERN Currency = "ERN" ETB Currency = "ETB" EUR Currency = "EUR" FJD Currency = "FJD" FKP Currency = "FKP" GBP Currency = "GBP" GEL Currency = "GEL" GHS Currency = "GHS" GIP Currency = "GIP" GMD Currency = "GMD" GNF Currency = "GNF" GTQ Currency = "GTQ" GYD Currency = "GYD" HKD Currency = "HKD" HNL Currency = "HNL" HRK Currency = "HRK" HTG Currency = "HTG" HUF Currency = "HUF" IDR Currency = "IDR" ILS Currency = "ILS" INR Currency = "INR" IQD Currency = "IQD" IRR Currency = "IRR" ISK Currency = "ISK" JMD Currency = "JMD" JOD Currency = "JOD" JPY Currency = "JPY" KES Currency = "KES" KGS Currency = "KGS" KHR Currency = "KHR" KMF Currency = "KMF" KPW Currency = "KPW" KRW Currency = "KRW" KWD Currency = "KWD" KYD Currency = "KYD" KZT Currency = "KZT" LAK Currency = "LAK" LBP Currency = "LBP" LKR Currency = "LKR" LRD Currency = "LRD" LSL Currency = "LSL" LTL Currency = "LTL" LVL Currency = "LVL" LYD Currency = "LYD" MAD Currency = "MAD" MDL Currency = "MDL" MGA Currency = "MGA" MKD Currency = "MKD" MMK Currency = "MMK" MNT Currency = "MNT" MOP Currency = "MOP" MRU Currency = "MRU" MUR Currency = "MUR" MVR Currency = "MVR" MWK Currency = "MWK" MXN Currency = "MXN" MYR Currency = "MYR" MZN Currency = "MZN" NAD Currency = "NAD" NGN Currency = "NGN" NIO Currency = "NIO" NOK Currency = "NOK" NPR Currency = "NPR" NZD Currency = "NZD" OMR Currency = "OMR" PAB Currency = "PAB" PEN Currency = "PEN" PGK Currency = "PGK" PHP Currency = "PHP" PKR Currency = "PKR" PLN Currency = "PLN" PYG Currency = "PYG" QAR Currency = "QAR" RON Currency = "RON" RSD Currency = "RSD" RUB Currency = "RUB" RWF Currency = "RWF" SAR Currency = "SAR" SBD Currency = "SBD" SCR Currency = "SCR" SDG Currency = "SDG" SEK Currency = "SEK" SGD Currency = "SGD" SHP Currency = "SHP" SLL Currency = "SLL" SOS Currency = "SOS" SRD Currency = "SRD" STN Currency = "STN" SVC Currency = "SVC" SYP Currency = "SYP" SZL Currency = "SZL" THB Currency = "THB" TJS Currency = "TJS" TMT Currency = "TMT" TND Currency = "TND" TOP Currency = "TOP" TRY Currency = "TRY" TTD Currency = "TTD" TWD Currency = "TWD" TZS Currency = "TZS" UAH Currency = "UAH" UGX Currency = "UGX" USD Currency = "USD" UYU Currency = "UYU" UZS Currency = "UZS" VEF Currency = "VEF" VND Currency = "VND" VUV Currency = "VUV" WST Currency = "WST" XAF Currency = "XAF" XCD Currency = "XCD" XOF Currency = "XOF" XPF Currency = "XPF" YER Currency = "YER" ZAR Currency = "ZAR" ZMK Currency = "ZMK" ZMW Currency = "ZMW" ZWL Currency = "ZWL" )
type CustomerRequest ¶ added in v1.0.0
type CustomerResponse ¶ added in v1.0.0
type Exemption ¶ added in v1.0.0
type Exemption string
const ( None Exemption = "none" LowValue Exemption = "low_value" RecurringOperation Exemption = "recurring_operation" TransactionRiskAssessment Exemption = "transaction_risk_assessment" SecureCorporatePayment Exemption = "secure_corporate_payment" TrustedListing Exemption = "trusted_listing" ThreeDsOutage Exemption = "3ds_outage" ScaDelegation Exemption = "sca_delegation" OutOfScaScope Exemption = "out_of_sca_scope" Other Exemption = "other" LowRiskProgram Exemption = "low_risk_program" )
type File ¶ added in v1.0.0
func (*File) GetFieldName ¶ added in v1.0.0
func (*File) GetPurpose ¶ added in v1.0.0
type FileResponse ¶ added in v1.0.0
type FileUpload ¶ added in v1.0.0
type FileUploadRequest ¶ added in v1.0.0
func BuildFileUploadRequest ¶ added in v1.0.0
func BuildFileUploadRequest(upload FileUpload) (*FileUploadRequest, error)
type HttpMetadata ¶ added in v1.0.0
type IdResponse ¶ added in v1.0.0
type IdResponse struct { HttpMetadata HttpMetadata Id string `json:"id,omitempty"` Links map[string]Link `json:"_links"` }
type InstrumentCustomerResponse ¶ added in v1.0.0
type InstrumentDetails ¶ added in v1.0.0
type InstrumentDetails struct { Id string `json:"id,omitempty"` Fingerprint string `json:"fingerprint,omitempty"` InstrumentCustomerResponse *InstrumentCustomerResponse `json:"customer,omitempty"` AccountHolder *AccountHolder `json:"account_holder,omitempty"` }
type MarketplaceData
deprecated
added in
v1.0.0
type MarketplaceData struct { SubEntityId string `json:"sub_entity_id,omitempty"` SubEntities []AmountAllocations `json:"sub_entities,omitempty"` }
Deprecated: should use AmountAllocations instead
type MetadataResponse ¶ added in v1.0.0
type MetadataResponse struct {
HttpMetadata HttpMetadata
}
type ThreeDsFlowType ¶ added in v1.0.0
type ThreeDsFlowType string
const ( Challenged ThreeDsFlowType = "challenged" Frictionless ThreeDsFlowType = "frictionless" FrictionlessDelegated ThreeDsFlowType = "frictionless_delegated" )
type ThreeDsMethodCompletion ¶ added in v1.0.0
type ThreeDsMethodCompletion string
const ( Y ThreeDsMethodCompletion = "y" N ThreeDsMethodCompletion = "n" U ThreeDsMethodCompletion = "u" )
type TypeMapping ¶ added in v1.0.0
type TypeMapping struct {
Type string `json:"type"`
}
type UpdateCustomerRequest ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.