shared

package
v0.121.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountFinancialAccountType added in v0.107.0

type AccountFinancialAccountType string

Type of account financial account

const (
	AccountFinancialAccountTypeIssuing   AccountFinancialAccountType = "ISSUING"
	AccountFinancialAccountTypeOperating AccountFinancialAccountType = "OPERATING"
)

func (AccountFinancialAccountType) IsKnown added in v0.107.0

func (r AccountFinancialAccountType) IsKnown() bool

type Address

type Address struct {
	// Valid deliverable address (no PO boxes).
	Address1 string `json:"address1" api:"required"`
	// Name of city.
	City string `json:"city" api:"required"`
	// Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
	// format. The KYB_DELEGATED and KYC_EXEMPT workflows support all countries except
	// BLR, CUB, IRN, PRK, RUS, SDN, SYR, and UKR. Other workflows support USA only.
	Country string `json:"country" api:"required"`
	// Unit or apartment number (if applicable).
	Address2 string `json:"address2"`
	// Valid postal code. For USA addresses, enter either a five-digit postal code or a
	// nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
	// countries except the following, which do not use postal codes: ABW, AGO, ARE,
	// ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
	// ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
	// SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
	PostalCode string `json:"postal_code" api:"nullable"`
	// Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
	// code for the country without the country prefix. For example, `CA` for
	// California. Optional unless the address is in one of the following countries,
	// where it is required:
	//
	// - `USA`
	// - `CAN`
	// - `AUS`
	// - `CHN`
	// - `KOR`
	// - `MEX`
	// - `MYS`
	// - `NZL`
	State string      `json:"state" api:"nullable"`
	JSON  addressJSON `json:"-"`
}

func (*Address) UnmarshalJSON

func (r *Address) UnmarshalJSON(data []byte) (err error)

type AddressParam

type AddressParam struct {
	// Valid deliverable address (no PO boxes).
	Address1 param.Field[string] `json:"address1" api:"required"`
	// Name of city.
	City param.Field[string] `json:"city" api:"required"`
	// Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
	// format. The KYB_DELEGATED and KYC_EXEMPT workflows support all countries except
	// BLR, CUB, IRN, PRK, RUS, SDN, SYR, and UKR. Other workflows support USA only.
	Country param.Field[string] `json:"country" api:"required"`
	// Unit or apartment number (if applicable).
	Address2 param.Field[string] `json:"address2"`
	// Valid postal code. For USA addresses, enter either a five-digit postal code or a
	// nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
	// countries except the following, which do not use postal codes: ABW, AGO, ARE,
	// ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
	// ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
	// SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
	PostalCode param.Field[string] `json:"postal_code"`
	// Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
	// code for the country without the country prefix. For example, `CA` for
	// California. Optional unless the address is in one of the following countries,
	// where it is required:
	//
	// - `USA`
	// - `CAN`
	// - `AUS`
	// - `CHN`
	// - `KOR`
	// - `MEX`
	// - `MYS`
	// - `NZL`
	State param.Field[string] `json:"state"`
}

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. The `qr_code_url` field requires
	// your domain to be allowlisted by Lithic before use. Contact Support to configure
	// your QR code domain
	QrCodeURL param.Field[string] `json:"qr_code_url"`
}

func (CarrierParam) MarshalJSON

func (r CarrierParam) MarshalJSON() (data []byte, err error)

type Currency added in v0.50.0

type Currency = string

type Document added in v0.48.0

type Document struct {
	// Globally unique identifier for the document.
	Token string `json:"token" api:"required" format:"uuid"`
	// Globally unique identifier for the account holder.
	AccountHolderToken string `json:"account_holder_token" api:"required" format:"uuid"`
	// Type of documentation to be submitted for verification of an account holder
	DocumentType DocumentDocumentType `json:"document_type" api:"required"`
	// Globally unique identifier for an entity.
	EntityToken string `json:"entity_token" api:"required" format:"uuid"`
	// Represents a single image of the document to upload.
	RequiredDocumentUploads []DocumentRequiredDocumentUpload `json:"required_document_uploads" api:"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

func (r *Document) UnmarshalJSON(data []byte) (err error)

type DocumentDocumentType added in v0.48.0

type DocumentDocumentType string

Type of documentation to be submitted for verification of an account holder

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"
	DocumentDocumentTypeFincenBoiReport           DocumentDocumentType = "FINCEN_BOI_REPORT"
)

func (DocumentDocumentType) IsKnown added in v0.48.0

func (r DocumentDocumentType) IsKnown() bool

type DocumentRequiredDocumentUpload added in v0.48.0

type DocumentRequiredDocumentUpload struct {
	// Globally unique identifier for the document upload.
	Token string `json:"token" api:"required" format:"uuid"`
	// A list of status reasons associated with a KYB account holder that have been
	// satisfied by the document upload
	AcceptedEntityStatusReasons []string `json:"accepted_entity_status_reasons" api:"required"`
	// When the document upload was created
	Created time.Time `json:"created" api:"required" format:"date-time"`
	// Type of image to upload.
	ImageType DocumentRequiredDocumentUploadsImageType `json:"image_type" api:"required"`
	// A list of status reasons associated with a KYB account holder that have not been
	// satisfied by the document upload
	RejectedEntityStatusReasons []string `json:"rejected_entity_status_reasons" api:"required"`
	// Status of an account holder's document upload.
	Status DocumentRequiredDocumentUploadsStatus `json:"status" api:"required"`
	// Reasons for document image upload status.
	StatusReasons []DocumentRequiredDocumentUploadsStatusReason `json:"status_reasons" api:"required"`
	// When the document upload was last updated
	Updated time.Time `json:"updated" api:"required" format:"date-time"`
	// 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" api:"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

type DocumentRequiredDocumentUploadsStatus added in v0.48.0

type DocumentRequiredDocumentUploadsStatus string

Status of an account holder's document upload.

const (
	DocumentRequiredDocumentUploadsStatusAccepted        DocumentRequiredDocumentUploadsStatus = "ACCEPTED"
	DocumentRequiredDocumentUploadsStatusRejected        DocumentRequiredDocumentUploadsStatus = "REJECTED"
	DocumentRequiredDocumentUploadsStatusPendingUpload   DocumentRequiredDocumentUploadsStatus = "PENDING_UPLOAD"
	DocumentRequiredDocumentUploadsStatusUploaded        DocumentRequiredDocumentUploadsStatus = "UPLOADED"
	DocumentRequiredDocumentUploadsStatusPartialApproval DocumentRequiredDocumentUploadsStatus = "PARTIAL_APPROVAL"
)

func (DocumentRequiredDocumentUploadsStatus) IsKnown added in v0.48.0

type DocumentRequiredDocumentUploadsStatusReason added in v0.48.0

type DocumentRequiredDocumentUploadsStatusReason string

The status reasons for an account holder document upload that is not ACCEPTED

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"
	DocumentRequiredDocumentUploadsStatusReasonInvalidEntity                   DocumentRequiredDocumentUploadsStatusReason = "INVALID_ENTITY"
	DocumentRequiredDocumentUploadsStatusReasonDocumentExpired                 DocumentRequiredDocumentUploadsStatusReason = "DOCUMENT_EXPIRED"
	DocumentRequiredDocumentUploadsStatusReasonDocumentIssuedGreaterThan30Days DocumentRequiredDocumentUploadsStatusReason = "DOCUMENT_ISSUED_GREATER_THAN_30_DAYS"
	DocumentRequiredDocumentUploadsStatusReasonDocumentTypeNotSupported        DocumentRequiredDocumentUploadsStatusReason = "DOCUMENT_TYPE_NOT_SUPPORTED"
	DocumentRequiredDocumentUploadsStatusReasonUnknownFailureReason            DocumentRequiredDocumentUploadsStatusReason = "UNKNOWN_FAILURE_REASON"
	DocumentRequiredDocumentUploadsStatusReasonUnknownError                    DocumentRequiredDocumentUploadsStatusReason = "UNKNOWN_ERROR"
)

func (DocumentRequiredDocumentUploadsStatusReason) IsKnown added in v0.48.0

type FinancialEvent added in v0.96.0

type FinancialEvent struct {
	// Globally unique identifier.
	Token string `json:"token" format:"uuid"`
	// Amount of the financial event that has been settled in the currency's smallest
	// unit (e.g., cents).
	Amount int64 `json:"amount"`
	// Date and time when the financial event occurred. UTC time zone.
	Created time.Time `json:"created" format:"date-time"`
	// APPROVED financial events were successful while DECLINED financial events were
	// declined by user, Lithic, or the network.
	Result FinancialEventResult `json:"result"`
	Type   FinancialEventType   `json:"type"`
	JSON   financialEventJSON   `json:"-"`
}

Financial Event

func (*FinancialEvent) UnmarshalJSON added in v0.96.0

func (r *FinancialEvent) UnmarshalJSON(data []byte) (err error)

type FinancialEventResult added in v0.96.0

type FinancialEventResult string

APPROVED financial events were successful while DECLINED financial events were declined by user, Lithic, or the network.

const (
	FinancialEventResultApproved FinancialEventResult = "APPROVED"
	FinancialEventResultDeclined FinancialEventResult = "DECLINED"
)

func (FinancialEventResult) IsKnown added in v0.96.0

func (r FinancialEventResult) IsKnown() bool

type FinancialEventType added in v0.96.0

type FinancialEventType string
const (
	FinancialEventTypeACHOriginationCancelled      FinancialEventType = "ACH_ORIGINATION_CANCELLED"
	FinancialEventTypeACHOriginationInitiated      FinancialEventType = "ACH_ORIGINATION_INITIATED"
	FinancialEventTypeACHOriginationProcessed      FinancialEventType = "ACH_ORIGINATION_PROCESSED"
	FinancialEventTypeACHOriginationReleased       FinancialEventType = "ACH_ORIGINATION_RELEASED"
	FinancialEventTypeACHOriginationRejected       FinancialEventType = "ACH_ORIGINATION_REJECTED"
	FinancialEventTypeACHOriginationReviewed       FinancialEventType = "ACH_ORIGINATION_REVIEWED"
	FinancialEventTypeACHOriginationSettled        FinancialEventType = "ACH_ORIGINATION_SETTLED"
	FinancialEventTypeACHReceiptProcessed          FinancialEventType = "ACH_RECEIPT_PROCESSED"
	FinancialEventTypeACHReceiptReleased           FinancialEventType = "ACH_RECEIPT_RELEASED"
	FinancialEventTypeACHReceiptSettled            FinancialEventType = "ACH_RECEIPT_SETTLED"
	FinancialEventTypeACHReturnInitiated           FinancialEventType = "ACH_RETURN_INITIATED"
	FinancialEventTypeACHReturnProcessed           FinancialEventType = "ACH_RETURN_PROCESSED"
	FinancialEventTypeACHReturnRejected            FinancialEventType = "ACH_RETURN_REJECTED"
	FinancialEventTypeACHReturnSettled             FinancialEventType = "ACH_RETURN_SETTLED"
	FinancialEventTypeAuthorization                FinancialEventType = "AUTHORIZATION"
	FinancialEventTypeAuthorizationAdvice          FinancialEventType = "AUTHORIZATION_ADVICE"
	FinancialEventTypeAuthorizationExpiry          FinancialEventType = "AUTHORIZATION_EXPIRY"
	FinancialEventTypeAuthorizationReversal        FinancialEventType = "AUTHORIZATION_REVERSAL"
	FinancialEventTypeBalanceInquiry               FinancialEventType = "BALANCE_INQUIRY"
	FinancialEventTypeBillingError                 FinancialEventType = "BILLING_ERROR"
	FinancialEventTypeBillingErrorReversal         FinancialEventType = "BILLING_ERROR_REVERSAL"
	FinancialEventTypeCardToCard                   FinancialEventType = "CARD_TO_CARD"
	FinancialEventTypeCashBack                     FinancialEventType = "CASH_BACK"
	FinancialEventTypeCashBackReversal             FinancialEventType = "CASH_BACK_REVERSAL"
	FinancialEventTypeClearing                     FinancialEventType = "CLEARING"
	FinancialEventTypeCollection                   FinancialEventType = "COLLECTION"
	FinancialEventTypeCorrectionCredit             FinancialEventType = "CORRECTION_CREDIT"
	FinancialEventTypeCorrectionDebit              FinancialEventType = "CORRECTION_DEBIT"
	FinancialEventTypeCreditAuthorization          FinancialEventType = "CREDIT_AUTHORIZATION"
	FinancialEventTypeCreditAuthorizationAdvice    FinancialEventType = "CREDIT_AUTHORIZATION_ADVICE"
	FinancialEventTypeCurrencyConversion           FinancialEventType = "CURRENCY_CONVERSION"
	FinancialEventTypeCurrencyConversionReversal   FinancialEventType = "CURRENCY_CONVERSION_REVERSAL"
	FinancialEventTypeDisputeWon                   FinancialEventType = "DISPUTE_WON"
	FinancialEventTypeExternalACHCanceled          FinancialEventType = "EXTERNAL_ACH_CANCELED"
	FinancialEventTypeExternalACHInitiated         FinancialEventType = "EXTERNAL_ACH_INITIATED"
	FinancialEventTypeExternalACHReleased          FinancialEventType = "EXTERNAL_ACH_RELEASED"
	FinancialEventTypeExternalACHReversed          FinancialEventType = "EXTERNAL_ACH_REVERSED"
	FinancialEventTypeExternalACHSettled           FinancialEventType = "EXTERNAL_ACH_SETTLED"
	FinancialEventTypeExternalCheckCanceled        FinancialEventType = "EXTERNAL_CHECK_CANCELED"
	FinancialEventTypeExternalCheckInitiated       FinancialEventType = "EXTERNAL_CHECK_INITIATED"
	FinancialEventTypeExternalCheckReleased        FinancialEventType = "EXTERNAL_CHECK_RELEASED"
	FinancialEventTypeExternalCheckReversed        FinancialEventType = "EXTERNAL_CHECK_REVERSED"
	FinancialEventTypeExternalCheckSettled         FinancialEventType = "EXTERNAL_CHECK_SETTLED"
	FinancialEventTypeExternalFednowCanceled       FinancialEventType = "EXTERNAL_FEDNOW_CANCELED"
	FinancialEventTypeExternalFednowInitiated      FinancialEventType = "EXTERNAL_FEDNOW_INITIATED"
	FinancialEventTypeExternalFednowReleased       FinancialEventType = "EXTERNAL_FEDNOW_RELEASED"
	FinancialEventTypeExternalFednowReversed       FinancialEventType = "EXTERNAL_FEDNOW_REVERSED"
	FinancialEventTypeExternalFednowSettled        FinancialEventType = "EXTERNAL_FEDNOW_SETTLED"
	FinancialEventTypeExternalRtpCanceled          FinancialEventType = "EXTERNAL_RTP_CANCELED"
	FinancialEventTypeExternalRtpInitiated         FinancialEventType = "EXTERNAL_RTP_INITIATED"
	FinancialEventTypeExternalRtpReleased          FinancialEventType = "EXTERNAL_RTP_RELEASED"
	FinancialEventTypeExternalRtpReversed          FinancialEventType = "EXTERNAL_RTP_REVERSED"
	FinancialEventTypeExternalRtpSettled           FinancialEventType = "EXTERNAL_RTP_SETTLED"
	FinancialEventTypeExternalStablecoinCanceled   FinancialEventType = "EXTERNAL_STABLECOIN_CANCELED"
	FinancialEventTypeExternalStablecoinInitiated  FinancialEventType = "EXTERNAL_STABLECOIN_INITIATED"
	FinancialEventTypeExternalStablecoinReleased   FinancialEventType = "EXTERNAL_STABLECOIN_RELEASED"
	FinancialEventTypeExternalStablecoinReversed   FinancialEventType = "EXTERNAL_STABLECOIN_REVERSED"
	FinancialEventTypeExternalStablecoinSettled    FinancialEventType = "EXTERNAL_STABLECOIN_SETTLED"
	FinancialEventTypeExternalTransferCanceled     FinancialEventType = "EXTERNAL_TRANSFER_CANCELED"
	FinancialEventTypeExternalTransferInitiated    FinancialEventType = "EXTERNAL_TRANSFER_INITIATED"
	FinancialEventTypeExternalTransferReleased     FinancialEventType = "EXTERNAL_TRANSFER_RELEASED"
	FinancialEventTypeExternalTransferReversed     FinancialEventType = "EXTERNAL_TRANSFER_REVERSED"
	FinancialEventTypeExternalTransferSettled      FinancialEventType = "EXTERNAL_TRANSFER_SETTLED"
	FinancialEventTypeExternalWireCanceled         FinancialEventType = "EXTERNAL_WIRE_CANCELED"
	FinancialEventTypeExternalWireInitiated        FinancialEventType = "EXTERNAL_WIRE_INITIATED"
	FinancialEventTypeExternalWireReleased         FinancialEventType = "EXTERNAL_WIRE_RELEASED"
	FinancialEventTypeExternalWireReversed         FinancialEventType = "EXTERNAL_WIRE_REVERSED"
	FinancialEventTypeExternalWireSettled          FinancialEventType = "EXTERNAL_WIRE_SETTLED"
	FinancialEventTypeFee                          FinancialEventType = "FEE"
	FinancialEventTypeFeeReversal                  FinancialEventType = "FEE_REVERSAL"
	FinancialEventTypeFinancialAuthorization       FinancialEventType = "FINANCIAL_AUTHORIZATION"
	FinancialEventTypeFinancialCreditAuthorization FinancialEventType = "FINANCIAL_CREDIT_AUTHORIZATION"
	FinancialEventTypeInstallmentFee               FinancialEventType = "INSTALLMENT_FEE"
	FinancialEventTypeInstallmentFeeReversal       FinancialEventType = "INSTALLMENT_FEE_REVERSAL"
	FinancialEventTypeInterest                     FinancialEventType = "INTEREST"
	FinancialEventTypeInterestReversal             FinancialEventType = "INTEREST_REVERSAL"
	FinancialEventTypeInternalAdjustment           FinancialEventType = "INTERNAL_ADJUSTMENT"
	FinancialEventTypeIntraBankCanceled            FinancialEventType = "INTRA_BANK_CANCELED"
	FinancialEventTypeIntraBankInitiated           FinancialEventType = "INTRA_BANK_INITIATED"
	FinancialEventTypeIntraBankSettled             FinancialEventType = "INTRA_BANK_SETTLED"
	FinancialEventTypeLatePayment                  FinancialEventType = "LATE_PAYMENT"
	FinancialEventTypeLatePaymentReversal          FinancialEventType = "LATE_PAYMENT_REVERSAL"
	FinancialEventTypeLossWriteOff                 FinancialEventType = "LOSS_WRITE_OFF"
	FinancialEventTypeProvisionalCredit            FinancialEventType = "PROVISIONAL_CREDIT"
	FinancialEventTypeProvisionalCreditReversal    FinancialEventType = "PROVISIONAL_CREDIT_REVERSAL"
	FinancialEventTypeService                      FinancialEventType = "SERVICE"
	FinancialEventTypeReturn                       FinancialEventType = "RETURN"
	FinancialEventTypeReturnReversal               FinancialEventType = "RETURN_REVERSAL"
	FinancialEventTypeTransfer                     FinancialEventType = "TRANSFER"
	FinancialEventTypeTransferInsufficientFunds    FinancialEventType = "TRANSFER_INSUFFICIENT_FUNDS"
	FinancialEventTypeReturnedPayment              FinancialEventType = "RETURNED_PAYMENT"
	FinancialEventTypeReturnedPaymentReversal      FinancialEventType = "RETURNED_PAYMENT_REVERSAL"
	FinancialEventTypeLithicNetworkPayment         FinancialEventType = "LITHIC_NETWORK_PAYMENT"
	FinancialEventTypeLithicProgramTransfer        FinancialEventType = "LITHIC_PROGRAM_TRANSFER"
	FinancialEventTypeBankProgramTransfer          FinancialEventType = "BANK_PROGRAM_TRANSFER"
	FinancialEventTypeAnnual                       FinancialEventType = "ANNUAL"
	FinancialEventTypeAnnualReversal               FinancialEventType = "ANNUAL_REVERSAL"
	FinancialEventTypeQuarterly                    FinancialEventType = "QUARTERLY"
	FinancialEventTypeQuarterlyReversal            FinancialEventType = "QUARTERLY_REVERSAL"
	FinancialEventTypeMonthly                      FinancialEventType = "MONTHLY"
	FinancialEventTypeMonthlyReversal              FinancialEventType = "MONTHLY_REVERSAL"
	FinancialEventTypeAccountToAccount             FinancialEventType = "ACCOUNT_TO_ACCOUNT"
	FinancialEventTypeStablecoinReceived           FinancialEventType = "STABLECOIN_RECEIVED"
	FinancialEventTypeStablecoinInitiated          FinancialEventType = "STABLECOIN_INITIATED"
	FinancialEventTypeStablecoinReviewed           FinancialEventType = "STABLECOIN_REVIEWED"
	FinancialEventTypeStablecoinSent               FinancialEventType = "STABLECOIN_SENT"
	FinancialEventTypeStablecoinSettled            FinancialEventType = "STABLECOIN_SETTLED"
	FinancialEventTypeStablecoinRejected           FinancialEventType = "STABLECOIN_REJECTED"
	FinancialEventTypeInstanceToInstance           FinancialEventType = "INSTANCE_TO_INSTANCE"
)

func (FinancialEventType) IsKnown added in v0.96.0

func (r FinancialEventType) IsKnown() bool

type InstanceFinancialAccountType added in v0.107.0

type InstanceFinancialAccountType string

Type of instance financial account

const (
	InstanceFinancialAccountTypeIssuing                    InstanceFinancialAccountType = "ISSUING"
	InstanceFinancialAccountTypeReserve                    InstanceFinancialAccountType = "RESERVE"
	InstanceFinancialAccountTypeOperating                  InstanceFinancialAccountType = "OPERATING"
	InstanceFinancialAccountTypeChargedOffFees             InstanceFinancialAccountType = "CHARGED_OFF_FEES"
	InstanceFinancialAccountTypeChargedOffInterest         InstanceFinancialAccountType = "CHARGED_OFF_INTEREST"
	InstanceFinancialAccountTypeChargedOffPrincipal        InstanceFinancialAccountType = "CHARGED_OFF_PRINCIPAL"
	InstanceFinancialAccountTypeSecurity                   InstanceFinancialAccountType = "SECURITY"
	InstanceFinancialAccountTypeProgramReceivables         InstanceFinancialAccountType = "PROGRAM_RECEIVABLES"
	InstanceFinancialAccountTypeCollection                 InstanceFinancialAccountType = "COLLECTION"
	InstanceFinancialAccountTypeProgramBankAccountsPayable InstanceFinancialAccountType = "PROGRAM_BANK_ACCOUNTS_PAYABLE"
	InstanceFinancialAccountTypeEarlyDirectDepositFloat    InstanceFinancialAccountType = "EARLY_DIRECT_DEPOSIT_FLOAT"
	InstanceFinancialAccountTypeProvisionalCreditAccount   InstanceFinancialAccountType = "PROVISIONAL_CREDIT_ACCOUNT"
)

func (InstanceFinancialAccountType) IsKnown added in v0.107.0

func (r InstanceFinancialAccountType) IsKnown() bool

type Merchant added in v0.96.0

type Merchant struct {
	// Unique alphanumeric identifier for the payment card acceptor (merchant).
	AcceptorID string `json:"acceptor_id" api:"required"`
	// Unique numeric identifier of the acquiring institution.
	AcquiringInstitutionID string `json:"acquiring_institution_id" api:"required"`
	// City of card acceptor. Note that in many cases, particularly in card-not-present
	// transactions, merchants may send through a phone number or URL in this field.
	City string `json:"city" api:"required"`
	// Country or entity of card acceptor. Possible values are: (1) all ISO 3166-1
	// alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles.
	Country string `json:"country" api:"required"`
	// Short description of card acceptor.
	Descriptor string `json:"descriptor" api:"required"`
	// Merchant category code (MCC). A four-digit number listed in ISO 18245. An MCC is
	// used to classify a business by the types of goods or services it provides.
	Mcc string `json:"mcc" api:"required"`
	// Geographic state of card acceptor.
	State string       `json:"state" api:"required"`
	JSON  merchantJSON `json:"-"`
}

func (*Merchant) UnmarshalJSON added in v0.96.0

func (r *Merchant) UnmarshalJSON(data []byte) (err error)

type ShippingAddressParam

type ShippingAddressParam struct {
	// Valid USPS routable address.
	Address1 param.Field[string] `json:"address1" api:"required"`
	// City
	City param.Field[string] `json:"city" api:"required"`
	// Uppercase ISO 3166-1 alpha-3 three character abbreviation.
	Country param.Field[string] `json:"country" api:"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" api:"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" api:"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" api:"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" api:"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)

type UnionFloat added in v0.51.0

type UnionFloat float64

func (UnionFloat) ImplementsConditionalValueUnion added in v0.111.0

func (UnionFloat) ImplementsConditionalValueUnion()

func (UnionFloat) ImplementsConditionalValueUnionParam added in v0.111.0

func (UnionFloat) ImplementsConditionalValueUnionParam()

type UnionInt added in v0.64.0

type UnionInt int64

func (UnionInt) ImplementsConditionalValueUnion added in v0.96.0

func (UnionInt) ImplementsConditionalValueUnion()

func (UnionInt) ImplementsConditionalValueUnionParam added in v0.96.0

func (UnionInt) ImplementsConditionalValueUnionParam()

type UnionString added in v0.51.0

type UnionString string

func (UnionString) ImplementsCardProvisionResponseProvisioningPayloadUnion added in v0.95.0

func (UnionString) ImplementsCardProvisionResponseProvisioningPayloadUnion()

func (UnionString) ImplementsConditionalValueUnion added in v0.96.0

func (UnionString) ImplementsConditionalValueUnion()

func (UnionString) ImplementsConditionalValueUnionParam added in v0.96.0

func (UnionString) ImplementsConditionalValueUnionParam()

type UnionTime added in v0.98.0

type UnionTime time.Time

func (UnionTime) ImplementsConditionalValueUnion added in v0.98.0

func (UnionTime) ImplementsConditionalValueUnion()

func (UnionTime) ImplementsConditionalValueUnionParam added in v0.98.0

func (UnionTime) ImplementsConditionalValueUnionParam()

Jump to

Keyboard shortcuts

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