request

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Overview

Package request allow merchants (like web sites selling physical or digital goods) to utilize one or more payment methods with minimal integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressErrors

type AddressErrors struct {
	AddressLine       string
	City              string
	Country           string
	DependentLocality string
	Organization      string
	Phone             string
	PostalCode        string
	Recipient         string
	Region            string
	SortingCode       string
}

dictionary: AddressErrors

func AddressErrorsFromJS

func AddressErrorsFromJS(value js.Value) *AddressErrors

AddressErrorsFromJS is allocating a new AddressErrors object and copy all values in the value javascript object.

func (*AddressErrors) JSValue

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

JSValue is allocating a new javascript object and copy all values

type AddressInit

type AddressInit struct {
	Country           string
	AddressLine       []string
	Region            string
	City              string
	DependentLocality string
	PostalCode        string
	SortingCode       string
	Organization      string
	Recipient         string
	Phone             string
}

dictionary: AddressInit

func AddressInitFromJS

func AddressInitFromJS(value js.Value) *AddressInit

AddressInitFromJS is allocating a new AddressInit object and copy all values in the value javascript object.

func (*AddressInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type MerchantValidationEvent

type MerchantValidationEvent struct {
	domcore.Event
}

class: MerchantValidationEvent

func MerchantValidationEventFromJS

func MerchantValidationEventFromJS(value js.Value) *MerchantValidationEvent

MerchantValidationEventFromJS is casting a js.Value into MerchantValidationEvent.

func MerchantValidationEventFromWrapper

func MerchantValidationEventFromWrapper(input core.Wrapper) *MerchantValidationEvent

MerchantValidationEventFromJS is casting from something that holds a js.Value into MerchantValidationEvent.

func NewMerchantValidationEvent

func NewMerchantValidationEvent(_type string, eventInitDict *MerchantValidationEventInit) (_result *MerchantValidationEvent)

func (*MerchantValidationEvent) Complete

func (_this *MerchantValidationEvent) Complete(merchantSessionPromise *javascript.Promise)

func (*MerchantValidationEvent) MethodName

func (_this *MerchantValidationEvent) MethodName() string

MethodName returning attribute 'methodName' with type string (idl: DOMString).

func (*MerchantValidationEvent) ValidationURL

func (_this *MerchantValidationEvent) ValidationURL() string

ValidationURL returning attribute 'validationURL' with type string (idl: USVString).

type MerchantValidationEventInit

type MerchantValidationEventInit struct {
	Bubbles       bool
	Cancelable    bool
	Composed      bool
	MethodName    string
	ValidationURL string
}

dictionary: MerchantValidationEventInit

func MerchantValidationEventInitFromJS

func MerchantValidationEventInitFromJS(value js.Value) *MerchantValidationEventInit

MerchantValidationEventInitFromJS is allocating a new MerchantValidationEventInit object and copy all values in the value javascript object.

func (*MerchantValidationEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PayerErrors

type PayerErrors struct {
	Email string
	Name  string
	Phone string
}

dictionary: PayerErrors

func PayerErrorsFromJS

func PayerErrorsFromJS(value js.Value) *PayerErrors

PayerErrorsFromJS is allocating a new PayerErrors object and copy all values in the value javascript object.

func (*PayerErrors) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PaymentAddress

type PaymentAddress struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: PaymentAddress

func PaymentAddressFromJS

func PaymentAddressFromJS(value js.Value) *PaymentAddress

PaymentAddressFromJS is casting a js.Value into PaymentAddress.

func PaymentAddressFromWrapper

func PaymentAddressFromWrapper(input core.Wrapper) *PaymentAddress

PaymentAddressFromJS is casting from something that holds a js.Value into PaymentAddress.

func (*PaymentAddress) AddressLine

func (_this *PaymentAddress) AddressLine() *javascript.FrozenArray

AddressLine returning attribute 'addressLine' with type javascript.FrozenArray (idl: FrozenArray).

func (*PaymentAddress) City

func (_this *PaymentAddress) City() string

City returning attribute 'city' with type string (idl: DOMString).

func (*PaymentAddress) Country

func (_this *PaymentAddress) Country() string

Country returning attribute 'country' with type string (idl: DOMString).

func (*PaymentAddress) DependentLocality

func (_this *PaymentAddress) DependentLocality() string

DependentLocality returning attribute 'dependentLocality' with type string (idl: DOMString).

func (*PaymentAddress) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PaymentAddress) Organization

func (_this *PaymentAddress) Organization() string

Organization returning attribute 'organization' with type string (idl: DOMString).

func (*PaymentAddress) Phone

func (_this *PaymentAddress) Phone() string

Phone returning attribute 'phone' with type string (idl: DOMString).

func (*PaymentAddress) PostalCode

func (_this *PaymentAddress) PostalCode() string

PostalCode returning attribute 'postalCode' with type string (idl: DOMString).

func (*PaymentAddress) Recipient

func (_this *PaymentAddress) Recipient() string

Recipient returning attribute 'recipient' with type string (idl: DOMString).

func (*PaymentAddress) Region

func (_this *PaymentAddress) Region() string

Region returning attribute 'region' with type string (idl: DOMString).

func (*PaymentAddress) SortingCode

func (_this *PaymentAddress) SortingCode() string

SortingCode returning attribute 'sortingCode' with type string (idl: DOMString).

func (*PaymentAddress) ToJSON

func (_this *PaymentAddress) ToJSON() (_result *javascript.Object)

type PaymentComplete

type PaymentComplete int

enum: PaymentComplete

const (
	FailPaymentComplete PaymentComplete = iota
	SuccessPaymentComplete
	UnknownPaymentComplete
)

func PaymentCompleteFromJS

func PaymentCompleteFromJS(value js.Value) PaymentComplete

PaymentCompleteFromJS is converting a javascript value into a PaymentComplete enum value.

func (*PaymentComplete) JSValue

func (this *PaymentComplete) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (PaymentComplete) Value

func (this PaymentComplete) Value() string

Value is converting this into javascript defined string value

type PaymentCurrencyAmount

type PaymentCurrencyAmount struct {
	Currency string
	Value    string
}

dictionary: PaymentCurrencyAmount

func PaymentCurrencyAmountFromJS

func PaymentCurrencyAmountFromJS(value js.Value) *PaymentCurrencyAmount

PaymentCurrencyAmountFromJS is allocating a new PaymentCurrencyAmount object and copy all values in the value javascript object.

func (*PaymentCurrencyAmount) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PaymentDetailsBase

type PaymentDetailsBase struct {
	DisplayItems    []*PaymentItem
	ShippingOptions []*PaymentShippingOption
	Modifiers       []*PaymentDetailsModifier
}

dictionary: PaymentDetailsBase

func PaymentDetailsBaseFromJS

func PaymentDetailsBaseFromJS(value js.Value) *PaymentDetailsBase

PaymentDetailsBaseFromJS is allocating a new PaymentDetailsBase object and copy all values in the value javascript object.

func (*PaymentDetailsBase) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PaymentDetailsInit

type PaymentDetailsInit struct {
	DisplayItems    []*PaymentItem
	ShippingOptions []*PaymentShippingOption
	Modifiers       []*PaymentDetailsModifier
	Id              string
	Total           *PaymentItem
}

dictionary: PaymentDetailsInit

func PaymentDetailsInitFromJS

func PaymentDetailsInitFromJS(value js.Value) *PaymentDetailsInit

PaymentDetailsInitFromJS is allocating a new PaymentDetailsInit object and copy all values in the value javascript object.

func (*PaymentDetailsInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PaymentDetailsModifier

type PaymentDetailsModifier struct {
	SupportedMethods       string
	Total                  *PaymentItem
	AdditionalDisplayItems []*PaymentItem
	Data                   *javascript.Object
}

dictionary: PaymentDetailsModifier

func PaymentDetailsModifierFromJS

func PaymentDetailsModifierFromJS(value js.Value) *PaymentDetailsModifier

PaymentDetailsModifierFromJS is allocating a new PaymentDetailsModifier object and copy all values in the value javascript object.

func (*PaymentDetailsModifier) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PaymentDetailsUpdate

type PaymentDetailsUpdate struct {
	DisplayItems          []*PaymentItem
	ShippingOptions       []*PaymentShippingOption
	Modifiers             []*PaymentDetailsModifier
	Error                 string
	Total                 *PaymentItem
	ShippingAddressErrors *AddressErrors
	PayerErrors           *PayerErrors
	PaymentMethodErrors   *javascript.Object
}

dictionary: PaymentDetailsUpdate

func PaymentDetailsUpdateFromJS

func PaymentDetailsUpdateFromJS(value js.Value) *PaymentDetailsUpdate

PaymentDetailsUpdateFromJS is allocating a new PaymentDetailsUpdate object and copy all values in the value javascript object.

func (*PaymentDetailsUpdate) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PaymentItem

type PaymentItem struct {
	Label   string
	Amount  *PaymentCurrencyAmount
	Pending bool
}

dictionary: PaymentItem

func PaymentItemFromJS

func PaymentItemFromJS(value js.Value) *PaymentItem

PaymentItemFromJS is allocating a new PaymentItem object and copy all values in the value javascript object.

func (*PaymentItem) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PaymentMethodChangeEvent

type PaymentMethodChangeEvent struct {
	PaymentRequestUpdateEvent
}

class: PaymentMethodChangeEvent

func NewPaymentMethodChangeEvent

func NewPaymentMethodChangeEvent(_type string, eventInitDict *PaymentMethodChangeEventInit) (_result *PaymentMethodChangeEvent)

func PaymentMethodChangeEventFromJS

func PaymentMethodChangeEventFromJS(value js.Value) *PaymentMethodChangeEvent

PaymentMethodChangeEventFromJS is casting a js.Value into PaymentMethodChangeEvent.

func PaymentMethodChangeEventFromWrapper

func PaymentMethodChangeEventFromWrapper(input core.Wrapper) *PaymentMethodChangeEvent

PaymentMethodChangeEventFromJS is casting from something that holds a js.Value into PaymentMethodChangeEvent.

func (*PaymentMethodChangeEvent) MethodDetails

func (_this *PaymentMethodChangeEvent) MethodDetails() *javascript.Object

MethodDetails returning attribute 'methodDetails' with type javascript.Object (idl: object).

func (*PaymentMethodChangeEvent) MethodName

func (_this *PaymentMethodChangeEvent) MethodName() string

MethodName returning attribute 'methodName' with type string (idl: DOMString).

type PaymentMethodChangeEventInit

type PaymentMethodChangeEventInit struct {
	Bubbles       bool
	Cancelable    bool
	Composed      bool
	MethodName    string
	MethodDetails *javascript.Object
}

dictionary: PaymentMethodChangeEventInit

func PaymentMethodChangeEventInitFromJS

func PaymentMethodChangeEventInitFromJS(value js.Value) *PaymentMethodChangeEventInit

PaymentMethodChangeEventInitFromJS is allocating a new PaymentMethodChangeEventInit object and copy all values in the value javascript object.

func (*PaymentMethodChangeEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PaymentMethodData

type PaymentMethodData struct {
	SupportedMethods string
	Data             *javascript.Object
}

dictionary: PaymentMethodData

func PaymentMethodDataFromJS

func PaymentMethodDataFromJS(value js.Value) *PaymentMethodData

PaymentMethodDataFromJS is allocating a new PaymentMethodData object and copy all values in the value javascript object.

func (*PaymentMethodData) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PaymentOptions

type PaymentOptions struct {
	RequestPayerName      bool
	RequestBillingAddress bool
	RequestPayerEmail     bool
	RequestPayerPhone     bool
	RequestShipping       bool
	ShippingType          PaymentShippingType
}

dictionary: PaymentOptions

func PaymentOptionsFromJS

func PaymentOptionsFromJS(value js.Value) *PaymentOptions

PaymentOptionsFromJS is allocating a new PaymentOptions object and copy all values in the value javascript object.

func (*PaymentOptions) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PaymentRequest

type PaymentRequest struct {
	domcore.EventTarget
}

class: PaymentRequest

func NewPaymentRequest

func NewPaymentRequest(methodData []*PaymentMethodData, details *PaymentDetailsInit, options *PaymentOptions) (_result *PaymentRequest)

func PaymentRequestFromJS

func PaymentRequestFromJS(value js.Value) *PaymentRequest

PaymentRequestFromJS is casting a js.Value into PaymentRequest.

func PaymentRequestFromWrapper

func PaymentRequestFromWrapper(input core.Wrapper) *PaymentRequest

PaymentRequestFromJS is casting from something that holds a js.Value into PaymentRequest.

func (*PaymentRequest) Abort

func (_this *PaymentRequest) Abort() (_result *javascript.PromiseVoid)

func (*PaymentRequest) AddEventMerchantValidation

func (_this *PaymentRequest) AddEventMerchantValidation(listener func(event *MerchantValidationEvent, currentTarget *PaymentRequest)) js.Func

AddMerchantValidation is adding doing AddEventListener for 'MerchantValidation' on target. This method is returning allocated javascript function that need to be released.

func (*PaymentRequest) AddEventPaymentMethodChange

func (_this *PaymentRequest) AddEventPaymentMethodChange(listener func(event *PaymentMethodChangeEvent, currentTarget *PaymentRequest)) js.Func

AddPaymentMethodChange is adding doing AddEventListener for 'PaymentMethodChange' on target. This method is returning allocated javascript function that need to be released.

func (*PaymentRequest) AddEventShippingAddressChange

func (_this *PaymentRequest) AddEventShippingAddressChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentRequest)) js.Func

AddShippingAddressChange is adding doing AddEventListener for 'ShippingAddressChange' on target. This method is returning allocated javascript function that need to be released.

func (*PaymentRequest) AddEventShippingOptionChange

func (_this *PaymentRequest) AddEventShippingOptionChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentRequest)) js.Func

AddShippingOptionChange is adding doing AddEventListener for 'ShippingOptionChange' on target. This method is returning allocated javascript function that need to be released.

func (*PaymentRequest) CanMakePayment

func (_this *PaymentRequest) CanMakePayment() (_result *javascript.PromiseBool)

func (*PaymentRequest) Id

func (_this *PaymentRequest) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*PaymentRequest) OnMerchantValidation

func (_this *PaymentRequest) OnMerchantValidation() domcore.EventHandlerFunc

OnMerchantValidation returning attribute 'onmerchantvalidation' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PaymentRequest) OnPaymentMethodChange

func (_this *PaymentRequest) OnPaymentMethodChange() domcore.EventHandlerFunc

OnPaymentMethodChange returning attribute 'onpaymentmethodchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PaymentRequest) OnShippingAddressChange

func (_this *PaymentRequest) OnShippingAddressChange() domcore.EventHandlerFunc

OnShippingAddressChange returning attribute 'onshippingaddresschange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PaymentRequest) OnShippingOptionChange

func (_this *PaymentRequest) OnShippingOptionChange() domcore.EventHandlerFunc

OnShippingOptionChange returning attribute 'onshippingoptionchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PaymentRequest) SetOnMerchantValidation

func (_this *PaymentRequest) SetOnMerchantValidation(listener func(event *MerchantValidationEvent, currentTarget *PaymentRequest)) js.Func

SetOnMerchantValidation is assigning a function to 'onmerchantvalidation'. This This method is returning allocated javascript function that need to be released.

func (*PaymentRequest) SetOnPaymentMethodChange

func (_this *PaymentRequest) SetOnPaymentMethodChange(listener func(event *PaymentMethodChangeEvent, currentTarget *PaymentRequest)) js.Func

SetOnPaymentMethodChange is assigning a function to 'onpaymentmethodchange'. This This method is returning allocated javascript function that need to be released.

func (*PaymentRequest) SetOnShippingAddressChange

func (_this *PaymentRequest) SetOnShippingAddressChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentRequest)) js.Func

SetOnShippingAddressChange is assigning a function to 'onshippingaddresschange'. This This method is returning allocated javascript function that need to be released.

func (*PaymentRequest) SetOnShippingOptionChange

func (_this *PaymentRequest) SetOnShippingOptionChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentRequest)) js.Func

SetOnShippingOptionChange is assigning a function to 'onshippingoptionchange'. This This method is returning allocated javascript function that need to be released.

func (*PaymentRequest) ShippingAddress

func (_this *PaymentRequest) ShippingAddress() *PaymentAddress

ShippingAddress returning attribute 'shippingAddress' with type PaymentAddress (idl: PaymentAddress).

func (*PaymentRequest) ShippingOption

func (_this *PaymentRequest) ShippingOption() *string

ShippingOption returning attribute 'shippingOption' with type string (idl: DOMString).

func (*PaymentRequest) ShippingType

func (_this *PaymentRequest) ShippingType() *PaymentShippingType

ShippingType returning attribute 'shippingType' with type PaymentShippingType (idl: PaymentShippingType).

func (*PaymentRequest) Show

func (_this *PaymentRequest) Show(detailsPromise *PromisePaymentDetailsUpdate) (_result *PromisePaymentResponse)

type PaymentRequestUpdateEvent

type PaymentRequestUpdateEvent struct {
	domcore.Event
}

class: PaymentRequestUpdateEvent

func NewPaymentRequestUpdateEvent

func NewPaymentRequestUpdateEvent(_type string, eventInitDict *PaymentRequestUpdateEventInit) (_result *PaymentRequestUpdateEvent)

func PaymentRequestUpdateEventFromJS

func PaymentRequestUpdateEventFromJS(value js.Value) *PaymentRequestUpdateEvent

PaymentRequestUpdateEventFromJS is casting a js.Value into PaymentRequestUpdateEvent.

func PaymentRequestUpdateEventFromWrapper

func PaymentRequestUpdateEventFromWrapper(input core.Wrapper) *PaymentRequestUpdateEvent

PaymentRequestUpdateEventFromJS is casting from something that holds a js.Value into PaymentRequestUpdateEvent.

func (*PaymentRequestUpdateEvent) UpdateWith

func (_this *PaymentRequestUpdateEvent) UpdateWith(detailsPromise *PromisePaymentDetailsUpdate)

type PaymentRequestUpdateEventInit

type PaymentRequestUpdateEventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
}

dictionary: PaymentRequestUpdateEventInit

func PaymentRequestUpdateEventInitFromJS

func PaymentRequestUpdateEventInitFromJS(value js.Value) *PaymentRequestUpdateEventInit

PaymentRequestUpdateEventInitFromJS is allocating a new PaymentRequestUpdateEventInit object and copy all values in the value javascript object.

func (*PaymentRequestUpdateEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PaymentResponse

type PaymentResponse struct {
	domcore.EventTarget
}

class: PaymentResponse

func PaymentResponseFromJS

func PaymentResponseFromJS(value js.Value) *PaymentResponse

PaymentResponseFromJS is casting a js.Value into PaymentResponse.

func PaymentResponseFromWrapper

func PaymentResponseFromWrapper(input core.Wrapper) *PaymentResponse

PaymentResponseFromJS is casting from something that holds a js.Value into PaymentResponse.

func (*PaymentResponse) AddEventPayerDetailChange

func (_this *PaymentResponse) AddEventPayerDetailChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentResponse)) js.Func

AddPayerDetailChange is adding doing AddEventListener for 'PayerDetailChange' on target. This method is returning allocated javascript function that need to be released.

func (*PaymentResponse) Complete

func (_this *PaymentResponse) Complete(result *PaymentComplete) (_result *javascript.PromiseVoid)

func (*PaymentResponse) Details

func (_this *PaymentResponse) Details() *javascript.Object

Details returning attribute 'details' with type javascript.Object (idl: object).

func (*PaymentResponse) MethodName

func (_this *PaymentResponse) MethodName() string

MethodName returning attribute 'methodName' with type string (idl: DOMString).

func (*PaymentResponse) OnPayerDetailChange

func (_this *PaymentResponse) OnPayerDetailChange() domcore.EventHandlerFunc

OnPayerDetailChange returning attribute 'onpayerdetailchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PaymentResponse) PayerEmail

func (_this *PaymentResponse) PayerEmail() *string

PayerEmail returning attribute 'payerEmail' with type string (idl: DOMString).

func (*PaymentResponse) PayerName

func (_this *PaymentResponse) PayerName() *string

PayerName returning attribute 'payerName' with type string (idl: DOMString).

func (*PaymentResponse) PayerPhone

func (_this *PaymentResponse) PayerPhone() *string

PayerPhone returning attribute 'payerPhone' with type string (idl: DOMString).

func (*PaymentResponse) RequestId

func (_this *PaymentResponse) RequestId() string

RequestId returning attribute 'requestId' with type string (idl: DOMString).

func (*PaymentResponse) Retry

func (_this *PaymentResponse) Retry(errorFields *PaymentValidationErrors) (_result *javascript.PromiseVoid)

func (*PaymentResponse) SetOnPayerDetailChange

func (_this *PaymentResponse) SetOnPayerDetailChange(listener func(event *PaymentRequestUpdateEvent, currentTarget *PaymentResponse)) js.Func

SetOnPayerDetailChange is assigning a function to 'onpayerdetailchange'. This This method is returning allocated javascript function that need to be released.

func (*PaymentResponse) ShippingAddress

func (_this *PaymentResponse) ShippingAddress() *PaymentAddress

ShippingAddress returning attribute 'shippingAddress' with type PaymentAddress (idl: PaymentAddress).

func (*PaymentResponse) ShippingOption

func (_this *PaymentResponse) ShippingOption() *string

ShippingOption returning attribute 'shippingOption' with type string (idl: DOMString).

func (*PaymentResponse) ToJSON

func (_this *PaymentResponse) ToJSON() (_result *javascript.Object)

type PaymentShippingOption

type PaymentShippingOption struct {
	Id       string
	Label    string
	Amount   *PaymentCurrencyAmount
	Selected bool
}

dictionary: PaymentShippingOption

func PaymentShippingOptionFromJS

func PaymentShippingOptionFromJS(value js.Value) *PaymentShippingOption

PaymentShippingOptionFromJS is allocating a new PaymentShippingOption object and copy all values in the value javascript object.

func (*PaymentShippingOption) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PaymentShippingType

type PaymentShippingType int

enum: PaymentShippingType

const (
	ShippingPaymentShippingType PaymentShippingType = iota
	DeliveryPaymentShippingType
	PickupPaymentShippingType
)

func PaymentShippingTypeFromJS

func PaymentShippingTypeFromJS(value js.Value) PaymentShippingType

PaymentShippingTypeFromJS is converting a javascript value into a PaymentShippingType enum value.

func (*PaymentShippingType) JSValue

func (this *PaymentShippingType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (PaymentShippingType) Value

func (this PaymentShippingType) Value() string

Value is converting this into javascript defined string value

type PaymentValidationErrors

type PaymentValidationErrors struct {
	Payer           *PayerErrors
	ShippingAddress *AddressErrors
	Error           string
	PaymentMethod   *javascript.Object
}

dictionary: PaymentValidationErrors

func PaymentValidationErrorsFromJS

func PaymentValidationErrorsFromJS(value js.Value) *PaymentValidationErrors

PaymentValidationErrorsFromJS is allocating a new PaymentValidationErrors object and copy all values in the value javascript object.

func (*PaymentValidationErrors) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PromisePaymentDetailsUpdate

type PromisePaymentDetailsUpdate struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromisePaymentDetailsUpdateFromJS

func PromisePaymentDetailsUpdateFromJS(value js.Value) *PromisePaymentDetailsUpdate

PromisePaymentDetailsUpdateFromJS is casting a js.Value into PromisePaymentDetailsUpdate.

func PromisePaymentDetailsUpdateFromWrapper

func PromisePaymentDetailsUpdateFromWrapper(input core.Wrapper) *PromisePaymentDetailsUpdate

PromisePaymentDetailsUpdateFromJS is casting from something that holds a js.Value into PromisePaymentDetailsUpdate.

func (*PromisePaymentDetailsUpdate) Catch

func (*PromisePaymentDetailsUpdate) Finally

func (*PromisePaymentDetailsUpdate) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromisePaymentDetailsUpdate) Then

type PromisePaymentDetailsUpdateOnFulfilled

type PromisePaymentDetailsUpdateOnFulfilled js.Func

PromisePaymentDetailsUpdateOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromisePaymentDetailsUpdateOnFulfilledFunc

type PromisePaymentDetailsUpdateOnFulfilledFunc func(value *PaymentDetailsUpdate)

callback: PromiseTemplateOnFulfilled

func PromisePaymentDetailsUpdateOnFulfilledFromJS

func PromisePaymentDetailsUpdateOnFulfilledFromJS(_value js.Value) PromisePaymentDetailsUpdateOnFulfilledFunc

type PromisePaymentDetailsUpdateOnRejected

type PromisePaymentDetailsUpdateOnRejected js.Func

PromisePaymentDetailsUpdateOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromisePaymentDetailsUpdateOnRejectedFunc

type PromisePaymentDetailsUpdateOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePaymentDetailsUpdateOnRejectedFromJS

func PromisePaymentDetailsUpdateOnRejectedFromJS(_value js.Value) PromisePaymentDetailsUpdateOnRejectedFunc

type PromisePaymentResponse

type PromisePaymentResponse struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromisePaymentResponseFromJS

func PromisePaymentResponseFromJS(value js.Value) *PromisePaymentResponse

PromisePaymentResponseFromJS is casting a js.Value into PromisePaymentResponse.

func PromisePaymentResponseFromWrapper

func PromisePaymentResponseFromWrapper(input core.Wrapper) *PromisePaymentResponse

PromisePaymentResponseFromJS is casting from something that holds a js.Value into PromisePaymentResponse.

func (*PromisePaymentResponse) Catch

func (*PromisePaymentResponse) Finally

func (_this *PromisePaymentResponse) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePaymentResponse)

func (*PromisePaymentResponse) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromisePaymentResponse) Then

type PromisePaymentResponseOnFulfilled

type PromisePaymentResponseOnFulfilled js.Func

PromisePaymentResponseOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromisePaymentResponseOnFulfilledFunc

type PromisePaymentResponseOnFulfilledFunc func(value *PaymentResponse)

callback: PromiseTemplateOnFulfilled

func PromisePaymentResponseOnFulfilledFromJS

func PromisePaymentResponseOnFulfilledFromJS(_value js.Value) PromisePaymentResponseOnFulfilledFunc

type PromisePaymentResponseOnRejected

type PromisePaymentResponseOnRejected js.Func

PromisePaymentResponseOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromisePaymentResponseOnRejectedFunc

type PromisePaymentResponseOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePaymentResponseOnRejectedFromJS

func PromisePaymentResponseOnRejectedFromJS(_value js.Value) PromisePaymentResponseOnRejectedFunc

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
y or Y : Canonical URL