simulate

package
v0.0.0-...-8beb111 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiSimulatePaymentRequest

type ApiSimulatePaymentRequest struct {
	ApiService PublicSimulateAPI
	// contains filtered or unexported fields
}

func (ApiSimulatePaymentRequest) Execute

func (r ApiSimulatePaymentRequest) Execute() (*http.Response, error)

func (ApiSimulatePaymentRequest) Request

Request payload to simulate payment

type InternalWebControllersMerchantApiv1SimulateSimulateRequest

type InternalWebControllersMerchantApiv1SimulateSimulateRequest struct {
	AccountNumber     *string `json:"account_number,omitempty"`
	PaymentIdentifier *string `json:"payment_identifier,omitempty"`
}

InternalWebControllersMerchantApiv1SimulateSimulateRequest struct for InternalWebControllersMerchantApiv1SimulateSimulateRequest

func NewInternalWebControllersMerchantApiv1SimulateSimulateRequest

func NewInternalWebControllersMerchantApiv1SimulateSimulateRequest() *InternalWebControllersMerchantApiv1SimulateSimulateRequest

NewInternalWebControllersMerchantApiv1SimulateSimulateRequest instantiates a new InternalWebControllersMerchantApiv1SimulateSimulateRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInternalWebControllersMerchantApiv1SimulateSimulateRequestWithDefaults

func NewInternalWebControllersMerchantApiv1SimulateSimulateRequestWithDefaults() *InternalWebControllersMerchantApiv1SimulateSimulateRequest

NewInternalWebControllersMerchantApiv1SimulateSimulateRequestWithDefaults instantiates a new InternalWebControllersMerchantApiv1SimulateSimulateRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InternalWebControllersMerchantApiv1SimulateSimulateRequest) GetAccountNumber

GetAccountNumber returns the AccountNumber field value if set, zero value otherwise.

func (*InternalWebControllersMerchantApiv1SimulateSimulateRequest) GetAccountNumberOk

GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InternalWebControllersMerchantApiv1SimulateSimulateRequest) GetPaymentIdentifier

GetPaymentIdentifier returns the PaymentIdentifier field value if set, zero value otherwise.

func (*InternalWebControllersMerchantApiv1SimulateSimulateRequest) GetPaymentIdentifierOk

GetPaymentIdentifierOk returns a tuple with the PaymentIdentifier field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InternalWebControllersMerchantApiv1SimulateSimulateRequest) HasAccountNumber

HasAccountNumber returns a boolean if a field has been set.

func (*InternalWebControllersMerchantApiv1SimulateSimulateRequest) HasPaymentIdentifier

HasPaymentIdentifier returns a boolean if a field has been set.

func (InternalWebControllersMerchantApiv1SimulateSimulateRequest) MarshalJSON

func (*InternalWebControllersMerchantApiv1SimulateSimulateRequest) SetAccountNumber

SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field.

func (*InternalWebControllersMerchantApiv1SimulateSimulateRequest) SetPaymentIdentifier

SetPaymentIdentifier gets a reference to the given string and assigns it to the PaymentIdentifier field.

func (InternalWebControllersMerchantApiv1SimulateSimulateRequest) ToMap

type NullableInternalWebControllersMerchantApiv1SimulateSimulateRequest

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

func (NullableInternalWebControllersMerchantApiv1SimulateSimulateRequest) Get

func (NullableInternalWebControllersMerchantApiv1SimulateSimulateRequest) IsSet

func (NullableInternalWebControllersMerchantApiv1SimulateSimulateRequest) MarshalJSON

func (*NullableInternalWebControllersMerchantApiv1SimulateSimulateRequest) Set

func (*NullableInternalWebControllersMerchantApiv1SimulateSimulateRequest) UnmarshalJSON

func (*NullableInternalWebControllersMerchantApiv1SimulateSimulateRequest) Unset

type PublicSimulateAPI

type PublicSimulateAPI interface {

	/*
		SimulatePayment SimulatePayment is handler for simulate payment system.

		Return status code 200 if the payment is completed.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiSimulatePaymentRequest
	*/
	SimulatePayment(ctx context.Context) ApiSimulatePaymentRequest

	// SimulatePaymentExecute executes the request
	SimulatePaymentExecute(r ApiSimulatePaymentRequest) (*http.Response, error)
}

func NewSimulateApi

func NewSimulateApi(client common.IClient) PublicSimulateAPI

NewSimulateApi Create a new SimulateApi service

type SimulateApiService

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

func (*SimulateApiService) SimulatePayment

SimulatePayment SimulatePayment is handler for simulate payment system.

Return status code 200 if the payment is completed.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSimulatePaymentRequest

func (*SimulateApiService) SimulatePaymentExecute

func (a *SimulateApiService) SimulatePaymentExecute(r ApiSimulatePaymentRequest) (*http.Response, error)

Execute executes the request

Jump to

Keyboard shortcuts

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