issuing

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardAuthorizationRequest

type CardAuthorizationRequest struct {
	Card        CardSimulation        `json:"card,omitempty"`
	Transaction TransactionSimulation `json:"transaction,omitempty"`
}

type CardAuthorizationResponse

type CardAuthorizationResponse struct {
	HttpMetadata common.HttpMetadata
	Id           string            `json:"id,omitempty"`
	Status       TransactionStatus `json:"status,omitempty"`
}

type CardSimulation

type CardSimulation struct {
	Id          string `json:"id,omitempty"`
	ExpiryMonth int    `json:"expiry_month,omitempty"`
	ExpiryYear  int    `json:"expiry_year,omitempty"`
}

type CardSimulationRequest

type CardSimulationRequest struct {
	Amount int `json:"amount,omitempty"`
}

type CardSimulationResponse

type CardSimulationResponse struct {
	HttpMetadata common.HttpMetadata
	Status       TransactionStatus `json:"status,omitempty"`
}

type TransactionSimulation

type TransactionSimulation struct {
	Type     TransactionType `json:"type,omitempty"`
	Amount   int             `json:"amount,omitempty"`
	Currency common.Currency `json:"currency,omitempty"`
}

type TransactionStatus

type TransactionStatus string
const (
	Authorized TransactionStatus = "Authorized"
	Declined   TransactionStatus = "Declined"
	Reversed   TransactionStatus = "Reversed"
)

type TransactionType

type TransactionType string
const (
	Purchase TransactionType = "purchase"
)

Jump to

Keyboard shortcuts

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