webapi: github.com/gowebapi/webapi/payment/request Index | Files

package request

import "github.com/gowebapi/webapi/payment/request"

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

Index

Package Files

doc.go request.go

type AddressErrors Uses

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 Uses

func AddressErrorsFromJS(value js.Wrapper) *AddressErrors

AddressErrorsFromJS is allocating a new AddressErrors object and copy all values from input javascript object

func (*AddressErrors) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type AddressInit Uses

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 Uses

func AddressInitFromJS(value js.Wrapper) *AddressInit

AddressInitFromJS is allocating a new AddressInit object and copy all values from input javascript object

func (*AddressInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type MerchantValidationEvent Uses

type MerchantValidationEvent struct {
    domcore.Event
}

class: MerchantValidationEvent

func MerchantValidationEventFromJS Uses

func MerchantValidationEventFromJS(value js.Wrapper) *MerchantValidationEvent

MerchantValidationEventFromJS is casting a js.Wrapper into MerchantValidationEvent.

func NewMerchantValidationEvent Uses

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

func (*MerchantValidationEvent) Complete Uses

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

func (*MerchantValidationEvent) MethodName Uses

func (_this *MerchantValidationEvent) MethodName() string

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

func (*MerchantValidationEvent) ValidationURL Uses

func (_this *MerchantValidationEvent) ValidationURL() string

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

type MerchantValidationEventInit Uses

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

dictionary: MerchantValidationEventInit

func MerchantValidationEventInitFromJS Uses

func MerchantValidationEventInitFromJS(value js.Wrapper) *MerchantValidationEventInit

MerchantValidationEventInitFromJS is allocating a new MerchantValidationEventInit object and copy all values from input javascript object

func (*MerchantValidationEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PayerErrors Uses

type PayerErrors struct {
    Email string
    Name  string
    Phone string
}

dictionary: PayerErrors

func PayerErrorsFromJS Uses

func PayerErrorsFromJS(value js.Wrapper) *PayerErrors

PayerErrorsFromJS is allocating a new PayerErrors object and copy all values from input javascript object

func (*PayerErrors) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaymentAddress Uses

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

class: PaymentAddress

func PaymentAddressFromJS Uses

func PaymentAddressFromJS(value js.Wrapper) *PaymentAddress

PaymentAddressFromJS is casting a js.Wrapper into PaymentAddress.

func (*PaymentAddress) AddressLine Uses

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

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

func (*PaymentAddress) City Uses

func (_this *PaymentAddress) City() string

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

func (*PaymentAddress) Country Uses

func (_this *PaymentAddress) Country() string

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

func (*PaymentAddress) DependentLocality Uses

func (_this *PaymentAddress) DependentLocality() string

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

func (*PaymentAddress) JSValue Uses

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

func (*PaymentAddress) Organization Uses

func (_this *PaymentAddress) Organization() string

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

func (*PaymentAddress) Phone Uses

func (_this *PaymentAddress) Phone() string

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

func (*PaymentAddress) PostalCode Uses

func (_this *PaymentAddress) PostalCode() string

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

func (*PaymentAddress) Recipient Uses

func (_this *PaymentAddress) Recipient() string

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

func (*PaymentAddress) Region Uses

func (_this *PaymentAddress) Region() string

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

func (*PaymentAddress) SortingCode Uses

func (_this *PaymentAddress) SortingCode() string

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

func (*PaymentAddress) ToJSON Uses

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

type PaymentComplete Uses

type PaymentComplete int

enum: PaymentComplete

const (
    FailPaymentComplete PaymentComplete = iota
    SuccessPaymentComplete
    UnknownPaymentComplete
)

func PaymentCompleteFromJS Uses

func PaymentCompleteFromJS(value js.Value) PaymentComplete

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

func (*PaymentComplete) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (PaymentComplete) Value Uses

func (this PaymentComplete) Value() string

Value is converting this into javascript defined string value

type PaymentCurrencyAmount Uses

type PaymentCurrencyAmount struct {
    Currency string
    Value    string
}

dictionary: PaymentCurrencyAmount

func PaymentCurrencyAmountFromJS Uses

func PaymentCurrencyAmountFromJS(value js.Wrapper) *PaymentCurrencyAmount

PaymentCurrencyAmountFromJS is allocating a new PaymentCurrencyAmount object and copy all values from input javascript object

func (*PaymentCurrencyAmount) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaymentDetailsBase Uses

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

dictionary: PaymentDetailsBase

func PaymentDetailsBaseFromJS Uses

func PaymentDetailsBaseFromJS(value js.Wrapper) *PaymentDetailsBase

PaymentDetailsBaseFromJS is allocating a new PaymentDetailsBase object and copy all values from input javascript object

func (*PaymentDetailsBase) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaymentDetailsInit Uses

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

dictionary: PaymentDetailsInit

func PaymentDetailsInitFromJS Uses

func PaymentDetailsInitFromJS(value js.Wrapper) *PaymentDetailsInit

PaymentDetailsInitFromJS is allocating a new PaymentDetailsInit object and copy all values from input javascript object

func (*PaymentDetailsInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaymentDetailsModifier Uses

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

dictionary: PaymentDetailsModifier

func PaymentDetailsModifierFromJS Uses

func PaymentDetailsModifierFromJS(value js.Wrapper) *PaymentDetailsModifier

PaymentDetailsModifierFromJS is allocating a new PaymentDetailsModifier object and copy all values from input javascript object

func (*PaymentDetailsModifier) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaymentDetailsUpdate Uses

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

dictionary: PaymentDetailsUpdate

func PaymentDetailsUpdateFromJS Uses

func PaymentDetailsUpdateFromJS(value js.Wrapper) *PaymentDetailsUpdate

PaymentDetailsUpdateFromJS is allocating a new PaymentDetailsUpdate object and copy all values from input javascript object

func (*PaymentDetailsUpdate) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaymentItem Uses

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

dictionary: PaymentItem

func PaymentItemFromJS Uses

func PaymentItemFromJS(value js.Wrapper) *PaymentItem

PaymentItemFromJS is allocating a new PaymentItem object and copy all values from input javascript object

func (*PaymentItem) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaymentMethodChangeEvent Uses

type PaymentMethodChangeEvent struct {
    PaymentRequestUpdateEvent
}

class: PaymentMethodChangeEvent

func NewPaymentMethodChangeEvent Uses

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

func PaymentMethodChangeEventFromJS Uses

func PaymentMethodChangeEventFromJS(value js.Wrapper) *PaymentMethodChangeEvent

PaymentMethodChangeEventFromJS is casting a js.Wrapper into PaymentMethodChangeEvent.

func (*PaymentMethodChangeEvent) MethodDetails Uses

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

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

func (*PaymentMethodChangeEvent) MethodName Uses

func (_this *PaymentMethodChangeEvent) MethodName() string

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

type PaymentMethodChangeEventInit Uses

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

dictionary: PaymentMethodChangeEventInit

func PaymentMethodChangeEventInitFromJS Uses

func PaymentMethodChangeEventInitFromJS(value js.Wrapper) *PaymentMethodChangeEventInit

PaymentMethodChangeEventInitFromJS is allocating a new PaymentMethodChangeEventInit object and copy all values from input javascript object

func (*PaymentMethodChangeEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaymentMethodData Uses

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

dictionary: PaymentMethodData

func PaymentMethodDataFromJS Uses

func PaymentMethodDataFromJS(value js.Wrapper) *PaymentMethodData

PaymentMethodDataFromJS is allocating a new PaymentMethodData object and copy all values from input javascript object

func (*PaymentMethodData) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaymentOptions Uses

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

dictionary: PaymentOptions

func PaymentOptionsFromJS Uses

func PaymentOptionsFromJS(value js.Wrapper) *PaymentOptions

PaymentOptionsFromJS is allocating a new PaymentOptions object and copy all values from input javascript object

func (*PaymentOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaymentRequest Uses

type PaymentRequest struct {
    domcore.EventTarget
}

class: PaymentRequest

func NewPaymentRequest Uses

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

func PaymentRequestFromJS Uses

func PaymentRequestFromJS(value js.Wrapper) *PaymentRequest

PaymentRequestFromJS is casting a js.Wrapper into PaymentRequest.

func (*PaymentRequest) Abort Uses

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

func (*PaymentRequest) AddEventMerchantValidation Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

func (*PaymentRequest) Id Uses

func (_this *PaymentRequest) Id() string

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

func (*PaymentRequest) OnMerchantValidation Uses

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

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

func (*PaymentRequest) OnPaymentMethodChange Uses

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

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

func (*PaymentRequest) OnShippingAddressChange Uses

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

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

func (*PaymentRequest) OnShippingOptionChange Uses

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

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

func (*PaymentRequest) SetOnMerchantValidation Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (_this *PaymentRequest) ShippingAddress() *PaymentAddress

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

func (*PaymentRequest) ShippingOption Uses

func (_this *PaymentRequest) ShippingOption() *string

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

func (*PaymentRequest) ShippingType Uses

func (_this *PaymentRequest) ShippingType() *PaymentShippingType

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

func (*PaymentRequest) Show Uses

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

type PaymentRequestUpdateEvent Uses

type PaymentRequestUpdateEvent struct {
    domcore.Event
}

class: PaymentRequestUpdateEvent

func NewPaymentRequestUpdateEvent Uses

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

func PaymentRequestUpdateEventFromJS Uses

func PaymentRequestUpdateEventFromJS(value js.Wrapper) *PaymentRequestUpdateEvent

PaymentRequestUpdateEventFromJS is casting a js.Wrapper into PaymentRequestUpdateEvent.

func (*PaymentRequestUpdateEvent) UpdateWith Uses

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

type PaymentRequestUpdateEventInit Uses

type PaymentRequestUpdateEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
}

dictionary: PaymentRequestUpdateEventInit

func PaymentRequestUpdateEventInitFromJS Uses

func PaymentRequestUpdateEventInitFromJS(value js.Wrapper) *PaymentRequestUpdateEventInit

PaymentRequestUpdateEventInitFromJS is allocating a new PaymentRequestUpdateEventInit object and copy all values from input javascript object

func (*PaymentRequestUpdateEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaymentResponse Uses

type PaymentResponse struct {
    domcore.EventTarget
}

class: PaymentResponse

func PaymentResponseFromJS Uses

func PaymentResponseFromJS(value js.Wrapper) *PaymentResponse

PaymentResponseFromJS is casting a js.Wrapper into PaymentResponse.

func (*PaymentResponse) AddEventPayerDetailChange Uses

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 Uses

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

func (*PaymentResponse) Details Uses

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

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

func (*PaymentResponse) MethodName Uses

func (_this *PaymentResponse) MethodName() string

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

func (*PaymentResponse) OnPayerDetailChange Uses

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

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

func (*PaymentResponse) PayerEmail Uses

func (_this *PaymentResponse) PayerEmail() *string

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

func (*PaymentResponse) PayerName Uses

func (_this *PaymentResponse) PayerName() *string

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

func (*PaymentResponse) PayerPhone Uses

func (_this *PaymentResponse) PayerPhone() *string

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

func (*PaymentResponse) RequestId Uses

func (_this *PaymentResponse) RequestId() string

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

func (*PaymentResponse) Retry Uses

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

func (*PaymentResponse) SetOnPayerDetailChange Uses

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 Uses

func (_this *PaymentResponse) ShippingAddress() *PaymentAddress

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

func (*PaymentResponse) ShippingOption Uses

func (_this *PaymentResponse) ShippingOption() *string

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

func (*PaymentResponse) ToJSON Uses

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

type PaymentShippingOption Uses

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

dictionary: PaymentShippingOption

func PaymentShippingOptionFromJS Uses

func PaymentShippingOptionFromJS(value js.Wrapper) *PaymentShippingOption

PaymentShippingOptionFromJS is allocating a new PaymentShippingOption object and copy all values from input javascript object

func (*PaymentShippingOption) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PaymentShippingType Uses

type PaymentShippingType int

enum: PaymentShippingType

const (
    ShippingPaymentShippingType PaymentShippingType = iota
    DeliveryPaymentShippingType
    PickupPaymentShippingType
)

func PaymentShippingTypeFromJS Uses

func PaymentShippingTypeFromJS(value js.Value) PaymentShippingType

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

func (*PaymentShippingType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (PaymentShippingType) Value Uses

func (this PaymentShippingType) Value() string

Value is converting this into javascript defined string value

type PaymentValidationErrors Uses

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

dictionary: PaymentValidationErrors

func PaymentValidationErrorsFromJS Uses

func PaymentValidationErrorsFromJS(value js.Wrapper) *PaymentValidationErrors

PaymentValidationErrorsFromJS is allocating a new PaymentValidationErrors object and copy all values from input javascript object

func (*PaymentValidationErrors) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PromisePaymentDetailsUpdate Uses

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

class: Promise

func PromisePaymentDetailsUpdateFromJS Uses

func PromisePaymentDetailsUpdateFromJS(value js.Wrapper) *PromisePaymentDetailsUpdate

PromisePaymentDetailsUpdateFromJS is casting a js.Wrapper into PromisePaymentDetailsUpdate.

func (*PromisePaymentDetailsUpdate) Catch Uses

func (_this *PromisePaymentDetailsUpdate) Catch(onRejected *PromisePaymentDetailsUpdateOnRejected) (_result *PromisePaymentDetailsUpdate)

func (*PromisePaymentDetailsUpdate) Finally Uses

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

func (*PromisePaymentDetailsUpdate) JSValue Uses

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

func (*PromisePaymentDetailsUpdate) Then Uses

func (_this *PromisePaymentDetailsUpdate) Then(onFulfilled *PromisePaymentDetailsUpdateOnFulfilled, onRejected *PromisePaymentDetailsUpdateOnRejected) (_result *PromisePaymentDetailsUpdate)

type PromisePaymentDetailsUpdateOnFulfilled Uses

type PromisePaymentDetailsUpdateOnFulfilled js.Func

PromisePaymentDetailsUpdateOnFulfilled is a javascript function type.

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

func PromisePaymentDetailsUpdateOnFulfilledToJS Uses

func PromisePaymentDetailsUpdateOnFulfilledToJS(callback PromisePaymentDetailsUpdateOnFulfilledFunc) *PromisePaymentDetailsUpdateOnFulfilled

type PromisePaymentDetailsUpdateOnFulfilledFunc Uses

type PromisePaymentDetailsUpdateOnFulfilledFunc func(value *PaymentDetailsUpdate)

callback: PromiseTemplateOnFulfilled

func PromisePaymentDetailsUpdateOnFulfilledFromJS Uses

func PromisePaymentDetailsUpdateOnFulfilledFromJS(_value js.Value) PromisePaymentDetailsUpdateOnFulfilledFunc

type PromisePaymentDetailsUpdateOnRejected Uses

type PromisePaymentDetailsUpdateOnRejected js.Func

PromisePaymentDetailsUpdateOnRejected is a javascript function type.

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

func PromisePaymentDetailsUpdateOnRejectedToJS Uses

func PromisePaymentDetailsUpdateOnRejectedToJS(callback PromisePaymentDetailsUpdateOnRejectedFunc) *PromisePaymentDetailsUpdateOnRejected

type PromisePaymentDetailsUpdateOnRejectedFunc Uses

type PromisePaymentDetailsUpdateOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePaymentDetailsUpdateOnRejectedFromJS Uses

func PromisePaymentDetailsUpdateOnRejectedFromJS(_value js.Value) PromisePaymentDetailsUpdateOnRejectedFunc

type PromisePaymentResponse Uses

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

class: Promise

func PromisePaymentResponseFromJS Uses

func PromisePaymentResponseFromJS(value js.Wrapper) *PromisePaymentResponse

PromisePaymentResponseFromJS is casting a js.Wrapper into PromisePaymentResponse.

func (*PromisePaymentResponse) Catch Uses

func (_this *PromisePaymentResponse) Catch(onRejected *PromisePaymentResponseOnRejected) (_result *PromisePaymentResponse)

func (*PromisePaymentResponse) Finally Uses

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

func (*PromisePaymentResponse) JSValue Uses

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

func (*PromisePaymentResponse) Then Uses

func (_this *PromisePaymentResponse) Then(onFulfilled *PromisePaymentResponseOnFulfilled, onRejected *PromisePaymentResponseOnRejected) (_result *PromisePaymentResponse)

type PromisePaymentResponseOnFulfilled Uses

type PromisePaymentResponseOnFulfilled js.Func

PromisePaymentResponseOnFulfilled is a javascript function type.

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

func PromisePaymentResponseOnFulfilledToJS Uses

func PromisePaymentResponseOnFulfilledToJS(callback PromisePaymentResponseOnFulfilledFunc) *PromisePaymentResponseOnFulfilled

type PromisePaymentResponseOnFulfilledFunc Uses

type PromisePaymentResponseOnFulfilledFunc func(value *PaymentResponse)

callback: PromiseTemplateOnFulfilled

func PromisePaymentResponseOnFulfilledFromJS Uses

func PromisePaymentResponseOnFulfilledFromJS(_value js.Value) PromisePaymentResponseOnFulfilledFunc

type PromisePaymentResponseOnRejected Uses

type PromisePaymentResponseOnRejected js.Func

PromisePaymentResponseOnRejected is a javascript function type.

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

func PromisePaymentResponseOnRejectedToJS Uses

func PromisePaymentResponseOnRejectedToJS(callback PromisePaymentResponseOnRejectedFunc) *PromisePaymentResponseOnRejected

type PromisePaymentResponseOnRejectedFunc Uses

type PromisePaymentResponseOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePaymentResponseOnRejectedFromJS Uses

func PromisePaymentResponseOnRejectedFromJS(_value js.Value) PromisePaymentResponseOnRejectedFunc

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

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

Package request imports 3 packages (graph) and is imported by 2 packages. Updated 2019-09-19. Refresh now. Tools for package owners.