go_payu

package module
v0.0.0-...-56ca535 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 24 Imported by: 0

README

Go-Payu - GoLang Client for PayU Payment Gateway

Go version GoDoc License

Overview

Go-Payu is a feature-rich GoLang client library that provides seamless integration with the PayU payment gateway. It allows developers to easily process online payments, securely handle transactions, and streamline payment workflows within their Go applications. With Go-Payu, building robust and reliable payment solutions becomes a breeze.

Features

  • Simple and intuitive API for PayU integration
  • Support for multiple payment methods, including credit/debit cards, online banking, and more
  • Tokenization for secure and quick recurring payments
  • Easy management of refunds and cancellations
  • Query transaction status and history
  • Customizable request and response handling
  • Comprehensive documentation and examples

Installation

To use Go-Payu in your Go project, you need to install it using go get:

go get github.com/runnart/go-payu

Usage

  1. Import the Go-Payu package into your Go code:
import payu "github.com/runnart/go-payu"
  1. Initialize the PayU client with your credentials:
client, err := payu.NewClient(os.Getenv("SERVER_URL"))
if err != nil {
    panic(err)
}
  1. Make requests and handle responses:
// TokensPost creates a new token for credit card information on the PayU server.
// If there is an error, the code panics. In a production application, handle errors gracefully.
// The response (resp) contains the token information returned from the PayU server.
resp, err := client.TokensPost(context.TODO(), payu.OptTokensPostReq{
    Value: payu.TokensPostReq{
        TokenType:      payu.TokenTypeCreditCard,
        CreditCardCvv:  "123",
        CardNumber:     "4111111111111111",
        ExpirationDate: "10/29",
        HolderName:     "John Mark",
        BillingAddress: payu.BillingAddress{
            Country: "USA",
            State:   "NY",
            City:    "NYC",
            Line1:   "fifth avenue 10th",
        },
    },
    Set: true,
}, payu.TokensPostParams{
    AppID: payu.OptString{
        Value: os.Getenv("APP_ID"),
    },
    PublicKey: payu.OptString{
        Value: os.Getenv("PUBLIC_KEY"),
    },
    XPaymentsOsEnv: payu.OptString{
        Value: os.Getenv("PAYMENT_ENV"),
    },
    APIVersion: payu.OptString{
        Value: "1.3.0",
    },
})

// Handle errors by panicking. In real-world scenarios, implement appropriate error handling.
if err != nil {
    panic(err)
}

For more detailed examples and API documentation, please refer to the GoDoc page.

Contributing

We welcome contributions from the community! If you have suggestions, bug reports, or new features to add, please open an issue or submit a pull request.

License

Go-Payu is licensed under the MIT License. See the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type BillingAddress

type BillingAddress struct {
	Country string `json:"country"`
	State   string `json:"state"`
	City    string `json:"city"`
	Line1   string `json:"line1"`
}

Ref: #/components/schemas/BillingAddress

func (*BillingAddress) Decode

func (s *BillingAddress) Decode(d *jx.Decoder) error

Decode decodes BillingAddress from json.

func (*BillingAddress) Encode

func (s *BillingAddress) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BillingAddress) GetCity

func (s *BillingAddress) GetCity() string

GetCity returns the value of City.

func (*BillingAddress) GetCountry

func (s *BillingAddress) GetCountry() string

GetCountry returns the value of Country.

func (*BillingAddress) GetLine1

func (s *BillingAddress) GetLine1() string

GetLine1 returns the value of Line1.

func (*BillingAddress) GetState

func (s *BillingAddress) GetState() string

GetState returns the value of State.

func (*BillingAddress) MarshalJSON

func (s *BillingAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BillingAddress) SetCity

func (s *BillingAddress) SetCity(val string)

SetCity sets the value of City.

func (*BillingAddress) SetCountry

func (s *BillingAddress) SetCountry(val string)

SetCountry sets the value of Country.

func (*BillingAddress) SetLine1

func (s *BillingAddress) SetLine1(val string)

SetLine1 sets the value of Line1.

func (*BillingAddress) SetState

func (s *BillingAddress) SetState(val string)

SetState sets the value of State.

func (*BillingAddress) UnmarshalJSON

func (s *BillingAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) CustomersCustomerIdGet

func (c *Client) CustomersCustomerIdGet(ctx context.Context, params CustomersCustomerIdGetParams) (*CustomerGetSuccessResponse, error)

CustomersCustomerIdGet invokes GET /customers/{customerId} operation.

Gets a customer's data.

GET /customers/{customerId}

func (*Client) CustomersCustomerIdPaymentMethodsTokenPost

CustomersCustomerIdPaymentMethodsTokenPost invokes POST /customers/{customerId}/payment-methods/{token} operation.

Associate a token with a customer.

POST /customers/{customerId}/payment-methods/{token}

func (*Client) CustomersPost

CustomersPost invokes POST /customers operation.

Create a new customer.

POST /customers

func (*Client) PaymentsPaymentidAuthorizationsPost

PaymentsPaymentidAuthorizationsPost invokes POST /payments/{paymentid}/authorizations operation.

Create a new authorization.

POST /payments/{paymentid}/authorizations

func (*Client) PaymentsPaymentidCapturesPost

PaymentsPaymentidCapturesPost invokes POST /payments/{paymentid}/captures operation.

Create a new capture.

POST /payments/{paymentid}/captures

func (*Client) PaymentsPaymentidChargesPost

PaymentsPaymentidChargesPost invokes POST /payments/{paymentid}/charges operation.

Create a new charge.

POST /payments/{paymentid}/charges

func (*Client) PaymentsPaymentidCreditsPost

PaymentsPaymentidCreditsPost invokes POST /payments/{paymentid}/credits operation.

Create a new authorization.

POST /payments/{paymentid}/credits

func (*Client) PaymentsPaymentidRefundsPost

PaymentsPaymentidRefundsPost invokes POST /payments/{paymentid}/refunds operation.

Create a refund.

POST /payments/{paymentid}/refunds

func (*Client) PaymentsPaymentidVoidsPost

PaymentsPaymentidVoidsPost invokes POST /payments/{paymentid}/voids operation.

Create a void.

POST /payments/{paymentid}/voids

func (*Client) PaymentsPost

func (c *Client) PaymentsPost(ctx context.Context, request *PaymentsPostReq, params PaymentsPostParams) (*PaymentSuccessResponse, error)

PaymentsPost invokes POST /payments operation.

Create a new payment.

POST /payments

func (*Client) TokensPost

func (c *Client) TokensPost(ctx context.Context, request OptTokensPostReq, params TokensPostParams) (*TokenSuccessResponse, error)

TokensPost invokes POST /tokens operation.

Create a new payment token.

POST /tokens

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type CustomerCreateSuccessResponse

type CustomerCreateSuccessResponse struct {
	// Payment ID.
	ID OptString `json:"id"`
	// Timestamp of customer creation.
	Created OptString `json:"created"`
	// Timestamp of customer modification.
	Modified          OptString `json:"modified"`
	CustomerReference OptString `json:"customer_reference"`
	// Customer email address.
	Email OptString `json:"email"`
}

Ref: #/components/schemas/CustomerCreateSuccessResponse

func (*CustomerCreateSuccessResponse) Decode

Decode decodes CustomerCreateSuccessResponse from json.

func (*CustomerCreateSuccessResponse) Encode

Encode implements json.Marshaler.

func (*CustomerCreateSuccessResponse) GetCreated

func (s *CustomerCreateSuccessResponse) GetCreated() OptString

GetCreated returns the value of Created.

func (*CustomerCreateSuccessResponse) GetCustomerReference

func (s *CustomerCreateSuccessResponse) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*CustomerCreateSuccessResponse) GetEmail

GetEmail returns the value of Email.

func (*CustomerCreateSuccessResponse) GetID

GetID returns the value of ID.

func (*CustomerCreateSuccessResponse) GetModified

func (s *CustomerCreateSuccessResponse) GetModified() OptString

GetModified returns the value of Modified.

func (*CustomerCreateSuccessResponse) MarshalJSON

func (s *CustomerCreateSuccessResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CustomerCreateSuccessResponse) SetCreated

func (s *CustomerCreateSuccessResponse) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*CustomerCreateSuccessResponse) SetCustomerReference

func (s *CustomerCreateSuccessResponse) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*CustomerCreateSuccessResponse) SetEmail

func (s *CustomerCreateSuccessResponse) SetEmail(val OptString)

SetEmail sets the value of Email.

func (*CustomerCreateSuccessResponse) SetID

SetID sets the value of ID.

func (*CustomerCreateSuccessResponse) SetModified

func (s *CustomerCreateSuccessResponse) SetModified(val OptString)

SetModified sets the value of Modified.

func (*CustomerCreateSuccessResponse) UnmarshalJSON

func (s *CustomerCreateSuccessResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CustomerGetSuccessResponse

type CustomerGetSuccessResponse struct {
	// Payment ID.
	ID OptString `json:"id"`
	// Timestamp of customer creation.
	Created OptString `json:"created"`
	// Timestamp of customer modification.
	Modified          OptString `json:"modified"`
	CustomerReference OptString `json:"customer_reference"`
	// Customer email address.
	Email          OptString       `json:"email"`
	PaymentMethods []PaymentMethod `json:"payment_methods"`
}

Ref: #/components/schemas/CustomerGetSuccessResponse

func (*CustomerGetSuccessResponse) Decode

Decode decodes CustomerGetSuccessResponse from json.

func (*CustomerGetSuccessResponse) Encode

func (s *CustomerGetSuccessResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CustomerGetSuccessResponse) GetCreated

func (s *CustomerGetSuccessResponse) GetCreated() OptString

GetCreated returns the value of Created.

func (*CustomerGetSuccessResponse) GetCustomerReference

func (s *CustomerGetSuccessResponse) GetCustomerReference() OptString

GetCustomerReference returns the value of CustomerReference.

func (*CustomerGetSuccessResponse) GetEmail

func (s *CustomerGetSuccessResponse) GetEmail() OptString

GetEmail returns the value of Email.

func (*CustomerGetSuccessResponse) GetID

GetID returns the value of ID.

func (*CustomerGetSuccessResponse) GetModified

func (s *CustomerGetSuccessResponse) GetModified() OptString

GetModified returns the value of Modified.

func (*CustomerGetSuccessResponse) GetPaymentMethods

func (s *CustomerGetSuccessResponse) GetPaymentMethods() []PaymentMethod

GetPaymentMethods returns the value of PaymentMethods.

func (*CustomerGetSuccessResponse) MarshalJSON

func (s *CustomerGetSuccessResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CustomerGetSuccessResponse) SetCreated

func (s *CustomerGetSuccessResponse) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*CustomerGetSuccessResponse) SetCustomerReference

func (s *CustomerGetSuccessResponse) SetCustomerReference(val OptString)

SetCustomerReference sets the value of CustomerReference.

func (*CustomerGetSuccessResponse) SetEmail

func (s *CustomerGetSuccessResponse) SetEmail(val OptString)

SetEmail sets the value of Email.

func (*CustomerGetSuccessResponse) SetID

func (s *CustomerGetSuccessResponse) SetID(val OptString)

SetID sets the value of ID.

func (*CustomerGetSuccessResponse) SetModified

func (s *CustomerGetSuccessResponse) SetModified(val OptString)

SetModified sets the value of Modified.

func (*CustomerGetSuccessResponse) SetPaymentMethods

func (s *CustomerGetSuccessResponse) SetPaymentMethods(val []PaymentMethod)

SetPaymentMethods sets the value of PaymentMethods.

func (*CustomerGetSuccessResponse) UnmarshalJSON

func (s *CustomerGetSuccessResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CustomerGetSuccessResponse) Validate

func (s *CustomerGetSuccessResponse) Validate() error

type CustomerStoreTokenSuccessResponse

type CustomerStoreTokenSuccessResponse struct {
	Type               OptString         `json:"type"`
	Token              OptString         `json:"token"`
	TokenType          OptTokenType      `json:"token_type"`
	Fingerprint        OptString         `json:"fingerprint"`
	State              OptString         `json:"state"`
	HolderName         OptString         `json:"holder_name"`
	ExpirationDate     OptString         `json:"expiration_date"`
	Last4Digits        OptString         `json:"last_4_digits"`
	PassLuhnValidation OptBool           `json:"pass_luhn_validation"`
	BinNumber          OptString         `json:"bin_number"`
	Vendor             OptString         `json:"vendor"`
	Issuer             OptString         `json:"issuer"`
	CardType           OptString         `json:"card_type"`
	Level              OptString         `json:"level"`
	CountryCode        OptString         `json:"country_code"`
	Created            OptString         `json:"created"`
	BillingAddress     OptBillingAddress `json:"billing_address"`
	Href               OptString         `json:"href"`
	// Link to the customer.
	Customer OptString `json:"customer"`
}

Ref: #/components/schemas/CustomerStoreTokenSuccessResponse

func (*CustomerStoreTokenSuccessResponse) Decode

Decode decodes CustomerStoreTokenSuccessResponse from json.

func (*CustomerStoreTokenSuccessResponse) Encode

Encode implements json.Marshaler.

func (*CustomerStoreTokenSuccessResponse) GetBillingAddress

GetBillingAddress returns the value of BillingAddress.

func (*CustomerStoreTokenSuccessResponse) GetBinNumber

func (s *CustomerStoreTokenSuccessResponse) GetBinNumber() OptString

GetBinNumber returns the value of BinNumber.

func (*CustomerStoreTokenSuccessResponse) GetCardType

GetCardType returns the value of CardType.

func (*CustomerStoreTokenSuccessResponse) GetCountryCode

func (s *CustomerStoreTokenSuccessResponse) GetCountryCode() OptString

GetCountryCode returns the value of CountryCode.

func (*CustomerStoreTokenSuccessResponse) GetCreated

GetCreated returns the value of Created.

func (*CustomerStoreTokenSuccessResponse) GetCustomer

GetCustomer returns the value of Customer.

func (*CustomerStoreTokenSuccessResponse) GetExpirationDate

func (s *CustomerStoreTokenSuccessResponse) GetExpirationDate() OptString

GetExpirationDate returns the value of ExpirationDate.

func (*CustomerStoreTokenSuccessResponse) GetFingerprint

func (s *CustomerStoreTokenSuccessResponse) GetFingerprint() OptString

GetFingerprint returns the value of Fingerprint.

func (*CustomerStoreTokenSuccessResponse) GetHolderName

func (s *CustomerStoreTokenSuccessResponse) GetHolderName() OptString

GetHolderName returns the value of HolderName.

func (*CustomerStoreTokenSuccessResponse) GetHref

GetHref returns the value of Href.

func (*CustomerStoreTokenSuccessResponse) GetIssuer

GetIssuer returns the value of Issuer.

func (*CustomerStoreTokenSuccessResponse) GetLast4Digits

func (s *CustomerStoreTokenSuccessResponse) GetLast4Digits() OptString

GetLast4Digits returns the value of Last4Digits.

func (*CustomerStoreTokenSuccessResponse) GetLevel

GetLevel returns the value of Level.

func (*CustomerStoreTokenSuccessResponse) GetPassLuhnValidation

func (s *CustomerStoreTokenSuccessResponse) GetPassLuhnValidation() OptBool

GetPassLuhnValidation returns the value of PassLuhnValidation.

func (*CustomerStoreTokenSuccessResponse) GetState

GetState returns the value of State.

func (*CustomerStoreTokenSuccessResponse) GetToken

GetToken returns the value of Token.

func (*CustomerStoreTokenSuccessResponse) GetTokenType

GetTokenType returns the value of TokenType.

func (*CustomerStoreTokenSuccessResponse) GetType

GetType returns the value of Type.

func (*CustomerStoreTokenSuccessResponse) GetVendor

GetVendor returns the value of Vendor.

func (*CustomerStoreTokenSuccessResponse) MarshalJSON

func (s *CustomerStoreTokenSuccessResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CustomerStoreTokenSuccessResponse) SetBillingAddress

func (s *CustomerStoreTokenSuccessResponse) SetBillingAddress(val OptBillingAddress)

SetBillingAddress sets the value of BillingAddress.

func (*CustomerStoreTokenSuccessResponse) SetBinNumber

func (s *CustomerStoreTokenSuccessResponse) SetBinNumber(val OptString)

SetBinNumber sets the value of BinNumber.

func (*CustomerStoreTokenSuccessResponse) SetCardType

func (s *CustomerStoreTokenSuccessResponse) SetCardType(val OptString)

SetCardType sets the value of CardType.

func (*CustomerStoreTokenSuccessResponse) SetCountryCode

func (s *CustomerStoreTokenSuccessResponse) SetCountryCode(val OptString)

SetCountryCode sets the value of CountryCode.

func (*CustomerStoreTokenSuccessResponse) SetCreated

func (s *CustomerStoreTokenSuccessResponse) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*CustomerStoreTokenSuccessResponse) SetCustomer

func (s *CustomerStoreTokenSuccessResponse) SetCustomer(val OptString)

SetCustomer sets the value of Customer.

func (*CustomerStoreTokenSuccessResponse) SetExpirationDate

func (s *CustomerStoreTokenSuccessResponse) SetExpirationDate(val OptString)

SetExpirationDate sets the value of ExpirationDate.

func (*CustomerStoreTokenSuccessResponse) SetFingerprint

func (s *CustomerStoreTokenSuccessResponse) SetFingerprint(val OptString)

SetFingerprint sets the value of Fingerprint.

func (*CustomerStoreTokenSuccessResponse) SetHolderName

func (s *CustomerStoreTokenSuccessResponse) SetHolderName(val OptString)

SetHolderName sets the value of HolderName.

func (*CustomerStoreTokenSuccessResponse) SetHref

SetHref sets the value of Href.

func (*CustomerStoreTokenSuccessResponse) SetIssuer

func (s *CustomerStoreTokenSuccessResponse) SetIssuer(val OptString)

SetIssuer sets the value of Issuer.

func (*CustomerStoreTokenSuccessResponse) SetLast4Digits

func (s *CustomerStoreTokenSuccessResponse) SetLast4Digits(val OptString)

SetLast4Digits sets the value of Last4Digits.

func (*CustomerStoreTokenSuccessResponse) SetLevel

SetLevel sets the value of Level.

func (*CustomerStoreTokenSuccessResponse) SetPassLuhnValidation

func (s *CustomerStoreTokenSuccessResponse) SetPassLuhnValidation(val OptBool)

SetPassLuhnValidation sets the value of PassLuhnValidation.

func (*CustomerStoreTokenSuccessResponse) SetState

SetState sets the value of State.

func (*CustomerStoreTokenSuccessResponse) SetToken

SetToken sets the value of Token.

func (*CustomerStoreTokenSuccessResponse) SetTokenType

func (s *CustomerStoreTokenSuccessResponse) SetTokenType(val OptTokenType)

SetTokenType sets the value of TokenType.

func (*CustomerStoreTokenSuccessResponse) SetType

SetType sets the value of Type.

func (*CustomerStoreTokenSuccessResponse) SetVendor

func (s *CustomerStoreTokenSuccessResponse) SetVendor(val OptString)

SetVendor sets the value of Vendor.

func (*CustomerStoreTokenSuccessResponse) UnmarshalJSON

func (s *CustomerStoreTokenSuccessResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CustomerStoreTokenSuccessResponse) Validate

type CustomersCustomerIdGetParams

type CustomersCustomerIdGetParams struct {
	AppID          OptString
	PrivateKey     OptString
	APIVersion     OptString
	XPaymentsOsEnv OptString
	IdempotencyKey OptString
	CustomerId     string
}

CustomersCustomerIdGetParams is parameters of GET /customers/{customerId} operation.

type CustomersCustomerIdPaymentMethodsTokenPostParams

type CustomersCustomerIdPaymentMethodsTokenPostParams struct {
	AppID          OptString
	PrivateKey     OptString
	APIVersion     OptString
	XPaymentsOsEnv OptString
	IdempotencyKey OptString
	CustomerId     string
	Token          string
}

CustomersCustomerIdPaymentMethodsTokenPostParams is parameters of POST /customers/{customerId}/payment-methods/{token} operation.

type CustomersCustomerIdPaymentMethodsTokenPostReq

type CustomersCustomerIdPaymentMethodsTokenPostReq struct{}

func (*CustomersCustomerIdPaymentMethodsTokenPostReq) Decode

Decode decodes CustomersCustomerIdPaymentMethodsTokenPostReq from json.

func (*CustomersCustomerIdPaymentMethodsTokenPostReq) Encode

Encode implements json.Marshaler.

func (*CustomersCustomerIdPaymentMethodsTokenPostReq) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*CustomersCustomerIdPaymentMethodsTokenPostReq) UnmarshalJSON

func (s *CustomersCustomerIdPaymentMethodsTokenPostReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CustomersPostParams

type CustomersPostParams struct {
	AppID          OptString
	PrivateKey     OptString
	APIVersion     OptString
	XPaymentsOsEnv OptString
	IdempotencyKey OptString
}

CustomersPostParams is parameters of POST /customers operation.

type CustomersPostReq

type CustomersPostReq struct{}

func (*CustomersPostReq) Decode

func (s *CustomersPostReq) Decode(d *jx.Decoder) error

Decode decodes CustomersPostReq from json.

func (*CustomersPostReq) Encode

func (s *CustomersPostReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CustomersPostReq) MarshalJSON

func (s *CustomersPostReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CustomersPostReq) UnmarshalJSON

func (s *CustomersPostReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorResponse

type ErrorResponse struct {
	MoreInfo    OptString `json:"more_info"`
	Category    OptString `json:"category"`
	Description OptString `json:"description"`
}

func (*ErrorResponse) Decode

func (s *ErrorResponse) Decode(d *jx.Decoder) error

Decode decodes ErrorResponse from json.

func (*ErrorResponse) Encode

func (s *ErrorResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ErrorResponse) GetCategory

func (s *ErrorResponse) GetCategory() OptString

GetCategory returns the value of Category.

func (*ErrorResponse) GetDescription

func (s *ErrorResponse) GetDescription() OptString

GetDescription returns the value of Description.

func (*ErrorResponse) GetMoreInfo

func (s *ErrorResponse) GetMoreInfo() OptString

GetMoreInfo returns the value of MoreInfo.

func (*ErrorResponse) MarshalJSON

func (s *ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorResponse) SetCategory

func (s *ErrorResponse) SetCategory(val OptString)

SetCategory sets the value of Category.

func (*ErrorResponse) SetDescription

func (s *ErrorResponse) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*ErrorResponse) SetMoreInfo

func (s *ErrorResponse) SetMoreInfo(val OptString)

SetMoreInfo sets the value of MoreInfo.

func (*ErrorResponse) UnmarshalJSON

func (s *ErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorResponseStatusCode

type ErrorResponseStatusCode struct {
	StatusCode int
	Response   ErrorResponse
}

ErrorResponseStatusCode wraps ErrorResponse with StatusCode.

func (*ErrorResponseStatusCode) Error

func (s *ErrorResponseStatusCode) Error() string

func (*ErrorResponseStatusCode) GetResponse

func (s *ErrorResponseStatusCode) GetResponse() ErrorResponse

GetResponse returns the value of Response.

func (*ErrorResponseStatusCode) GetStatusCode

func (s *ErrorResponseStatusCode) GetStatusCode() int

GetStatusCode returns the value of StatusCode.

func (*ErrorResponseStatusCode) SetResponse

func (s *ErrorResponseStatusCode) SetResponse(val ErrorResponse)

SetResponse sets the value of Response.

func (*ErrorResponseStatusCode) SetStatusCode

func (s *ErrorResponseStatusCode) SetStatusCode(val int)

SetStatusCode sets the value of StatusCode.

type NextAction

type NextAction struct {
	// Possible action name.
	Action string `json:"action"`
	// Link to run current action.
	Href string `json:"href"`
}

Ref: #/components/schemas/NextAction

func (*NextAction) Decode

func (s *NextAction) Decode(d *jx.Decoder) error

Decode decodes NextAction from json.

func (*NextAction) Encode

func (s *NextAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NextAction) GetAction

func (s *NextAction) GetAction() string

GetAction returns the value of Action.

func (*NextAction) GetHref

func (s *NextAction) GetHref() string

GetHref returns the value of Href.

func (*NextAction) MarshalJSON

func (s *NextAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NextAction) SetAction

func (s *NextAction) SetAction(val string)

SetAction sets the value of Action.

func (*NextAction) SetHref

func (s *NextAction) SetHref(val string)

SetHref sets the value of Href.

func (*NextAction) UnmarshalJSON

func (s *NextAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBillingAddress

type OptBillingAddress struct {
	Value BillingAddress
	Set   bool
}

OptBillingAddress is optional BillingAddress.

func NewOptBillingAddress

func NewOptBillingAddress(v BillingAddress) OptBillingAddress

NewOptBillingAddress returns new OptBillingAddress with value set to v.

func (*OptBillingAddress) Decode

func (o *OptBillingAddress) Decode(d *jx.Decoder) error

Decode decodes BillingAddress from json.

func (OptBillingAddress) Encode

func (o OptBillingAddress) Encode(e *jx.Encoder)

Encode encodes BillingAddress as json.

func (OptBillingAddress) Get

func (o OptBillingAddress) Get() (v BillingAddress, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBillingAddress) IsSet

func (o OptBillingAddress) IsSet() bool

IsSet returns true if OptBillingAddress was set.

func (OptBillingAddress) MarshalJSON

func (s OptBillingAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBillingAddress) Or

Or returns value if set, or given parameter if does not.

func (*OptBillingAddress) Reset

func (o *OptBillingAddress) Reset()

Reset unsets value.

func (*OptBillingAddress) SetTo

func (o *OptBillingAddress) SetTo(v BillingAddress)

SetTo sets value to v.

func (*OptBillingAddress) UnmarshalJSON

func (s *OptBillingAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFloat64

type OptFloat64 struct {
	Value float64
	Set   bool
}

OptFloat64 is optional float64.

func NewOptFloat64

func NewOptFloat64(v float64) OptFloat64

NewOptFloat64 returns new OptFloat64 with value set to v.

func (*OptFloat64) Decode

func (o *OptFloat64) Decode(d *jx.Decoder) error

Decode decodes float64 from json.

func (OptFloat64) Encode

func (o OptFloat64) Encode(e *jx.Encoder)

Encode encodes float64 as json.

func (OptFloat64) Get

func (o OptFloat64) Get() (v float64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFloat64) IsSet

func (o OptFloat64) IsSet() bool

IsSet returns true if OptFloat64 was set.

func (OptFloat64) MarshalJSON

func (s OptFloat64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFloat64) Or

func (o OptFloat64) Or(d float64) float64

Or returns value if set, or given parameter if does not.

func (*OptFloat64) Reset

func (o *OptFloat64) Reset()

Reset unsets value.

func (*OptFloat64) SetTo

func (o *OptFloat64) SetTo(v float64)

SetTo sets value to v.

func (*OptFloat64) UnmarshalJSON

func (s *OptFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentAuthSuccessResponseProviderSpecificData

type OptPaymentAuthSuccessResponseProviderSpecificData struct {
	Value PaymentAuthSuccessResponseProviderSpecificData
	Set   bool
}

OptPaymentAuthSuccessResponseProviderSpecificData is optional PaymentAuthSuccessResponseProviderSpecificData.

func NewOptPaymentAuthSuccessResponseProviderSpecificData

func NewOptPaymentAuthSuccessResponseProviderSpecificData(v PaymentAuthSuccessResponseProviderSpecificData) OptPaymentAuthSuccessResponseProviderSpecificData

NewOptPaymentAuthSuccessResponseProviderSpecificData returns new OptPaymentAuthSuccessResponseProviderSpecificData with value set to v.

func (*OptPaymentAuthSuccessResponseProviderSpecificData) Decode

Decode decodes PaymentAuthSuccessResponseProviderSpecificData from json.

func (OptPaymentAuthSuccessResponseProviderSpecificData) Encode

Encode encodes PaymentAuthSuccessResponseProviderSpecificData as json.

func (OptPaymentAuthSuccessResponseProviderSpecificData) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentAuthSuccessResponseProviderSpecificData) IsSet

IsSet returns true if OptPaymentAuthSuccessResponseProviderSpecificData was set.

func (OptPaymentAuthSuccessResponseProviderSpecificData) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentAuthSuccessResponseProviderSpecificData) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentAuthSuccessResponseProviderSpecificData) Reset

Reset unsets value.

func (*OptPaymentAuthSuccessResponseProviderSpecificData) SetTo

SetTo sets value to v.

func (*OptPaymentAuthSuccessResponseProviderSpecificData) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentAuthSuccessResponseResult

type OptPaymentAuthSuccessResponseResult struct {
	Value PaymentAuthSuccessResponseResult
	Set   bool
}

OptPaymentAuthSuccessResponseResult is optional PaymentAuthSuccessResponseResult.

func NewOptPaymentAuthSuccessResponseResult

func NewOptPaymentAuthSuccessResponseResult(v PaymentAuthSuccessResponseResult) OptPaymentAuthSuccessResponseResult

NewOptPaymentAuthSuccessResponseResult returns new OptPaymentAuthSuccessResponseResult with value set to v.

func (*OptPaymentAuthSuccessResponseResult) Decode

Decode decodes PaymentAuthSuccessResponseResult from json.

func (OptPaymentAuthSuccessResponseResult) Encode

Encode encodes PaymentAuthSuccessResponseResult as json.

func (OptPaymentAuthSuccessResponseResult) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentAuthSuccessResponseResult) IsSet

IsSet returns true if OptPaymentAuthSuccessResponseResult was set.

func (OptPaymentAuthSuccessResponseResult) MarshalJSON

func (s OptPaymentAuthSuccessResponseResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentAuthSuccessResponseResult) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentAuthSuccessResponseResult) Reset

Reset unsets value.

func (*OptPaymentAuthSuccessResponseResult) SetTo

SetTo sets value to v.

func (*OptPaymentAuthSuccessResponseResult) UnmarshalJSON

func (s *OptPaymentAuthSuccessResponseResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentCapturesSuccessResponseResult

type OptPaymentCapturesSuccessResponseResult struct {
	Value PaymentCapturesSuccessResponseResult
	Set   bool
}

OptPaymentCapturesSuccessResponseResult is optional PaymentCapturesSuccessResponseResult.

func NewOptPaymentCapturesSuccessResponseResult

func NewOptPaymentCapturesSuccessResponseResult(v PaymentCapturesSuccessResponseResult) OptPaymentCapturesSuccessResponseResult

NewOptPaymentCapturesSuccessResponseResult returns new OptPaymentCapturesSuccessResponseResult with value set to v.

func (*OptPaymentCapturesSuccessResponseResult) Decode

Decode decodes PaymentCapturesSuccessResponseResult from json.

func (OptPaymentCapturesSuccessResponseResult) Encode

Encode encodes PaymentCapturesSuccessResponseResult as json.

func (OptPaymentCapturesSuccessResponseResult) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentCapturesSuccessResponseResult) IsSet

IsSet returns true if OptPaymentCapturesSuccessResponseResult was set.

func (OptPaymentCapturesSuccessResponseResult) MarshalJSON

func (s OptPaymentCapturesSuccessResponseResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentCapturesSuccessResponseResult) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentCapturesSuccessResponseResult) Reset

Reset unsets value.

func (*OptPaymentCapturesSuccessResponseResult) SetTo

SetTo sets value to v.

func (*OptPaymentCapturesSuccessResponseResult) UnmarshalJSON

func (s *OptPaymentCapturesSuccessResponseResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentChargesSuccessResponseProviderSpecificData

type OptPaymentChargesSuccessResponseProviderSpecificData struct {
	Value PaymentChargesSuccessResponseProviderSpecificData
	Set   bool
}

OptPaymentChargesSuccessResponseProviderSpecificData is optional PaymentChargesSuccessResponseProviderSpecificData.

func NewOptPaymentChargesSuccessResponseProviderSpecificData

NewOptPaymentChargesSuccessResponseProviderSpecificData returns new OptPaymentChargesSuccessResponseProviderSpecificData with value set to v.

func (*OptPaymentChargesSuccessResponseProviderSpecificData) Decode

Decode decodes PaymentChargesSuccessResponseProviderSpecificData from json.

func (OptPaymentChargesSuccessResponseProviderSpecificData) Encode

Encode encodes PaymentChargesSuccessResponseProviderSpecificData as json.

func (OptPaymentChargesSuccessResponseProviderSpecificData) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentChargesSuccessResponseProviderSpecificData) IsSet

IsSet returns true if OptPaymentChargesSuccessResponseProviderSpecificData was set.

func (OptPaymentChargesSuccessResponseProviderSpecificData) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentChargesSuccessResponseProviderSpecificData) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentChargesSuccessResponseProviderSpecificData) Reset

Reset unsets value.

func (*OptPaymentChargesSuccessResponseProviderSpecificData) SetTo

SetTo sets value to v.

func (*OptPaymentChargesSuccessResponseProviderSpecificData) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentChargesSuccessResponseResult

type OptPaymentChargesSuccessResponseResult struct {
	Value PaymentChargesSuccessResponseResult
	Set   bool
}

OptPaymentChargesSuccessResponseResult is optional PaymentChargesSuccessResponseResult.

func NewOptPaymentChargesSuccessResponseResult

func NewOptPaymentChargesSuccessResponseResult(v PaymentChargesSuccessResponseResult) OptPaymentChargesSuccessResponseResult

NewOptPaymentChargesSuccessResponseResult returns new OptPaymentChargesSuccessResponseResult with value set to v.

func (*OptPaymentChargesSuccessResponseResult) Decode

Decode decodes PaymentChargesSuccessResponseResult from json.

func (OptPaymentChargesSuccessResponseResult) Encode

Encode encodes PaymentChargesSuccessResponseResult as json.

func (OptPaymentChargesSuccessResponseResult) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentChargesSuccessResponseResult) IsSet

IsSet returns true if OptPaymentChargesSuccessResponseResult was set.

func (OptPaymentChargesSuccessResponseResult) MarshalJSON

func (s OptPaymentChargesSuccessResponseResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentChargesSuccessResponseResult) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentChargesSuccessResponseResult) Reset

Reset unsets value.

func (*OptPaymentChargesSuccessResponseResult) SetTo

SetTo sets value to v.

func (*OptPaymentChargesSuccessResponseResult) UnmarshalJSON

func (s *OptPaymentChargesSuccessResponseResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentCreditsSuccessResponseProviderSpecificData

type OptPaymentCreditsSuccessResponseProviderSpecificData struct {
	Value PaymentCreditsSuccessResponseProviderSpecificData
	Set   bool
}

OptPaymentCreditsSuccessResponseProviderSpecificData is optional PaymentCreditsSuccessResponseProviderSpecificData.

func NewOptPaymentCreditsSuccessResponseProviderSpecificData

NewOptPaymentCreditsSuccessResponseProviderSpecificData returns new OptPaymentCreditsSuccessResponseProviderSpecificData with value set to v.

func (*OptPaymentCreditsSuccessResponseProviderSpecificData) Decode

Decode decodes PaymentCreditsSuccessResponseProviderSpecificData from json.

func (OptPaymentCreditsSuccessResponseProviderSpecificData) Encode

Encode encodes PaymentCreditsSuccessResponseProviderSpecificData as json.

func (OptPaymentCreditsSuccessResponseProviderSpecificData) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentCreditsSuccessResponseProviderSpecificData) IsSet

IsSet returns true if OptPaymentCreditsSuccessResponseProviderSpecificData was set.

func (OptPaymentCreditsSuccessResponseProviderSpecificData) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentCreditsSuccessResponseProviderSpecificData) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentCreditsSuccessResponseProviderSpecificData) Reset

Reset unsets value.

func (*OptPaymentCreditsSuccessResponseProviderSpecificData) SetTo

SetTo sets value to v.

func (*OptPaymentCreditsSuccessResponseProviderSpecificData) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentCreditsSuccessResponseResult

type OptPaymentCreditsSuccessResponseResult struct {
	Value PaymentCreditsSuccessResponseResult
	Set   bool
}

OptPaymentCreditsSuccessResponseResult is optional PaymentCreditsSuccessResponseResult.

func NewOptPaymentCreditsSuccessResponseResult

func NewOptPaymentCreditsSuccessResponseResult(v PaymentCreditsSuccessResponseResult) OptPaymentCreditsSuccessResponseResult

NewOptPaymentCreditsSuccessResponseResult returns new OptPaymentCreditsSuccessResponseResult with value set to v.

func (*OptPaymentCreditsSuccessResponseResult) Decode

Decode decodes PaymentCreditsSuccessResponseResult from json.

func (OptPaymentCreditsSuccessResponseResult) Encode

Encode encodes PaymentCreditsSuccessResponseResult as json.

func (OptPaymentCreditsSuccessResponseResult) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentCreditsSuccessResponseResult) IsSet

IsSet returns true if OptPaymentCreditsSuccessResponseResult was set.

func (OptPaymentCreditsSuccessResponseResult) MarshalJSON

func (s OptPaymentCreditsSuccessResponseResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentCreditsSuccessResponseResult) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentCreditsSuccessResponseResult) Reset

Reset unsets value.

func (*OptPaymentCreditsSuccessResponseResult) SetTo

SetTo sets value to v.

func (*OptPaymentCreditsSuccessResponseResult) UnmarshalJSON

func (s *OptPaymentCreditsSuccessResponseResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentMethod

type OptPaymentMethod struct {
	Value PaymentMethod
	Set   bool
}

OptPaymentMethod is optional PaymentMethod.

func NewOptPaymentMethod

func NewOptPaymentMethod(v PaymentMethod) OptPaymentMethod

NewOptPaymentMethod returns new OptPaymentMethod with value set to v.

func (*OptPaymentMethod) Decode

func (o *OptPaymentMethod) Decode(d *jx.Decoder) error

Decode decodes PaymentMethod from json.

func (OptPaymentMethod) Encode

func (o OptPaymentMethod) Encode(e *jx.Encoder)

Encode encodes PaymentMethod as json.

func (OptPaymentMethod) Get

func (o OptPaymentMethod) Get() (v PaymentMethod, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPaymentMethod) IsSet

func (o OptPaymentMethod) IsSet() bool

IsSet returns true if OptPaymentMethod was set.

func (OptPaymentMethod) MarshalJSON

func (s OptPaymentMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentMethod) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentMethod) Reset

func (o *OptPaymentMethod) Reset()

Reset unsets value.

func (*OptPaymentMethod) SetTo

func (o *OptPaymentMethod) SetTo(v PaymentMethod)

SetTo sets value to v.

func (*OptPaymentMethod) UnmarshalJSON

func (s *OptPaymentMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentRefundsSuccessResponseResult

type OptPaymentRefundsSuccessResponseResult struct {
	Value PaymentRefundsSuccessResponseResult
	Set   bool
}

OptPaymentRefundsSuccessResponseResult is optional PaymentRefundsSuccessResponseResult.

func NewOptPaymentRefundsSuccessResponseResult

func NewOptPaymentRefundsSuccessResponseResult(v PaymentRefundsSuccessResponseResult) OptPaymentRefundsSuccessResponseResult

NewOptPaymentRefundsSuccessResponseResult returns new OptPaymentRefundsSuccessResponseResult with value set to v.

func (*OptPaymentRefundsSuccessResponseResult) Decode

Decode decodes PaymentRefundsSuccessResponseResult from json.

func (OptPaymentRefundsSuccessResponseResult) Encode

Encode encodes PaymentRefundsSuccessResponseResult as json.

func (OptPaymentRefundsSuccessResponseResult) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentRefundsSuccessResponseResult) IsSet

IsSet returns true if OptPaymentRefundsSuccessResponseResult was set.

func (OptPaymentRefundsSuccessResponseResult) MarshalJSON

func (s OptPaymentRefundsSuccessResponseResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentRefundsSuccessResponseResult) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentRefundsSuccessResponseResult) Reset

Reset unsets value.

func (*OptPaymentRefundsSuccessResponseResult) SetTo

SetTo sets value to v.

func (*OptPaymentRefundsSuccessResponseResult) UnmarshalJSON

func (s *OptPaymentRefundsSuccessResponseResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentSuccessResponseBillingAddress

type OptPaymentSuccessResponseBillingAddress struct {
	Value PaymentSuccessResponseBillingAddress
	Set   bool
}

OptPaymentSuccessResponseBillingAddress is optional PaymentSuccessResponseBillingAddress.

func NewOptPaymentSuccessResponseBillingAddress

func NewOptPaymentSuccessResponseBillingAddress(v PaymentSuccessResponseBillingAddress) OptPaymentSuccessResponseBillingAddress

NewOptPaymentSuccessResponseBillingAddress returns new OptPaymentSuccessResponseBillingAddress with value set to v.

func (*OptPaymentSuccessResponseBillingAddress) Decode

Decode decodes PaymentSuccessResponseBillingAddress from json.

func (OptPaymentSuccessResponseBillingAddress) Encode

Encode encodes PaymentSuccessResponseBillingAddress as json.

func (OptPaymentSuccessResponseBillingAddress) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentSuccessResponseBillingAddress) IsSet

IsSet returns true if OptPaymentSuccessResponseBillingAddress was set.

func (OptPaymentSuccessResponseBillingAddress) MarshalJSON

func (s OptPaymentSuccessResponseBillingAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentSuccessResponseBillingAddress) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentSuccessResponseBillingAddress) Reset

Reset unsets value.

func (*OptPaymentSuccessResponseBillingAddress) SetTo

SetTo sets value to v.

func (*OptPaymentSuccessResponseBillingAddress) UnmarshalJSON

func (s *OptPaymentSuccessResponseBillingAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentSuccessResponseOrder

type OptPaymentSuccessResponseOrder struct {
	Value PaymentSuccessResponseOrder
	Set   bool
}

OptPaymentSuccessResponseOrder is optional PaymentSuccessResponseOrder.

func NewOptPaymentSuccessResponseOrder

func NewOptPaymentSuccessResponseOrder(v PaymentSuccessResponseOrder) OptPaymentSuccessResponseOrder

NewOptPaymentSuccessResponseOrder returns new OptPaymentSuccessResponseOrder with value set to v.

func (*OptPaymentSuccessResponseOrder) Decode

Decode decodes PaymentSuccessResponseOrder from json.

func (OptPaymentSuccessResponseOrder) Encode

Encode encodes PaymentSuccessResponseOrder as json.

func (OptPaymentSuccessResponseOrder) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentSuccessResponseOrder) IsSet

IsSet returns true if OptPaymentSuccessResponseOrder was set.

func (OptPaymentSuccessResponseOrder) MarshalJSON

func (s OptPaymentSuccessResponseOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentSuccessResponseOrder) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentSuccessResponseOrder) Reset

func (o *OptPaymentSuccessResponseOrder) Reset()

Reset unsets value.

func (*OptPaymentSuccessResponseOrder) SetTo

SetTo sets value to v.

func (*OptPaymentSuccessResponseOrder) UnmarshalJSON

func (s *OptPaymentSuccessResponseOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentVoidsSuccessResponseProviderSpecificData

type OptPaymentVoidsSuccessResponseProviderSpecificData struct {
	Value PaymentVoidsSuccessResponseProviderSpecificData
	Set   bool
}

OptPaymentVoidsSuccessResponseProviderSpecificData is optional PaymentVoidsSuccessResponseProviderSpecificData.

func NewOptPaymentVoidsSuccessResponseProviderSpecificData

func NewOptPaymentVoidsSuccessResponseProviderSpecificData(v PaymentVoidsSuccessResponseProviderSpecificData) OptPaymentVoidsSuccessResponseProviderSpecificData

NewOptPaymentVoidsSuccessResponseProviderSpecificData returns new OptPaymentVoidsSuccessResponseProviderSpecificData with value set to v.

func (*OptPaymentVoidsSuccessResponseProviderSpecificData) Decode

Decode decodes PaymentVoidsSuccessResponseProviderSpecificData from json.

func (OptPaymentVoidsSuccessResponseProviderSpecificData) Encode

Encode encodes PaymentVoidsSuccessResponseProviderSpecificData as json.

func (OptPaymentVoidsSuccessResponseProviderSpecificData) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentVoidsSuccessResponseProviderSpecificData) IsSet

IsSet returns true if OptPaymentVoidsSuccessResponseProviderSpecificData was set.

func (OptPaymentVoidsSuccessResponseProviderSpecificData) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentVoidsSuccessResponseProviderSpecificData) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentVoidsSuccessResponseProviderSpecificData) Reset

Reset unsets value.

func (*OptPaymentVoidsSuccessResponseProviderSpecificData) SetTo

SetTo sets value to v.

func (*OptPaymentVoidsSuccessResponseProviderSpecificData) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentVoidsSuccessResponseResult

type OptPaymentVoidsSuccessResponseResult struct {
	Value PaymentVoidsSuccessResponseResult
	Set   bool
}

OptPaymentVoidsSuccessResponseResult is optional PaymentVoidsSuccessResponseResult.

func NewOptPaymentVoidsSuccessResponseResult

func NewOptPaymentVoidsSuccessResponseResult(v PaymentVoidsSuccessResponseResult) OptPaymentVoidsSuccessResponseResult

NewOptPaymentVoidsSuccessResponseResult returns new OptPaymentVoidsSuccessResponseResult with value set to v.

func (*OptPaymentVoidsSuccessResponseResult) Decode

Decode decodes PaymentVoidsSuccessResponseResult from json.

func (OptPaymentVoidsSuccessResponseResult) Encode

Encode encodes PaymentVoidsSuccessResponseResult as json.

func (OptPaymentVoidsSuccessResponseResult) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentVoidsSuccessResponseResult) IsSet

IsSet returns true if OptPaymentVoidsSuccessResponseResult was set.

func (OptPaymentVoidsSuccessResponseResult) MarshalJSON

func (s OptPaymentVoidsSuccessResponseResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentVoidsSuccessResponseResult) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentVoidsSuccessResponseResult) Reset

Reset unsets value.

func (*OptPaymentVoidsSuccessResponseResult) SetTo

SetTo sets value to v.

func (*OptPaymentVoidsSuccessResponseResult) UnmarshalJSON

func (s *OptPaymentVoidsSuccessResponseResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPaymentsPaymentidAuthorizationsPostReq

type OptPaymentsPaymentidAuthorizationsPostReq struct {
	Value PaymentsPaymentidAuthorizationsPostReq
	Set   bool
}

OptPaymentsPaymentidAuthorizationsPostReq is optional PaymentsPaymentidAuthorizationsPostReq.

func NewOptPaymentsPaymentidAuthorizationsPostReq

func NewOptPaymentsPaymentidAuthorizationsPostReq(v PaymentsPaymentidAuthorizationsPostReq) OptPaymentsPaymentidAuthorizationsPostReq

NewOptPaymentsPaymentidAuthorizationsPostReq returns new OptPaymentsPaymentidAuthorizationsPostReq with value set to v.

func (*OptPaymentsPaymentidAuthorizationsPostReq) Decode

Decode decodes PaymentsPaymentidAuthorizationsPostReq from json.

func (OptPaymentsPaymentidAuthorizationsPostReq) Encode

Encode encodes PaymentsPaymentidAuthorizationsPostReq as json.

func (OptPaymentsPaymentidAuthorizationsPostReq) Get

Get returns value and boolean that denotes whether value was set.

func (OptPaymentsPaymentidAuthorizationsPostReq) IsSet

IsSet returns true if OptPaymentsPaymentidAuthorizationsPostReq was set.

func (OptPaymentsPaymentidAuthorizationsPostReq) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptPaymentsPaymentidAuthorizationsPostReq) Or

Or returns value if set, or given parameter if does not.

func (*OptPaymentsPaymentidAuthorizationsPostReq) Reset

Reset unsets value.

func (*OptPaymentsPaymentidAuthorizationsPostReq) SetTo

SetTo sets value to v.

func (*OptPaymentsPaymentidAuthorizationsPostReq) UnmarshalJSON

func (s *OptPaymentsPaymentidAuthorizationsPostReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptProviderConfiguration

type OptProviderConfiguration struct {
	Value ProviderConfiguration
	Set   bool
}

OptProviderConfiguration is optional ProviderConfiguration.

func NewOptProviderConfiguration

func NewOptProviderConfiguration(v ProviderConfiguration) OptProviderConfiguration

NewOptProviderConfiguration returns new OptProviderConfiguration with value set to v.

func (*OptProviderConfiguration) Decode

func (o *OptProviderConfiguration) Decode(d *jx.Decoder) error

Decode decodes ProviderConfiguration from json.

func (OptProviderConfiguration) Encode

func (o OptProviderConfiguration) Encode(e *jx.Encoder)

Encode encodes ProviderConfiguration as json.

func (OptProviderConfiguration) Get

Get returns value and boolean that denotes whether value was set.

func (OptProviderConfiguration) IsSet

func (o OptProviderConfiguration) IsSet() bool

IsSet returns true if OptProviderConfiguration was set.

func (OptProviderConfiguration) MarshalJSON

func (s OptProviderConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptProviderConfiguration) Or

Or returns value if set, or given parameter if does not.

func (*OptProviderConfiguration) Reset

func (o *OptProviderConfiguration) Reset()

Reset unsets value.

func (*OptProviderConfiguration) SetTo

SetTo sets value to v.

func (*OptProviderConfiguration) UnmarshalJSON

func (s *OptProviderConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptProviderData

type OptProviderData struct {
	Value ProviderData
	Set   bool
}

OptProviderData is optional ProviderData.

func NewOptProviderData

func NewOptProviderData(v ProviderData) OptProviderData

NewOptProviderData returns new OptProviderData with value set to v.

func (*OptProviderData) Decode

func (o *OptProviderData) Decode(d *jx.Decoder) error

Decode decodes ProviderData from json.

func (OptProviderData) Encode

func (o OptProviderData) Encode(e *jx.Encoder)

Encode encodes ProviderData as json.

func (OptProviderData) Get

func (o OptProviderData) Get() (v ProviderData, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptProviderData) IsSet

func (o OptProviderData) IsSet() bool

IsSet returns true if OptProviderData was set.

func (OptProviderData) MarshalJSON

func (s OptProviderData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptProviderData) Or

Or returns value if set, or given parameter if does not.

func (*OptProviderData) Reset

func (o *OptProviderData) Reset()

Reset unsets value.

func (*OptProviderData) SetTo

func (o *OptProviderData) SetTo(v ProviderData)

SetTo sets value to v.

func (*OptProviderData) UnmarshalJSON

func (s *OptProviderData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTokenType

type OptTokenType struct {
	Value TokenType
	Set   bool
}

OptTokenType is optional TokenType.

func NewOptTokenType

func NewOptTokenType(v TokenType) OptTokenType

NewOptTokenType returns new OptTokenType with value set to v.

func (*OptTokenType) Decode

func (o *OptTokenType) Decode(d *jx.Decoder) error

Decode decodes TokenType from json.

func (OptTokenType) Encode

func (o OptTokenType) Encode(e *jx.Encoder)

Encode encodes TokenType as json.

func (OptTokenType) Get

func (o OptTokenType) Get() (v TokenType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptTokenType) IsSet

func (o OptTokenType) IsSet() bool

IsSet returns true if OptTokenType was set.

func (OptTokenType) MarshalJSON

func (s OptTokenType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTokenType) Or

Or returns value if set, or given parameter if does not.

func (*OptTokenType) Reset

func (o *OptTokenType) Reset()

Reset unsets value.

func (*OptTokenType) SetTo

func (o *OptTokenType) SetTo(v TokenType)

SetTo sets value to v.

func (*OptTokenType) UnmarshalJSON

func (s *OptTokenType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTokensPostReq

type OptTokensPostReq struct {
	Value TokensPostReq
	Set   bool
}

OptTokensPostReq is optional TokensPostReq.

func NewOptTokensPostReq

func NewOptTokensPostReq(v TokensPostReq) OptTokensPostReq

NewOptTokensPostReq returns new OptTokensPostReq with value set to v.

func (*OptTokensPostReq) Decode

func (o *OptTokensPostReq) Decode(d *jx.Decoder) error

Decode decodes TokensPostReq from json.

func (OptTokensPostReq) Encode

func (o OptTokensPostReq) Encode(e *jx.Encoder)

Encode encodes TokensPostReq as json.

func (OptTokensPostReq) Get

func (o OptTokensPostReq) Get() (v TokensPostReq, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptTokensPostReq) IsSet

func (o OptTokensPostReq) IsSet() bool

IsSet returns true if OptTokensPostReq was set.

func (OptTokensPostReq) MarshalJSON

func (s OptTokensPostReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTokensPostReq) Or

Or returns value if set, or given parameter if does not.

func (*OptTokensPostReq) Reset

func (o *OptTokensPostReq) Reset()

Reset unsets value.

func (*OptTokensPostReq) SetTo

func (o *OptTokensPostReq) SetTo(v TokensPostReq)

SetTo sets value to v.

func (*OptTokensPostReq) UnmarshalJSON

func (s *OptTokensPostReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ClientOption
}

Option is config option.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type PaymentAuthSuccessResponse

type PaymentAuthSuccessResponse struct {
	// Payment ID.
	ID OptString `json:"id"`
	// Timestamp of payment auth creation.
	Created               OptString                                         `json:"created"`
	ReconciliationID      OptString                                         `json:"reconciliation_id"`
	ProviderSpecificData  OptPaymentAuthSuccessResponseProviderSpecificData `json:"provider_specific_data"`
	PaymentMethod         OptPaymentMethod                                  `json:"payment_method"`
	Result                OptPaymentAuthSuccessResponseResult               `json:"result"`
	ProviderData          OptProviderData                                   `json:"provider_data"`
	Amount                OptFloat64                                        `json:"amount"`
	ProviderConfiguration OptProviderConfiguration                          `json:"provider_configuration"`
	AuthorizationType     OptString                                         `json:"authorization_type"`
}

Ref: #/components/schemas/PaymentAuthSuccessResponse

func (*PaymentAuthSuccessResponse) Decode

Decode decodes PaymentAuthSuccessResponse from json.

func (*PaymentAuthSuccessResponse) Encode

func (s *PaymentAuthSuccessResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PaymentAuthSuccessResponse) GetAmount

func (s *PaymentAuthSuccessResponse) GetAmount() OptFloat64

GetAmount returns the value of Amount.

func (*PaymentAuthSuccessResponse) GetAuthorizationType

func (s *PaymentAuthSuccessResponse) GetAuthorizationType() OptString

GetAuthorizationType returns the value of AuthorizationType.

func (*PaymentAuthSuccessResponse) GetCreated

func (s *PaymentAuthSuccessResponse) GetCreated() OptString

GetCreated returns the value of Created.

func (*PaymentAuthSuccessResponse) GetID

GetID returns the value of ID.

func (*PaymentAuthSuccessResponse) GetPaymentMethod

func (s *PaymentAuthSuccessResponse) GetPaymentMethod() OptPaymentMethod

GetPaymentMethod returns the value of PaymentMethod.

func (*PaymentAuthSuccessResponse) GetProviderConfiguration

func (s *PaymentAuthSuccessResponse) GetProviderConfiguration() OptProviderConfiguration

GetProviderConfiguration returns the value of ProviderConfiguration.

func (*PaymentAuthSuccessResponse) GetProviderData

func (s *PaymentAuthSuccessResponse) GetProviderData() OptProviderData

GetProviderData returns the value of ProviderData.

func (*PaymentAuthSuccessResponse) GetProviderSpecificData

GetProviderSpecificData returns the value of ProviderSpecificData.

func (*PaymentAuthSuccessResponse) GetReconciliationID

func (s *PaymentAuthSuccessResponse) GetReconciliationID() OptString

GetReconciliationID returns the value of ReconciliationID.

func (*PaymentAuthSuccessResponse) GetResult

GetResult returns the value of Result.

func (*PaymentAuthSuccessResponse) MarshalJSON

func (s *PaymentAuthSuccessResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentAuthSuccessResponse) SetAmount

func (s *PaymentAuthSuccessResponse) SetAmount(val OptFloat64)

SetAmount sets the value of Amount.

func (*PaymentAuthSuccessResponse) SetAuthorizationType

func (s *PaymentAuthSuccessResponse) SetAuthorizationType(val OptString)

SetAuthorizationType sets the value of AuthorizationType.

func (*PaymentAuthSuccessResponse) SetCreated

func (s *PaymentAuthSuccessResponse) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*PaymentAuthSuccessResponse) SetID

func (s *PaymentAuthSuccessResponse) SetID(val OptString)

SetID sets the value of ID.

func (*PaymentAuthSuccessResponse) SetPaymentMethod

func (s *PaymentAuthSuccessResponse) SetPaymentMethod(val OptPaymentMethod)

SetPaymentMethod sets the value of PaymentMethod.

func (*PaymentAuthSuccessResponse) SetProviderConfiguration

func (s *PaymentAuthSuccessResponse) SetProviderConfiguration(val OptProviderConfiguration)

SetProviderConfiguration sets the value of ProviderConfiguration.

func (*PaymentAuthSuccessResponse) SetProviderData

func (s *PaymentAuthSuccessResponse) SetProviderData(val OptProviderData)

SetProviderData sets the value of ProviderData.

func (*PaymentAuthSuccessResponse) SetProviderSpecificData

SetProviderSpecificData sets the value of ProviderSpecificData.

func (*PaymentAuthSuccessResponse) SetReconciliationID

func (s *PaymentAuthSuccessResponse) SetReconciliationID(val OptString)

SetReconciliationID sets the value of ReconciliationID.

func (*PaymentAuthSuccessResponse) SetResult

SetResult sets the value of Result.

func (*PaymentAuthSuccessResponse) UnmarshalJSON

func (s *PaymentAuthSuccessResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PaymentAuthSuccessResponse) Validate

func (s *PaymentAuthSuccessResponse) Validate() error

type PaymentAuthSuccessResponseProviderSpecificData

type PaymentAuthSuccessResponseProviderSpecificData map[string]jx.Raw

func (*PaymentAuthSuccessResponseProviderSpecificData) Decode

Decode decodes PaymentAuthSuccessResponseProviderSpecificData from json.

func (PaymentAuthSuccessResponseProviderSpecificData) Encode

Encode implements json.Marshaler.

func (PaymentAuthSuccessResponseProviderSpecificData) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PaymentAuthSuccessResponseProviderSpecificData) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentAuthSuccessResponseResult

type PaymentAuthSuccessResponseResult struct {
	Status OptString `json:"status"`
}

func (*PaymentAuthSuccessResponseResult) Decode

Decode decodes PaymentAuthSuccessResponseResult from json.

func (*PaymentAuthSuccessResponseResult) Encode

Encode implements json.Marshaler.

func (*PaymentAuthSuccessResponseResult) GetStatus

GetStatus returns the value of Status.

func (*PaymentAuthSuccessResponseResult) MarshalJSON

func (s *PaymentAuthSuccessResponseResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentAuthSuccessResponseResult) SetStatus

func (s *PaymentAuthSuccessResponseResult) SetStatus(val OptString)

SetStatus sets the value of Status.

func (*PaymentAuthSuccessResponseResult) UnmarshalJSON

func (s *PaymentAuthSuccessResponseResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentCapturesSuccessResponse

type PaymentCapturesSuccessResponse struct {
	ID                    OptString                               `json:"id"`
	Created               OptString                               `json:"created"`
	Result                OptPaymentCapturesSuccessResponseResult `json:"result"`
	ProviderData          OptProviderData                         `json:"provider_data"`
	Amount                OptFloat64                              `json:"amount"`
	ProviderConfiguration OptProviderConfiguration                `json:"provider_configuration"`
}

Ref: #/components/schemas/PaymentCapturesSuccessResponse

func (*PaymentCapturesSuccessResponse) Decode

Decode decodes PaymentCapturesSuccessResponse from json.

func (*PaymentCapturesSuccessResponse) Encode

Encode implements json.Marshaler.

func (*PaymentCapturesSuccessResponse) GetAmount

GetAmount returns the value of Amount.

func (*PaymentCapturesSuccessResponse) GetCreated

func (s *PaymentCapturesSuccessResponse) GetCreated() OptString

GetCreated returns the value of Created.

func (*PaymentCapturesSuccessResponse) GetID

GetID returns the value of ID.

func (*PaymentCapturesSuccessResponse) GetProviderConfiguration

func (s *PaymentCapturesSuccessResponse) GetProviderConfiguration() OptProviderConfiguration

GetProviderConfiguration returns the value of ProviderConfiguration.

func (*PaymentCapturesSuccessResponse) GetProviderData

func (s *PaymentCapturesSuccessResponse) GetProviderData() OptProviderData

GetProviderData returns the value of ProviderData.

func (*PaymentCapturesSuccessResponse) GetResult

GetResult returns the value of Result.

func (*PaymentCapturesSuccessResponse) MarshalJSON

func (s *PaymentCapturesSuccessResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentCapturesSuccessResponse) SetAmount

func (s *PaymentCapturesSuccessResponse) SetAmount(val OptFloat64)

SetAmount sets the value of Amount.

func (*PaymentCapturesSuccessResponse) SetCreated

func (s *PaymentCapturesSuccessResponse) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*PaymentCapturesSuccessResponse) SetID

SetID sets the value of ID.

func (*PaymentCapturesSuccessResponse) SetProviderConfiguration

func (s *PaymentCapturesSuccessResponse) SetProviderConfiguration(val OptProviderConfiguration)

SetProviderConfiguration sets the value of ProviderConfiguration.

func (*PaymentCapturesSuccessResponse) SetProviderData

func (s *PaymentCapturesSuccessResponse) SetProviderData(val OptProviderData)

SetProviderData sets the value of ProviderData.

func (*PaymentCapturesSuccessResponse) SetResult

SetResult sets the value of Result.

func (*PaymentCapturesSuccessResponse) UnmarshalJSON

func (s *PaymentCapturesSuccessResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PaymentCapturesSuccessResponse) Validate

func (s *PaymentCapturesSuccessResponse) Validate() error

type PaymentCapturesSuccessResponseResult

type PaymentCapturesSuccessResponseResult struct {
	Status OptString `json:"status"`
}

func (*PaymentCapturesSuccessResponseResult) Decode

Decode decodes PaymentCapturesSuccessResponseResult from json.

func (*PaymentCapturesSuccessResponseResult) Encode

Encode implements json.Marshaler.

func (*PaymentCapturesSuccessResponseResult) GetStatus

GetStatus returns the value of Status.

func (*PaymentCapturesSuccessResponseResult) MarshalJSON

func (s *PaymentCapturesSuccessResponseResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentCapturesSuccessResponseResult) SetStatus

SetStatus sets the value of Status.

func (*PaymentCapturesSuccessResponseResult) UnmarshalJSON

func (s *PaymentCapturesSuccessResponseResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentChargesSuccessResponse

type PaymentChargesSuccessResponse struct {
	// Payment ID.
	ID OptString `json:"id"`
	// Timestamp of payment auth creation.
	Created               OptString                                            `json:"created"`
	ProviderSpecificData  OptPaymentChargesSuccessResponseProviderSpecificData `json:"provider_specific_data"`
	PaymentMethod         OptPaymentMethod                                     `json:"payment_method"`
	Result                OptPaymentChargesSuccessResponseResult               `json:"result"`
	ProviderData          OptProviderData                                      `json:"provider_data"`
	Amount                OptFloat64                                           `json:"amount"`
	ProviderConfiguration OptProviderConfiguration                             `json:"provider_configuration"`
}

Ref: #/components/schemas/PaymentChargesSuccessResponse

func (*PaymentChargesSuccessResponse) Decode

Decode decodes PaymentChargesSuccessResponse from json.

func (*PaymentChargesSuccessResponse) Encode

Encode implements json.Marshaler.

func (*PaymentChargesSuccessResponse) GetAmount

GetAmount returns the value of Amount.

func (*PaymentChargesSuccessResponse) GetCreated

func (s *PaymentChargesSuccessResponse) GetCreated() OptString

GetCreated returns the value of Created.

func (*PaymentChargesSuccessResponse) GetID

GetID returns the value of ID.

func (*PaymentChargesSuccessResponse) GetPaymentMethod

func (s *PaymentChargesSuccessResponse) GetPaymentMethod() OptPaymentMethod

GetPaymentMethod returns the value of PaymentMethod.

func (*PaymentChargesSuccessResponse) GetProviderConfiguration

func (s *PaymentChargesSuccessResponse) GetProviderConfiguration() OptProviderConfiguration

GetProviderConfiguration returns the value of ProviderConfiguration.

func (*PaymentChargesSuccessResponse) GetProviderData

func (s *PaymentChargesSuccessResponse) GetProviderData() OptProviderData

GetProviderData returns the value of ProviderData.

func (*PaymentChargesSuccessResponse) GetProviderSpecificData

GetProviderSpecificData returns the value of ProviderSpecificData.

func (*PaymentChargesSuccessResponse) GetResult

GetResult returns the value of Result.

func (*PaymentChargesSuccessResponse) MarshalJSON

func (s *PaymentChargesSuccessResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentChargesSuccessResponse) SetAmount

func (s *PaymentChargesSuccessResponse) SetAmount(val OptFloat64)

SetAmount sets the value of Amount.

func (*PaymentChargesSuccessResponse) SetCreated

func (s *PaymentChargesSuccessResponse) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*PaymentChargesSuccessResponse) SetID

SetID sets the value of ID.

func (*PaymentChargesSuccessResponse) SetPaymentMethod

func (s *PaymentChargesSuccessResponse) SetPaymentMethod(val OptPaymentMethod)

SetPaymentMethod sets the value of PaymentMethod.

func (*PaymentChargesSuccessResponse) SetProviderConfiguration

func (s *PaymentChargesSuccessResponse) SetProviderConfiguration(val OptProviderConfiguration)

SetProviderConfiguration sets the value of ProviderConfiguration.

func (*PaymentChargesSuccessResponse) SetProviderData

func (s *PaymentChargesSuccessResponse) SetProviderData(val OptProviderData)

SetProviderData sets the value of ProviderData.

func (*PaymentChargesSuccessResponse) SetProviderSpecificData

SetProviderSpecificData sets the value of ProviderSpecificData.

func (*PaymentChargesSuccessResponse) SetResult

SetResult sets the value of Result.

func (*PaymentChargesSuccessResponse) UnmarshalJSON

func (s *PaymentChargesSuccessResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PaymentChargesSuccessResponse) Validate

func (s *PaymentChargesSuccessResponse) Validate() error

type PaymentChargesSuccessResponseProviderSpecificData

type PaymentChargesSuccessResponseProviderSpecificData map[string]jx.Raw

func (*PaymentChargesSuccessResponseProviderSpecificData) Decode

Decode decodes PaymentChargesSuccessResponseProviderSpecificData from json.

func (PaymentChargesSuccessResponseProviderSpecificData) Encode

Encode implements json.Marshaler.

func (PaymentChargesSuccessResponseProviderSpecificData) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PaymentChargesSuccessResponseProviderSpecificData) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentChargesSuccessResponseResult

type PaymentChargesSuccessResponseResult struct {
	Status OptString `json:"status"`
}

func (*PaymentChargesSuccessResponseResult) Decode

Decode decodes PaymentChargesSuccessResponseResult from json.

func (*PaymentChargesSuccessResponseResult) Encode

Encode implements json.Marshaler.

func (*PaymentChargesSuccessResponseResult) GetStatus

GetStatus returns the value of Status.

func (*PaymentChargesSuccessResponseResult) MarshalJSON

func (s *PaymentChargesSuccessResponseResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentChargesSuccessResponseResult) SetStatus

SetStatus sets the value of Status.

func (*PaymentChargesSuccessResponseResult) UnmarshalJSON

func (s *PaymentChargesSuccessResponseResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentCreditsSuccessResponse

type PaymentCreditsSuccessResponse struct {
	// Payment ID.
	ID OptString `json:"id"`
	// Timestamp of payment auth creation.
	Created               OptString                                            `json:"created"`
	ReconciliationID      OptString                                            `json:"reconciliation_id"`
	ProviderSpecificData  OptPaymentCreditsSuccessResponseProviderSpecificData `json:"provider_specific_data"`
	PaymentMethod         OptPaymentMethod                                     `json:"payment_method"`
	Result                OptPaymentCreditsSuccessResponseResult               `json:"result"`
	ProviderData          OptProviderData                                      `json:"provider_data"`
	Amount                OptFloat64                                           `json:"amount"`
	ProviderConfiguration OptProviderConfiguration                             `json:"provider_configuration"`
}

Ref: #/components/schemas/PaymentCreditsSuccessResponse

func (*PaymentCreditsSuccessResponse) Decode

Decode decodes PaymentCreditsSuccessResponse from json.

func (*PaymentCreditsSuccessResponse) Encode

Encode implements json.Marshaler.

func (*PaymentCreditsSuccessResponse) GetAmount

GetAmount returns the value of Amount.

func (*PaymentCreditsSuccessResponse) GetCreated

func (s *PaymentCreditsSuccessResponse) GetCreated() OptString

GetCreated returns the value of Created.

func (*PaymentCreditsSuccessResponse) GetID

GetID returns the value of ID.

func (*PaymentCreditsSuccessResponse) GetPaymentMethod

func (s *PaymentCreditsSuccessResponse) GetPaymentMethod() OptPaymentMethod

GetPaymentMethod returns the value of PaymentMethod.

func (*PaymentCreditsSuccessResponse) GetProviderConfiguration

func (s *PaymentCreditsSuccessResponse) GetProviderConfiguration() OptProviderConfiguration

GetProviderConfiguration returns the value of ProviderConfiguration.

func (*PaymentCreditsSuccessResponse) GetProviderData

func (s *PaymentCreditsSuccessResponse) GetProviderData() OptProviderData

GetProviderData returns the value of ProviderData.

func (*PaymentCreditsSuccessResponse) GetProviderSpecificData

GetProviderSpecificData returns the value of ProviderSpecificData.

func (*PaymentCreditsSuccessResponse) GetReconciliationID

func (s *PaymentCreditsSuccessResponse) GetReconciliationID() OptString

GetReconciliationID returns the value of ReconciliationID.

func (*PaymentCreditsSuccessResponse) GetResult

GetResult returns the value of Result.

func (*PaymentCreditsSuccessResponse) MarshalJSON

func (s *PaymentCreditsSuccessResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentCreditsSuccessResponse) SetAmount

func (s *PaymentCreditsSuccessResponse) SetAmount(val OptFloat64)

SetAmount sets the value of Amount.

func (*PaymentCreditsSuccessResponse) SetCreated

func (s *PaymentCreditsSuccessResponse) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*PaymentCreditsSuccessResponse) SetID

SetID sets the value of ID.

func (*PaymentCreditsSuccessResponse) SetPaymentMethod

func (s *PaymentCreditsSuccessResponse) SetPaymentMethod(val OptPaymentMethod)

SetPaymentMethod sets the value of PaymentMethod.

func (*PaymentCreditsSuccessResponse) SetProviderConfiguration

func (s *PaymentCreditsSuccessResponse) SetProviderConfiguration(val OptProviderConfiguration)

SetProviderConfiguration sets the value of ProviderConfiguration.

func (*PaymentCreditsSuccessResponse) SetProviderData

func (s *PaymentCreditsSuccessResponse) SetProviderData(val OptProviderData)

SetProviderData sets the value of ProviderData.

func (*PaymentCreditsSuccessResponse) SetProviderSpecificData

SetProviderSpecificData sets the value of ProviderSpecificData.

func (*PaymentCreditsSuccessResponse) SetReconciliationID

func (s *PaymentCreditsSuccessResponse) SetReconciliationID(val OptString)

SetReconciliationID sets the value of ReconciliationID.

func (*PaymentCreditsSuccessResponse) SetResult

SetResult sets the value of Result.

func (*PaymentCreditsSuccessResponse) UnmarshalJSON

func (s *PaymentCreditsSuccessResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PaymentCreditsSuccessResponse) Validate

func (s *PaymentCreditsSuccessResponse) Validate() error

type PaymentCreditsSuccessResponseProviderSpecificData

type PaymentCreditsSuccessResponseProviderSpecificData map[string]jx.Raw

func (*PaymentCreditsSuccessResponseProviderSpecificData) Decode

Decode decodes PaymentCreditsSuccessResponseProviderSpecificData from json.

func (PaymentCreditsSuccessResponseProviderSpecificData) Encode

Encode implements json.Marshaler.

func (PaymentCreditsSuccessResponseProviderSpecificData) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PaymentCreditsSuccessResponseProviderSpecificData) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentCreditsSuccessResponseResult

type PaymentCreditsSuccessResponseResult struct {
	Status OptString `json:"status"`
}

func (*PaymentCreditsSuccessResponseResult) Decode

Decode decodes PaymentCreditsSuccessResponseResult from json.

func (*PaymentCreditsSuccessResponseResult) Encode

Encode implements json.Marshaler.

func (*PaymentCreditsSuccessResponseResult) GetStatus

GetStatus returns the value of Status.

func (*PaymentCreditsSuccessResponseResult) MarshalJSON

func (s *PaymentCreditsSuccessResponseResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentCreditsSuccessResponseResult) SetStatus

SetStatus sets the value of Status.

func (*PaymentCreditsSuccessResponseResult) UnmarshalJSON

func (s *PaymentCreditsSuccessResponseResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentMethod

type PaymentMethod struct {
	Type               OptString         `json:"type"`
	Token              OptString         `json:"token"`
	TokenType          OptTokenType      `json:"token_type"`
	HolderName         OptString         `json:"holder_name"`
	ExpirationDate     OptString         `json:"expiration_date"`
	Last4Digits        OptString         `json:"last_4_digits"`
	PassLuhnValidation OptBool           `json:"pass_luhn_validation"`
	Fingerprint        OptString         `json:"fingerprint"`
	BinNumber          OptString         `json:"bin_number"`
	Vendor             OptString         `json:"vendor"`
	Issuer             OptString         `json:"issuer"`
	CardType           OptString         `json:"card_type"`
	Level              OptString         `json:"level"`
	CountryCode        OptString         `json:"country_code"`
	Created            OptString         `json:"created"`
	BillingAddress     OptBillingAddress `json:"billing_address"`
	Href               OptString         `json:"href"`
	Customer           OptString         `json:"customer"`
}

Ref: #/components/schemas/PaymentMethod

func (*PaymentMethod) Decode

func (s *PaymentMethod) Decode(d *jx.Decoder) error

Decode decodes PaymentMethod from json.

func (*PaymentMethod) Encode

func (s *PaymentMethod) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PaymentMethod) GetBillingAddress

func (s *PaymentMethod) GetBillingAddress() OptBillingAddress

GetBillingAddress returns the value of BillingAddress.

func (*PaymentMethod) GetBinNumber

func (s *PaymentMethod) GetBinNumber() OptString

GetBinNumber returns the value of BinNumber.

func (*PaymentMethod) GetCardType

func (s *PaymentMethod) GetCardType() OptString

GetCardType returns the value of CardType.

func (*PaymentMethod) GetCountryCode

func (s *PaymentMethod) GetCountryCode() OptString

GetCountryCode returns the value of CountryCode.

func (*PaymentMethod) GetCreated

func (s *PaymentMethod) GetCreated() OptString

GetCreated returns the value of Created.

func (*PaymentMethod) GetCustomer

func (s *PaymentMethod) GetCustomer() OptString

GetCustomer returns the value of Customer.

func (*PaymentMethod) GetExpirationDate

func (s *PaymentMethod) GetExpirationDate() OptString

GetExpirationDate returns the value of ExpirationDate.

func (*PaymentMethod) GetFingerprint

func (s *PaymentMethod) GetFingerprint() OptString

GetFingerprint returns the value of Fingerprint.

func (*PaymentMethod) GetHolderName

func (s *PaymentMethod) GetHolderName() OptString

GetHolderName returns the value of HolderName.

func (*PaymentMethod) GetHref

func (s *PaymentMethod) GetHref() OptString

GetHref returns the value of Href.

func (*PaymentMethod) GetIssuer

func (s *PaymentMethod) GetIssuer() OptString

GetIssuer returns the value of Issuer.

func (*PaymentMethod) GetLast4Digits

func (s *PaymentMethod) GetLast4Digits() OptString

GetLast4Digits returns the value of Last4Digits.

func (*PaymentMethod) GetLevel

func (s *PaymentMethod) GetLevel() OptString

GetLevel returns the value of Level.

func (*PaymentMethod) GetPassLuhnValidation

func (s *PaymentMethod) GetPassLuhnValidation() OptBool

GetPassLuhnValidation returns the value of PassLuhnValidation.

func (*PaymentMethod) GetToken

func (s *PaymentMethod) GetToken() OptString

GetToken returns the value of Token.

func (*PaymentMethod) GetTokenType

func (s *PaymentMethod) GetTokenType() OptTokenType

GetTokenType returns the value of TokenType.

func (*PaymentMethod) GetType

func (s *PaymentMethod) GetType() OptString

GetType returns the value of Type.

func (*PaymentMethod) GetVendor

func (s *PaymentMethod) GetVendor() OptString

GetVendor returns the value of Vendor.

func (*PaymentMethod) MarshalJSON

func (s *PaymentMethod) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentMethod) SetBillingAddress

func (s *PaymentMethod) SetBillingAddress(val OptBillingAddress)

SetBillingAddress sets the value of BillingAddress.

func (*PaymentMethod) SetBinNumber

func (s *PaymentMethod) SetBinNumber(val OptString)

SetBinNumber sets the value of BinNumber.

func (*PaymentMethod) SetCardType

func (s *PaymentMethod) SetCardType(val OptString)

SetCardType sets the value of CardType.

func (*PaymentMethod) SetCountryCode

func (s *PaymentMethod) SetCountryCode(val OptString)

SetCountryCode sets the value of CountryCode.

func (*PaymentMethod) SetCreated

func (s *PaymentMethod) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*PaymentMethod) SetCustomer

func (s *PaymentMethod) SetCustomer(val OptString)

SetCustomer sets the value of Customer.

func (*PaymentMethod) SetExpirationDate

func (s *PaymentMethod) SetExpirationDate(val OptString)

SetExpirationDate sets the value of ExpirationDate.

func (*PaymentMethod) SetFingerprint

func (s *PaymentMethod) SetFingerprint(val OptString)

SetFingerprint sets the value of Fingerprint.

func (*PaymentMethod) SetHolderName

func (s *PaymentMethod) SetHolderName(val OptString)

SetHolderName sets the value of HolderName.

func (*PaymentMethod) SetHref

func (s *PaymentMethod) SetHref(val OptString)

SetHref sets the value of Href.

func (*PaymentMethod) SetIssuer

func (s *PaymentMethod) SetIssuer(val OptString)

SetIssuer sets the value of Issuer.

func (*PaymentMethod) SetLast4Digits

func (s *PaymentMethod) SetLast4Digits(val OptString)

SetLast4Digits sets the value of Last4Digits.

func (*PaymentMethod) SetLevel

func (s *PaymentMethod) SetLevel(val OptString)

SetLevel sets the value of Level.

func (*PaymentMethod) SetPassLuhnValidation

func (s *PaymentMethod) SetPassLuhnValidation(val OptBool)

SetPassLuhnValidation sets the value of PassLuhnValidation.

func (*PaymentMethod) SetToken

func (s *PaymentMethod) SetToken(val OptString)

SetToken sets the value of Token.

func (*PaymentMethod) SetTokenType

func (s *PaymentMethod) SetTokenType(val OptTokenType)

SetTokenType sets the value of TokenType.

func (*PaymentMethod) SetType

func (s *PaymentMethod) SetType(val OptString)

SetType sets the value of Type.

func (*PaymentMethod) SetVendor

func (s *PaymentMethod) SetVendor(val OptString)

SetVendor sets the value of Vendor.

func (*PaymentMethod) UnmarshalJSON

func (s *PaymentMethod) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PaymentMethod) Validate

func (s *PaymentMethod) Validate() error

type PaymentRefundsSuccessResponse

type PaymentRefundsSuccessResponse struct {
	// Payment ID.
	ID OptString `json:"id"`
	// Timestamp of payment auth creation.
	Created               OptString                              `json:"created"`
	Result                OptPaymentRefundsSuccessResponseResult `json:"result"`
	ProviderData          OptProviderData                        `json:"provider_data"`
	Amount                OptFloat64                             `json:"amount"`
	ProviderConfiguration OptProviderConfiguration               `json:"provider_configuration"`
}

Ref: #/components/schemas/PaymentRefundsSuccessResponse

func (*PaymentRefundsSuccessResponse) Decode

Decode decodes PaymentRefundsSuccessResponse from json.

func (*PaymentRefundsSuccessResponse) Encode

Encode implements json.Marshaler.

func (*PaymentRefundsSuccessResponse) GetAmount

GetAmount returns the value of Amount.

func (*PaymentRefundsSuccessResponse) GetCreated

func (s *PaymentRefundsSuccessResponse) GetCreated() OptString

GetCreated returns the value of Created.

func (*PaymentRefundsSuccessResponse) GetID

GetID returns the value of ID.

func (*PaymentRefundsSuccessResponse) GetProviderConfiguration

func (s *PaymentRefundsSuccessResponse) GetProviderConfiguration() OptProviderConfiguration

GetProviderConfiguration returns the value of ProviderConfiguration.

func (*PaymentRefundsSuccessResponse) GetProviderData

func (s *PaymentRefundsSuccessResponse) GetProviderData() OptProviderData

GetProviderData returns the value of ProviderData.

func (*PaymentRefundsSuccessResponse) GetResult

GetResult returns the value of Result.

func (*PaymentRefundsSuccessResponse) MarshalJSON

func (s *PaymentRefundsSuccessResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentRefundsSuccessResponse) SetAmount

func (s *PaymentRefundsSuccessResponse) SetAmount(val OptFloat64)

SetAmount sets the value of Amount.

func (*PaymentRefundsSuccessResponse) SetCreated

func (s *PaymentRefundsSuccessResponse) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*PaymentRefundsSuccessResponse) SetID

SetID sets the value of ID.

func (*PaymentRefundsSuccessResponse) SetProviderConfiguration

func (s *PaymentRefundsSuccessResponse) SetProviderConfiguration(val OptProviderConfiguration)

SetProviderConfiguration sets the value of ProviderConfiguration.

func (*PaymentRefundsSuccessResponse) SetProviderData

func (s *PaymentRefundsSuccessResponse) SetProviderData(val OptProviderData)

SetProviderData sets the value of ProviderData.

func (*PaymentRefundsSuccessResponse) SetResult

SetResult sets the value of Result.

func (*PaymentRefundsSuccessResponse) UnmarshalJSON

func (s *PaymentRefundsSuccessResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PaymentRefundsSuccessResponse) Validate

func (s *PaymentRefundsSuccessResponse) Validate() error

type PaymentRefundsSuccessResponseResult

type PaymentRefundsSuccessResponseResult struct {
	Status OptString `json:"status"`
}

func (*PaymentRefundsSuccessResponseResult) Decode

Decode decodes PaymentRefundsSuccessResponseResult from json.

func (*PaymentRefundsSuccessResponseResult) Encode

Encode implements json.Marshaler.

func (*PaymentRefundsSuccessResponseResult) GetStatus

GetStatus returns the value of Status.

func (*PaymentRefundsSuccessResponseResult) MarshalJSON

func (s *PaymentRefundsSuccessResponseResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentRefundsSuccessResponseResult) SetStatus

SetStatus sets the value of Status.

func (*PaymentRefundsSuccessResponseResult) UnmarshalJSON

func (s *PaymentRefundsSuccessResponseResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentSuccessResponse

type PaymentSuccessResponse struct {
	// Payment id.
	ID OptString `json:"id"`
	// Payment currency code.
	Currency OptString `json:"currency"`
	// Timestamp of payment creation.
	Created OptString `json:"created"`
	// Timestamp of payment modification.
	Modified   OptString `json:"modified"`
	IsDisputed OptBool   `json:"is_disputed"`
	// Status of the payment.
	Status              OptString                               `json:"status"`
	BillingAddress      OptPaymentSuccessResponseBillingAddress `json:"billing_address"`
	PossibleNextActions *PossibleNextActions                    `json:"possible_next_actions"`
	Order               OptPaymentSuccessResponseOrder          `json:"order"`
	// Amount to pay.
	Amount OptFloat64 `json:"amount"`
}

Ref: #/components/schemas/PaymentSuccessResponse

func (*PaymentSuccessResponse) Decode

func (s *PaymentSuccessResponse) Decode(d *jx.Decoder) error

Decode decodes PaymentSuccessResponse from json.

func (*PaymentSuccessResponse) Encode

func (s *PaymentSuccessResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PaymentSuccessResponse) GetAmount

func (s *PaymentSuccessResponse) GetAmount() OptFloat64

GetAmount returns the value of Amount.

func (*PaymentSuccessResponse) GetBillingAddress

GetBillingAddress returns the value of BillingAddress.

func (*PaymentSuccessResponse) GetCreated

func (s *PaymentSuccessResponse) GetCreated() OptString

GetCreated returns the value of Created.

func (*PaymentSuccessResponse) GetCurrency

func (s *PaymentSuccessResponse) GetCurrency() OptString

GetCurrency returns the value of Currency.

func (*PaymentSuccessResponse) GetID

func (s *PaymentSuccessResponse) GetID() OptString

GetID returns the value of ID.

func (*PaymentSuccessResponse) GetIsDisputed

func (s *PaymentSuccessResponse) GetIsDisputed() OptBool

GetIsDisputed returns the value of IsDisputed.

func (*PaymentSuccessResponse) GetModified

func (s *PaymentSuccessResponse) GetModified() OptString

GetModified returns the value of Modified.

func (*PaymentSuccessResponse) GetOrder

GetOrder returns the value of Order.

func (*PaymentSuccessResponse) GetPossibleNextActions

func (s *PaymentSuccessResponse) GetPossibleNextActions() *PossibleNextActions

GetPossibleNextActions returns the value of PossibleNextActions.

func (*PaymentSuccessResponse) GetStatus

func (s *PaymentSuccessResponse) GetStatus() OptString

GetStatus returns the value of Status.

func (*PaymentSuccessResponse) MarshalJSON

func (s *PaymentSuccessResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentSuccessResponse) SetAmount

func (s *PaymentSuccessResponse) SetAmount(val OptFloat64)

SetAmount sets the value of Amount.

func (*PaymentSuccessResponse) SetBillingAddress

SetBillingAddress sets the value of BillingAddress.

func (*PaymentSuccessResponse) SetCreated

func (s *PaymentSuccessResponse) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*PaymentSuccessResponse) SetCurrency

func (s *PaymentSuccessResponse) SetCurrency(val OptString)

SetCurrency sets the value of Currency.

func (*PaymentSuccessResponse) SetID

func (s *PaymentSuccessResponse) SetID(val OptString)

SetID sets the value of ID.

func (*PaymentSuccessResponse) SetIsDisputed

func (s *PaymentSuccessResponse) SetIsDisputed(val OptBool)

SetIsDisputed sets the value of IsDisputed.

func (*PaymentSuccessResponse) SetModified

func (s *PaymentSuccessResponse) SetModified(val OptString)

SetModified sets the value of Modified.

func (*PaymentSuccessResponse) SetOrder

SetOrder sets the value of Order.

func (*PaymentSuccessResponse) SetPossibleNextActions

func (s *PaymentSuccessResponse) SetPossibleNextActions(val *PossibleNextActions)

SetPossibleNextActions sets the value of PossibleNextActions.

func (*PaymentSuccessResponse) SetStatus

func (s *PaymentSuccessResponse) SetStatus(val OptString)

SetStatus sets the value of Status.

func (*PaymentSuccessResponse) UnmarshalJSON

func (s *PaymentSuccessResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PaymentSuccessResponse) Validate

func (s *PaymentSuccessResponse) Validate() error

type PaymentSuccessResponseBillingAddress

type PaymentSuccessResponseBillingAddress struct {
	// Phone of the customer.
	Phone OptString `json:"phone"`
}

func (*PaymentSuccessResponseBillingAddress) Decode

Decode decodes PaymentSuccessResponseBillingAddress from json.

func (*PaymentSuccessResponseBillingAddress) Encode

Encode implements json.Marshaler.

func (*PaymentSuccessResponseBillingAddress) GetPhone

GetPhone returns the value of Phone.

func (*PaymentSuccessResponseBillingAddress) MarshalJSON

func (s *PaymentSuccessResponseBillingAddress) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentSuccessResponseBillingAddress) SetPhone

SetPhone sets the value of Phone.

func (*PaymentSuccessResponseBillingAddress) UnmarshalJSON

func (s *PaymentSuccessResponseBillingAddress) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentSuccessResponseOrder

type PaymentSuccessResponseOrder struct {
	ID OptString `json:"id"`
}

func (*PaymentSuccessResponseOrder) Decode

Decode decodes PaymentSuccessResponseOrder from json.

func (*PaymentSuccessResponseOrder) Encode

func (s *PaymentSuccessResponseOrder) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PaymentSuccessResponseOrder) GetID

GetID returns the value of ID.

func (*PaymentSuccessResponseOrder) MarshalJSON

func (s *PaymentSuccessResponseOrder) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentSuccessResponseOrder) SetID

func (s *PaymentSuccessResponseOrder) SetID(val OptString)

SetID sets the value of ID.

func (*PaymentSuccessResponseOrder) UnmarshalJSON

func (s *PaymentSuccessResponseOrder) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentVoidsSuccessResponse

type PaymentVoidsSuccessResponse struct {
	// Payment ID.
	ID OptString `json:"id"`
	// Timestamp of payment auth creation.
	Created               OptString                                          `json:"created"`
	ReconciliationID      OptString                                          `json:"reconciliation_id"`
	ProviderSpecificData  OptPaymentVoidsSuccessResponseProviderSpecificData `json:"provider_specific_data"`
	Result                OptPaymentVoidsSuccessResponseResult               `json:"result"`
	ProviderData          OptProviderData                                    `json:"provider_data"`
	ProviderConfiguration OptProviderConfiguration                           `json:"provider_configuration"`
}

Ref: #/components/schemas/PaymentVoidsSuccessResponse

func (*PaymentVoidsSuccessResponse) Decode

Decode decodes PaymentVoidsSuccessResponse from json.

func (*PaymentVoidsSuccessResponse) Encode

func (s *PaymentVoidsSuccessResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PaymentVoidsSuccessResponse) GetCreated

func (s *PaymentVoidsSuccessResponse) GetCreated() OptString

GetCreated returns the value of Created.

func (*PaymentVoidsSuccessResponse) GetID

GetID returns the value of ID.

func (*PaymentVoidsSuccessResponse) GetProviderConfiguration

func (s *PaymentVoidsSuccessResponse) GetProviderConfiguration() OptProviderConfiguration

GetProviderConfiguration returns the value of ProviderConfiguration.

func (*PaymentVoidsSuccessResponse) GetProviderData

func (s *PaymentVoidsSuccessResponse) GetProviderData() OptProviderData

GetProviderData returns the value of ProviderData.

func (*PaymentVoidsSuccessResponse) GetProviderSpecificData

GetProviderSpecificData returns the value of ProviderSpecificData.

func (*PaymentVoidsSuccessResponse) GetReconciliationID

func (s *PaymentVoidsSuccessResponse) GetReconciliationID() OptString

GetReconciliationID returns the value of ReconciliationID.

func (*PaymentVoidsSuccessResponse) GetResult

GetResult returns the value of Result.

func (*PaymentVoidsSuccessResponse) MarshalJSON

func (s *PaymentVoidsSuccessResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentVoidsSuccessResponse) SetCreated

func (s *PaymentVoidsSuccessResponse) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*PaymentVoidsSuccessResponse) SetID

func (s *PaymentVoidsSuccessResponse) SetID(val OptString)

SetID sets the value of ID.

func (*PaymentVoidsSuccessResponse) SetProviderConfiguration

func (s *PaymentVoidsSuccessResponse) SetProviderConfiguration(val OptProviderConfiguration)

SetProviderConfiguration sets the value of ProviderConfiguration.

func (*PaymentVoidsSuccessResponse) SetProviderData

func (s *PaymentVoidsSuccessResponse) SetProviderData(val OptProviderData)

SetProviderData sets the value of ProviderData.

func (*PaymentVoidsSuccessResponse) SetProviderSpecificData

SetProviderSpecificData sets the value of ProviderSpecificData.

func (*PaymentVoidsSuccessResponse) SetReconciliationID

func (s *PaymentVoidsSuccessResponse) SetReconciliationID(val OptString)

SetReconciliationID sets the value of ReconciliationID.

func (*PaymentVoidsSuccessResponse) SetResult

SetResult sets the value of Result.

func (*PaymentVoidsSuccessResponse) UnmarshalJSON

func (s *PaymentVoidsSuccessResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentVoidsSuccessResponseProviderSpecificData

type PaymentVoidsSuccessResponseProviderSpecificData map[string]jx.Raw

func (*PaymentVoidsSuccessResponseProviderSpecificData) Decode

Decode decodes PaymentVoidsSuccessResponseProviderSpecificData from json.

func (PaymentVoidsSuccessResponseProviderSpecificData) Encode

Encode implements json.Marshaler.

func (PaymentVoidsSuccessResponseProviderSpecificData) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PaymentVoidsSuccessResponseProviderSpecificData) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentVoidsSuccessResponseResult

type PaymentVoidsSuccessResponseResult struct {
	Status OptString `json:"status"`
}

func (*PaymentVoidsSuccessResponseResult) Decode

Decode decodes PaymentVoidsSuccessResponseResult from json.

func (*PaymentVoidsSuccessResponseResult) Encode

Encode implements json.Marshaler.

func (*PaymentVoidsSuccessResponseResult) GetStatus

GetStatus returns the value of Status.

func (*PaymentVoidsSuccessResponseResult) MarshalJSON

func (s *PaymentVoidsSuccessResponseResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentVoidsSuccessResponseResult) SetStatus

func (s *PaymentVoidsSuccessResponseResult) SetStatus(val OptString)

SetStatus sets the value of Status.

func (*PaymentVoidsSuccessResponseResult) UnmarshalJSON

func (s *PaymentVoidsSuccessResponseResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentsPaymentidAuthorizationsPostParams

type PaymentsPaymentidAuthorizationsPostParams struct {
	AppID          OptString
	PrivateKey     OptString
	APIVersion     OptString
	XPaymentsOsEnv OptString
	IdempotencyKey OptString
	Paymentid      string
}

PaymentsPaymentidAuthorizationsPostParams is parameters of POST /payments/{paymentid}/authorizations operation.

type PaymentsPaymentidAuthorizationsPostReq

type PaymentsPaymentidAuthorizationsPostReq struct {
	PaymentMethod    PaymentsPaymentidAuthorizationsPostReqPaymentMethod `json:"payment_method"`
	ReconciliationID string                                              `json:"reconciliation_id"`
}

func (*PaymentsPaymentidAuthorizationsPostReq) Decode

Decode decodes PaymentsPaymentidAuthorizationsPostReq from json.

func (*PaymentsPaymentidAuthorizationsPostReq) Encode

Encode implements json.Marshaler.

func (*PaymentsPaymentidAuthorizationsPostReq) GetPaymentMethod

GetPaymentMethod returns the value of PaymentMethod.

func (*PaymentsPaymentidAuthorizationsPostReq) GetReconciliationID

func (s *PaymentsPaymentidAuthorizationsPostReq) GetReconciliationID() string

GetReconciliationID returns the value of ReconciliationID.

func (*PaymentsPaymentidAuthorizationsPostReq) MarshalJSON

func (s *PaymentsPaymentidAuthorizationsPostReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentsPaymentidAuthorizationsPostReq) SetPaymentMethod

SetPaymentMethod sets the value of PaymentMethod.

func (*PaymentsPaymentidAuthorizationsPostReq) SetReconciliationID

func (s *PaymentsPaymentidAuthorizationsPostReq) SetReconciliationID(val string)

SetReconciliationID sets the value of ReconciliationID.

func (*PaymentsPaymentidAuthorizationsPostReq) UnmarshalJSON

func (s *PaymentsPaymentidAuthorizationsPostReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentsPaymentidAuthorizationsPostReqPaymentMethod

type PaymentsPaymentidAuthorizationsPostReqPaymentMethod struct {
	// Payment token.
	Token         string `json:"token"`
	Type          string `json:"type"`
	CreditCardCvv string `json:"credit_card_cvv"`
}

func (*PaymentsPaymentidAuthorizationsPostReqPaymentMethod) Decode

Decode decodes PaymentsPaymentidAuthorizationsPostReqPaymentMethod from json.

func (*PaymentsPaymentidAuthorizationsPostReqPaymentMethod) Encode

Encode implements json.Marshaler.

func (*PaymentsPaymentidAuthorizationsPostReqPaymentMethod) GetCreditCardCvv

GetCreditCardCvv returns the value of CreditCardCvv.

func (*PaymentsPaymentidAuthorizationsPostReqPaymentMethod) GetToken

GetToken returns the value of Token.

func (*PaymentsPaymentidAuthorizationsPostReqPaymentMethod) GetType

GetType returns the value of Type.

func (*PaymentsPaymentidAuthorizationsPostReqPaymentMethod) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*PaymentsPaymentidAuthorizationsPostReqPaymentMethod) SetCreditCardCvv

SetCreditCardCvv sets the value of CreditCardCvv.

func (*PaymentsPaymentidAuthorizationsPostReqPaymentMethod) SetToken

SetToken sets the value of Token.

func (*PaymentsPaymentidAuthorizationsPostReqPaymentMethod) SetType

SetType sets the value of Type.

func (*PaymentsPaymentidAuthorizationsPostReqPaymentMethod) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentsPaymentidCapturesPostParams

type PaymentsPaymentidCapturesPostParams struct {
	AppID          OptString
	PrivateKey     OptString
	APIVersion     OptString
	XPaymentsOsEnv OptString
	IdempotencyKey OptString
	Paymentid      string
}

PaymentsPaymentidCapturesPostParams is parameters of POST /payments/{paymentid}/captures operation.

type PaymentsPaymentidCapturesPostReq

type PaymentsPaymentidCapturesPostReq struct{}

func (*PaymentsPaymentidCapturesPostReq) Decode

Decode decodes PaymentsPaymentidCapturesPostReq from json.

func (*PaymentsPaymentidCapturesPostReq) Encode

Encode implements json.Marshaler.

func (*PaymentsPaymentidCapturesPostReq) MarshalJSON

func (s *PaymentsPaymentidCapturesPostReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentsPaymentidCapturesPostReq) UnmarshalJSON

func (s *PaymentsPaymentidCapturesPostReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentsPaymentidChargesPostParams

type PaymentsPaymentidChargesPostParams struct {
	AppID          OptString
	PrivateKey     OptString
	APIVersion     OptString
	XPaymentsOsEnv OptString
	IdempotencyKey OptString
	Paymentid      string
}

PaymentsPaymentidChargesPostParams is parameters of POST /payments/{paymentid}/charges operation.

type PaymentsPaymentidChargesPostReq

type PaymentsPaymentidChargesPostReq struct{}

func (*PaymentsPaymentidChargesPostReq) Decode

Decode decodes PaymentsPaymentidChargesPostReq from json.

func (*PaymentsPaymentidChargesPostReq) Encode

Encode implements json.Marshaler.

func (*PaymentsPaymentidChargesPostReq) MarshalJSON

func (s *PaymentsPaymentidChargesPostReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentsPaymentidChargesPostReq) UnmarshalJSON

func (s *PaymentsPaymentidChargesPostReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentsPaymentidCreditsPostParams

type PaymentsPaymentidCreditsPostParams struct {
	AppID          OptString
	PrivateKey     OptString
	APIVersion     OptString
	XPaymentsOsEnv OptString
	IdempotencyKey OptString
	Paymentid      string
}

PaymentsPaymentidCreditsPostParams is parameters of POST /payments/{paymentid}/credits operation.

type PaymentsPaymentidCreditsPostReq

type PaymentsPaymentidCreditsPostReq struct{}

func (*PaymentsPaymentidCreditsPostReq) Decode

Decode decodes PaymentsPaymentidCreditsPostReq from json.

func (*PaymentsPaymentidCreditsPostReq) Encode

Encode implements json.Marshaler.

func (*PaymentsPaymentidCreditsPostReq) MarshalJSON

func (s *PaymentsPaymentidCreditsPostReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentsPaymentidCreditsPostReq) UnmarshalJSON

func (s *PaymentsPaymentidCreditsPostReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentsPaymentidRefundsPostParams

type PaymentsPaymentidRefundsPostParams struct {
	AppID          OptString
	PrivateKey     OptString
	APIVersion     OptString
	XPaymentsOsEnv OptString
	IdempotencyKey OptString
	Paymentid      string
}

PaymentsPaymentidRefundsPostParams is parameters of POST /payments/{paymentid}/refunds operation.

type PaymentsPaymentidRefundsPostReq

type PaymentsPaymentidRefundsPostReq struct{}

func (*PaymentsPaymentidRefundsPostReq) Decode

Decode decodes PaymentsPaymentidRefundsPostReq from json.

func (*PaymentsPaymentidRefundsPostReq) Encode

Encode implements json.Marshaler.

func (*PaymentsPaymentidRefundsPostReq) MarshalJSON

func (s *PaymentsPaymentidRefundsPostReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentsPaymentidRefundsPostReq) UnmarshalJSON

func (s *PaymentsPaymentidRefundsPostReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentsPaymentidVoidsPostParams

type PaymentsPaymentidVoidsPostParams struct {
	AppID          OptString
	PrivateKey     OptString
	APIVersion     OptString
	XPaymentsOsEnv OptString
	IdempotencyKey OptString
	Paymentid      string
}

PaymentsPaymentidVoidsPostParams is parameters of POST /payments/{paymentid}/voids operation.

type PaymentsPaymentidVoidsPostReq

type PaymentsPaymentidVoidsPostReq struct{}

func (*PaymentsPaymentidVoidsPostReq) Decode

Decode decodes PaymentsPaymentidVoidsPostReq from json.

func (*PaymentsPaymentidVoidsPostReq) Encode

Encode implements json.Marshaler.

func (*PaymentsPaymentidVoidsPostReq) MarshalJSON

func (s *PaymentsPaymentidVoidsPostReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentsPaymentidVoidsPostReq) UnmarshalJSON

func (s *PaymentsPaymentidVoidsPostReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PaymentsPostParams

type PaymentsPostParams struct {
	AppID          OptString
	PrivateKey     OptString
	APIVersion     OptString
	XPaymentsOsEnv OptString
	IdempotencyKey OptString
}

PaymentsPostParams is parameters of POST /payments operation.

type PaymentsPostReq

type PaymentsPostReq struct{}

func (*PaymentsPostReq) Decode

func (s *PaymentsPostReq) Decode(d *jx.Decoder) error

Decode decodes PaymentsPostReq from json.

func (*PaymentsPostReq) Encode

func (s *PaymentsPostReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PaymentsPostReq) MarshalJSON

func (s *PaymentsPostReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaymentsPostReq) UnmarshalJSON

func (s *PaymentsPostReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PossibleNextActions

type PossibleNextActions []NextAction

func (*PossibleNextActions) Decode

func (s *PossibleNextActions) Decode(d *jx.Decoder) error

Decode decodes PossibleNextActions from json.

func (PossibleNextActions) Encode

func (s PossibleNextActions) Encode(e *jx.Encoder)

Encode encodes PossibleNextActions as json.

func (PossibleNextActions) MarshalJSON

func (s PossibleNextActions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PossibleNextActions) UnmarshalJSON

func (s *PossibleNextActions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (PossibleNextActions) Validate

func (s PossibleNextActions) Validate() error

type ProviderConfiguration

type ProviderConfiguration struct {
	ID         OptString `json:"id"`
	Name       OptString `json:"name"`
	Created    OptString `json:"created"`
	Modified   OptString `json:"modified"`
	AccountID  OptString `json:"account_id"`
	ProviderID OptString `json:"provider_id"`
	Type       OptString `json:"type"`
	Href       OptString `json:"href"`
}

Ref: #/components/schemas/ProviderConfiguration

func (*ProviderConfiguration) Decode

func (s *ProviderConfiguration) Decode(d *jx.Decoder) error

Decode decodes ProviderConfiguration from json.

func (*ProviderConfiguration) Encode

func (s *ProviderConfiguration) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ProviderConfiguration) GetAccountID

func (s *ProviderConfiguration) GetAccountID() OptString

GetAccountID returns the value of AccountID.

func (*ProviderConfiguration) GetCreated

func (s *ProviderConfiguration) GetCreated() OptString

GetCreated returns the value of Created.

func (*ProviderConfiguration) GetHref

func (s *ProviderConfiguration) GetHref() OptString

GetHref returns the value of Href.

func (*ProviderConfiguration) GetID

func (s *ProviderConfiguration) GetID() OptString

GetID returns the value of ID.

func (*ProviderConfiguration) GetModified

func (s *ProviderConfiguration) GetModified() OptString

GetModified returns the value of Modified.

func (*ProviderConfiguration) GetName

func (s *ProviderConfiguration) GetName() OptString

GetName returns the value of Name.

func (*ProviderConfiguration) GetProviderID

func (s *ProviderConfiguration) GetProviderID() OptString

GetProviderID returns the value of ProviderID.

func (*ProviderConfiguration) GetType

func (s *ProviderConfiguration) GetType() OptString

GetType returns the value of Type.

func (*ProviderConfiguration) MarshalJSON

func (s *ProviderConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProviderConfiguration) SetAccountID

func (s *ProviderConfiguration) SetAccountID(val OptString)

SetAccountID sets the value of AccountID.

func (*ProviderConfiguration) SetCreated

func (s *ProviderConfiguration) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*ProviderConfiguration) SetHref

func (s *ProviderConfiguration) SetHref(val OptString)

SetHref sets the value of Href.

func (*ProviderConfiguration) SetID

func (s *ProviderConfiguration) SetID(val OptString)

SetID sets the value of ID.

func (*ProviderConfiguration) SetModified

func (s *ProviderConfiguration) SetModified(val OptString)

SetModified sets the value of Modified.

func (*ProviderConfiguration) SetName

func (s *ProviderConfiguration) SetName(val OptString)

SetName sets the value of Name.

func (*ProviderConfiguration) SetProviderID

func (s *ProviderConfiguration) SetProviderID(val OptString)

SetProviderID sets the value of ProviderID.

func (*ProviderConfiguration) SetType

func (s *ProviderConfiguration) SetType(val OptString)

SetType sets the value of Type.

func (*ProviderConfiguration) UnmarshalJSON

func (s *ProviderConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ProviderData

type ProviderData struct {
	ProviderName      OptString `json:"provider_name"`
	ResponseCode      OptString `json:"response_code"`
	Description       OptString `json:"description"`
	RawResponse       OptString `json:"raw_response"`
	AuthorizationCode OptString `json:"authorization_code"`
	TransactionID     OptString `json:"transaction_id"`
	ExternalID        OptString `json:"external_id"`
}

Ref: #/components/schemas/ProviderData

func (*ProviderData) Decode

func (s *ProviderData) Decode(d *jx.Decoder) error

Decode decodes ProviderData from json.

func (*ProviderData) Encode

func (s *ProviderData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ProviderData) GetAuthorizationCode

func (s *ProviderData) GetAuthorizationCode() OptString

GetAuthorizationCode returns the value of AuthorizationCode.

func (*ProviderData) GetDescription

func (s *ProviderData) GetDescription() OptString

GetDescription returns the value of Description.

func (*ProviderData) GetExternalID

func (s *ProviderData) GetExternalID() OptString

GetExternalID returns the value of ExternalID.

func (*ProviderData) GetProviderName

func (s *ProviderData) GetProviderName() OptString

GetProviderName returns the value of ProviderName.

func (*ProviderData) GetRawResponse

func (s *ProviderData) GetRawResponse() OptString

GetRawResponse returns the value of RawResponse.

func (*ProviderData) GetResponseCode

func (s *ProviderData) GetResponseCode() OptString

GetResponseCode returns the value of ResponseCode.

func (*ProviderData) GetTransactionID

func (s *ProviderData) GetTransactionID() OptString

GetTransactionID returns the value of TransactionID.

func (*ProviderData) MarshalJSON

func (s *ProviderData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProviderData) SetAuthorizationCode

func (s *ProviderData) SetAuthorizationCode(val OptString)

SetAuthorizationCode sets the value of AuthorizationCode.

func (*ProviderData) SetDescription

func (s *ProviderData) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*ProviderData) SetExternalID

func (s *ProviderData) SetExternalID(val OptString)

SetExternalID sets the value of ExternalID.

func (*ProviderData) SetProviderName

func (s *ProviderData) SetProviderName(val OptString)

SetProviderName sets the value of ProviderName.

func (*ProviderData) SetRawResponse

func (s *ProviderData) SetRawResponse(val OptString)

SetRawResponse sets the value of RawResponse.

func (*ProviderData) SetResponseCode

func (s *ProviderData) SetResponseCode(val OptString)

SetResponseCode sets the value of ResponseCode.

func (*ProviderData) SetTransactionID

func (s *ProviderData) SetTransactionID(val OptString)

SetTransactionID sets the value of TransactionID.

func (*ProviderData) UnmarshalJSON

func (s *ProviderData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TokenSuccessResponse

type TokenSuccessResponse struct {
	// PayU Token.
	Token OptString `json:"token"`
	// Timestamp of token creation.
	Created            OptString         `json:"created"`
	PassLuhnValidation OptBool           `json:"pass_luhn_validation"`
	TokenType          OptTokenType      `json:"token_type"`
	Type               OptString         `json:"type"`
	State              OptString         `json:"state"`
	BinNumber          OptString         `json:"bin_number"`
	Vendor             OptString         `json:"vendor"`
	CardType           OptString         `json:"card_type"`
	Issuer             OptString         `json:"issuer"`
	Level              OptString         `json:"level"`
	CountryCode        OptString         `json:"country_code"`
	BillingAddress     OptBillingAddress `json:"billing_address"`
	HolderName         OptString         `json:"holder_name"`
	ExpirationDate     OptString         `json:"expiration_date"`
	Last4Digits        OptString         `json:"last_4_digits"`
	EncryptedCvv       OptString         `json:"encrypted_cvv"`
}

Ref: #/components/schemas/TokenSuccessResponse

func (*TokenSuccessResponse) Decode

func (s *TokenSuccessResponse) Decode(d *jx.Decoder) error

Decode decodes TokenSuccessResponse from json.

func (*TokenSuccessResponse) Encode

func (s *TokenSuccessResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TokenSuccessResponse) GetBillingAddress

func (s *TokenSuccessResponse) GetBillingAddress() OptBillingAddress

GetBillingAddress returns the value of BillingAddress.

func (*TokenSuccessResponse) GetBinNumber

func (s *TokenSuccessResponse) GetBinNumber() OptString

GetBinNumber returns the value of BinNumber.

func (*TokenSuccessResponse) GetCardType

func (s *TokenSuccessResponse) GetCardType() OptString

GetCardType returns the value of CardType.

func (*TokenSuccessResponse) GetCountryCode

func (s *TokenSuccessResponse) GetCountryCode() OptString

GetCountryCode returns the value of CountryCode.

func (*TokenSuccessResponse) GetCreated

func (s *TokenSuccessResponse) GetCreated() OptString

GetCreated returns the value of Created.

func (*TokenSuccessResponse) GetEncryptedCvv

func (s *TokenSuccessResponse) GetEncryptedCvv() OptString

GetEncryptedCvv returns the value of EncryptedCvv.

func (*TokenSuccessResponse) GetExpirationDate

func (s *TokenSuccessResponse) GetExpirationDate() OptString

GetExpirationDate returns the value of ExpirationDate.

func (*TokenSuccessResponse) GetHolderName

func (s *TokenSuccessResponse) GetHolderName() OptString

GetHolderName returns the value of HolderName.

func (*TokenSuccessResponse) GetIssuer

func (s *TokenSuccessResponse) GetIssuer() OptString

GetIssuer returns the value of Issuer.

func (*TokenSuccessResponse) GetLast4Digits

func (s *TokenSuccessResponse) GetLast4Digits() OptString

GetLast4Digits returns the value of Last4Digits.

func (*TokenSuccessResponse) GetLevel

func (s *TokenSuccessResponse) GetLevel() OptString

GetLevel returns the value of Level.

func (*TokenSuccessResponse) GetPassLuhnValidation

func (s *TokenSuccessResponse) GetPassLuhnValidation() OptBool

GetPassLuhnValidation returns the value of PassLuhnValidation.

func (*TokenSuccessResponse) GetState

func (s *TokenSuccessResponse) GetState() OptString

GetState returns the value of State.

func (*TokenSuccessResponse) GetToken

func (s *TokenSuccessResponse) GetToken() OptString

GetToken returns the value of Token.

func (*TokenSuccessResponse) GetTokenType

func (s *TokenSuccessResponse) GetTokenType() OptTokenType

GetTokenType returns the value of TokenType.

func (*TokenSuccessResponse) GetType

func (s *TokenSuccessResponse) GetType() OptString

GetType returns the value of Type.

func (*TokenSuccessResponse) GetVendor

func (s *TokenSuccessResponse) GetVendor() OptString

GetVendor returns the value of Vendor.

func (*TokenSuccessResponse) MarshalJSON

func (s *TokenSuccessResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TokenSuccessResponse) SetBillingAddress

func (s *TokenSuccessResponse) SetBillingAddress(val OptBillingAddress)

SetBillingAddress sets the value of BillingAddress.

func (*TokenSuccessResponse) SetBinNumber

func (s *TokenSuccessResponse) SetBinNumber(val OptString)

SetBinNumber sets the value of BinNumber.

func (*TokenSuccessResponse) SetCardType

func (s *TokenSuccessResponse) SetCardType(val OptString)

SetCardType sets the value of CardType.

func (*TokenSuccessResponse) SetCountryCode

func (s *TokenSuccessResponse) SetCountryCode(val OptString)

SetCountryCode sets the value of CountryCode.

func (*TokenSuccessResponse) SetCreated

func (s *TokenSuccessResponse) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*TokenSuccessResponse) SetEncryptedCvv

func (s *TokenSuccessResponse) SetEncryptedCvv(val OptString)

SetEncryptedCvv sets the value of EncryptedCvv.

func (*TokenSuccessResponse) SetExpirationDate

func (s *TokenSuccessResponse) SetExpirationDate(val OptString)

SetExpirationDate sets the value of ExpirationDate.

func (*TokenSuccessResponse) SetHolderName

func (s *TokenSuccessResponse) SetHolderName(val OptString)

SetHolderName sets the value of HolderName.

func (*TokenSuccessResponse) SetIssuer

func (s *TokenSuccessResponse) SetIssuer(val OptString)

SetIssuer sets the value of Issuer.

func (*TokenSuccessResponse) SetLast4Digits

func (s *TokenSuccessResponse) SetLast4Digits(val OptString)

SetLast4Digits sets the value of Last4Digits.

func (*TokenSuccessResponse) SetLevel

func (s *TokenSuccessResponse) SetLevel(val OptString)

SetLevel sets the value of Level.

func (*TokenSuccessResponse) SetPassLuhnValidation

func (s *TokenSuccessResponse) SetPassLuhnValidation(val OptBool)

SetPassLuhnValidation sets the value of PassLuhnValidation.

func (*TokenSuccessResponse) SetState

func (s *TokenSuccessResponse) SetState(val OptString)

SetState sets the value of State.

func (*TokenSuccessResponse) SetToken

func (s *TokenSuccessResponse) SetToken(val OptString)

SetToken sets the value of Token.

func (*TokenSuccessResponse) SetTokenType

func (s *TokenSuccessResponse) SetTokenType(val OptTokenType)

SetTokenType sets the value of TokenType.

func (*TokenSuccessResponse) SetType

func (s *TokenSuccessResponse) SetType(val OptString)

SetType sets the value of Type.

func (*TokenSuccessResponse) SetVendor

func (s *TokenSuccessResponse) SetVendor(val OptString)

SetVendor sets the value of Vendor.

func (*TokenSuccessResponse) UnmarshalJSON

func (s *TokenSuccessResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TokenSuccessResponse) Validate

func (s *TokenSuccessResponse) Validate() error

type TokenType

type TokenType string

Ref: #/components/schemas/TokenType

const (
	TokenTypeCreditCard          TokenType = "credit_card"
	TokenTypeCardCvvCode         TokenType = "card_cvv_code"
	TokenTypeBillingAgreement    TokenType = "billing_agreement"
	TokenTypeEncryptedCreditCard TokenType = "encrypted_credit_card"
)

func (*TokenType) Decode

func (s *TokenType) Decode(d *jx.Decoder) error

Decode decodes TokenType from json.

func (TokenType) Encode

func (s TokenType) Encode(e *jx.Encoder)

Encode encodes TokenType as json.

func (TokenType) MarshalJSON

func (s TokenType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TokenType) MarshalText

func (s TokenType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TokenType) UnmarshalJSON

func (s *TokenType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TokenType) UnmarshalText

func (s *TokenType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TokenType) Validate

func (s TokenType) Validate() error

type TokensPostParams

type TokensPostParams struct {
	AppID          OptString
	PublicKey      OptString
	APIVersion     OptString
	XPaymentsOsEnv OptString
}

TokensPostParams is parameters of POST /tokens operation.

type TokensPostReq

type TokensPostReq struct {
	TokenType      TokenType      `json:"token_type"`
	CreditCardCvv  string         `json:"credit_card_cvv"`
	CardNumber     string         `json:"card_number"`
	ExpirationDate string         `json:"expiration_date"`
	HolderName     string         `json:"holder_name"`
	BillingAddress BillingAddress `json:"billing_address"`
}

func (*TokensPostReq) Decode

func (s *TokensPostReq) Decode(d *jx.Decoder) error

Decode decodes TokensPostReq from json.

func (*TokensPostReq) Encode

func (s *TokensPostReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TokensPostReq) GetBillingAddress

func (s *TokensPostReq) GetBillingAddress() BillingAddress

GetBillingAddress returns the value of BillingAddress.

func (*TokensPostReq) GetCardNumber

func (s *TokensPostReq) GetCardNumber() string

GetCardNumber returns the value of CardNumber.

func (*TokensPostReq) GetCreditCardCvv

func (s *TokensPostReq) GetCreditCardCvv() string

GetCreditCardCvv returns the value of CreditCardCvv.

func (*TokensPostReq) GetExpirationDate

func (s *TokensPostReq) GetExpirationDate() string

GetExpirationDate returns the value of ExpirationDate.

func (*TokensPostReq) GetHolderName

func (s *TokensPostReq) GetHolderName() string

GetHolderName returns the value of HolderName.

func (*TokensPostReq) GetTokenType

func (s *TokensPostReq) GetTokenType() TokenType

GetTokenType returns the value of TokenType.

func (*TokensPostReq) MarshalJSON

func (s *TokensPostReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TokensPostReq) SetBillingAddress

func (s *TokensPostReq) SetBillingAddress(val BillingAddress)

SetBillingAddress sets the value of BillingAddress.

func (*TokensPostReq) SetCardNumber

func (s *TokensPostReq) SetCardNumber(val string)

SetCardNumber sets the value of CardNumber.

func (*TokensPostReq) SetCreditCardCvv

func (s *TokensPostReq) SetCreditCardCvv(val string)

SetCreditCardCvv sets the value of CreditCardCvv.

func (*TokensPostReq) SetExpirationDate

func (s *TokensPostReq) SetExpirationDate(val string)

SetExpirationDate sets the value of ExpirationDate.

func (*TokensPostReq) SetHolderName

func (s *TokensPostReq) SetHolderName(val string)

SetHolderName sets the value of HolderName.

func (*TokensPostReq) SetTokenType

func (s *TokensPostReq) SetTokenType(val TokenType)

SetTokenType sets the value of TokenType.

func (*TokensPostReq) UnmarshalJSON

func (s *TokensPostReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TokensPostReq) Validate

func (s *TokensPostReq) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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