| Name | Type | Description | Notes |
|---|---|---|---|
| CreatedAt | time.Time | DateTime at which the object was created, in 'ISO 8601' format. | |
| CreditAmountAtom | int32 | The integer amount representing the amount to credit the customer’s balance, which will be automatically applied to their next invoice. It is in atomic units (in USD this is cents). | |
| Currency | CurrencyEnum | Three-letter ISO currency code, in lowercase. | |
| Id | string | Unique Identifier of the credit_note. | |
| InvoiceId | string | Unique ID of the invoice. | |
| IsDeleted | Pointer to bool | If true, indicates that this object has been deleted | [optional] [default to false] |
| Items | []CreditNoteItemExternal | List of credit_note_items. | |
| Object | Pointer to ObjectName | [optional] | |
| Reason | NullableCreditNoteReason | ||
| RefundAmountAtom | int32 | The integer amount representing the amount to refund. If set, a refund will be created for the charge associated with the invoice. It is in atomic units (in USD this is cents). | |
| TotalAmountAtom | int32 | The integer amount representing the total amount of the credit note. It is in atomic units (in USD this is cents). | |
| UpdatedAt | time.Time | DateTime at which the object was updated, in 'ISO 8601' format. |
func NewCreditNoteExternal(createdAt time.Time, creditAmountAtom int32, currency CurrencyEnum, id string, invoiceId string, items []CreditNoteItemExternal, reason NullableCreditNoteReason, refundAmountAtom int32, totalAmountAtom int32, updatedAt time.Time, ) *CreditNoteExternal
NewCreditNoteExternal instantiates a new CreditNoteExternal 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 NewCreditNoteExternalWithDefaults() *CreditNoteExternal
NewCreditNoteExternalWithDefaults instantiates a new CreditNoteExternal 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 *CreditNoteExternal) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *CreditNoteExternal) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreditNoteExternal) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.
func (o *CreditNoteExternal) GetCreditAmountAtom() int32
GetCreditAmountAtom returns the CreditAmountAtom field if non-nil, zero value otherwise.
func (o *CreditNoteExternal) GetCreditAmountAtomOk() (*int32, bool)
GetCreditAmountAtomOk returns a tuple with the CreditAmountAtom field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreditNoteExternal) SetCreditAmountAtom(v int32)
SetCreditAmountAtom sets CreditAmountAtom field to given value.
func (o *CreditNoteExternal) GetCurrency() CurrencyEnum
GetCurrency returns the Currency field if non-nil, zero value otherwise.
func (o *CreditNoteExternal) GetCurrencyOk() (*CurrencyEnum, 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 *CreditNoteExternal) SetCurrency(v CurrencyEnum)
SetCurrency sets Currency field to given value.
func (o *CreditNoteExternal) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *CreditNoteExternal) 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 *CreditNoteExternal) SetId(v string)
SetId sets Id field to given value.
func (o *CreditNoteExternal) GetInvoiceId() string
GetInvoiceId returns the InvoiceId field if non-nil, zero value otherwise.
func (o *CreditNoteExternal) GetInvoiceIdOk() (*string, bool)
GetInvoiceIdOk returns a tuple with the InvoiceId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreditNoteExternal) SetInvoiceId(v string)
SetInvoiceId sets InvoiceId field to given value.
func (o *CreditNoteExternal) GetIsDeleted() bool
GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise.
func (o *CreditNoteExternal) GetIsDeletedOk() (*bool, bool)
GetIsDeletedOk returns a tuple with the IsDeleted field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreditNoteExternal) SetIsDeleted(v bool)
SetIsDeleted sets IsDeleted field to given value.
func (o *CreditNoteExternal) HasIsDeleted() bool
HasIsDeleted returns a boolean if a field has been set.
func (o *CreditNoteExternal) GetItems() []CreditNoteItemExternal
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *CreditNoteExternal) GetItemsOk() (*[]CreditNoteItemExternal, 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 *CreditNoteExternal) SetItems(v []CreditNoteItemExternal)
SetItems sets Items field to given value.
func (o *CreditNoteExternal) GetObject() ObjectName
GetObject returns the Object field if non-nil, zero value otherwise.
func (o *CreditNoteExternal) GetObjectOk() (*ObjectName, bool)
GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreditNoteExternal) SetObject(v ObjectName)
SetObject sets Object field to given value.
func (o *CreditNoteExternal) HasObject() bool
HasObject returns a boolean if a field has been set.
func (o *CreditNoteExternal) GetReason() CreditNoteReason
GetReason returns the Reason field if non-nil, zero value otherwise.
func (o *CreditNoteExternal) GetReasonOk() (*CreditNoteReason, bool)
GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreditNoteExternal) SetReason(v CreditNoteReason)
SetReason sets Reason field to given value.
func (o *CreditNoteExternal) SetReasonNil(b bool)
SetReasonNil sets the value for Reason to be an explicit nil
func (o *CreditNoteExternal) UnsetReason()
UnsetReason ensures that no value is present for Reason, not even an explicit nil
func (o *CreditNoteExternal) GetRefundAmountAtom() int32
GetRefundAmountAtom returns the RefundAmountAtom field if non-nil, zero value otherwise.
func (o *CreditNoteExternal) GetRefundAmountAtomOk() (*int32, bool)
GetRefundAmountAtomOk returns a tuple with the RefundAmountAtom field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreditNoteExternal) SetRefundAmountAtom(v int32)
SetRefundAmountAtom sets RefundAmountAtom field to given value.
func (o *CreditNoteExternal) GetTotalAmountAtom() int32
GetTotalAmountAtom returns the TotalAmountAtom field if non-nil, zero value otherwise.
func (o *CreditNoteExternal) GetTotalAmountAtomOk() (*int32, bool)
GetTotalAmountAtomOk returns a tuple with the TotalAmountAtom field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreditNoteExternal) SetTotalAmountAtom(v int32)
SetTotalAmountAtom sets TotalAmountAtom field to given value.
func (o *CreditNoteExternal) GetUpdatedAt() time.Time
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
func (o *CreditNoteExternal) GetUpdatedAtOk() (*time.Time, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreditNoteExternal) SetUpdatedAt(v time.Time)
SetUpdatedAt sets UpdatedAt field to given value.