Skip to content

Latest commit

 

History

History
713 lines (383 loc) · 20.2 KB

InvoiceCallback.md

File metadata and controls

713 lines (383 loc) · 20.2 KB

InvoiceCallback

Invoice Callback Object

Properties

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.

Methods

NewInvoiceCallback

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

NewInvoiceCallbackWithDefaults

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

GetId

func (o *InvoiceCallback) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

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.

SetId

func (o *InvoiceCallback) SetId(v string)

SetId sets Id field to given value.

GetExternalId

func (o *InvoiceCallback) GetExternalId() string

GetExternalId returns the ExternalId field if non-nil, zero value otherwise.

GetExternalIdOk

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.

SetExternalId

func (o *InvoiceCallback) SetExternalId(v string)

SetExternalId sets ExternalId field to given value.

GetUserId

func (o *InvoiceCallback) GetUserId() string

GetUserId returns the UserId field if non-nil, zero value otherwise.

GetUserIdOk

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.

SetUserId

func (o *InvoiceCallback) SetUserId(v string)

SetUserId sets UserId field to given value.

GetStatus

func (o *InvoiceCallback) GetStatus() string

GetStatus returns the Status field if non-nil, zero value otherwise.

GetStatusOk

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.

SetStatus

func (o *InvoiceCallback) SetStatus(v string)

SetStatus sets Status field to given value.

GetMerchantName

func (o *InvoiceCallback) GetMerchantName() string

GetMerchantName returns the MerchantName field if non-nil, zero value otherwise.

GetMerchantNameOk

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.

SetMerchantName

func (o *InvoiceCallback) SetMerchantName(v string)

SetMerchantName sets MerchantName field to given value.

GetAmount

func (o *InvoiceCallback) GetAmount() float64

GetAmount returns the Amount field if non-nil, zero value otherwise.

GetAmountOk

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.

SetAmount

func (o *InvoiceCallback) SetAmount(v float64)

SetAmount sets Amount field to given value.

GetPayerEmail

func (o *InvoiceCallback) GetPayerEmail() string

GetPayerEmail returns the PayerEmail field if non-nil, zero value otherwise.

GetPayerEmailOk

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.

SetPayerEmail

func (o *InvoiceCallback) SetPayerEmail(v string)

SetPayerEmail sets PayerEmail field to given value.

HasPayerEmail

func (o *InvoiceCallback) HasPayerEmail() bool

HasPayerEmail returns a boolean if a field has been set.

GetDescription

func (o *InvoiceCallback) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

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.

SetDescription

func (o *InvoiceCallback) SetDescription(v string)

SetDescription sets Description field to given value.

HasDescription

func (o *InvoiceCallback) HasDescription() bool

HasDescription returns a boolean if a field has been set.

GetPaidAmount

func (o *InvoiceCallback) GetPaidAmount() float64

GetPaidAmount returns the PaidAmount field if non-nil, zero value otherwise.

GetPaidAmountOk

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.

SetPaidAmount

func (o *InvoiceCallback) SetPaidAmount(v float64)

SetPaidAmount sets PaidAmount field to given value.

HasPaidAmount

func (o *InvoiceCallback) HasPaidAmount() bool

HasPaidAmount returns a boolean if a field has been set.

GetCreated

func (o *InvoiceCallback) GetCreated() string

GetCreated returns the Created field if non-nil, zero value otherwise.

GetCreatedOk

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.

SetCreated

func (o *InvoiceCallback) SetCreated(v string)

SetCreated sets Created field to given value.

GetUpdated

func (o *InvoiceCallback) GetUpdated() string

GetUpdated returns the Updated field if non-nil, zero value otherwise.

GetUpdatedOk

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.

SetUpdated

func (o *InvoiceCallback) SetUpdated(v string)

SetUpdated sets Updated field to given value.

GetCurrency

func (o *InvoiceCallback) GetCurrency() string

GetCurrency returns the Currency field if non-nil, zero value otherwise.

GetCurrencyOk

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.

SetCurrency

func (o *InvoiceCallback) SetCurrency(v string)

SetCurrency sets Currency field to given value.

GetPaidAt

func (o *InvoiceCallback) GetPaidAt() string

GetPaidAt returns the PaidAt field if non-nil, zero value otherwise.

GetPaidAtOk

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.

SetPaidAt

func (o *InvoiceCallback) SetPaidAt(v string)

SetPaidAt sets PaidAt field to given value.

HasPaidAt

func (o *InvoiceCallback) HasPaidAt() bool

HasPaidAt returns a boolean if a field has been set.

GetPaymentMethod

func (o *InvoiceCallback) GetPaymentMethod() string

GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise.

GetPaymentMethodOk

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.

SetPaymentMethod

func (o *InvoiceCallback) SetPaymentMethod(v string)

SetPaymentMethod sets PaymentMethod field to given value.

HasPaymentMethod

func (o *InvoiceCallback) HasPaymentMethod() bool

HasPaymentMethod returns a boolean if a field has been set.

GetPaymentChannel

func (o *InvoiceCallback) GetPaymentChannel() string

GetPaymentChannel returns the PaymentChannel field if non-nil, zero value otherwise.

GetPaymentChannelOk

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.

SetPaymentChannel

func (o *InvoiceCallback) SetPaymentChannel(v string)

SetPaymentChannel sets PaymentChannel field to given value.

HasPaymentChannel

func (o *InvoiceCallback) HasPaymentChannel() bool

HasPaymentChannel returns a boolean if a field has been set.

GetPaymentDestination

func (o *InvoiceCallback) GetPaymentDestination() string

GetPaymentDestination returns the PaymentDestination field if non-nil, zero value otherwise.

GetPaymentDestinationOk

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.

SetPaymentDestination

func (o *InvoiceCallback) SetPaymentDestination(v string)

SetPaymentDestination sets PaymentDestination field to given value.

HasPaymentDestination

func (o *InvoiceCallback) HasPaymentDestination() bool

HasPaymentDestination returns a boolean if a field has been set.

GetPaymentDetails

func (o *InvoiceCallback) GetPaymentDetails() PaymentDetails

GetPaymentDetails returns the PaymentDetails field if non-nil, zero value otherwise.

GetPaymentDetailsOk

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.

SetPaymentDetails

func (o *InvoiceCallback) SetPaymentDetails(v PaymentDetails)

SetPaymentDetails sets PaymentDetails field to given value.

HasPaymentDetails

func (o *InvoiceCallback) HasPaymentDetails() bool

HasPaymentDetails returns a boolean if a field has been set.

GetPaymentId

func (o *InvoiceCallback) GetPaymentId() string

GetPaymentId returns the PaymentId field if non-nil, zero value otherwise.

GetPaymentIdOk

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.

SetPaymentId

func (o *InvoiceCallback) SetPaymentId(v string)

SetPaymentId sets PaymentId field to given value.

HasPaymentId

func (o *InvoiceCallback) HasPaymentId() bool

HasPaymentId returns a boolean if a field has been set.

GetSuccessRedirectUrl

func (o *InvoiceCallback) GetSuccessRedirectUrl() string

GetSuccessRedirectUrl returns the SuccessRedirectUrl field if non-nil, zero value otherwise.

GetSuccessRedirectUrlOk

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.

SetSuccessRedirectUrl

func (o *InvoiceCallback) SetSuccessRedirectUrl(v string)

SetSuccessRedirectUrl sets SuccessRedirectUrl field to given value.

HasSuccessRedirectUrl

func (o *InvoiceCallback) HasSuccessRedirectUrl() bool

HasSuccessRedirectUrl returns a boolean if a field has been set.

GetFailureRedirectUrl

func (o *InvoiceCallback) GetFailureRedirectUrl() string

GetFailureRedirectUrl returns the FailureRedirectUrl field if non-nil, zero value otherwise.

GetFailureRedirectUrlOk

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.

SetFailureRedirectUrl

func (o *InvoiceCallback) SetFailureRedirectUrl(v string)

SetFailureRedirectUrl sets FailureRedirectUrl field to given value.

HasFailureRedirectUrl

func (o *InvoiceCallback) HasFailureRedirectUrl() bool

HasFailureRedirectUrl returns a boolean if a field has been set.

GetCreditCardChargeId

func (o *InvoiceCallback) GetCreditCardChargeId() string

GetCreditCardChargeId returns the CreditCardChargeId field if non-nil, zero value otherwise.

GetCreditCardChargeIdOk

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.

SetCreditCardChargeId

func (o *InvoiceCallback) SetCreditCardChargeId(v string)

SetCreditCardChargeId sets CreditCardChargeId field to given value.

HasCreditCardChargeId

func (o *InvoiceCallback) HasCreditCardChargeId() bool

HasCreditCardChargeId returns a boolean if a field has been set.

GetItems

func (o *InvoiceCallback) GetItems() []InvoiceCallbackItem

GetItems returns the Items field if non-nil, zero value otherwise.

GetItemsOk

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.

SetItems

func (o *InvoiceCallback) SetItems(v []InvoiceCallbackItem)

SetItems sets Items field to given value.

HasItems

func (o *InvoiceCallback) HasItems() bool

HasItems returns a boolean if a field has been set.

GetFees

func (o *InvoiceCallback) GetFees() []InvoiceFee

GetFees returns the Fees field if non-nil, zero value otherwise.

GetFeesOk

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.

SetFees

func (o *InvoiceCallback) SetFees(v []InvoiceFee)

SetFees sets Fees field to given value.

HasFees

func (o *InvoiceCallback) HasFees() bool

HasFees returns a boolean if a field has been set.

GetShouldAuthenticateCreditCard

func (o *InvoiceCallback) GetShouldAuthenticateCreditCard() bool

GetShouldAuthenticateCreditCard returns the ShouldAuthenticateCreditCard field if non-nil, zero value otherwise.

GetShouldAuthenticateCreditCardOk

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.

SetShouldAuthenticateCreditCard

func (o *InvoiceCallback) SetShouldAuthenticateCreditCard(v bool)

SetShouldAuthenticateCreditCard sets ShouldAuthenticateCreditCard field to given value.

HasShouldAuthenticateCreditCard

func (o *InvoiceCallback) HasShouldAuthenticateCreditCard() bool

HasShouldAuthenticateCreditCard returns a boolean if a field has been set.

GetBankCode

func (o *InvoiceCallback) GetBankCode() string

GetBankCode returns the BankCode field if non-nil, zero value otherwise.

GetBankCodeOk

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.

SetBankCode

func (o *InvoiceCallback) SetBankCode(v string)

SetBankCode sets BankCode field to given value.

HasBankCode

func (o *InvoiceCallback) HasBankCode() bool

HasBankCode returns a boolean if a field has been set.

GetEwalletType

func (o *InvoiceCallback) GetEwalletType() string

GetEwalletType returns the EwalletType field if non-nil, zero value otherwise.

GetEwalletTypeOk

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.

SetEwalletType

func (o *InvoiceCallback) SetEwalletType(v string)

SetEwalletType sets EwalletType field to given value.

HasEwalletType

func (o *InvoiceCallback) HasEwalletType() bool

HasEwalletType returns a boolean if a field has been set.

GetOnDemandLink

func (o *InvoiceCallback) GetOnDemandLink() string

GetOnDemandLink returns the OnDemandLink field if non-nil, zero value otherwise.

GetOnDemandLinkOk

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.

SetOnDemandLink

func (o *InvoiceCallback) SetOnDemandLink(v string)

SetOnDemandLink sets OnDemandLink field to given value.

HasOnDemandLink

func (o *InvoiceCallback) HasOnDemandLink() bool

HasOnDemandLink returns a boolean if a field has been set.

GetRecurringPaymentId

func (o *InvoiceCallback) GetRecurringPaymentId() string

GetRecurringPaymentId returns the RecurringPaymentId field if non-nil, zero value otherwise.

GetRecurringPaymentIdOk

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.

SetRecurringPaymentId

func (o *InvoiceCallback) SetRecurringPaymentId(v string)

SetRecurringPaymentId sets RecurringPaymentId field to given value.

HasRecurringPaymentId

func (o *InvoiceCallback) HasRecurringPaymentId() bool

HasRecurringPaymentId returns a boolean if a field has been set.

[Back to README]