| Name | Type | Description | Notes |
|---|---|---|---|
| AddAtPeriodEnd | Pointer to bool | If the flag is set to True, item will be added when renewing the subscription at next billing cycle. | [optional] [default to false] |
| CustomFields | Pointer to map[string]interface{} | [optional] | |
| Description | Pointer to NullableString | [optional] | |
| PriceId | string | The ID of the price. | |
| ProrationBehavior | Pointer to ProrationEnum | Determines how to handle prorations when the billable items changes.In case of subscription is in trialing state, invoice items if any will be for amount_atom 0. | [optional] |
| Quantity | Pointer to int32 | The quantity you'd like to apply to the subscription item you're creating. | [optional] [default to 1] |
| SubscriptionId | string | The identifier of the subscription to modify |
func NewCreateSubscriptionItemRequest(priceId string, subscriptionId string, ) *CreateSubscriptionItemRequest
NewCreateSubscriptionItemRequest instantiates a new CreateSubscriptionItemRequest 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 NewCreateSubscriptionItemRequestWithDefaults() *CreateSubscriptionItemRequest
NewCreateSubscriptionItemRequestWithDefaults instantiates a new CreateSubscriptionItemRequest 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 *CreateSubscriptionItemRequest) GetAddAtPeriodEnd() bool
GetAddAtPeriodEnd returns the AddAtPeriodEnd field if non-nil, zero value otherwise.
func (o *CreateSubscriptionItemRequest) GetAddAtPeriodEndOk() (*bool, bool)
GetAddAtPeriodEndOk returns a tuple with the AddAtPeriodEnd field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionItemRequest) SetAddAtPeriodEnd(v bool)
SetAddAtPeriodEnd sets AddAtPeriodEnd field to given value.
func (o *CreateSubscriptionItemRequest) HasAddAtPeriodEnd() bool
HasAddAtPeriodEnd returns a boolean if a field has been set.
func (o *CreateSubscriptionItemRequest) GetCustomFields() map[string]interface{}
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
func (o *CreateSubscriptionItemRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)
GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionItemRequest) SetCustomFields(v map[string]interface{})
SetCustomFields sets CustomFields field to given value.
func (o *CreateSubscriptionItemRequest) HasCustomFields() bool
HasCustomFields returns a boolean if a field has been set.
func (o *CreateSubscriptionItemRequest) SetCustomFieldsNil(b bool)
SetCustomFieldsNil sets the value for CustomFields to be an explicit nil
func (o *CreateSubscriptionItemRequest) UnsetCustomFields()
UnsetCustomFields ensures that no value is present for CustomFields, not even an explicit nil
func (o *CreateSubscriptionItemRequest) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *CreateSubscriptionItemRequest) 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 *CreateSubscriptionItemRequest) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *CreateSubscriptionItemRequest) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *CreateSubscriptionItemRequest) SetDescriptionNil(b bool)
SetDescriptionNil sets the value for Description to be an explicit nil
func (o *CreateSubscriptionItemRequest) UnsetDescription()
UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *CreateSubscriptionItemRequest) GetPriceId() string
GetPriceId returns the PriceId field if non-nil, zero value otherwise.
func (o *CreateSubscriptionItemRequest) 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 *CreateSubscriptionItemRequest) SetPriceId(v string)
SetPriceId sets PriceId field to given value.
func (o *CreateSubscriptionItemRequest) GetProrationBehavior() ProrationEnum
GetProrationBehavior returns the ProrationBehavior field if non-nil, zero value otherwise.
func (o *CreateSubscriptionItemRequest) GetProrationBehaviorOk() (*ProrationEnum, bool)
GetProrationBehaviorOk returns a tuple with the ProrationBehavior field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionItemRequest) SetProrationBehavior(v ProrationEnum)
SetProrationBehavior sets ProrationBehavior field to given value.
func (o *CreateSubscriptionItemRequest) HasProrationBehavior() bool
HasProrationBehavior returns a boolean if a field has been set.
func (o *CreateSubscriptionItemRequest) GetQuantity() int32
GetQuantity returns the Quantity field if non-nil, zero value otherwise.
func (o *CreateSubscriptionItemRequest) 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 *CreateSubscriptionItemRequest) SetQuantity(v int32)
SetQuantity sets Quantity field to given value.
func (o *CreateSubscriptionItemRequest) HasQuantity() bool
HasQuantity returns a boolean if a field has been set.
func (o *CreateSubscriptionItemRequest) GetSubscriptionId() string
GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise.
func (o *CreateSubscriptionItemRequest) 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 *CreateSubscriptionItemRequest) SetSubscriptionId(v string)
SetSubscriptionId sets SubscriptionId field to given value.