refund

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Code generated by OpenAPI Generator; DO NOT EDIT.

Code generated by Xendit OpenAPI Generator; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiCancelRefundRequest

type ApiCancelRefundRequest struct {
	ApiService RefundApi
	// contains filtered or unexported fields
}

func (ApiCancelRefundRequest) Execute

func (r ApiCancelRefundRequest) Execute() (*Refund, *http.Response, error)

func (ApiCancelRefundRequest) IdempotencyKey

func (r ApiCancelRefundRequest) IdempotencyKey(idempotencyKey string) ApiCancelRefundRequest

type ApiCreateRefundRequest

type ApiCreateRefundRequest struct {
	ApiService RefundApi
	// contains filtered or unexported fields
}

func (ApiCreateRefundRequest) CreateRefund

func (r ApiCreateRefundRequest) CreateRefund(createRefund CreateRefund) ApiCreateRefundRequest

func (ApiCreateRefundRequest) Execute

func (r ApiCreateRefundRequest) Execute() (*Refund, *http.Response, error)

func (ApiCreateRefundRequest) IdempotencyKey

func (r ApiCreateRefundRequest) IdempotencyKey(idempotencyKey string) ApiCreateRefundRequest

type ApiGetAllRefundsRequest

type ApiGetAllRefundsRequest struct {
	ApiService RefundApi
	// contains filtered or unexported fields
}

func (ApiGetAllRefundsRequest) Execute

type ApiGetRefundRequest

type ApiGetRefundRequest struct {
	ApiService RefundApi
	// contains filtered or unexported fields
}

func (ApiGetRefundRequest) Execute

func (r ApiGetRefundRequest) Execute() (*Refund, *http.Response, error)

func (ApiGetRefundRequest) IdempotencyKey

func (r ApiGetRefundRequest) IdempotencyKey(idempotencyKey string) ApiGetRefundRequest

type CreateRefund

type CreateRefund struct {
	PaymentRequestId *string                `json:"payment_request_id,omitempty"`
	InvoiceId        *string                `json:"invoice_id,omitempty"`
	ReferenceId      *string                `json:"reference_id,omitempty"`
	Amount           *float64               `json:"amount,omitempty"`
	Currency         *string                `json:"currency,omitempty"`
	Reason           *string                `json:"reason,omitempty"`
	Metadata         map[string]interface{} `json:"metadata,omitempty"`
}

CreateRefund struct for CreateRefund

func NewCreateRefund

func NewCreateRefund() *CreateRefund

NewCreateRefund instantiates a new CreateRefund 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 NewCreateRefundWithDefaults

func NewCreateRefundWithDefaults() *CreateRefund

NewCreateRefundWithDefaults instantiates a new CreateRefund 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 (*CreateRefund) GetAmount

func (o *CreateRefund) GetAmount() float64

GetAmount returns the Amount field value if set, zero value otherwise.

func (*CreateRefund) GetAmountOk

func (o *CreateRefund) GetAmountOk() (*float64, bool)

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

func (*CreateRefund) GetCurrency

func (o *CreateRefund) GetCurrency() string

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*CreateRefund) GetCurrencyOk

func (o *CreateRefund) GetCurrencyOk() (*string, bool)

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

func (*CreateRefund) GetInvoiceId

func (o *CreateRefund) GetInvoiceId() string

GetInvoiceId returns the InvoiceId field value if set, zero value otherwise.

func (*CreateRefund) GetInvoiceIdOk

func (o *CreateRefund) GetInvoiceIdOk() (*string, bool)

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

func (*CreateRefund) GetMetadata

func (o *CreateRefund) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CreateRefund) GetMetadataOk

func (o *CreateRefund) GetMetadataOk() (map[string]interface{}, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CreateRefund) GetPaymentRequestId

func (o *CreateRefund) GetPaymentRequestId() string

GetPaymentRequestId returns the PaymentRequestId field value if set, zero value otherwise.

func (*CreateRefund) GetPaymentRequestIdOk

func (o *CreateRefund) GetPaymentRequestIdOk() (*string, bool)

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

func (*CreateRefund) GetReason

func (o *CreateRefund) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*CreateRefund) GetReasonOk

func (o *CreateRefund) GetReasonOk() (*string, bool)

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

func (*CreateRefund) GetReferenceId

func (o *CreateRefund) GetReferenceId() string

GetReferenceId returns the ReferenceId field value if set, zero value otherwise.

func (*CreateRefund) GetReferenceIdOk

func (o *CreateRefund) GetReferenceIdOk() (*string, bool)

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

func (*CreateRefund) HasAmount

func (o *CreateRefund) HasAmount() bool

HasAmount returns a boolean if a field has been set.

func (*CreateRefund) HasCurrency

func (o *CreateRefund) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*CreateRefund) HasInvoiceId

func (o *CreateRefund) HasInvoiceId() bool

HasInvoiceId returns a boolean if a field has been set.

func (*CreateRefund) HasMetadata

func (o *CreateRefund) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*CreateRefund) HasPaymentRequestId

func (o *CreateRefund) HasPaymentRequestId() bool

HasPaymentRequestId returns a boolean if a field has been set.

func (*CreateRefund) HasReason

func (o *CreateRefund) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*CreateRefund) HasReferenceId

func (o *CreateRefund) HasReferenceId() bool

HasReferenceId returns a boolean if a field has been set.

func (CreateRefund) MarshalJSON

func (o CreateRefund) MarshalJSON() ([]byte, error)

func (*CreateRefund) SetAmount

func (o *CreateRefund) SetAmount(v float64)

SetAmount gets a reference to the given float64 and assigns it to the Amount field.

func (*CreateRefund) SetCurrency

func (o *CreateRefund) SetCurrency(v string)

SetCurrency gets a reference to the given string and assigns it to the Currency field.

func (*CreateRefund) SetInvoiceId

func (o *CreateRefund) SetInvoiceId(v string)

SetInvoiceId gets a reference to the given string and assigns it to the InvoiceId field.

func (*CreateRefund) SetMetadata

func (o *CreateRefund) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*CreateRefund) SetPaymentRequestId

func (o *CreateRefund) SetPaymentRequestId(v string)

SetPaymentRequestId gets a reference to the given string and assigns it to the PaymentRequestId field.

func (*CreateRefund) SetReason

func (o *CreateRefund) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*CreateRefund) SetReferenceId

func (o *CreateRefund) SetReferenceId(v string)

SetReferenceId gets a reference to the given string and assigns it to the ReferenceId field.

func (CreateRefund) ToMap

func (o CreateRefund) ToMap() (map[string]interface{}, error)

type CreateRefund400Response

type CreateRefund400Response struct {
	ErrorCode *string `json:"error_code,omitempty"`
	Message   *string `json:"message,omitempty"`
}

CreateRefund400Response struct for CreateRefund400Response

func NewCreateRefund400Response

func NewCreateRefund400Response() *CreateRefund400Response

NewCreateRefund400Response instantiates a new CreateRefund400Response 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 NewCreateRefund400ResponseWithDefaults

func NewCreateRefund400ResponseWithDefaults() *CreateRefund400Response

NewCreateRefund400ResponseWithDefaults instantiates a new CreateRefund400Response 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 (*CreateRefund400Response) GetErrorCode

func (o *CreateRefund400Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value if set, zero value otherwise.

func (*CreateRefund400Response) GetErrorCodeOk

func (o *CreateRefund400Response) GetErrorCodeOk() (*string, bool)

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

func (*CreateRefund400Response) GetMessage

func (o *CreateRefund400Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*CreateRefund400Response) GetMessageOk

func (o *CreateRefund400Response) GetMessageOk() (*string, bool)

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

func (*CreateRefund400Response) HasErrorCode

func (o *CreateRefund400Response) HasErrorCode() bool

HasErrorCode returns a boolean if a field has been set.

func (*CreateRefund400Response) HasMessage

func (o *CreateRefund400Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (CreateRefund400Response) MarshalJSON

func (o CreateRefund400Response) MarshalJSON() ([]byte, error)

func (*CreateRefund400Response) SetErrorCode

func (o *CreateRefund400Response) SetErrorCode(v string)

SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.

func (*CreateRefund400Response) SetMessage

func (o *CreateRefund400Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (CreateRefund400Response) ToMap

func (o CreateRefund400Response) ToMap() (map[string]interface{}, error)

type CreateRefund403Response

type CreateRefund403Response struct {
	ErrorCode *string `json:"error_code,omitempty"`
	Message   *string `json:"message,omitempty"`
}

CreateRefund403Response struct for CreateRefund403Response

func NewCreateRefund403Response

func NewCreateRefund403Response() *CreateRefund403Response

NewCreateRefund403Response instantiates a new CreateRefund403Response 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 NewCreateRefund403ResponseWithDefaults

func NewCreateRefund403ResponseWithDefaults() *CreateRefund403Response

NewCreateRefund403ResponseWithDefaults instantiates a new CreateRefund403Response 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 (*CreateRefund403Response) GetErrorCode

func (o *CreateRefund403Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value if set, zero value otherwise.

func (*CreateRefund403Response) GetErrorCodeOk

func (o *CreateRefund403Response) GetErrorCodeOk() (*string, bool)

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

func (*CreateRefund403Response) GetMessage

func (o *CreateRefund403Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*CreateRefund403Response) GetMessageOk

func (o *CreateRefund403Response) GetMessageOk() (*string, bool)

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

func (*CreateRefund403Response) HasErrorCode

func (o *CreateRefund403Response) HasErrorCode() bool

HasErrorCode returns a boolean if a field has been set.

func (*CreateRefund403Response) HasMessage

func (o *CreateRefund403Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (CreateRefund403Response) MarshalJSON

func (o CreateRefund403Response) MarshalJSON() ([]byte, error)

func (*CreateRefund403Response) SetErrorCode

func (o *CreateRefund403Response) SetErrorCode(v string)

SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.

func (*CreateRefund403Response) SetMessage

func (o *CreateRefund403Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (CreateRefund403Response) ToMap

func (o CreateRefund403Response) ToMap() (map[string]interface{}, error)

type CreateRefund404Response

type CreateRefund404Response struct {
	ErrorCode *string `json:"error_code,omitempty"`
	Message   *string `json:"message,omitempty"`
}

CreateRefund404Response struct for CreateRefund404Response

func NewCreateRefund404Response

func NewCreateRefund404Response() *CreateRefund404Response

NewCreateRefund404Response instantiates a new CreateRefund404Response 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 NewCreateRefund404ResponseWithDefaults

func NewCreateRefund404ResponseWithDefaults() *CreateRefund404Response

NewCreateRefund404ResponseWithDefaults instantiates a new CreateRefund404Response 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 (*CreateRefund404Response) GetErrorCode

func (o *CreateRefund404Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value if set, zero value otherwise.

func (*CreateRefund404Response) GetErrorCodeOk

func (o *CreateRefund404Response) GetErrorCodeOk() (*string, bool)

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

func (*CreateRefund404Response) GetMessage

func (o *CreateRefund404Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*CreateRefund404Response) GetMessageOk

func (o *CreateRefund404Response) GetMessageOk() (*string, bool)

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

func (*CreateRefund404Response) HasErrorCode

func (o *CreateRefund404Response) HasErrorCode() bool

HasErrorCode returns a boolean if a field has been set.

func (*CreateRefund404Response) HasMessage

func (o *CreateRefund404Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (CreateRefund404Response) MarshalJSON

func (o CreateRefund404Response) MarshalJSON() ([]byte, error)

func (*CreateRefund404Response) SetErrorCode

func (o *CreateRefund404Response) SetErrorCode(v string)

SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.

func (*CreateRefund404Response) SetMessage

func (o *CreateRefund404Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (CreateRefund404Response) ToMap

func (o CreateRefund404Response) ToMap() (map[string]interface{}, error)

type CreateRefund409Response

type CreateRefund409Response struct {
	ErrorCode *string `json:"error_code,omitempty"`
	Message   *string `json:"message,omitempty"`
}

CreateRefund409Response struct for CreateRefund409Response

func NewCreateRefund409Response

func NewCreateRefund409Response() *CreateRefund409Response

NewCreateRefund409Response instantiates a new CreateRefund409Response 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 NewCreateRefund409ResponseWithDefaults

func NewCreateRefund409ResponseWithDefaults() *CreateRefund409Response

NewCreateRefund409ResponseWithDefaults instantiates a new CreateRefund409Response 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 (*CreateRefund409Response) GetErrorCode

func (o *CreateRefund409Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value if set, zero value otherwise.

func (*CreateRefund409Response) GetErrorCodeOk

func (o *CreateRefund409Response) GetErrorCodeOk() (*string, bool)

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

func (*CreateRefund409Response) GetMessage

func (o *CreateRefund409Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*CreateRefund409Response) GetMessageOk

func (o *CreateRefund409Response) GetMessageOk() (*string, bool)

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

func (*CreateRefund409Response) HasErrorCode

func (o *CreateRefund409Response) HasErrorCode() bool

HasErrorCode returns a boolean if a field has been set.

func (*CreateRefund409Response) HasMessage

func (o *CreateRefund409Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (CreateRefund409Response) MarshalJSON

func (o CreateRefund409Response) MarshalJSON() ([]byte, error)

func (*CreateRefund409Response) SetErrorCode

func (o *CreateRefund409Response) SetErrorCode(v string)

SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.

func (*CreateRefund409Response) SetMessage

func (o *CreateRefund409Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (CreateRefund409Response) ToMap

func (o CreateRefund409Response) ToMap() (map[string]interface{}, error)

type CreateRefund503Response

type CreateRefund503Response struct {
	ErrorCode *string `json:"error_code,omitempty"`
	Message   *string `json:"message,omitempty"`
}

CreateRefund503Response struct for CreateRefund503Response

func NewCreateRefund503Response

func NewCreateRefund503Response() *CreateRefund503Response

NewCreateRefund503Response instantiates a new CreateRefund503Response 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 NewCreateRefund503ResponseWithDefaults

func NewCreateRefund503ResponseWithDefaults() *CreateRefund503Response

NewCreateRefund503ResponseWithDefaults instantiates a new CreateRefund503Response 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 (*CreateRefund503Response) GetErrorCode

func (o *CreateRefund503Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value if set, zero value otherwise.

func (*CreateRefund503Response) GetErrorCodeOk

func (o *CreateRefund503Response) GetErrorCodeOk() (*string, bool)

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

func (*CreateRefund503Response) GetMessage

func (o *CreateRefund503Response) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*CreateRefund503Response) GetMessageOk

func (o *CreateRefund503Response) GetMessageOk() (*string, bool)

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

func (*CreateRefund503Response) HasErrorCode

func (o *CreateRefund503Response) HasErrorCode() bool

HasErrorCode returns a boolean if a field has been set.

func (*CreateRefund503Response) HasMessage

func (o *CreateRefund503Response) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (CreateRefund503Response) MarshalJSON

func (o CreateRefund503Response) MarshalJSON() ([]byte, error)

func (*CreateRefund503Response) SetErrorCode

func (o *CreateRefund503Response) SetErrorCode(v string)

SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.

func (*CreateRefund503Response) SetMessage

func (o *CreateRefund503Response) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (CreateRefund503Response) ToMap

func (o CreateRefund503Response) ToMap() (map[string]interface{}, error)

type CreateRefundDefaultResponse

type CreateRefundDefaultResponse struct {
	ErrorCode *string `json:"error_code,omitempty"`
	Message   *string `json:"message,omitempty"`
}

CreateRefundDefaultResponse struct for CreateRefundDefaultResponse

func NewCreateRefundDefaultResponse

func NewCreateRefundDefaultResponse() *CreateRefundDefaultResponse

NewCreateRefundDefaultResponse instantiates a new CreateRefundDefaultResponse 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 NewCreateRefundDefaultResponseWithDefaults

func NewCreateRefundDefaultResponseWithDefaults() *CreateRefundDefaultResponse

NewCreateRefundDefaultResponseWithDefaults instantiates a new CreateRefundDefaultResponse 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 (*CreateRefundDefaultResponse) GetErrorCode

func (o *CreateRefundDefaultResponse) GetErrorCode() string

GetErrorCode returns the ErrorCode field value if set, zero value otherwise.

func (*CreateRefundDefaultResponse) GetErrorCodeOk

func (o *CreateRefundDefaultResponse) GetErrorCodeOk() (*string, bool)

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

func (*CreateRefundDefaultResponse) GetMessage

func (o *CreateRefundDefaultResponse) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*CreateRefundDefaultResponse) GetMessageOk

func (o *CreateRefundDefaultResponse) GetMessageOk() (*string, bool)

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

func (*CreateRefundDefaultResponse) HasErrorCode

func (o *CreateRefundDefaultResponse) HasErrorCode() bool

HasErrorCode returns a boolean if a field has been set.

func (*CreateRefundDefaultResponse) HasMessage

func (o *CreateRefundDefaultResponse) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (CreateRefundDefaultResponse) MarshalJSON

func (o CreateRefundDefaultResponse) MarshalJSON() ([]byte, error)

func (*CreateRefundDefaultResponse) SetErrorCode

func (o *CreateRefundDefaultResponse) SetErrorCode(v string)

SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.

func (*CreateRefundDefaultResponse) SetMessage

func (o *CreateRefundDefaultResponse) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (CreateRefundDefaultResponse) ToMap

func (o CreateRefundDefaultResponse) ToMap() (map[string]interface{}, error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCreateRefund

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

func NewNullableCreateRefund

func NewNullableCreateRefund(val *CreateRefund) *NullableCreateRefund

func (NullableCreateRefund) Get

func (NullableCreateRefund) IsSet

func (v NullableCreateRefund) IsSet() bool

func (NullableCreateRefund) MarshalJSON

func (v NullableCreateRefund) MarshalJSON() ([]byte, error)

func (*NullableCreateRefund) Set

func (v *NullableCreateRefund) Set(val *CreateRefund)

func (*NullableCreateRefund) UnmarshalJSON

func (v *NullableCreateRefund) UnmarshalJSON(src []byte) error

func (*NullableCreateRefund) Unset

func (v *NullableCreateRefund) Unset()

type NullableCreateRefund400Response

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

func (NullableCreateRefund400Response) Get

func (NullableCreateRefund400Response) IsSet

func (NullableCreateRefund400Response) MarshalJSON

func (v NullableCreateRefund400Response) MarshalJSON() ([]byte, error)

func (*NullableCreateRefund400Response) Set

func (*NullableCreateRefund400Response) UnmarshalJSON

func (v *NullableCreateRefund400Response) UnmarshalJSON(src []byte) error

func (*NullableCreateRefund400Response) Unset

type NullableCreateRefund403Response

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

func (NullableCreateRefund403Response) Get

func (NullableCreateRefund403Response) IsSet

func (NullableCreateRefund403Response) MarshalJSON

func (v NullableCreateRefund403Response) MarshalJSON() ([]byte, error)

func (*NullableCreateRefund403Response) Set

func (*NullableCreateRefund403Response) UnmarshalJSON

func (v *NullableCreateRefund403Response) UnmarshalJSON(src []byte) error

func (*NullableCreateRefund403Response) Unset

type NullableCreateRefund404Response

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

func (NullableCreateRefund404Response) Get

func (NullableCreateRefund404Response) IsSet

func (NullableCreateRefund404Response) MarshalJSON

func (v NullableCreateRefund404Response) MarshalJSON() ([]byte, error)

func (*NullableCreateRefund404Response) Set

func (*NullableCreateRefund404Response) UnmarshalJSON

func (v *NullableCreateRefund404Response) UnmarshalJSON(src []byte) error

func (*NullableCreateRefund404Response) Unset

type NullableCreateRefund409Response

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

func (NullableCreateRefund409Response) Get

func (NullableCreateRefund409Response) IsSet

func (NullableCreateRefund409Response) MarshalJSON

func (v NullableCreateRefund409Response) MarshalJSON() ([]byte, error)

func (*NullableCreateRefund409Response) Set

func (*NullableCreateRefund409Response) UnmarshalJSON

func (v *NullableCreateRefund409Response) UnmarshalJSON(src []byte) error

func (*NullableCreateRefund409Response) Unset

type NullableCreateRefund503Response

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

func (NullableCreateRefund503Response) Get

func (NullableCreateRefund503Response) IsSet

func (NullableCreateRefund503Response) MarshalJSON

func (v NullableCreateRefund503Response) MarshalJSON() ([]byte, error)

func (*NullableCreateRefund503Response) Set

func (*NullableCreateRefund503Response) UnmarshalJSON

func (v *NullableCreateRefund503Response) UnmarshalJSON(src []byte) error

func (*NullableCreateRefund503Response) Unset

type NullableCreateRefundDefaultResponse

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

func (NullableCreateRefundDefaultResponse) Get

func (NullableCreateRefundDefaultResponse) IsSet

func (NullableCreateRefundDefaultResponse) MarshalJSON

func (v NullableCreateRefundDefaultResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateRefundDefaultResponse) Set

func (*NullableCreateRefundDefaultResponse) UnmarshalJSON

func (v *NullableCreateRefundDefaultResponse) UnmarshalJSON(src []byte) error

func (*NullableCreateRefundDefaultResponse) Unset

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableRefund

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

func NewNullableRefund

func NewNullableRefund(val *Refund) *NullableRefund

func (NullableRefund) Get

func (v NullableRefund) Get() *Refund

func (NullableRefund) IsSet

func (v NullableRefund) IsSet() bool

func (NullableRefund) MarshalJSON

func (v NullableRefund) MarshalJSON() ([]byte, error)

func (*NullableRefund) Set

func (v *NullableRefund) Set(val *Refund)

func (*NullableRefund) UnmarshalJSON

func (v *NullableRefund) UnmarshalJSON(src []byte) error

func (*NullableRefund) Unset

func (v *NullableRefund) Unset()

type NullableRefundList

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

func NewNullableRefundList

func NewNullableRefundList(val *RefundList) *NullableRefundList

func (NullableRefundList) Get

func (v NullableRefundList) Get() *RefundList

func (NullableRefundList) IsSet

func (v NullableRefundList) IsSet() bool

func (NullableRefundList) MarshalJSON

func (v NullableRefundList) MarshalJSON() ([]byte, error)

func (*NullableRefundList) Set

func (v *NullableRefundList) Set(val *RefundList)

func (*NullableRefundList) UnmarshalJSON

func (v *NullableRefundList) UnmarshalJSON(src []byte) error

func (*NullableRefundList) Unset

func (v *NullableRefundList) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type Refund

type Refund struct {
	Id               *string                `json:"id,omitempty"`
	PaymentRequestId *string                `json:"payment_request_id,omitempty"`
	Amount           *float64               `json:"amount,omitempty"`
	ChannelCode      *string                `json:"channel_code,omitempty"`
	Country          *string                `json:"country,omitempty"`
	Currency         *string                `json:"currency,omitempty"`
	ReferenceId      NullableString         `json:"reference_id,omitempty"`
	FailureCode      NullableString         `json:"failure_code,omitempty"`
	RefundFeeAmount  NullableFloat64        `json:"refund_fee_amount,omitempty"`
	Created          *string                `json:"created,omitempty"`
	Updated          *string                `json:"updated,omitempty"`
	Metadata         map[string]interface{} `json:"metadata,omitempty"`
}

Refund struct for Refund

func NewRefund

func NewRefund() *Refund

NewRefund instantiates a new Refund 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 NewRefundWithDefaults

func NewRefundWithDefaults() *Refund

NewRefundWithDefaults instantiates a new Refund 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 (*Refund) GetAmount

func (o *Refund) GetAmount() float64

GetAmount returns the Amount field value if set, zero value otherwise.

func (*Refund) GetAmountOk

func (o *Refund) GetAmountOk() (*float64, bool)

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

func (*Refund) GetChannelCode

func (o *Refund) GetChannelCode() string

GetChannelCode returns the ChannelCode field value if set, zero value otherwise.

func (*Refund) GetChannelCodeOk

func (o *Refund) GetChannelCodeOk() (*string, bool)

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

func (*Refund) GetCountry

func (o *Refund) GetCountry() string

GetCountry returns the Country field value if set, zero value otherwise.

func (*Refund) GetCountryOk

func (o *Refund) GetCountryOk() (*string, bool)

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

func (*Refund) GetCreated

func (o *Refund) GetCreated() string

GetCreated returns the Created field value if set, zero value otherwise.

func (*Refund) GetCreatedOk

func (o *Refund) GetCreatedOk() (*string, bool)

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

func (*Refund) GetCurrency

func (o *Refund) GetCurrency() string

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*Refund) GetCurrencyOk

func (o *Refund) GetCurrencyOk() (*string, bool)

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

func (*Refund) GetFailureCode

func (o *Refund) GetFailureCode() string

GetFailureCode returns the FailureCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Refund) GetFailureCodeOk

func (o *Refund) GetFailureCodeOk() (*string, bool)

GetFailureCodeOk returns a tuple with the FailureCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Refund) GetId

func (o *Refund) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Refund) GetIdOk

func (o *Refund) GetIdOk() (*string, bool)

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

func (*Refund) GetMetadata

func (o *Refund) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Refund) GetMetadataOk

func (o *Refund) GetMetadataOk() (map[string]interface{}, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Refund) GetPaymentRequestId

func (o *Refund) GetPaymentRequestId() string

GetPaymentRequestId returns the PaymentRequestId field value if set, zero value otherwise.

func (*Refund) GetPaymentRequestIdOk

func (o *Refund) GetPaymentRequestIdOk() (*string, bool)

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

func (*Refund) GetReferenceId

func (o *Refund) GetReferenceId() string

GetReferenceId returns the ReferenceId field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Refund) GetReferenceIdOk

func (o *Refund) GetReferenceIdOk() (*string, bool)

GetReferenceIdOk returns a tuple with the ReferenceId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Refund) GetRefundFeeAmount

func (o *Refund) GetRefundFeeAmount() float64

GetRefundFeeAmount returns the RefundFeeAmount field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Refund) GetRefundFeeAmountOk

func (o *Refund) GetRefundFeeAmountOk() (*float64, bool)

GetRefundFeeAmountOk returns a tuple with the RefundFeeAmount field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Refund) GetUpdated

func (o *Refund) GetUpdated() string

GetUpdated returns the Updated field value if set, zero value otherwise.

func (*Refund) GetUpdatedOk

func (o *Refund) GetUpdatedOk() (*string, bool)

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

func (*Refund) HasAmount

func (o *Refund) HasAmount() bool

HasAmount returns a boolean if a field has been set.

func (*Refund) HasChannelCode

func (o *Refund) HasChannelCode() bool

HasChannelCode returns a boolean if a field has been set.

func (*Refund) HasCountry

func (o *Refund) HasCountry() bool

HasCountry returns a boolean if a field has been set.

func (*Refund) HasCreated

func (o *Refund) HasCreated() bool

HasCreated returns a boolean if a field has been set.

func (*Refund) HasCurrency

func (o *Refund) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*Refund) HasFailureCode

func (o *Refund) HasFailureCode() bool

HasFailureCode returns a boolean if a field has been set.

func (*Refund) HasId

func (o *Refund) HasId() bool

HasId returns a boolean if a field has been set.

func (*Refund) HasMetadata

func (o *Refund) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*Refund) HasPaymentRequestId

func (o *Refund) HasPaymentRequestId() bool

HasPaymentRequestId returns a boolean if a field has been set.

func (*Refund) HasReferenceId

func (o *Refund) HasReferenceId() bool

HasReferenceId returns a boolean if a field has been set.

func (*Refund) HasRefundFeeAmount

func (o *Refund) HasRefundFeeAmount() bool

HasRefundFeeAmount returns a boolean if a field has been set.

func (*Refund) HasUpdated

func (o *Refund) HasUpdated() bool

HasUpdated returns a boolean if a field has been set.

func (Refund) MarshalJSON

func (o Refund) MarshalJSON() ([]byte, error)

func (*Refund) SetAmount

func (o *Refund) SetAmount(v float64)

SetAmount gets a reference to the given float64 and assigns it to the Amount field.

func (*Refund) SetChannelCode

func (o *Refund) SetChannelCode(v string)

SetChannelCode gets a reference to the given string and assigns it to the ChannelCode field.

func (*Refund) SetCountry

func (o *Refund) SetCountry(v string)

SetCountry gets a reference to the given string and assigns it to the Country field.

func (*Refund) SetCreated

func (o *Refund) SetCreated(v string)

SetCreated gets a reference to the given string and assigns it to the Created field.

func (*Refund) SetCurrency

func (o *Refund) SetCurrency(v string)

SetCurrency gets a reference to the given string and assigns it to the Currency field.

func (*Refund) SetFailureCode

func (o *Refund) SetFailureCode(v string)

SetFailureCode gets a reference to the given NullableString and assigns it to the FailureCode field.

func (*Refund) SetFailureCodeNil

func (o *Refund) SetFailureCodeNil()

SetFailureCodeNil sets the value for FailureCode to be an explicit nil

func (*Refund) SetId

func (o *Refund) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Refund) SetMetadata

func (o *Refund) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*Refund) SetPaymentRequestId

func (o *Refund) SetPaymentRequestId(v string)

SetPaymentRequestId gets a reference to the given string and assigns it to the PaymentRequestId field.

func (*Refund) SetReferenceId

func (o *Refund) SetReferenceId(v string)

SetReferenceId gets a reference to the given NullableString and assigns it to the ReferenceId field.

func (*Refund) SetReferenceIdNil

func (o *Refund) SetReferenceIdNil()

SetReferenceIdNil sets the value for ReferenceId to be an explicit nil

func (*Refund) SetRefundFeeAmount

func (o *Refund) SetRefundFeeAmount(v float64)

SetRefundFeeAmount gets a reference to the given NullableFloat64 and assigns it to the RefundFeeAmount field.

func (*Refund) SetRefundFeeAmountNil

func (o *Refund) SetRefundFeeAmountNil()

SetRefundFeeAmountNil sets the value for RefundFeeAmount to be an explicit nil

func (*Refund) SetUpdated

func (o *Refund) SetUpdated(v string)

SetUpdated gets a reference to the given string and assigns it to the Updated field.

func (Refund) ToMap

func (o Refund) ToMap() (map[string]interface{}, error)

func (*Refund) UnsetFailureCode

func (o *Refund) UnsetFailureCode()

UnsetFailureCode ensures that no value is present for FailureCode, not even an explicit nil

func (*Refund) UnsetReferenceId

func (o *Refund) UnsetReferenceId()

UnsetReferenceId ensures that no value is present for ReferenceId, not even an explicit nil

func (*Refund) UnsetRefundFeeAmount

func (o *Refund) UnsetRefundFeeAmount()

UnsetRefundFeeAmount ensures that no value is present for RefundFeeAmount, not even an explicit nil

type RefundApi

type RefundApi interface {

	/*
		CancelRefund Method for CancelRefund

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

	// CancelRefundExecute executes the request
	//  @return Refund
	CancelRefundExecute(r ApiCancelRefundRequest) (*Refund, *http.Response, error)

	/*
		CreateRefund Method for CreateRefund

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

	// CreateRefundExecute executes the request
	//  @return Refund
	CreateRefundExecute(r ApiCreateRefundRequest) (*Refund, *http.Response, error)

	/*
		GetAllRefunds Method for GetAllRefunds

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

	// GetAllRefundsExecute executes the request
	//  @return RefundList
	GetAllRefundsExecute(r ApiGetAllRefundsRequest) (*RefundList, *http.Response, error)

	/*
		GetRefund Method for GetRefund

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

	// GetRefundExecute executes the request
	//  @return Refund
	GetRefundExecute(r ApiGetRefundRequest) (*Refund, *http.Response, error)
}

func NewRefundApi

func NewRefundApi(client common.IClient) RefundApi

NewRefundApi Create a new RefundApi service

type RefundApiService

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

RefundApiService RefundApi service

func (*RefundApiService) CancelRefund

func (a *RefundApiService) CancelRefund(ctx context.Context, refundID string) ApiCancelRefundRequest

CancelRefund Method for CancelRefund

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

func (*RefundApiService) CancelRefundExecute

func (a *RefundApiService) CancelRefundExecute(r ApiCancelRefundRequest) (*Refund, *http.Response, error)

Execute executes the request

@return Refund

func (*RefundApiService) CreateRefund

CreateRefund Method for CreateRefund

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

func (*RefundApiService) CreateRefundExecute

func (a *RefundApiService) CreateRefundExecute(r ApiCreateRefundRequest) (*Refund, *http.Response, error)

Execute executes the request

@return Refund

func (*RefundApiService) GetAllRefunds

GetAllRefunds Method for GetAllRefunds

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

func (*RefundApiService) GetAllRefundsExecute

func (a *RefundApiService) GetAllRefundsExecute(r ApiGetAllRefundsRequest) (*RefundList, *http.Response, error)

Execute executes the request

@return RefundList

func (*RefundApiService) GetRefund

func (a *RefundApiService) GetRefund(ctx context.Context, refundID string) ApiGetRefundRequest

GetRefund Method for GetRefund

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

func (*RefundApiService) GetRefundExecute

func (a *RefundApiService) GetRefundExecute(r ApiGetRefundRequest) (*Refund, *http.Response, error)

Execute executes the request

@return Refund

type RefundList

type RefundList struct {
	Data    []Refund `json:"data"`
	HasMore *bool    `json:"has_more,omitempty"`
}

RefundList struct for RefundList

func NewRefundList

func NewRefundList(data []Refund) *RefundList

NewRefundList instantiates a new RefundList 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 NewRefundListWithDefaults

func NewRefundListWithDefaults() *RefundList

NewRefundListWithDefaults instantiates a new RefundList 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 (*RefundList) GetData

func (o *RefundList) GetData() []Refund

GetData returns the Data field value

func (*RefundList) GetDataOk

func (o *RefundList) GetDataOk() ([]Refund, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*RefundList) GetHasMore

func (o *RefundList) GetHasMore() bool

GetHasMore returns the HasMore field value if set, zero value otherwise.

func (*RefundList) GetHasMoreOk

func (o *RefundList) GetHasMoreOk() (*bool, bool)

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

func (*RefundList) HasHasMore

func (o *RefundList) HasHasMore() bool

HasHasMore returns a boolean if a field has been set.

func (RefundList) MarshalJSON

func (o RefundList) MarshalJSON() ([]byte, error)

func (*RefundList) SetData

func (o *RefundList) SetData(v []Refund)

SetData sets field value

func (*RefundList) SetHasMore

func (o *RefundList) SetHasMore(v bool)

SetHasMore gets a reference to the given bool and assigns it to the HasMore field.

func (RefundList) ToMap

func (o RefundList) ToMap() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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