| Name | Type | Description | Notes |
|---|---|---|---|
| AccountId | string | Unique identifier of the account. | |
| AmountAtom | int32 | Total amount of invoice_item in atomic units (in USD this is cents). | |
| AmountAtomConsideringDiscountApplied | int32 | Total amount of invoice_item in atomic units considering discounts. Contains both invoice-level and invoice item-level discounts | |
| CreatedAt | time.Time | DateTime at which the object was created, in 'ISO 8601' format. | |
| Currency | CurrencyEnum | Three-letter ISO currency code, in lowercase. | |
| CustomerId | string | Unique identifier of the customer. | |
| Description | NullableString | ||
| DiscountAmountAtoms | []InvoiceItemDiscountAmountsExternal | The amount_atom of all discount. | |
| Discounts | []string | The discounts only directly applied to the InvoiceItem. | |
| Id | string | Unique identifier of the invoice_item. | |
| InvoiceId | NullableString | ||
| IsDeleted | Pointer to bool | If true, indicates that this object has been deleted | [optional] [default to false] |
| Name | string | Name of the invoice_item. | |
| Object | Pointer to ObjectName | [optional] | |
| PeriodEnd | time.Time | End of the usage period of the invoice_item. It is in 'ISO 8601' format. | |
| PeriodStart | time.Time | Start of the usage period of the invoice_item. It is in 'ISO 8601' format. | |
| PriceId | string | Unique identifier of the price. | |
| PriceType | PriceTypeEnum | Type of the price. | |
| ProductId | string | Unique identifier of the product. | |
| Proration | bool | Whether the invoice item was created automatically as a proration adjustment when the customer switched plans. | |
| ProrationDetailsDebitInvoiceItem | NullableString | ||
| Quantity | int32 | Quantity of the invoice_item. | |
| SubscriptionCancelledAt | Pointer to NullableTime | [optional] | |
| SubscriptionId | NullableString | ||
| SubscriptionItemDescription | Pointer to NullableString | [optional] | |
| SubscriptionItemId | Pointer to NullableString | [optional] | |
| UpdatedAt | time.Time | DateTime at which the object was updated, in 'ISO 8601' format. |
func NewInvoiceItemExternal(accountId string, amountAtom int32, amountAtomConsideringDiscountApplied int32, createdAt time.Time, currency CurrencyEnum, customerId string, description NullableString, discountAmountAtoms []InvoiceItemDiscountAmountsExternal, discounts []string, id string, invoiceId NullableString, name string, periodEnd time.Time, periodStart time.Time, priceId string, priceType PriceTypeEnum, productId string, proration bool, prorationDetailsDebitInvoiceItem NullableString, quantity int32, subscriptionId NullableString, updatedAt time.Time, ) *InvoiceItemExternal
NewInvoiceItemExternal instantiates a new InvoiceItemExternal 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 NewInvoiceItemExternalWithDefaults() *InvoiceItemExternal
NewInvoiceItemExternalWithDefaults instantiates a new InvoiceItemExternal 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 *InvoiceItemExternal) GetAccountId() string
GetAccountId returns the AccountId field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetAccountIdOk() (*string, bool)
GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetAccountId(v string)
SetAccountId sets AccountId field to given value.
func (o *InvoiceItemExternal) GetAmountAtom() int32
GetAmountAtom returns the AmountAtom field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetAmountAtomOk() (*int32, bool)
GetAmountAtomOk returns a tuple with the AmountAtom field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetAmountAtom(v int32)
SetAmountAtom sets AmountAtom field to given value.
func (o *InvoiceItemExternal) GetAmountAtomConsideringDiscountApplied() int32
GetAmountAtomConsideringDiscountApplied returns the AmountAtomConsideringDiscountApplied field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetAmountAtomConsideringDiscountAppliedOk() (*int32, bool)
GetAmountAtomConsideringDiscountAppliedOk returns a tuple with the AmountAtomConsideringDiscountApplied field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetAmountAtomConsideringDiscountApplied(v int32)
SetAmountAtomConsideringDiscountApplied sets AmountAtomConsideringDiscountApplied field to given value.
func (o *InvoiceItemExternal) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) 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 *InvoiceItemExternal) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.
func (o *InvoiceItemExternal) GetCurrency() CurrencyEnum
GetCurrency returns the Currency field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) 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 *InvoiceItemExternal) SetCurrency(v CurrencyEnum)
SetCurrency sets Currency field to given value.
func (o *InvoiceItemExternal) GetCustomerId() string
GetCustomerId returns the CustomerId field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetCustomerIdOk() (*string, bool)
GetCustomerIdOk returns a tuple with the CustomerId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetCustomerId(v string)
SetCustomerId sets CustomerId field to given value.
func (o *InvoiceItemExternal) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) 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 *InvoiceItemExternal) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *InvoiceItemExternal) SetDescriptionNil(b bool)
SetDescriptionNil sets the value for Description to be an explicit nil
func (o *InvoiceItemExternal) UnsetDescription()
UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *InvoiceItemExternal) GetDiscountAmountAtoms() []InvoiceItemDiscountAmountsExternal
GetDiscountAmountAtoms returns the DiscountAmountAtoms field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetDiscountAmountAtomsOk() (*[]InvoiceItemDiscountAmountsExternal, bool)
GetDiscountAmountAtomsOk returns a tuple with the DiscountAmountAtoms field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetDiscountAmountAtoms(v []InvoiceItemDiscountAmountsExternal)
SetDiscountAmountAtoms sets DiscountAmountAtoms field to given value.
func (o *InvoiceItemExternal) GetDiscounts() []string
GetDiscounts returns the Discounts field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetDiscountsOk() (*[]string, bool)
GetDiscountsOk returns a tuple with the Discounts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetDiscounts(v []string)
SetDiscounts sets Discounts field to given value.
func (o *InvoiceItemExternal) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) 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 *InvoiceItemExternal) SetId(v string)
SetId sets Id field to given value.
func (o *InvoiceItemExternal) GetInvoiceId() string
GetInvoiceId returns the InvoiceId field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) 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 *InvoiceItemExternal) SetInvoiceId(v string)
SetInvoiceId sets InvoiceId field to given value.
func (o *InvoiceItemExternal) SetInvoiceIdNil(b bool)
SetInvoiceIdNil sets the value for InvoiceId to be an explicit nil
func (o *InvoiceItemExternal) UnsetInvoiceId()
UnsetInvoiceId ensures that no value is present for InvoiceId, not even an explicit nil
func (o *InvoiceItemExternal) GetIsDeleted() bool
GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) 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 *InvoiceItemExternal) SetIsDeleted(v bool)
SetIsDeleted sets IsDeleted field to given value.
func (o *InvoiceItemExternal) HasIsDeleted() bool
HasIsDeleted returns a boolean if a field has been set.
func (o *InvoiceItemExternal) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetName(v string)
SetName sets Name field to given value.
func (o *InvoiceItemExternal) GetObject() ObjectName
GetObject returns the Object field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) 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 *InvoiceItemExternal) SetObject(v ObjectName)
SetObject sets Object field to given value.
func (o *InvoiceItemExternal) HasObject() bool
HasObject returns a boolean if a field has been set.
func (o *InvoiceItemExternal) GetPeriodEnd() time.Time
GetPeriodEnd returns the PeriodEnd field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetPeriodEndOk() (*time.Time, bool)
GetPeriodEndOk returns a tuple with the PeriodEnd field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetPeriodEnd(v time.Time)
SetPeriodEnd sets PeriodEnd field to given value.
func (o *InvoiceItemExternal) GetPeriodStart() time.Time
GetPeriodStart returns the PeriodStart field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetPeriodStartOk() (*time.Time, bool)
GetPeriodStartOk returns a tuple with the PeriodStart field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetPeriodStart(v time.Time)
SetPeriodStart sets PeriodStart field to given value.
func (o *InvoiceItemExternal) GetPriceId() string
GetPriceId returns the PriceId field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetPriceIdOk() (*string, bool)
GetPriceIdOk returns a tuple with the PriceId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetPriceId(v string)
SetPriceId sets PriceId field to given value.
func (o *InvoiceItemExternal) GetPriceType() PriceTypeEnum
GetPriceType returns the PriceType field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetPriceTypeOk() (*PriceTypeEnum, bool)
GetPriceTypeOk returns a tuple with the PriceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetPriceType(v PriceTypeEnum)
SetPriceType sets PriceType field to given value.
func (o *InvoiceItemExternal) GetProductId() string
GetProductId returns the ProductId field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetProductIdOk() (*string, bool)
GetProductIdOk returns a tuple with the ProductId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetProductId(v string)
SetProductId sets ProductId field to given value.
func (o *InvoiceItemExternal) GetProration() bool
GetProration returns the Proration field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetProrationOk() (*bool, bool)
GetProrationOk returns a tuple with the Proration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetProration(v bool)
SetProration sets Proration field to given value.
func (o *InvoiceItemExternal) GetProrationDetailsDebitInvoiceItem() string
GetProrationDetailsDebitInvoiceItem returns the ProrationDetailsDebitInvoiceItem field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetProrationDetailsDebitInvoiceItemOk() (*string, bool)
GetProrationDetailsDebitInvoiceItemOk returns a tuple with the ProrationDetailsDebitInvoiceItem field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetProrationDetailsDebitInvoiceItem(v string)
SetProrationDetailsDebitInvoiceItem sets ProrationDetailsDebitInvoiceItem field to given value.
func (o *InvoiceItemExternal) SetProrationDetailsDebitInvoiceItemNil(b bool)
SetProrationDetailsDebitInvoiceItemNil sets the value for ProrationDetailsDebitInvoiceItem to be an explicit nil
func (o *InvoiceItemExternal) UnsetProrationDetailsDebitInvoiceItem()
UnsetProrationDetailsDebitInvoiceItem ensures that no value is present for ProrationDetailsDebitInvoiceItem, not even an explicit nil
func (o *InvoiceItemExternal) GetQuantity() int32
GetQuantity returns the Quantity field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetQuantityOk() (*int32, bool)
GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetQuantity(v int32)
SetQuantity sets Quantity field to given value.
func (o *InvoiceItemExternal) GetSubscriptionCancelledAt() time.Time
GetSubscriptionCancelledAt returns the SubscriptionCancelledAt field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetSubscriptionCancelledAtOk() (*time.Time, bool)
GetSubscriptionCancelledAtOk returns a tuple with the SubscriptionCancelledAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetSubscriptionCancelledAt(v time.Time)
SetSubscriptionCancelledAt sets SubscriptionCancelledAt field to given value.
func (o *InvoiceItemExternal) HasSubscriptionCancelledAt() bool
HasSubscriptionCancelledAt returns a boolean if a field has been set.
func (o *InvoiceItemExternal) SetSubscriptionCancelledAtNil(b bool)
SetSubscriptionCancelledAtNil sets the value for SubscriptionCancelledAt to be an explicit nil
func (o *InvoiceItemExternal) UnsetSubscriptionCancelledAt()
UnsetSubscriptionCancelledAt ensures that no value is present for SubscriptionCancelledAt, not even an explicit nil
func (o *InvoiceItemExternal) GetSubscriptionId() string
GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetSubscriptionIdOk() (*string, bool)
GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetSubscriptionId(v string)
SetSubscriptionId sets SubscriptionId field to given value.
func (o *InvoiceItemExternal) SetSubscriptionIdNil(b bool)
SetSubscriptionIdNil sets the value for SubscriptionId to be an explicit nil
func (o *InvoiceItemExternal) UnsetSubscriptionId()
UnsetSubscriptionId ensures that no value is present for SubscriptionId, not even an explicit nil
func (o *InvoiceItemExternal) GetSubscriptionItemDescription() string
GetSubscriptionItemDescription returns the SubscriptionItemDescription field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetSubscriptionItemDescriptionOk() (*string, bool)
GetSubscriptionItemDescriptionOk returns a tuple with the SubscriptionItemDescription field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetSubscriptionItemDescription(v string)
SetSubscriptionItemDescription sets SubscriptionItemDescription field to given value.
func (o *InvoiceItemExternal) HasSubscriptionItemDescription() bool
HasSubscriptionItemDescription returns a boolean if a field has been set.
func (o *InvoiceItemExternal) SetSubscriptionItemDescriptionNil(b bool)
SetSubscriptionItemDescriptionNil sets the value for SubscriptionItemDescription to be an explicit nil
func (o *InvoiceItemExternal) UnsetSubscriptionItemDescription()
UnsetSubscriptionItemDescription ensures that no value is present for SubscriptionItemDescription, not even an explicit nil
func (o *InvoiceItemExternal) GetSubscriptionItemId() string
GetSubscriptionItemId returns the SubscriptionItemId field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) GetSubscriptionItemIdOk() (*string, bool)
GetSubscriptionItemIdOk returns a tuple with the SubscriptionItemId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *InvoiceItemExternal) SetSubscriptionItemId(v string)
SetSubscriptionItemId sets SubscriptionItemId field to given value.
func (o *InvoiceItemExternal) HasSubscriptionItemId() bool
HasSubscriptionItemId returns a boolean if a field has been set.
func (o *InvoiceItemExternal) SetSubscriptionItemIdNil(b bool)
SetSubscriptionItemIdNil sets the value for SubscriptionItemId to be an explicit nil
func (o *InvoiceItemExternal) UnsetSubscriptionItemId()
UnsetSubscriptionItemId ensures that no value is present for SubscriptionItemId, not even an explicit nil
func (o *InvoiceItemExternal) GetUpdatedAt() time.Time
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
func (o *InvoiceItemExternal) 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 *InvoiceItemExternal) SetUpdatedAt(v time.Time)
SetUpdatedAt sets UpdatedAt field to given value.