Information needed by Xendit to send money to the destination channel provided
Name | Type | Required | Description | Examples |
---|---|---|---|---|
ReferenceId | string | ☑️ | A client defined payout identifier | |
ChannelCode | string | ☑️ | Channel code of selected destination bank or e-wallet | |
ChannelProperties | DigitalPayoutChannelProperties | ☑️ | ||
Amount | float32 | ☑️ | Amount to be sent to the destination account and should be a multiple of the minimum increment for the selected channel | |
Description | Pointer to string | Description to send with the payout, the recipient may see this e.g., in their bank statement (if supported) or in email receipts we send on your behalf | ||
Currency | string | ☑️ | Currency of the destination channel using ISO-4217 currency code | |
ReceiptNotification | Pointer to ReceiptNotification | |||
Metadata | Pointer to map[string]interface{} | Object of additional information you may use |
func NewCreatePayoutRequest(referenceId string, channelCode string, channelProperties DigitalPayoutChannelProperties, amount float32, currency string, ) *CreatePayoutRequest
NewCreatePayoutRequest instantiates a new CreatePayoutRequest 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 NewCreatePayoutRequestWithDefaults() *CreatePayoutRequest
NewCreatePayoutRequestWithDefaults instantiates a new CreatePayoutRequest 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 (o *CreatePayoutRequest) GetReferenceId() string
GetReferenceId returns the ReferenceId field if non-nil, zero value otherwise.
func (o *CreatePayoutRequest) GetReferenceIdOk() (*string, bool)
GetReferenceIdOk returns a tuple with the ReferenceId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePayoutRequest) SetReferenceId(v string)
SetReferenceId sets ReferenceId field to given value.
func (o *CreatePayoutRequest) GetChannelCode() string
GetChannelCode returns the ChannelCode field if non-nil, zero value otherwise.
func (o *CreatePayoutRequest) GetChannelCodeOk() (*string, bool)
GetChannelCodeOk returns a tuple with the ChannelCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePayoutRequest) SetChannelCode(v string)
SetChannelCode sets ChannelCode field to given value.
func (o *CreatePayoutRequest) GetChannelProperties() DigitalPayoutChannelProperties
GetChannelProperties returns the ChannelProperties field if non-nil, zero value otherwise.
func (o *CreatePayoutRequest) GetChannelPropertiesOk() (*DigitalPayoutChannelProperties, bool)
GetChannelPropertiesOk returns a tuple with the ChannelProperties field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePayoutRequest) SetChannelProperties(v DigitalPayoutChannelProperties)
SetChannelProperties sets ChannelProperties field to given value.
func (o *CreatePayoutRequest) GetAmount() float32
GetAmount returns the Amount field if non-nil, zero value otherwise.
func (o *CreatePayoutRequest) GetAmountOk() (*float32, bool)
GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePayoutRequest) SetAmount(v float32)
SetAmount sets Amount field to given value.
func (o *CreatePayoutRequest) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *CreatePayoutRequest) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePayoutRequest) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *CreatePayoutRequest) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *CreatePayoutRequest) GetCurrency() string
GetCurrency returns the Currency field if non-nil, zero value otherwise.
func (o *CreatePayoutRequest) GetCurrencyOk() (*string, bool)
GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePayoutRequest) SetCurrency(v string)
SetCurrency sets Currency field to given value.
func (o *CreatePayoutRequest) GetReceiptNotification() ReceiptNotification
GetReceiptNotification returns the ReceiptNotification field if non-nil, zero value otherwise.
func (o *CreatePayoutRequest) GetReceiptNotificationOk() (*ReceiptNotification, bool)
GetReceiptNotificationOk returns a tuple with the ReceiptNotification field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePayoutRequest) SetReceiptNotification(v ReceiptNotification)
SetReceiptNotification sets ReceiptNotification field to given value.
func (o *CreatePayoutRequest) HasReceiptNotification() bool
HasReceiptNotification returns a boolean if a field has been set.
func (o *CreatePayoutRequest) GetMetadata() map[string]interface{}
GetMetadata returns the Metadata field if non-nil, zero value otherwise.
func (o *CreatePayoutRequest) GetMetadataOk() (*map[string]interface{}, bool)
GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreatePayoutRequest) SetMetadata(v map[string]interface{})
SetMetadata sets Metadata field to given value.
func (o *CreatePayoutRequest) HasMetadata() bool
HasMetadata returns a boolean if a field has been set.