Documentation ¶
Index ¶
- func NewPasswordThreeDSEnrollmentRequest() *passwordThreeDSEnrollmentRequest
- func NewPhysicalCardRequest() *physicalCardRequest
- func NewSecurityQuestionThreeDSEnrollmentRequest() *securityQuestionThreeDSEnrollmentRequest
- func NewVirtualCardRequest() *virtualCardRequest
- type CardCredentialsQuery
- type CardCredentialsResponse
- type CardDetailsData
- type CardDetailsRequest
- type CardDetailsResponse
- type CardLifetime
- type CardRequest
- type CardResponse
- type CardStatus
- type CardType
- type CardTypeRequest
- type ExtraData
- type LifetimeUnit
- type RevokeCardRequest
- type RevokeReason
- type SecurityPair
- type ShippingInstruction
- type SuspendCardRequest
- type SuspendReason
- type ThreeDSEnrollmentDetailsResponse
- type ThreeDSEnrollmentRequest
- type ThreeDSEnrollmentResponse
- type ThreeDSUpdateRequest
- type ThreeDSUpdateResponse
- type VirtualExtraData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPasswordThreeDSEnrollmentRequest ¶
func NewPasswordThreeDSEnrollmentRequest() *passwordThreeDSEnrollmentRequest
func NewPhysicalCardRequest ¶
func NewPhysicalCardRequest() *physicalCardRequest
func NewSecurityQuestionThreeDSEnrollmentRequest ¶
func NewSecurityQuestionThreeDSEnrollmentRequest() *securityQuestionThreeDSEnrollmentRequest
func NewVirtualCardRequest ¶
func NewVirtualCardRequest() *virtualCardRequest
Types ¶
type CardCredentialsQuery ¶
type CardCredentialsQuery struct {
Credentials string `json:"credentials,omitempty"`
}
type CardCredentialsResponse ¶
type CardDetailsData ¶
type CardDetailsData struct { HttpMetadata common.HttpMetadata Type CardType `json:"type,omitempty"` Id string `json:"id,omitempty"` CardholderId string `json:"cardholder_id,omitempty"` CardProductId string `json:"card_product_id,omitempty"` ClientId string `json:"client_id,omitempty"` LastFour string `json:"last_four,omitempty"` ExpiryMonth int `json:"expiry_month,omitempty"` ExpiryYear int `json:"expiry_year,omitempty"` Status CardStatus `json:"status,omitempty"` DisplayName string `json:"display_name,omitempty"` BillingCurrency common.Currency `json:"billing_currency,omitempty"` IssuingCountry common.Country `json:"issuing_country,omitempty"` Reference string `json:"reference,omitempty"` CreatedDate *time.Time `json:"created_date,omitempty"` LastModifiedDate *time.Time `json:"last_modified_date,omitempty"` }
type CardDetailsRequest ¶
type CardDetailsRequest struct { Type CardType `json:"type,omitempty"` CardholderId string `json:"cardholder_id,omitempty"` Lifetime CardLifetime `json:"lifetime"` Reference string `json:"reference,omitempty"` CardProductId string `json:"card_product_id,omitempty"` DisplayName string `json:"display_name,omitempty"` ActivateCard bool `json:"activate_card,omitempty"` }
type CardDetailsResponse ¶
type CardDetailsResponse struct { CardDetailsData ExtraData ExtraData `json:"limit,omitempty"` }
func (*CardDetailsResponse) UnmarshalJSON ¶
func (s *CardDetailsResponse) UnmarshalJSON(data []byte) error
type CardLifetime ¶
type CardLifetime struct { Unit LifetimeUnit `json:"unit,omitempty"` Value int `json:"value,omitempty"` }
type CardRequest ¶
type CardRequest interface {
GetRequestType() CardType
}
type CardResponse ¶
type CardResponse struct { HttpMetadata common.HttpMetadata Id string `json:"id,omitempty"` DisplayName string `json:"display_name,omitempty"` LastFour string `json:"last_four,omitempty"` ExpiryMonth int `json:"expiry_month,omitempty"` ExpiryYear int `json:"expiry_year,omitempty"` BillingCurrency common.Currency `json:"billing_currency,omitempty"` IssuingCountry common.Country `json:"issuing_country,omitempty"` Reference string `json:"reference,omitempty"` CreatedDate *time.Time `json:"created_date,omitempty"` }
type CardStatus ¶
type CardStatus string
const ( CardActive CardStatus = "active" CardInactive CardStatus = "inactive" CardRevoked CardStatus = "revoked" CardSuspended CardStatus = "suspended" )
type CardTypeRequest ¶
type CardTypeRequest struct {
CardRequest
}
type LifetimeUnit ¶
type LifetimeUnit string
const ( Months LifetimeUnit = "Months" Years LifetimeUnit = "Years" )
type RevokeCardRequest ¶
type RevokeCardRequest struct {
Reason RevokeReason `json:"reason,omitempty"`
}
type RevokeReason ¶
type RevokeReason string
const ( Expired RevokeReason = "expired" ReportedLost RevokeReason = "reported_lost" ReportedStolen RevokeReason = "reported_stolen" )
type SecurityPair ¶
type ShippingInstruction ¶
type SuspendCardRequest ¶
type SuspendCardRequest struct {
Reason SuspendReason `json:"reason,omitempty"`
}
type SuspendReason ¶
type SuspendReason string
const ( SuspectedLost SuspendReason = "suspected_lost" SuspectedStolen SuspendReason = "suspected_stolen" )
type ThreeDSEnrollmentResponse ¶
type ThreeDSEnrollmentResponse struct { HttpMetadata common.HttpMetadata CreatedDate *time.Time `json:"created_date,omitempty"` }
type ThreeDSUpdateRequest ¶
type ThreeDSUpdateRequest struct { SecurityPair SecurityPair Password string Locale string PhoneNumber *common.Phone }
type ThreeDSUpdateResponse ¶
type ThreeDSUpdateResponse struct { HttpMetadata common.HttpMetadata LastModifiedDate *time.Time `json:"last_modified_date,omitempty"` }
type VirtualExtraData ¶
type VirtualExtraData struct {
IsSingleUse bool `json:"is_single_use,omitempty"`
}
func (VirtualExtraData) GetResponseType ¶
func (l VirtualExtraData) GetResponseType() CardType
Click to show internal directories.
Click to hide internal directories.