Documentation ¶
Index ¶
- type ApiCancelRefundRequest
- type ApiCreateRefundRequest
- func (r ApiCreateRefundRequest) CreateRefund(createRefund CreateRefund) ApiCreateRefundRequest
- func (r ApiCreateRefundRequest) Execute() (*Refund, *http.Response, *common.XenditSdkError)
- func (r ApiCreateRefundRequest) ForUserId(forUserId string) ApiCreateRefundRequest
- func (r ApiCreateRefundRequest) IdempotencyKey(idempotencyKey string) ApiCreateRefundRequest
- type ApiGetAllRefundsRequest
- func (r ApiGetAllRefundsRequest) AfterId(afterId string) ApiGetAllRefundsRequest
- func (r ApiGetAllRefundsRequest) BeforeId(beforeId string) ApiGetAllRefundsRequest
- func (r ApiGetAllRefundsRequest) ChannelCode(channelCode string) ApiGetAllRefundsRequest
- func (r ApiGetAllRefundsRequest) Execute() (*RefundList, *http.Response, *common.XenditSdkError)
- func (r ApiGetAllRefundsRequest) ForUserId(forUserId string) ApiGetAllRefundsRequest
- func (r ApiGetAllRefundsRequest) InvoiceId(invoiceId string) ApiGetAllRefundsRequest
- func (r ApiGetAllRefundsRequest) Limit(limit float32) ApiGetAllRefundsRequest
- func (r ApiGetAllRefundsRequest) PaymentMethodType(paymentMethodType string) ApiGetAllRefundsRequest
- func (r ApiGetAllRefundsRequest) PaymentRequestId(paymentRequestId string) ApiGetAllRefundsRequest
- type ApiGetRefundRequest
- type CreateRefund
- func (o *CreateRefund) GetAmount() float64
- func (o *CreateRefund) GetAmountOk() (*float64, bool)
- func (o *CreateRefund) GetCurrency() string
- func (o *CreateRefund) GetCurrencyOk() (*string, bool)
- func (o *CreateRefund) GetInvoiceId() string
- func (o *CreateRefund) GetInvoiceIdOk() (*string, bool)
- func (o *CreateRefund) GetMetadata() map[string]interface{}
- func (o *CreateRefund) GetMetadataOk() (map[string]interface{}, bool)
- func (o *CreateRefund) GetPaymentRequestId() string
- func (o *CreateRefund) GetPaymentRequestIdOk() (*string, bool)
- func (o *CreateRefund) GetReason() string
- func (o *CreateRefund) GetReasonOk() (*string, bool)
- func (o *CreateRefund) GetReferenceId() string
- func (o *CreateRefund) GetReferenceIdOk() (*string, bool)
- func (o *CreateRefund) HasAmount() bool
- func (o *CreateRefund) HasCurrency() bool
- func (o *CreateRefund) HasInvoiceId() bool
- func (o *CreateRefund) HasMetadata() bool
- func (o *CreateRefund) HasPaymentRequestId() bool
- func (o *CreateRefund) HasReason() bool
- func (o *CreateRefund) HasReferenceId() bool
- func (o CreateRefund) MarshalJSON() ([]byte, error)
- func (o *CreateRefund) SetAmount(v float64)
- func (o *CreateRefund) SetCurrency(v string)
- func (o *CreateRefund) SetInvoiceId(v string)
- func (o *CreateRefund) SetMetadata(v map[string]interface{})
- func (o *CreateRefund) SetPaymentRequestId(v string)
- func (o *CreateRefund) SetReason(v string)
- func (o *CreateRefund) SetReferenceId(v string)
- func (o CreateRefund) ToMap() (map[string]interface{}, error)
- type CreateRefund400Response
- func (o *CreateRefund400Response) GetErrorCode() string
- func (o *CreateRefund400Response) GetErrorCodeOk() (*string, bool)
- func (o *CreateRefund400Response) GetMessage() string
- func (o *CreateRefund400Response) GetMessageOk() (*string, bool)
- func (o *CreateRefund400Response) HasErrorCode() bool
- func (o *CreateRefund400Response) HasMessage() bool
- func (o CreateRefund400Response) MarshalJSON() ([]byte, error)
- func (o *CreateRefund400Response) SetErrorCode(v string)
- func (o *CreateRefund400Response) SetMessage(v string)
- func (o CreateRefund400Response) ToMap() (map[string]interface{}, error)
- type CreateRefund403Response
- func (o *CreateRefund403Response) GetErrorCode() string
- func (o *CreateRefund403Response) GetErrorCodeOk() (*string, bool)
- func (o *CreateRefund403Response) GetMessage() string
- func (o *CreateRefund403Response) GetMessageOk() (*string, bool)
- func (o *CreateRefund403Response) HasErrorCode() bool
- func (o *CreateRefund403Response) HasMessage() bool
- func (o CreateRefund403Response) MarshalJSON() ([]byte, error)
- func (o *CreateRefund403Response) SetErrorCode(v string)
- func (o *CreateRefund403Response) SetMessage(v string)
- func (o CreateRefund403Response) ToMap() (map[string]interface{}, error)
- type CreateRefund404Response
- func (o *CreateRefund404Response) GetErrorCode() string
- func (o *CreateRefund404Response) GetErrorCodeOk() (*string, bool)
- func (o *CreateRefund404Response) GetMessage() string
- func (o *CreateRefund404Response) GetMessageOk() (*string, bool)
- func (o *CreateRefund404Response) HasErrorCode() bool
- func (o *CreateRefund404Response) HasMessage() bool
- func (o CreateRefund404Response) MarshalJSON() ([]byte, error)
- func (o *CreateRefund404Response) SetErrorCode(v string)
- func (o *CreateRefund404Response) SetMessage(v string)
- func (o CreateRefund404Response) ToMap() (map[string]interface{}, error)
- type CreateRefund409Response
- func (o *CreateRefund409Response) GetErrorCode() string
- func (o *CreateRefund409Response) GetErrorCodeOk() (*string, bool)
- func (o *CreateRefund409Response) GetMessage() string
- func (o *CreateRefund409Response) GetMessageOk() (*string, bool)
- func (o *CreateRefund409Response) HasErrorCode() bool
- func (o *CreateRefund409Response) HasMessage() bool
- func (o CreateRefund409Response) MarshalJSON() ([]byte, error)
- func (o *CreateRefund409Response) SetErrorCode(v string)
- func (o *CreateRefund409Response) SetMessage(v string)
- func (o CreateRefund409Response) ToMap() (map[string]interface{}, error)
- type CreateRefund503Response
- func (o *CreateRefund503Response) GetErrorCode() string
- func (o *CreateRefund503Response) GetErrorCodeOk() (*string, bool)
- func (o *CreateRefund503Response) GetMessage() string
- func (o *CreateRefund503Response) GetMessageOk() (*string, bool)
- func (o *CreateRefund503Response) HasErrorCode() bool
- func (o *CreateRefund503Response) HasMessage() bool
- func (o CreateRefund503Response) MarshalJSON() ([]byte, error)
- func (o *CreateRefund503Response) SetErrorCode(v string)
- func (o *CreateRefund503Response) SetMessage(v string)
- func (o CreateRefund503Response) ToMap() (map[string]interface{}, error)
- type GetAllRefundsDefaultResponse
- func (o *GetAllRefundsDefaultResponse) GetErrorCode() string
- func (o *GetAllRefundsDefaultResponse) GetErrorCodeOk() (*string, bool)
- func (o *GetAllRefundsDefaultResponse) GetMessage() string
- func (o *GetAllRefundsDefaultResponse) GetMessageOk() (*string, bool)
- func (o *GetAllRefundsDefaultResponse) HasErrorCode() bool
- func (o *GetAllRefundsDefaultResponse) HasMessage() bool
- func (o GetAllRefundsDefaultResponse) MarshalJSON() ([]byte, error)
- func (o *GetAllRefundsDefaultResponse) SetErrorCode(v string)
- func (o *GetAllRefundsDefaultResponse) SetMessage(v string)
- func (o GetAllRefundsDefaultResponse) ToMap() (map[string]interface{}, error)
- type MappedNullable
- type NullableBool
- type NullableCreateRefund
- func (v NullableCreateRefund) Get() *CreateRefund
- func (v NullableCreateRefund) IsSet() bool
- func (v NullableCreateRefund) MarshalJSON() ([]byte, error)
- func (v *NullableCreateRefund) Set(val *CreateRefund)
- func (v *NullableCreateRefund) UnmarshalJSON(src []byte) error
- func (v *NullableCreateRefund) Unset()
- type NullableCreateRefund400Response
- func (v NullableCreateRefund400Response) Get() *CreateRefund400Response
- func (v NullableCreateRefund400Response) IsSet() bool
- func (v NullableCreateRefund400Response) MarshalJSON() ([]byte, error)
- func (v *NullableCreateRefund400Response) Set(val *CreateRefund400Response)
- func (v *NullableCreateRefund400Response) UnmarshalJSON(src []byte) error
- func (v *NullableCreateRefund400Response) Unset()
- type NullableCreateRefund403Response
- func (v NullableCreateRefund403Response) Get() *CreateRefund403Response
- func (v NullableCreateRefund403Response) IsSet() bool
- func (v NullableCreateRefund403Response) MarshalJSON() ([]byte, error)
- func (v *NullableCreateRefund403Response) Set(val *CreateRefund403Response)
- func (v *NullableCreateRefund403Response) UnmarshalJSON(src []byte) error
- func (v *NullableCreateRefund403Response) Unset()
- type NullableCreateRefund404Response
- func (v NullableCreateRefund404Response) Get() *CreateRefund404Response
- func (v NullableCreateRefund404Response) IsSet() bool
- func (v NullableCreateRefund404Response) MarshalJSON() ([]byte, error)
- func (v *NullableCreateRefund404Response) Set(val *CreateRefund404Response)
- func (v *NullableCreateRefund404Response) UnmarshalJSON(src []byte) error
- func (v *NullableCreateRefund404Response) Unset()
- type NullableCreateRefund409Response
- func (v NullableCreateRefund409Response) Get() *CreateRefund409Response
- func (v NullableCreateRefund409Response) IsSet() bool
- func (v NullableCreateRefund409Response) MarshalJSON() ([]byte, error)
- func (v *NullableCreateRefund409Response) Set(val *CreateRefund409Response)
- func (v *NullableCreateRefund409Response) UnmarshalJSON(src []byte) error
- func (v *NullableCreateRefund409Response) Unset()
- type NullableCreateRefund503Response
- func (v NullableCreateRefund503Response) Get() *CreateRefund503Response
- func (v NullableCreateRefund503Response) IsSet() bool
- func (v NullableCreateRefund503Response) MarshalJSON() ([]byte, error)
- func (v *NullableCreateRefund503Response) Set(val *CreateRefund503Response)
- func (v *NullableCreateRefund503Response) UnmarshalJSON(src []byte) error
- func (v *NullableCreateRefund503Response) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableGetAllRefundsDefaultResponse
- func (v NullableGetAllRefundsDefaultResponse) Get() *GetAllRefundsDefaultResponse
- func (v NullableGetAllRefundsDefaultResponse) IsSet() bool
- func (v NullableGetAllRefundsDefaultResponse) MarshalJSON() ([]byte, error)
- func (v *NullableGetAllRefundsDefaultResponse) Set(val *GetAllRefundsDefaultResponse)
- func (v *NullableGetAllRefundsDefaultResponse) UnmarshalJSON(src []byte) error
- func (v *NullableGetAllRefundsDefaultResponse) Unset()
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableRefund
- type NullableRefundCallback
- func (v NullableRefundCallback) Get() *RefundCallback
- func (v NullableRefundCallback) IsSet() bool
- func (v NullableRefundCallback) MarshalJSON() ([]byte, error)
- func (v *NullableRefundCallback) Set(val *RefundCallback)
- func (v *NullableRefundCallback) UnmarshalJSON(src []byte) error
- func (v *NullableRefundCallback) Unset()
- type NullableRefundCallbackData
- func (v NullableRefundCallbackData) Get() *RefundCallbackData
- func (v NullableRefundCallbackData) IsSet() bool
- func (v NullableRefundCallbackData) MarshalJSON() ([]byte, error)
- func (v *NullableRefundCallbackData) Set(val *RefundCallbackData)
- func (v *NullableRefundCallbackData) UnmarshalJSON(src []byte) error
- func (v *NullableRefundCallbackData) Unset()
- type NullableRefundList
- type NullableString
- type NullableTime
- type Refund
- func (o *Refund) GetAmount() float64
- func (o *Refund) GetAmountOk() (*float64, bool)
- func (o *Refund) GetChannelCode() string
- func (o *Refund) GetChannelCodeOk() (*string, bool)
- func (o *Refund) GetCountry() string
- func (o *Refund) GetCountryOk() (*string, bool)
- func (o *Refund) GetCreated() string
- func (o *Refund) GetCreatedOk() (*string, bool)
- func (o *Refund) GetCurrency() string
- func (o *Refund) GetCurrencyOk() (*string, bool)
- func (o *Refund) GetFailureCode() string
- func (o *Refund) GetFailureCodeOk() (*string, bool)
- func (o *Refund) GetId() string
- func (o *Refund) GetIdOk() (*string, bool)
- func (o *Refund) GetMetadata() map[string]interface{}
- func (o *Refund) GetMetadataOk() (map[string]interface{}, bool)
- func (o *Refund) GetPaymentRequestId() string
- func (o *Refund) GetPaymentRequestIdOk() (*string, bool)
- func (o *Refund) GetReferenceId() string
- func (o *Refund) GetReferenceIdOk() (*string, bool)
- func (o *Refund) GetRefundFeeAmount() float64
- func (o *Refund) GetRefundFeeAmountOk() (*float64, bool)
- func (o *Refund) GetUpdated() string
- func (o *Refund) GetUpdatedOk() (*string, bool)
- func (o *Refund) HasAmount() bool
- func (o *Refund) HasChannelCode() bool
- func (o *Refund) HasCountry() bool
- func (o *Refund) HasCreated() bool
- func (o *Refund) HasCurrency() bool
- func (o *Refund) HasFailureCode() bool
- func (o *Refund) HasId() bool
- func (o *Refund) HasMetadata() bool
- func (o *Refund) HasPaymentRequestId() bool
- func (o *Refund) HasReferenceId() bool
- func (o *Refund) HasRefundFeeAmount() bool
- func (o *Refund) HasUpdated() bool
- func (o Refund) MarshalJSON() ([]byte, error)
- func (o *Refund) SetAmount(v float64)
- func (o *Refund) SetChannelCode(v string)
- func (o *Refund) SetCountry(v string)
- func (o *Refund) SetCreated(v string)
- func (o *Refund) SetCurrency(v string)
- func (o *Refund) SetFailureCode(v string)
- func (o *Refund) SetFailureCodeNil()
- func (o *Refund) SetId(v string)
- func (o *Refund) SetMetadata(v map[string]interface{})
- func (o *Refund) SetPaymentRequestId(v string)
- func (o *Refund) SetReferenceId(v string)
- func (o *Refund) SetReferenceIdNil()
- func (o *Refund) SetRefundFeeAmount(v float64)
- func (o *Refund) SetRefundFeeAmountNil()
- func (o *Refund) SetUpdated(v string)
- func (o Refund) ToMap() (map[string]interface{}, error)
- func (o *Refund) UnsetFailureCode()
- func (o *Refund) UnsetReferenceId()
- func (o *Refund) UnsetRefundFeeAmount()
- type RefundApi
- type RefundApiService
- func (a *RefundApiService) CancelRefund(ctx context.Context, refundID string) ApiCancelRefundRequest
- func (a *RefundApiService) CancelRefundExecute(r ApiCancelRefundRequest) (*Refund, *http.Response, *common.XenditSdkError)
- func (a *RefundApiService) CreateRefund(ctx context.Context) ApiCreateRefundRequest
- func (a *RefundApiService) CreateRefundExecute(r ApiCreateRefundRequest) (*Refund, *http.Response, *common.XenditSdkError)
- func (a *RefundApiService) GetAllRefunds(ctx context.Context) ApiGetAllRefundsRequest
- func (a *RefundApiService) GetAllRefundsExecute(r ApiGetAllRefundsRequest) (*RefundList, *http.Response, *common.XenditSdkError)
- func (a *RefundApiService) GetRefund(ctx context.Context, refundID string) ApiGetRefundRequest
- func (a *RefundApiService) GetRefundExecute(r ApiGetRefundRequest) (*Refund, *http.Response, *common.XenditSdkError)
- type RefundCallback
- func (o *RefundCallback) GetBusinessId() string
- func (o *RefundCallback) GetBusinessIdOk() (*string, bool)
- func (o *RefundCallback) GetCreated() string
- func (o *RefundCallback) GetCreatedOk() (*string, bool)
- func (o *RefundCallback) GetData() RefundCallbackData
- func (o *RefundCallback) GetDataOk() (*RefundCallbackData, bool)
- func (o *RefundCallback) GetEvent() string
- func (o *RefundCallback) GetEventOk() (*string, bool)
- func (o *RefundCallback) HasData() bool
- func (o RefundCallback) MarshalJSON() ([]byte, error)
- func (o *RefundCallback) SetBusinessId(v string)
- func (o *RefundCallback) SetCreated(v string)
- func (o *RefundCallback) SetData(v RefundCallbackData)
- func (o *RefundCallback) SetEvent(v string)
- func (o RefundCallback) ToMap() (map[string]interface{}, error)
- type RefundCallbackData
- func (o *RefundCallbackData) GetAmount() float64
- func (o *RefundCallbackData) GetAmountOk() (*float64, bool)
- func (o *RefundCallbackData) GetChannelCode() string
- func (o *RefundCallbackData) GetChannelCodeOk() (*string, bool)
- func (o *RefundCallbackData) GetCountry() string
- func (o *RefundCallbackData) GetCountryOk() (*string, bool)
- func (o *RefundCallbackData) GetCreated() string
- func (o *RefundCallbackData) GetCreatedOk() (*string, bool)
- func (o *RefundCallbackData) GetCurrency() string
- func (o *RefundCallbackData) GetCurrencyOk() (*string, bool)
- func (o *RefundCallbackData) GetFailureCode() string
- func (o *RefundCallbackData) GetFailureCodeOk() (*string, bool)
- func (o *RefundCallbackData) GetId() string
- func (o *RefundCallbackData) GetIdOk() (*string, bool)
- func (o *RefundCallbackData) GetInvoiceId() string
- func (o *RefundCallbackData) GetInvoiceIdOk() (*string, bool)
- func (o *RefundCallbackData) GetMetadata() map[string]interface{}
- func (o *RefundCallbackData) GetMetadataOk() (map[string]interface{}, bool)
- func (o *RefundCallbackData) GetPaymentId() string
- func (o *RefundCallbackData) GetPaymentIdOk() (*string, bool)
- func (o *RefundCallbackData) GetPaymentMethodType() string
- func (o *RefundCallbackData) GetPaymentMethodTypeOk() (*string, bool)
- func (o *RefundCallbackData) GetReason() string
- func (o *RefundCallbackData) GetReasonOk() (*string, bool)
- func (o *RefundCallbackData) GetReferenceId() string
- func (o *RefundCallbackData) GetReferenceIdOk() (*string, bool)
- func (o *RefundCallbackData) GetRefundFeeAmount() float64
- func (o *RefundCallbackData) GetRefundFeeAmountOk() (*float64, bool)
- func (o *RefundCallbackData) GetStatus() string
- func (o *RefundCallbackData) GetStatusOk() (*string, bool)
- func (o *RefundCallbackData) GetUpdated() string
- func (o *RefundCallbackData) GetUpdatedOk() (*string, bool)
- func (o *RefundCallbackData) HasFailureCode() bool
- func (o *RefundCallbackData) HasInvoiceId() bool
- func (o *RefundCallbackData) HasMetadata() bool
- func (o *RefundCallbackData) HasReferenceId() bool
- func (o *RefundCallbackData) HasRefundFeeAmount() bool
- func (o RefundCallbackData) MarshalJSON() ([]byte, error)
- func (o *RefundCallbackData) SetAmount(v float64)
- func (o *RefundCallbackData) SetChannelCode(v string)
- func (o *RefundCallbackData) SetCountry(v string)
- func (o *RefundCallbackData) SetCreated(v string)
- func (o *RefundCallbackData) SetCurrency(v string)
- func (o *RefundCallbackData) SetFailureCode(v string)
- func (o *RefundCallbackData) SetFailureCodeNil()
- func (o *RefundCallbackData) SetId(v string)
- func (o *RefundCallbackData) SetInvoiceId(v string)
- func (o *RefundCallbackData) SetInvoiceIdNil()
- func (o *RefundCallbackData) SetMetadata(v map[string]interface{})
- func (o *RefundCallbackData) SetPaymentId(v string)
- func (o *RefundCallbackData) SetPaymentMethodType(v string)
- func (o *RefundCallbackData) SetReason(v string)
- func (o *RefundCallbackData) SetReferenceId(v string)
- func (o *RefundCallbackData) SetReferenceIdNil()
- func (o *RefundCallbackData) SetRefundFeeAmount(v float64)
- func (o *RefundCallbackData) SetRefundFeeAmountNil()
- func (o *RefundCallbackData) SetStatus(v string)
- func (o *RefundCallbackData) SetUpdated(v string)
- func (o RefundCallbackData) ToMap() (map[string]interface{}, error)
- func (o *RefundCallbackData) UnsetFailureCode()
- func (o *RefundCallbackData) UnsetInvoiceId()
- func (o *RefundCallbackData) UnsetReferenceId()
- func (o *RefundCallbackData) UnsetRefundFeeAmount()
- type RefundList
- func (o *RefundList) GetData() []Refund
- func (o *RefundList) GetDataOk() ([]Refund, bool)
- func (o *RefundList) GetHasMore() bool
- func (o *RefundList) GetHasMoreOk() (*bool, bool)
- func (o *RefundList) HasHasMore() bool
- func (o RefundList) MarshalJSON() ([]byte, error)
- func (o *RefundList) SetData(v []Refund)
- func (o *RefundList) SetHasMore(v bool)
- func (o RefundList) ToMap() (map[string]interface{}, error)
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, *common.XenditSdkError)
func (ApiCancelRefundRequest) ForUserId ¶
func (r ApiCancelRefundRequest) ForUserId(forUserId string) ApiCancelRefundRequest
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, *common.XenditSdkError)
func (ApiCreateRefundRequest) ForUserId ¶
func (r ApiCreateRefundRequest) ForUserId(forUserId string) ApiCreateRefundRequest
func (ApiCreateRefundRequest) IdempotencyKey ¶
func (r ApiCreateRefundRequest) IdempotencyKey(idempotencyKey string) ApiCreateRefundRequest
type ApiGetAllRefundsRequest ¶
type ApiGetAllRefundsRequest struct { ApiService RefundApi // contains filtered or unexported fields }
func (ApiGetAllRefundsRequest) AfterId ¶
func (r ApiGetAllRefundsRequest) AfterId(afterId string) ApiGetAllRefundsRequest
func (ApiGetAllRefundsRequest) BeforeId ¶
func (r ApiGetAllRefundsRequest) BeforeId(beforeId string) ApiGetAllRefundsRequest
func (ApiGetAllRefundsRequest) ChannelCode ¶
func (r ApiGetAllRefundsRequest) ChannelCode(channelCode string) ApiGetAllRefundsRequest
func (ApiGetAllRefundsRequest) Execute ¶
func (r ApiGetAllRefundsRequest) Execute() (*RefundList, *http.Response, *common.XenditSdkError)
func (ApiGetAllRefundsRequest) ForUserId ¶
func (r ApiGetAllRefundsRequest) ForUserId(forUserId string) ApiGetAllRefundsRequest
func (ApiGetAllRefundsRequest) InvoiceId ¶
func (r ApiGetAllRefundsRequest) InvoiceId(invoiceId string) ApiGetAllRefundsRequest
func (ApiGetAllRefundsRequest) Limit ¶
func (r ApiGetAllRefundsRequest) Limit(limit float32) ApiGetAllRefundsRequest
func (ApiGetAllRefundsRequest) PaymentMethodType ¶
func (r ApiGetAllRefundsRequest) PaymentMethodType(paymentMethodType string) ApiGetAllRefundsRequest
func (ApiGetAllRefundsRequest) PaymentRequestId ¶
func (r ApiGetAllRefundsRequest) PaymentRequestId(paymentRequestId string) ApiGetAllRefundsRequest
type ApiGetRefundRequest ¶
type ApiGetRefundRequest struct { ApiService RefundApi // contains filtered or unexported fields }
func (ApiGetRefundRequest) Execute ¶
func (r ApiGetRefundRequest) Execute() (*Refund, *http.Response, *common.XenditSdkError)
func (ApiGetRefundRequest) ForUserId ¶
func (r ApiGetRefundRequest) ForUserId(forUserId string) ApiGetRefundRequest
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 GetAllRefundsDefaultResponse ¶
type GetAllRefundsDefaultResponse struct { ErrorCode *string `json:"error_code,omitempty"` Message *string `json:"message,omitempty"` }
GetAllRefundsDefaultResponse struct for GetAllRefundsDefaultResponse
func NewGetAllRefundsDefaultResponse ¶
func NewGetAllRefundsDefaultResponse() *GetAllRefundsDefaultResponse
NewGetAllRefundsDefaultResponse instantiates a new GetAllRefundsDefaultResponse 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 NewGetAllRefundsDefaultResponseWithDefaults ¶
func NewGetAllRefundsDefaultResponseWithDefaults() *GetAllRefundsDefaultResponse
NewGetAllRefundsDefaultResponseWithDefaults instantiates a new GetAllRefundsDefaultResponse 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 (*GetAllRefundsDefaultResponse) GetErrorCode ¶
func (o *GetAllRefundsDefaultResponse) GetErrorCode() string
GetErrorCode returns the ErrorCode field value if set, zero value otherwise.
func (*GetAllRefundsDefaultResponse) GetErrorCodeOk ¶
func (o *GetAllRefundsDefaultResponse) 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 (*GetAllRefundsDefaultResponse) GetMessage ¶
func (o *GetAllRefundsDefaultResponse) GetMessage() string
GetMessage returns the Message field value if set, zero value otherwise.
func (*GetAllRefundsDefaultResponse) GetMessageOk ¶
func (o *GetAllRefundsDefaultResponse) 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 (*GetAllRefundsDefaultResponse) HasErrorCode ¶
func (o *GetAllRefundsDefaultResponse) HasErrorCode() bool
HasErrorCode returns a boolean if a field has been set.
func (*GetAllRefundsDefaultResponse) HasMessage ¶
func (o *GetAllRefundsDefaultResponse) HasMessage() bool
HasMessage returns a boolean if a field has been set.
func (GetAllRefundsDefaultResponse) MarshalJSON ¶
func (o GetAllRefundsDefaultResponse) MarshalJSON() ([]byte, error)
func (*GetAllRefundsDefaultResponse) SetErrorCode ¶
func (o *GetAllRefundsDefaultResponse) SetErrorCode(v string)
SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.
func (*GetAllRefundsDefaultResponse) SetMessage ¶
func (o *GetAllRefundsDefaultResponse) SetMessage(v string)
SetMessage gets a reference to the given string and assigns it to the Message field.
func (GetAllRefundsDefaultResponse) ToMap ¶
func (o GetAllRefundsDefaultResponse) ToMap() (map[string]interface{}, error)
type MappedNullable ¶
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 (v NullableCreateRefund) Get() *CreateRefund
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 NewNullableCreateRefund400Response ¶
func NewNullableCreateRefund400Response(val *CreateRefund400Response) *NullableCreateRefund400Response
func (NullableCreateRefund400Response) Get ¶
func (v NullableCreateRefund400Response) Get() *CreateRefund400Response
func (NullableCreateRefund400Response) IsSet ¶
func (v NullableCreateRefund400Response) IsSet() bool
func (NullableCreateRefund400Response) MarshalJSON ¶
func (v NullableCreateRefund400Response) MarshalJSON() ([]byte, error)
func (*NullableCreateRefund400Response) Set ¶
func (v *NullableCreateRefund400Response) Set(val *CreateRefund400Response)
func (*NullableCreateRefund400Response) UnmarshalJSON ¶
func (v *NullableCreateRefund400Response) UnmarshalJSON(src []byte) error
func (*NullableCreateRefund400Response) Unset ¶
func (v *NullableCreateRefund400Response) Unset()
type NullableCreateRefund403Response ¶
type NullableCreateRefund403Response struct {
// contains filtered or unexported fields
}
func NewNullableCreateRefund403Response ¶
func NewNullableCreateRefund403Response(val *CreateRefund403Response) *NullableCreateRefund403Response
func (NullableCreateRefund403Response) Get ¶
func (v NullableCreateRefund403Response) Get() *CreateRefund403Response
func (NullableCreateRefund403Response) IsSet ¶
func (v NullableCreateRefund403Response) IsSet() bool
func (NullableCreateRefund403Response) MarshalJSON ¶
func (v NullableCreateRefund403Response) MarshalJSON() ([]byte, error)
func (*NullableCreateRefund403Response) Set ¶
func (v *NullableCreateRefund403Response) Set(val *CreateRefund403Response)
func (*NullableCreateRefund403Response) UnmarshalJSON ¶
func (v *NullableCreateRefund403Response) UnmarshalJSON(src []byte) error
func (*NullableCreateRefund403Response) Unset ¶
func (v *NullableCreateRefund403Response) Unset()
type NullableCreateRefund404Response ¶
type NullableCreateRefund404Response struct {
// contains filtered or unexported fields
}
func NewNullableCreateRefund404Response ¶
func NewNullableCreateRefund404Response(val *CreateRefund404Response) *NullableCreateRefund404Response
func (NullableCreateRefund404Response) Get ¶
func (v NullableCreateRefund404Response) Get() *CreateRefund404Response
func (NullableCreateRefund404Response) IsSet ¶
func (v NullableCreateRefund404Response) IsSet() bool
func (NullableCreateRefund404Response) MarshalJSON ¶
func (v NullableCreateRefund404Response) MarshalJSON() ([]byte, error)
func (*NullableCreateRefund404Response) Set ¶
func (v *NullableCreateRefund404Response) Set(val *CreateRefund404Response)
func (*NullableCreateRefund404Response) UnmarshalJSON ¶
func (v *NullableCreateRefund404Response) UnmarshalJSON(src []byte) error
func (*NullableCreateRefund404Response) Unset ¶
func (v *NullableCreateRefund404Response) Unset()
type NullableCreateRefund409Response ¶
type NullableCreateRefund409Response struct {
// contains filtered or unexported fields
}
func NewNullableCreateRefund409Response ¶
func NewNullableCreateRefund409Response(val *CreateRefund409Response) *NullableCreateRefund409Response
func (NullableCreateRefund409Response) Get ¶
func (v NullableCreateRefund409Response) Get() *CreateRefund409Response
func (NullableCreateRefund409Response) IsSet ¶
func (v NullableCreateRefund409Response) IsSet() bool
func (NullableCreateRefund409Response) MarshalJSON ¶
func (v NullableCreateRefund409Response) MarshalJSON() ([]byte, error)
func (*NullableCreateRefund409Response) Set ¶
func (v *NullableCreateRefund409Response) Set(val *CreateRefund409Response)
func (*NullableCreateRefund409Response) UnmarshalJSON ¶
func (v *NullableCreateRefund409Response) UnmarshalJSON(src []byte) error
func (*NullableCreateRefund409Response) Unset ¶
func (v *NullableCreateRefund409Response) Unset()
type NullableCreateRefund503Response ¶
type NullableCreateRefund503Response struct {
// contains filtered or unexported fields
}
func NewNullableCreateRefund503Response ¶
func NewNullableCreateRefund503Response(val *CreateRefund503Response) *NullableCreateRefund503Response
func (NullableCreateRefund503Response) Get ¶
func (v NullableCreateRefund503Response) Get() *CreateRefund503Response
func (NullableCreateRefund503Response) IsSet ¶
func (v NullableCreateRefund503Response) IsSet() bool
func (NullableCreateRefund503Response) MarshalJSON ¶
func (v NullableCreateRefund503Response) MarshalJSON() ([]byte, error)
func (*NullableCreateRefund503Response) Set ¶
func (v *NullableCreateRefund503Response) Set(val *CreateRefund503Response)
func (*NullableCreateRefund503Response) UnmarshalJSON ¶
func (v *NullableCreateRefund503Response) UnmarshalJSON(src []byte) error
func (*NullableCreateRefund503Response) Unset ¶
func (v *NullableCreateRefund503Response) 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 NullableGetAllRefundsDefaultResponse ¶
type NullableGetAllRefundsDefaultResponse struct {
// contains filtered or unexported fields
}
func NewNullableGetAllRefundsDefaultResponse ¶
func NewNullableGetAllRefundsDefaultResponse(val *GetAllRefundsDefaultResponse) *NullableGetAllRefundsDefaultResponse
func (NullableGetAllRefundsDefaultResponse) Get ¶
func (v NullableGetAllRefundsDefaultResponse) Get() *GetAllRefundsDefaultResponse
func (NullableGetAllRefundsDefaultResponse) IsSet ¶
func (v NullableGetAllRefundsDefaultResponse) IsSet() bool
func (NullableGetAllRefundsDefaultResponse) MarshalJSON ¶
func (v NullableGetAllRefundsDefaultResponse) MarshalJSON() ([]byte, error)
func (*NullableGetAllRefundsDefaultResponse) Set ¶
func (v *NullableGetAllRefundsDefaultResponse) Set(val *GetAllRefundsDefaultResponse)
func (*NullableGetAllRefundsDefaultResponse) UnmarshalJSON ¶
func (v *NullableGetAllRefundsDefaultResponse) UnmarshalJSON(src []byte) error
func (*NullableGetAllRefundsDefaultResponse) Unset ¶
func (v *NullableGetAllRefundsDefaultResponse) 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 NullableRefundCallback ¶
type NullableRefundCallback struct {
// contains filtered or unexported fields
}
func NewNullableRefundCallback ¶
func NewNullableRefundCallback(val *RefundCallback) *NullableRefundCallback
func (NullableRefundCallback) Get ¶
func (v NullableRefundCallback) Get() *RefundCallback
func (NullableRefundCallback) IsSet ¶
func (v NullableRefundCallback) IsSet() bool
func (NullableRefundCallback) MarshalJSON ¶
func (v NullableRefundCallback) MarshalJSON() ([]byte, error)
func (*NullableRefundCallback) Set ¶
func (v *NullableRefundCallback) Set(val *RefundCallback)
func (*NullableRefundCallback) UnmarshalJSON ¶
func (v *NullableRefundCallback) UnmarshalJSON(src []byte) error
func (*NullableRefundCallback) Unset ¶
func (v *NullableRefundCallback) Unset()
type NullableRefundCallbackData ¶
type NullableRefundCallbackData struct {
// contains filtered or unexported fields
}
func NewNullableRefundCallbackData ¶
func NewNullableRefundCallbackData(val *RefundCallbackData) *NullableRefundCallbackData
func (NullableRefundCallbackData) Get ¶
func (v NullableRefundCallbackData) Get() *RefundCallbackData
func (NullableRefundCallbackData) IsSet ¶
func (v NullableRefundCallbackData) IsSet() bool
func (NullableRefundCallbackData) MarshalJSON ¶
func (v NullableRefundCallbackData) MarshalJSON() ([]byte, error)
func (*NullableRefundCallbackData) Set ¶
func (v *NullableRefundCallbackData) Set(val *RefundCallbackData)
func (*NullableRefundCallbackData) UnmarshalJSON ¶
func (v *NullableRefundCallbackData) UnmarshalJSON(src []byte) error
func (*NullableRefundCallbackData) Unset ¶
func (v *NullableRefundCallbackData) 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) GetAmountOk ¶
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 ¶
GetChannelCode returns the ChannelCode field value if set, zero value otherwise.
func (*Refund) GetChannelCodeOk ¶
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 ¶
GetCountry returns the Country field value if set, zero value otherwise.
func (*Refund) GetCountryOk ¶
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 ¶
GetCreated returns the Created field value if set, zero value otherwise.
func (*Refund) GetCreatedOk ¶
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 ¶
GetCurrency returns the Currency field value if set, zero value otherwise.
func (*Refund) GetCurrencyOk ¶
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 ¶
GetFailureCode returns the FailureCode field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Refund) GetFailureCodeOk ¶
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) GetIdOk ¶
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 ¶
GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Refund) GetMetadataOk ¶
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 ¶
GetPaymentRequestId returns the PaymentRequestId field value if set, zero value otherwise.
func (*Refund) GetPaymentRequestIdOk ¶
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 ¶
GetReferenceId returns the ReferenceId field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Refund) GetReferenceIdOk ¶
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 ¶
GetRefundFeeAmount returns the RefundFeeAmount field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Refund) GetRefundFeeAmountOk ¶
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 ¶
GetUpdated returns the Updated field value if set, zero value otherwise.
func (*Refund) GetUpdatedOk ¶
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) HasChannelCode ¶
HasChannelCode returns a boolean if a field has been set.
func (*Refund) HasCountry ¶
HasCountry returns a boolean if a field has been set.
func (*Refund) HasCreated ¶
HasCreated returns a boolean if a field has been set.
func (*Refund) HasCurrency ¶
HasCurrency returns a boolean if a field has been set.
func (*Refund) HasFailureCode ¶
HasFailureCode returns a boolean if a field has been set.
func (*Refund) HasMetadata ¶
HasMetadata returns a boolean if a field has been set.
func (*Refund) HasPaymentRequestId ¶
HasPaymentRequestId returns a boolean if a field has been set.
func (*Refund) HasReferenceId ¶
HasReferenceId returns a boolean if a field has been set.
func (*Refund) HasRefundFeeAmount ¶
HasRefundFeeAmount returns a boolean if a field has been set.
func (*Refund) HasUpdated ¶
HasUpdated returns a boolean if a field has been set.
func (Refund) MarshalJSON ¶
func (*Refund) SetAmount ¶
SetAmount gets a reference to the given float64 and assigns it to the Amount field.
func (*Refund) SetChannelCode ¶
SetChannelCode gets a reference to the given string and assigns it to the ChannelCode field.
func (*Refund) SetCountry ¶
SetCountry gets a reference to the given string and assigns it to the Country field.
func (*Refund) SetCreated ¶
SetCreated gets a reference to the given string and assigns it to the Created field.
func (*Refund) SetCurrency ¶
SetCurrency gets a reference to the given string and assigns it to the Currency field.
func (*Refund) SetFailureCode ¶
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) SetMetadata ¶
SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.
func (*Refund) SetPaymentRequestId ¶
SetPaymentRequestId gets a reference to the given string and assigns it to the PaymentRequestId field.
func (*Refund) SetReferenceId ¶
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 ¶
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 ¶
SetUpdated gets a reference to the given string and assigns it to the Updated field.
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 { /* 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, *common.XenditSdkError) /* 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, *common.XenditSdkError) /* 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, *common.XenditSdkError) /* 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, *common.XenditSdkError) }
func NewRefundApi ¶
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, *common.XenditSdkError)
Execute executes the request
@return Refund
func (*RefundApiService) CreateRefund ¶
func (a *RefundApiService) CreateRefund(ctx context.Context) ApiCreateRefundRequest
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, *common.XenditSdkError)
Execute executes the request
@return Refund
func (*RefundApiService) GetAllRefunds ¶
func (a *RefundApiService) GetAllRefunds(ctx context.Context) ApiGetAllRefundsRequest
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, *common.XenditSdkError)
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, *common.XenditSdkError)
Execute executes the request
@return Refund
type RefundCallback ¶
type RefundCallback struct { // Identifies the event that triggered a notification to the merchant Event string `json:"event"` // business_id BusinessId string `json:"business_id"` Created string `json:"created"` Data *RefundCallbackData `json:"data,omitempty"` }
RefundCallback Callback for successful or failed Refunds made via the Payments API
func NewRefundCallback ¶
func NewRefundCallback(event string, businessId string, created string) *RefundCallback
NewRefundCallback instantiates a new RefundCallback 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 NewRefundCallbackWithDefaults ¶
func NewRefundCallbackWithDefaults() *RefundCallback
NewRefundCallbackWithDefaults instantiates a new RefundCallback 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 (*RefundCallback) GetBusinessId ¶
func (o *RefundCallback) GetBusinessId() string
GetBusinessId returns the BusinessId field value
func (*RefundCallback) GetBusinessIdOk ¶
func (o *RefundCallback) GetBusinessIdOk() (*string, bool)
GetBusinessIdOk returns a tuple with the BusinessId field value and a boolean to check if the value has been set.
func (*RefundCallback) GetCreated ¶
func (o *RefundCallback) GetCreated() string
GetCreated returns the Created field value
func (*RefundCallback) GetCreatedOk ¶
func (o *RefundCallback) GetCreatedOk() (*string, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*RefundCallback) GetData ¶
func (o *RefundCallback) GetData() RefundCallbackData
GetData returns the Data field value if set, zero value otherwise.
func (*RefundCallback) GetDataOk ¶
func (o *RefundCallback) GetDataOk() (*RefundCallbackData, bool)
GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RefundCallback) GetEvent ¶
func (o *RefundCallback) GetEvent() string
GetEvent returns the Event field value
func (*RefundCallback) GetEventOk ¶
func (o *RefundCallback) GetEventOk() (*string, bool)
GetEventOk returns a tuple with the Event field value and a boolean to check if the value has been set.
func (*RefundCallback) HasData ¶
func (o *RefundCallback) HasData() bool
HasData returns a boolean if a field has been set.
func (RefundCallback) MarshalJSON ¶
func (o RefundCallback) MarshalJSON() ([]byte, error)
func (*RefundCallback) SetBusinessId ¶
func (o *RefundCallback) SetBusinessId(v string)
SetBusinessId sets field value
func (*RefundCallback) SetCreated ¶
func (o *RefundCallback) SetCreated(v string)
SetCreated sets field value
func (*RefundCallback) SetData ¶
func (o *RefundCallback) SetData(v RefundCallbackData)
SetData gets a reference to the given RefundCallbackData and assigns it to the Data field.
func (*RefundCallback) SetEvent ¶
func (o *RefundCallback) SetEvent(v string)
SetEvent sets field value
func (RefundCallback) ToMap ¶
func (o RefundCallback) ToMap() (map[string]interface{}, error)
type RefundCallbackData ¶
type RefundCallbackData struct { Id string `json:"id"` PaymentId string `json:"payment_id"` InvoiceId NullableString `json:"invoice_id,omitempty"` PaymentMethodType string `json:"payment_method_type"` Amount float64 `json:"amount"` ChannelCode string `json:"channel_code"` Status string `json:"status"` Reason string `json:"reason"` Country string `json:"country"` Currency string `json:"currency"` ReferenceId NullableString `json:"reference_id,omitempty"` FailureCode NullableString `json:"failure_code,omitempty"` RefundFeeAmount NullableFloat64 `json:"refund_fee_amount,omitempty"` Created string `json:"created"` Updated string `json:"updated"` Metadata map[string]interface{} `json:"metadata,omitempty"` }
RefundCallbackData struct for RefundCallbackData
func NewRefundCallbackData ¶
func NewRefundCallbackData(id string, paymentId string, paymentMethodType string, amount float64, channelCode string, status string, reason string, country string, currency string, created string, updated string) *RefundCallbackData
NewRefundCallbackData instantiates a new RefundCallbackData 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 NewRefundCallbackDataWithDefaults ¶
func NewRefundCallbackDataWithDefaults() *RefundCallbackData
NewRefundCallbackDataWithDefaults instantiates a new RefundCallbackData 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 (*RefundCallbackData) GetAmount ¶
func (o *RefundCallbackData) GetAmount() float64
GetAmount returns the Amount field value
func (*RefundCallbackData) GetAmountOk ¶
func (o *RefundCallbackData) GetAmountOk() (*float64, bool)
GetAmountOk returns a tuple with the Amount field value and a boolean to check if the value has been set.
func (*RefundCallbackData) GetChannelCode ¶
func (o *RefundCallbackData) GetChannelCode() string
GetChannelCode returns the ChannelCode field value
func (*RefundCallbackData) GetChannelCodeOk ¶
func (o *RefundCallbackData) GetChannelCodeOk() (*string, bool)
GetChannelCodeOk returns a tuple with the ChannelCode field value and a boolean to check if the value has been set.
func (*RefundCallbackData) GetCountry ¶
func (o *RefundCallbackData) GetCountry() string
GetCountry returns the Country field value
func (*RefundCallbackData) GetCountryOk ¶
func (o *RefundCallbackData) GetCountryOk() (*string, bool)
GetCountryOk returns a tuple with the Country field value and a boolean to check if the value has been set.
func (*RefundCallbackData) GetCreated ¶
func (o *RefundCallbackData) GetCreated() string
GetCreated returns the Created field value
func (*RefundCallbackData) GetCreatedOk ¶
func (o *RefundCallbackData) GetCreatedOk() (*string, bool)
GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.
func (*RefundCallbackData) GetCurrency ¶
func (o *RefundCallbackData) GetCurrency() string
GetCurrency returns the Currency field value
func (*RefundCallbackData) GetCurrencyOk ¶
func (o *RefundCallbackData) GetCurrencyOk() (*string, bool)
GetCurrencyOk returns a tuple with the Currency field value and a boolean to check if the value has been set.
func (*RefundCallbackData) GetFailureCode ¶
func (o *RefundCallbackData) GetFailureCode() string
GetFailureCode returns the FailureCode field value if set, zero value otherwise (both if not set or set to explicit null).
func (*RefundCallbackData) GetFailureCodeOk ¶
func (o *RefundCallbackData) 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 (*RefundCallbackData) GetId ¶
func (o *RefundCallbackData) GetId() string
GetId returns the Id field value
func (*RefundCallbackData) GetIdOk ¶
func (o *RefundCallbackData) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.
func (*RefundCallbackData) GetInvoiceId ¶
func (o *RefundCallbackData) GetInvoiceId() string
GetInvoiceId returns the InvoiceId field value if set, zero value otherwise (both if not set or set to explicit null).
func (*RefundCallbackData) GetInvoiceIdOk ¶
func (o *RefundCallbackData) 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. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*RefundCallbackData) GetMetadata ¶
func (o *RefundCallbackData) 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 (*RefundCallbackData) GetMetadataOk ¶
func (o *RefundCallbackData) 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 (*RefundCallbackData) GetPaymentId ¶ added in v4.2.0
func (o *RefundCallbackData) GetPaymentId() string
GetPaymentId returns the PaymentId field value
func (*RefundCallbackData) GetPaymentIdOk ¶ added in v4.2.0
func (o *RefundCallbackData) GetPaymentIdOk() (*string, bool)
GetPaymentIdOk returns a tuple with the PaymentId field value and a boolean to check if the value has been set.
func (*RefundCallbackData) GetPaymentMethodType ¶
func (o *RefundCallbackData) GetPaymentMethodType() string
GetPaymentMethodType returns the PaymentMethodType field value
func (*RefundCallbackData) GetPaymentMethodTypeOk ¶
func (o *RefundCallbackData) GetPaymentMethodTypeOk() (*string, bool)
GetPaymentMethodTypeOk returns a tuple with the PaymentMethodType field value and a boolean to check if the value has been set.
func (*RefundCallbackData) GetReason ¶
func (o *RefundCallbackData) GetReason() string
GetReason returns the Reason field value
func (*RefundCallbackData) GetReasonOk ¶
func (o *RefundCallbackData) GetReasonOk() (*string, bool)
GetReasonOk returns a tuple with the Reason field value and a boolean to check if the value has been set.
func (*RefundCallbackData) GetReferenceId ¶
func (o *RefundCallbackData) GetReferenceId() string
GetReferenceId returns the ReferenceId field value if set, zero value otherwise (both if not set or set to explicit null).
func (*RefundCallbackData) GetReferenceIdOk ¶
func (o *RefundCallbackData) 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 (*RefundCallbackData) GetRefundFeeAmount ¶
func (o *RefundCallbackData) GetRefundFeeAmount() float64
GetRefundFeeAmount returns the RefundFeeAmount field value if set, zero value otherwise (both if not set or set to explicit null).
func (*RefundCallbackData) GetRefundFeeAmountOk ¶
func (o *RefundCallbackData) 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 (*RefundCallbackData) GetStatus ¶
func (o *RefundCallbackData) GetStatus() string
GetStatus returns the Status field value
func (*RefundCallbackData) GetStatusOk ¶
func (o *RefundCallbackData) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.
func (*RefundCallbackData) GetUpdated ¶
func (o *RefundCallbackData) GetUpdated() string
GetUpdated returns the Updated field value
func (*RefundCallbackData) GetUpdatedOk ¶
func (o *RefundCallbackData) GetUpdatedOk() (*string, bool)
GetUpdatedOk returns a tuple with the Updated field value and a boolean to check if the value has been set.
func (*RefundCallbackData) HasFailureCode ¶
func (o *RefundCallbackData) HasFailureCode() bool
HasFailureCode returns a boolean if a field has been set.
func (*RefundCallbackData) HasInvoiceId ¶
func (o *RefundCallbackData) HasInvoiceId() bool
HasInvoiceId returns a boolean if a field has been set.
func (*RefundCallbackData) HasMetadata ¶
func (o *RefundCallbackData) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.
func (*RefundCallbackData) HasReferenceId ¶
func (o *RefundCallbackData) HasReferenceId() bool
HasReferenceId returns a boolean if a field has been set.
func (*RefundCallbackData) HasRefundFeeAmount ¶
func (o *RefundCallbackData) HasRefundFeeAmount() bool
HasRefundFeeAmount returns a boolean if a field has been set.
func (RefundCallbackData) MarshalJSON ¶
func (o RefundCallbackData) MarshalJSON() ([]byte, error)
func (*RefundCallbackData) SetAmount ¶
func (o *RefundCallbackData) SetAmount(v float64)
SetAmount sets field value
func (*RefundCallbackData) SetChannelCode ¶
func (o *RefundCallbackData) SetChannelCode(v string)
SetChannelCode sets field value
func (*RefundCallbackData) SetCountry ¶
func (o *RefundCallbackData) SetCountry(v string)
SetCountry sets field value
func (*RefundCallbackData) SetCreated ¶
func (o *RefundCallbackData) SetCreated(v string)
SetCreated sets field value
func (*RefundCallbackData) SetCurrency ¶
func (o *RefundCallbackData) SetCurrency(v string)
SetCurrency sets field value
func (*RefundCallbackData) SetFailureCode ¶
func (o *RefundCallbackData) SetFailureCode(v string)
SetFailureCode gets a reference to the given NullableString and assigns it to the FailureCode field.
func (*RefundCallbackData) SetFailureCodeNil ¶
func (o *RefundCallbackData) SetFailureCodeNil()
SetFailureCodeNil sets the value for FailureCode to be an explicit nil
func (*RefundCallbackData) SetId ¶
func (o *RefundCallbackData) SetId(v string)
SetId sets field value
func (*RefundCallbackData) SetInvoiceId ¶
func (o *RefundCallbackData) SetInvoiceId(v string)
SetInvoiceId gets a reference to the given NullableString and assigns it to the InvoiceId field.
func (*RefundCallbackData) SetInvoiceIdNil ¶
func (o *RefundCallbackData) SetInvoiceIdNil()
SetInvoiceIdNil sets the value for InvoiceId to be an explicit nil
func (*RefundCallbackData) SetMetadata ¶
func (o *RefundCallbackData) SetMetadata(v map[string]interface{})
SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.
func (*RefundCallbackData) SetPaymentId ¶ added in v4.2.0
func (o *RefundCallbackData) SetPaymentId(v string)
SetPaymentId sets field value
func (*RefundCallbackData) SetPaymentMethodType ¶
func (o *RefundCallbackData) SetPaymentMethodType(v string)
SetPaymentMethodType sets field value
func (*RefundCallbackData) SetReason ¶
func (o *RefundCallbackData) SetReason(v string)
SetReason sets field value
func (*RefundCallbackData) SetReferenceId ¶
func (o *RefundCallbackData) SetReferenceId(v string)
SetReferenceId gets a reference to the given NullableString and assigns it to the ReferenceId field.
func (*RefundCallbackData) SetReferenceIdNil ¶
func (o *RefundCallbackData) SetReferenceIdNil()
SetReferenceIdNil sets the value for ReferenceId to be an explicit nil
func (*RefundCallbackData) SetRefundFeeAmount ¶
func (o *RefundCallbackData) SetRefundFeeAmount(v float64)
SetRefundFeeAmount gets a reference to the given NullableFloat64 and assigns it to the RefundFeeAmount field.
func (*RefundCallbackData) SetRefundFeeAmountNil ¶
func (o *RefundCallbackData) SetRefundFeeAmountNil()
SetRefundFeeAmountNil sets the value for RefundFeeAmount to be an explicit nil
func (*RefundCallbackData) SetStatus ¶
func (o *RefundCallbackData) SetStatus(v string)
SetStatus sets field value
func (*RefundCallbackData) SetUpdated ¶
func (o *RefundCallbackData) SetUpdated(v string)
SetUpdated sets field value
func (RefundCallbackData) ToMap ¶
func (o RefundCallbackData) ToMap() (map[string]interface{}, error)
func (*RefundCallbackData) UnsetFailureCode ¶
func (o *RefundCallbackData) UnsetFailureCode()
UnsetFailureCode ensures that no value is present for FailureCode, not even an explicit nil
func (*RefundCallbackData) UnsetInvoiceId ¶
func (o *RefundCallbackData) UnsetInvoiceId()
UnsetInvoiceId ensures that no value is present for InvoiceId, not even an explicit nil
func (*RefundCallbackData) UnsetReferenceId ¶
func (o *RefundCallbackData) UnsetReferenceId()
UnsetReferenceId ensures that no value is present for ReferenceId, not even an explicit nil
func (*RefundCallbackData) UnsetRefundFeeAmount ¶
func (o *RefundCallbackData) UnsetRefundFeeAmount()
UnsetRefundFeeAmount ensures that no value is present for RefundFeeAmount, not even an explicit nil
type RefundList ¶
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) 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)
Source Files ¶
- api_refund.go
- model_create_refund.go
- model_create_refund_400_response.go
- model_create_refund_403_response.go
- model_create_refund_404_response.go
- model_create_refund_409_response.go
- model_create_refund_503_response.go
- model_get_all_refunds_default_response.go
- model_refund.go
- model_refund_callback.go
- model_refund_callback_data.go
- model_refund_list.go
- nullable.go