issuing

package
v0.0.0-...-ff628f3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 CardCredentialsResponse struct {
	Number string `json:"number,omitempty"`
	Cvc2   string `json:"cvc_2,omitempty"`
}

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 CardType

type CardType string
const (
	Physical CardType = "physical"
	Virtual  CardType = "virtual"
)

type CardTypeRequest

type CardTypeRequest struct {
	CardRequest
}

type ExtraData

type ExtraData interface {
	GetResponseType() CardType
}

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 SecurityPair struct {
	Question string `json:"question,omitempty"`
	Answer   string `json:"answer,omitempty"`
}

type ShippingInstruction

type ShippingInstruction struct {
	ShippingRecipient string          `json:"shipping_recipient,omitempty"`
	ShippingAddress   *common.Address `json:"shipping_address,omitempty"`
	AdditionalComment string          `json:"additional_comment,omitempty"`
}

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 ThreeDSEnrollmentDetailsResponse

type ThreeDSEnrollmentDetailsResponse struct {
	HttpMetadata     common.HttpMetadata
	Locale           string        `json:"locale,omitempty"`
	Phone            *common.Phone `json:"phone,omitempty"`
	CreatedDate      *time.Time    `json:"created_date,omitempty"`
	LastModifiedDate *time.Time    `json:"last_modified_date,omitempty"`
}

type ThreeDSEnrollmentRequest

type ThreeDSEnrollmentRequest struct {
	Locale      string        `json:"locale,omitempty"`
	PhoneNumber *common.Phone `json:"phone_number,omitempty"`
}

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

Jump to

Keyboard shortcuts

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