Invoice Callback Object
Name | Type | Required | Description | Examples |
---|---|---|---|---|
Id | string | ☑️ | An invoice ID generated by Xendit | |
ExternalId | string | ☑️ | ID of your choice (typically the unique identifier of an invoice in your system) | |
UserId | string | ☑️ | Xendit Business ID | |
Status | string | ☑️ | The status of the invoice. | |
MerchantName | string | ☑️ | The name of company or website | |
Amount | float64 | ☑️ | Nominal amount for the invoice | |
PayerEmail | Pointer to string | Email of the payer | ||
Description | Pointer to string | Description for the invoice | ||
PaidAmount | Pointer to float64 | Total amount paid for the invoice | ||
Created | string | ☑️ | The date and time when the invoice was created. | |
Updated | string | ☑️ | The date and time when the invoice was last updated. | |
Currency | string | ☑️ | The currency of the invoice. | |
PaidAt | Pointer to string | The date and time when the invoice was paid. | ||
PaymentMethod | Pointer to string | The payment method used for the invoice. | ||
PaymentChannel | Pointer to string | The payment channel. | ||
PaymentDestination | Pointer to string | The payment destination. | ||
PaymentDetails | Pointer to PaymentDetails | |||
PaymentId | Pointer to string | The ID of the payment. | ||
SuccessRedirectUrl | Pointer to string | The URL to redirect to on successful payment. | ||
FailureRedirectUrl | Pointer to string | The URL to redirect to on payment failure. | ||
CreditCardChargeId | Pointer to string | The ID associated with a credit card charge (if applicable). | ||
Items | Pointer to InvoiceCallbackItem[] | |||
Fees | Pointer to InvoiceFee[] | An array of fees associated with the invoice. | ||
ShouldAuthenticateCreditCard | Pointer to bool | Indicates whether credit card authentication is required. | ||
BankCode | Pointer to string | The bank code for the bank details. | ||
EwalletType | Pointer to string | The type of eWallet. | ||
OnDemandLink | Pointer to string | The on-demand link. | ||
RecurringPaymentId | Pointer to string | The ID of the recurring payment. |
func NewInvoiceCallback(id string, externalId string, userId string, status string, merchantName string, amount float64, created string, updated string, currency string, ) *InvoiceCallback
NewInvoiceCallback instantiates a new InvoiceCallback 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 NewInvoiceCallbackWithDefaults() *InvoiceCallback
NewInvoiceCallbackWithDefaults instantiates a new InvoiceCallback 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 *InvoiceCallback) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetIdOk() (*string, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetId(v string)
SetId sets Id field to given value.
func (o *InvoiceCallback) GetExternalId() string
GetExternalId returns the ExternalId field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetExternalIdOk() (*string, bool)
GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetExternalId(v string)
SetExternalId sets ExternalId field to given value.
func (o *InvoiceCallback) GetUserId() string
GetUserId returns the UserId field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetUserIdOk() (*string, bool)
GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetUserId(v string)
SetUserId sets UserId field to given value.
func (o *InvoiceCallback) GetStatus() string
GetStatus returns the Status field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetStatus(v string)
SetStatus sets Status field to given value.
func (o *InvoiceCallback) GetMerchantName() string
GetMerchantName returns the MerchantName field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetMerchantNameOk() (*string, bool)
GetMerchantNameOk returns a tuple with the MerchantName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetMerchantName(v string)
SetMerchantName sets MerchantName field to given value.
func (o *InvoiceCallback) GetAmount() float64
GetAmount returns the Amount field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetAmountOk() (*float64, 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 *InvoiceCallback) SetAmount(v float64)
SetAmount sets Amount field to given value.
func (o *InvoiceCallback) GetPayerEmail() string
GetPayerEmail returns the PayerEmail field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetPayerEmailOk() (*string, bool)
GetPayerEmailOk returns a tuple with the PayerEmail field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetPayerEmail(v string)
SetPayerEmail sets PayerEmail field to given value.
func (o *InvoiceCallback) HasPayerEmail() bool
HasPayerEmail returns a boolean if a field has been set.
func (o *InvoiceCallback) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *InvoiceCallback) 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 *InvoiceCallback) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *InvoiceCallback) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *InvoiceCallback) GetPaidAmount() float64
GetPaidAmount returns the PaidAmount field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetPaidAmountOk() (*float64, bool)
GetPaidAmountOk returns a tuple with the PaidAmount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetPaidAmount(v float64)
SetPaidAmount sets PaidAmount field to given value.
func (o *InvoiceCallback) HasPaidAmount() bool
HasPaidAmount returns a boolean if a field has been set.
func (o *InvoiceCallback) GetCreated() string
GetCreated returns the Created field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetCreatedOk() (*string, bool)
GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetCreated(v string)
SetCreated sets Created field to given value.
func (o *InvoiceCallback) GetUpdated() string
GetUpdated returns the Updated field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetUpdatedOk() (*string, bool)
GetUpdatedOk returns a tuple with the Updated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetUpdated(v string)
SetUpdated sets Updated field to given value.
func (o *InvoiceCallback) GetCurrency() string
GetCurrency returns the Currency field if non-nil, zero value otherwise.
func (o *InvoiceCallback) 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 *InvoiceCallback) SetCurrency(v string)
SetCurrency sets Currency field to given value.
func (o *InvoiceCallback) GetPaidAt() string
GetPaidAt returns the PaidAt field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetPaidAtOk() (*string, bool)
GetPaidAtOk returns a tuple with the PaidAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetPaidAt(v string)
SetPaidAt sets PaidAt field to given value.
func (o *InvoiceCallback) HasPaidAt() bool
HasPaidAt returns a boolean if a field has been set.
func (o *InvoiceCallback) GetPaymentMethod() string
GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetPaymentMethodOk() (*string, bool)
GetPaymentMethodOk returns a tuple with the PaymentMethod field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetPaymentMethod(v string)
SetPaymentMethod sets PaymentMethod field to given value.
func (o *InvoiceCallback) HasPaymentMethod() bool
HasPaymentMethod returns a boolean if a field has been set.
func (o *InvoiceCallback) GetPaymentChannel() string
GetPaymentChannel returns the PaymentChannel field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetPaymentChannelOk() (*string, bool)
GetPaymentChannelOk returns a tuple with the PaymentChannel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetPaymentChannel(v string)
SetPaymentChannel sets PaymentChannel field to given value.
func (o *InvoiceCallback) HasPaymentChannel() bool
HasPaymentChannel returns a boolean if a field has been set.
func (o *InvoiceCallback) GetPaymentDestination() string
GetPaymentDestination returns the PaymentDestination field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetPaymentDestinationOk() (*string, bool)
GetPaymentDestinationOk returns a tuple with the PaymentDestination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetPaymentDestination(v string)
SetPaymentDestination sets PaymentDestination field to given value.
func (o *InvoiceCallback) HasPaymentDestination() bool
HasPaymentDestination returns a boolean if a field has been set.
func (o *InvoiceCallback) GetPaymentDetails() PaymentDetails
GetPaymentDetails returns the PaymentDetails field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetPaymentDetailsOk() (*PaymentDetails, bool)
GetPaymentDetailsOk returns a tuple with the PaymentDetails field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetPaymentDetails(v PaymentDetails)
SetPaymentDetails sets PaymentDetails field to given value.
func (o *InvoiceCallback) HasPaymentDetails() bool
HasPaymentDetails returns a boolean if a field has been set.
func (o *InvoiceCallback) GetPaymentId() string
GetPaymentId returns the PaymentId field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetPaymentIdOk() (*string, bool)
GetPaymentIdOk returns a tuple with the PaymentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetPaymentId(v string)
SetPaymentId sets PaymentId field to given value.
func (o *InvoiceCallback) HasPaymentId() bool
HasPaymentId returns a boolean if a field has been set.
func (o *InvoiceCallback) GetSuccessRedirectUrl() string
GetSuccessRedirectUrl returns the SuccessRedirectUrl field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetSuccessRedirectUrlOk() (*string, bool)
GetSuccessRedirectUrlOk returns a tuple with the SuccessRedirectUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetSuccessRedirectUrl(v string)
SetSuccessRedirectUrl sets SuccessRedirectUrl field to given value.
func (o *InvoiceCallback) HasSuccessRedirectUrl() bool
HasSuccessRedirectUrl returns a boolean if a field has been set.
func (o *InvoiceCallback) GetFailureRedirectUrl() string
GetFailureRedirectUrl returns the FailureRedirectUrl field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetFailureRedirectUrlOk() (*string, bool)
GetFailureRedirectUrlOk returns a tuple with the FailureRedirectUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetFailureRedirectUrl(v string)
SetFailureRedirectUrl sets FailureRedirectUrl field to given value.
func (o *InvoiceCallback) HasFailureRedirectUrl() bool
HasFailureRedirectUrl returns a boolean if a field has been set.
func (o *InvoiceCallback) GetCreditCardChargeId() string
GetCreditCardChargeId returns the CreditCardChargeId field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetCreditCardChargeIdOk() (*string, bool)
GetCreditCardChargeIdOk returns a tuple with the CreditCardChargeId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetCreditCardChargeId(v string)
SetCreditCardChargeId sets CreditCardChargeId field to given value.
func (o *InvoiceCallback) HasCreditCardChargeId() bool
HasCreditCardChargeId returns a boolean if a field has been set.
func (o *InvoiceCallback) GetItems() []InvoiceCallbackItem
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetItemsOk() (*[]InvoiceCallbackItem, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetItems(v []InvoiceCallbackItem)
SetItems sets Items field to given value.
func (o *InvoiceCallback) HasItems() bool
HasItems returns a boolean if a field has been set.
func (o *InvoiceCallback) GetFees() []InvoiceFee
GetFees returns the Fees field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetFeesOk() (*[]InvoiceFee, bool)
GetFeesOk returns a tuple with the Fees field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetFees(v []InvoiceFee)
SetFees sets Fees field to given value.
func (o *InvoiceCallback) HasFees() bool
HasFees returns a boolean if a field has been set.
func (o *InvoiceCallback) GetShouldAuthenticateCreditCard() bool
GetShouldAuthenticateCreditCard returns the ShouldAuthenticateCreditCard field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetShouldAuthenticateCreditCardOk() (*bool, bool)
GetShouldAuthenticateCreditCardOk returns a tuple with the ShouldAuthenticateCreditCard field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetShouldAuthenticateCreditCard(v bool)
SetShouldAuthenticateCreditCard sets ShouldAuthenticateCreditCard field to given value.
func (o *InvoiceCallback) HasShouldAuthenticateCreditCard() bool
HasShouldAuthenticateCreditCard returns a boolean if a field has been set.
func (o *InvoiceCallback) GetBankCode() string
GetBankCode returns the BankCode field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetBankCodeOk() (*string, bool)
GetBankCodeOk returns a tuple with the BankCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetBankCode(v string)
SetBankCode sets BankCode field to given value.
func (o *InvoiceCallback) HasBankCode() bool
HasBankCode returns a boolean if a field has been set.
func (o *InvoiceCallback) GetEwalletType() string
GetEwalletType returns the EwalletType field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetEwalletTypeOk() (*string, bool)
GetEwalletTypeOk returns a tuple with the EwalletType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetEwalletType(v string)
SetEwalletType sets EwalletType field to given value.
func (o *InvoiceCallback) HasEwalletType() bool
HasEwalletType returns a boolean if a field has been set.
func (o *InvoiceCallback) GetOnDemandLink() string
GetOnDemandLink returns the OnDemandLink field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetOnDemandLinkOk() (*string, bool)
GetOnDemandLinkOk returns a tuple with the OnDemandLink field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetOnDemandLink(v string)
SetOnDemandLink sets OnDemandLink field to given value.
func (o *InvoiceCallback) HasOnDemandLink() bool
HasOnDemandLink returns a boolean if a field has been set.
func (o *InvoiceCallback) GetRecurringPaymentId() string
GetRecurringPaymentId returns the RecurringPaymentId field if non-nil, zero value otherwise.
func (o *InvoiceCallback) GetRecurringPaymentIdOk() (*string, bool)
GetRecurringPaymentIdOk returns a tuple with the RecurringPaymentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceCallback) SetRecurringPaymentId(v string)
SetRecurringPaymentId sets RecurringPaymentId field to given value.
func (o *InvoiceCallback) HasRecurringPaymentId() bool
HasRecurringPaymentId returns a boolean if a field has been set.