basiccard

package
Version: v0.0.0-...-704d94b Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package basiccard describes data structures and formats, and a simple processing model, to facilitate card-based payments on the Web.

Index

Constants

View Source
const Name = "basic-card"

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicCardChangeDetails

type BasicCardChangeDetails struct {
	BillingAddress *request.PaymentAddress
}

dictionary: BasicCardChangeDetails

func BasicCardChangeDetailsFromJS

func BasicCardChangeDetailsFromJS(value js.Wrapper) *BasicCardChangeDetails

BasicCardChangeDetailsFromJS is allocating a new BasicCardChangeDetails object and copy all values from input javascript object

func (*BasicCardChangeDetails) JSValue

func (_this *BasicCardChangeDetails) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type BasicCardErrors

type BasicCardErrors struct {
	CardNumber       string
	CardholderName   string
	CardSecurityCode string
	ExpiryMonth      string
	ExpiryYear       string
	BillingAddress   *request.AddressErrors
}

dictionary: BasicCardErrors

func BasicCardErrorsFromJS

func BasicCardErrorsFromJS(value js.Wrapper) *BasicCardErrors

BasicCardErrorsFromJS is allocating a new BasicCardErrors object and copy all values from input javascript object

func (*BasicCardErrors) JSValue

func (_this *BasicCardErrors) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type BasicCardRequest

type BasicCardRequest struct {
	SupportedNetworks []string
}

dictionary: BasicCardRequest

func BasicCardRequestFromJS

func BasicCardRequestFromJS(value js.Wrapper) *BasicCardRequest

BasicCardRequestFromJS is allocating a new BasicCardRequest object and copy all values from input javascript object

func (*BasicCardRequest) JSValue

func (_this *BasicCardRequest) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type BasicCardResponse

type BasicCardResponse struct {
	CardNumber       string
	CardholderName   string
	CardSecurityCode string
	ExpiryMonth      string
	ExpiryYear       string
	BillingAddress   *request.PaymentAddress
}

dictionary: BasicCardResponse

func BasicCardResponseFromJS

func BasicCardResponseFromJS(value js.Wrapper) *BasicCardResponse

BasicCardResponseFromJS is allocating a new BasicCardResponse object and copy all values from input javascript object

func (*BasicCardResponse) JSValue

func (_this *BasicCardResponse) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL