Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
// Valid deliverable address (no PO boxes).
Address1 string `json:"address1,required"`
// Name of city.
City string `json:"city,required"`
// Valid country code. Only USA is currently supported, entered in uppercase ISO
// 3166-1 alpha-3 three-character format.
Country string `json:"country,required"`
// Valid postal code. Only USA postal codes (ZIP codes) are currently supported,
// entered as a five-digit postal code or nine-digit postal code (ZIP+4) using the
// format 12345-1234.
PostalCode string `json:"postal_code,required"`
// Valid state code. Only USA state codes are currently supported, entered in
// uppercase ISO 3166-2 two-character format.
State string `json:"state,required"`
// Unit or apartment number (if applicable).
Address2 string `json:"address2"`
JSON addressJSON `json:"-"`
}
func (*Address) UnmarshalJSON ¶
type AddressParam ¶
type AddressParam struct {
// Valid deliverable address (no PO boxes).
Address1 param.Field[string] `json:"address1,required"`
// Name of city.
City param.Field[string] `json:"city,required"`
// Valid country code. Only USA is currently supported, entered in uppercase ISO
// 3166-1 alpha-3 three-character format.
Country param.Field[string] `json:"country,required"`
// Valid postal code. Only USA postal codes (ZIP codes) are currently supported,
// entered as a five-digit postal code or nine-digit postal code (ZIP+4) using the
// format 12345-1234.
PostalCode param.Field[string] `json:"postal_code,required"`
// Valid state code. Only USA state codes are currently supported, entered in
// uppercase ISO 3166-2 two-character format.
State param.Field[string] `json:"state,required"`
// Unit or apartment number (if applicable).
Address2 param.Field[string] `json:"address2"`
}
func (AddressParam) MarshalJSON ¶
func (r AddressParam) MarshalJSON() (data []byte, err error)
type CarrierParam ¶
type CarrierParam struct {
// QR code url to display on the card carrier
QrCodeURL param.Field[string] `json:"qr_code_url"`
}
func (CarrierParam) MarshalJSON ¶
func (r CarrierParam) MarshalJSON() (data []byte, err error)
type Document ¶ added in v0.48.0
type Document struct {
// Globally unique identifier for the document.
Token string `json:"token,required" format:"uuid"`
// Globally unique identifier for the account holder.
AccountHolderToken string `json:"account_holder_token,required" format:"uuid"`
// Type of documentation to be submitted for verification.
DocumentType DocumentDocumentType `json:"document_type,required"`
// Represents a single image of the document to upload.
RequiredDocumentUploads []DocumentRequiredDocumentUpload `json:"required_document_uploads,required"`
JSON documentJSON `json:"-"`
}
Describes the document and the required document image uploads required to re-run KYC
func (*Document) UnmarshalJSON ¶ added in v0.48.0
type DocumentDocumentType ¶ added in v0.48.0
type DocumentDocumentType string
Type of documentation to be submitted for verification.
const ( DocumentDocumentTypeDriversLicense DocumentDocumentType = "DRIVERS_LICENSE" DocumentDocumentTypePassport DocumentDocumentType = "PASSPORT" DocumentDocumentTypePassportCard DocumentDocumentType = "PASSPORT_CARD" DocumentDocumentTypeEinLetter DocumentDocumentType = "EIN_LETTER" DocumentDocumentTypeTaxReturn DocumentDocumentType = "TAX_RETURN" DocumentDocumentTypeOperatingAgreement DocumentDocumentType = "OPERATING_AGREEMENT" DocumentDocumentTypeCertificateOfFormation DocumentDocumentType = "CERTIFICATE_OF_FORMATION" DocumentDocumentTypeCertificateOfGoodStanding DocumentDocumentType = "CERTIFICATE_OF_GOOD_STANDING" DocumentDocumentTypeArticlesOfIncorporation DocumentDocumentType = "ARTICLES_OF_INCORPORATION" DocumentDocumentTypeArticlesOfOrganization DocumentDocumentType = "ARTICLES_OF_ORGANIZATION" DocumentDocumentTypeBylaws DocumentDocumentType = "BYLAWS" DocumentDocumentTypeGovernmentBusinessLicense DocumentDocumentType = "GOVERNMENT_BUSINESS_LICENSE" DocumentDocumentTypePartnershipAgreement DocumentDocumentType = "PARTNERSHIP_AGREEMENT" DocumentDocumentTypeSs4Form DocumentDocumentType = "SS4_FORM" DocumentDocumentTypeBankStatement DocumentDocumentType = "BANK_STATEMENT" DocumentDocumentTypeUtilityBillStatement DocumentDocumentType = "UTILITY_BILL_STATEMENT" DocumentDocumentTypeSsnCard DocumentDocumentType = "SSN_CARD" DocumentDocumentTypeItinLetter DocumentDocumentType = "ITIN_LETTER" )
func (DocumentDocumentType) IsKnown ¶ added in v0.48.0
func (r DocumentDocumentType) IsKnown() bool
type DocumentRequiredDocumentUpload ¶ added in v0.48.0
type DocumentRequiredDocumentUpload struct {
// Type of image to upload.
ImageType DocumentRequiredDocumentUploadsImageType `json:"image_type,required"`
// Status of document image upload.
Status DocumentRequiredDocumentUploadsStatus `json:"status,required"`
// Reasons for document image upload status.
StatusReasons []DocumentRequiredDocumentUploadsStatusReason `json:"status_reasons,required"`
// URL to upload document image to.
//
// Note that the upload URLs expire after 7 days. If an upload URL expires, you can
// refresh the URLs by retrieving the document upload from
// `GET /account_holders/{account_holder_token}/documents`.
UploadURL string `json:"upload_url,required"`
JSON documentRequiredDocumentUploadJSON `json:"-"`
}
Represents a single image of the document to upload.
func (*DocumentRequiredDocumentUpload) UnmarshalJSON ¶ added in v0.48.0
func (r *DocumentRequiredDocumentUpload) UnmarshalJSON(data []byte) (err error)
type DocumentRequiredDocumentUploadsImageType ¶ added in v0.48.0
type DocumentRequiredDocumentUploadsImageType string
Type of image to upload.
const ( DocumentRequiredDocumentUploadsImageTypeFront DocumentRequiredDocumentUploadsImageType = "FRONT" DocumentRequiredDocumentUploadsImageTypeBack DocumentRequiredDocumentUploadsImageType = "BACK" )
func (DocumentRequiredDocumentUploadsImageType) IsKnown ¶ added in v0.48.0
func (r DocumentRequiredDocumentUploadsImageType) IsKnown() bool
type DocumentRequiredDocumentUploadsStatus ¶ added in v0.48.0
type DocumentRequiredDocumentUploadsStatus string
Status of document image upload.
const ( DocumentRequiredDocumentUploadsStatusAccepted DocumentRequiredDocumentUploadsStatus = "ACCEPTED" DocumentRequiredDocumentUploadsStatusRejected DocumentRequiredDocumentUploadsStatus = "REJECTED" DocumentRequiredDocumentUploadsStatusPendingUpload DocumentRequiredDocumentUploadsStatus = "PENDING_UPLOAD" DocumentRequiredDocumentUploadsStatusUploaded DocumentRequiredDocumentUploadsStatus = "UPLOADED" )
func (DocumentRequiredDocumentUploadsStatus) IsKnown ¶ added in v0.48.0
func (r DocumentRequiredDocumentUploadsStatus) IsKnown() bool
type DocumentRequiredDocumentUploadsStatusReason ¶ added in v0.48.0
type DocumentRequiredDocumentUploadsStatusReason string
const ( DocumentRequiredDocumentUploadsStatusReasonDocumentMissingRequiredData DocumentRequiredDocumentUploadsStatusReason = "DOCUMENT_MISSING_REQUIRED_DATA" DocumentRequiredDocumentUploadsStatusReasonDocumentUploadTooBlurry DocumentRequiredDocumentUploadsStatusReason = "DOCUMENT_UPLOAD_TOO_BLURRY" DocumentRequiredDocumentUploadsStatusReasonFileSizeTooLarge DocumentRequiredDocumentUploadsStatusReason = "FILE_SIZE_TOO_LARGE" DocumentRequiredDocumentUploadsStatusReasonInvalidDocumentType DocumentRequiredDocumentUploadsStatusReason = "INVALID_DOCUMENT_TYPE" DocumentRequiredDocumentUploadsStatusReasonInvalidDocumentUpload DocumentRequiredDocumentUploadsStatusReason = "INVALID_DOCUMENT_UPLOAD" DocumentRequiredDocumentUploadsStatusReasonUnknownError DocumentRequiredDocumentUploadsStatusReason = "UNKNOWN_ERROR" )
func (DocumentRequiredDocumentUploadsStatusReason) IsKnown ¶ added in v0.48.0
func (r DocumentRequiredDocumentUploadsStatusReason) IsKnown() bool
type ShippingAddressParam ¶
type ShippingAddressParam struct {
// Valid USPS routable address.
Address1 param.Field[string] `json:"address1,required"`
// City
City param.Field[string] `json:"city,required"`
// Uppercase ISO 3166-1 alpha-3 three character abbreviation.
Country param.Field[string] `json:"country,required"`
// Customer's first name. This will be the first name printed on the physical card.
// The combined length of `first_name` and `last_name` may not exceed 25
// characters.
FirstName param.Field[string] `json:"first_name,required"`
// Customer's surname (family name). This will be the last name printed on the
// physical card. The combined length of `first_name` and `last_name` may not
// exceed 25 characters.
LastName param.Field[string] `json:"last_name,required"`
// Postal code (formerly zipcode). For US addresses, either five-digit postal code
// or nine-digit postal code (ZIP+4) using the format 12345-1234.
PostalCode param.Field[string] `json:"postal_code,required"`
// Uppercase ISO 3166-2 two character abbreviation for US and CA. Optional with a
// limit of 24 characters for other countries.
State param.Field[string] `json:"state,required"`
// Unit number (if applicable).
Address2 param.Field[string] `json:"address2"`
// Email address to be contacted for expedited shipping process purposes. Required
// if `shipping_method` is `EXPEDITED`.
Email param.Field[string] `json:"email"`
// Text to be printed on line two of the physical card. Use of this field requires
// additional permissions.
Line2Text param.Field[string] `json:"line2_text"`
// Cardholder's phone number in E.164 format to be contacted for expedited shipping
// process purposes. Required if `shipping_method` is `EXPEDITED`.
PhoneNumber param.Field[string] `json:"phone_number"`
}
func (ShippingAddressParam) MarshalJSON ¶
func (r ShippingAddressParam) MarshalJSON() (data []byte, err error)