| Name | Type | Description | Notes |
|---|---|---|---|
| AttachToCheckoutAttemptId | Pointer to NullableString | [optional] | |
| CancelAtEnd | Pointer to bool | Boolean indicating whether this subscription should cancel at the end of the current period. | [optional] [default to false] |
| CheckoutPreferences | Pointer to NullableCheckoutPreferences | [optional] | |
| CollectionMethod | Pointer to CollectionMethodEnum | Invoices generated by this subscription can either be charged automatically or can be sent to customer for payment. The latter is not automatically charged. | [optional] |
| CouponId | Pointer to NullableString | [optional] | |
| CustomFields | Pointer to map[string]interface{} | [optional] | |
| CustomerId | string | Unique Identifier of the customer. | |
| Description | Pointer to NullableString | [optional] | |
| IsPreview | Pointer to bool | Whether the request is in preview mode (subscriptions won't actually be created) | [optional] [default to false] |
| NetD | Pointer to NullableInt32 | [optional] | |
| PaymentMethodId | Pointer to NullableString | [optional] | |
| PaymentRouteId | Pointer to NullableString | [optional] | |
| PromotionCode | Pointer to NullableString | [optional] | |
| SelectedProductPriceQuantity | []SelectedPriceQuantity | This object contains details of selected product' price and quantity. | |
| SkipInvoicePayment | Pointer to bool | Whether to skip invoice payment for this subscription. Setting this to true will leave the invoices open. | [optional] [default to false] |
| StartsAt | Pointer to NullableTime | [optional] | |
| SubscriptionItemDetails | Pointer to map[string]SubscriptionItemDetails | [optional] | |
| TotalAmountAtom | Pointer to NullableInt32 | [optional] | |
| TrialEnd | Pointer to NullableTime | [optional] | |
| TrialFromPrice | Pointer to bool | Indicates if a price's trial_period_days should be applied to the subscription. Setting trial_end per subscription is preferred, and this defaults to false. Setting this flag to true together with trial_end is not allowed. In case of subscription containing multiple prices and the trial period of them are not same, minimum of trial days will be used. | [optional] [default to true] |
| TrialPeriodDays | Pointer to NullableInt32 | [optional] |
func NewCreateSubscriptionRequest(customerId string, selectedProductPriceQuantity []SelectedPriceQuantity, ) *CreateSubscriptionRequest
NewCreateSubscriptionRequest instantiates a new CreateSubscriptionRequest 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 NewCreateSubscriptionRequestWithDefaults() *CreateSubscriptionRequest
NewCreateSubscriptionRequestWithDefaults instantiates a new CreateSubscriptionRequest 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 *CreateSubscriptionRequest) GetAttachToCheckoutAttemptId() string
GetAttachToCheckoutAttemptId returns the AttachToCheckoutAttemptId field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetAttachToCheckoutAttemptIdOk() (*string, bool)
GetAttachToCheckoutAttemptIdOk returns a tuple with the AttachToCheckoutAttemptId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetAttachToCheckoutAttemptId(v string)
SetAttachToCheckoutAttemptId sets AttachToCheckoutAttemptId field to given value.
func (o *CreateSubscriptionRequest) HasAttachToCheckoutAttemptId() bool
HasAttachToCheckoutAttemptId returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetAttachToCheckoutAttemptIdNil(b bool)
SetAttachToCheckoutAttemptIdNil sets the value for AttachToCheckoutAttemptId to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetAttachToCheckoutAttemptId()
UnsetAttachToCheckoutAttemptId ensures that no value is present for AttachToCheckoutAttemptId, not even an explicit nil
func (o *CreateSubscriptionRequest) GetCancelAtEnd() bool
GetCancelAtEnd returns the CancelAtEnd field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetCancelAtEndOk() (*bool, bool)
GetCancelAtEndOk returns a tuple with the CancelAtEnd field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetCancelAtEnd(v bool)
SetCancelAtEnd sets CancelAtEnd field to given value.
func (o *CreateSubscriptionRequest) HasCancelAtEnd() bool
HasCancelAtEnd returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) GetCheckoutPreferences() CheckoutPreferences
GetCheckoutPreferences returns the CheckoutPreferences field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetCheckoutPreferencesOk() (*CheckoutPreferences, bool)
GetCheckoutPreferencesOk returns a tuple with the CheckoutPreferences field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetCheckoutPreferences(v CheckoutPreferences)
SetCheckoutPreferences sets CheckoutPreferences field to given value.
func (o *CreateSubscriptionRequest) HasCheckoutPreferences() bool
HasCheckoutPreferences returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetCheckoutPreferencesNil(b bool)
SetCheckoutPreferencesNil sets the value for CheckoutPreferences to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetCheckoutPreferences()
UnsetCheckoutPreferences ensures that no value is present for CheckoutPreferences, not even an explicit nil
func (o *CreateSubscriptionRequest) GetCollectionMethod() CollectionMethodEnum
GetCollectionMethod returns the CollectionMethod field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetCollectionMethodOk() (*CollectionMethodEnum, bool)
GetCollectionMethodOk returns a tuple with the CollectionMethod field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetCollectionMethod(v CollectionMethodEnum)
SetCollectionMethod sets CollectionMethod field to given value.
func (o *CreateSubscriptionRequest) HasCollectionMethod() bool
HasCollectionMethod returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) GetCouponId() string
GetCouponId returns the CouponId field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetCouponIdOk() (*string, bool)
GetCouponIdOk returns a tuple with the CouponId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetCouponId(v string)
SetCouponId sets CouponId field to given value.
func (o *CreateSubscriptionRequest) HasCouponId() bool
HasCouponId returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetCouponIdNil(b bool)
SetCouponIdNil sets the value for CouponId to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetCouponId()
UnsetCouponId ensures that no value is present for CouponId, not even an explicit nil
func (o *CreateSubscriptionRequest) GetCustomFields() map[string]interface{}
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) 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 *CreateSubscriptionRequest) SetCustomFields(v map[string]interface{})
SetCustomFields sets CustomFields field to given value.
func (o *CreateSubscriptionRequest) HasCustomFields() bool
HasCustomFields returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetCustomFieldsNil(b bool)
SetCustomFieldsNil sets the value for CustomFields to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetCustomFields()
UnsetCustomFields ensures that no value is present for CustomFields, not even an explicit nil
func (o *CreateSubscriptionRequest) GetCustomerId() string
GetCustomerId returns the CustomerId field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) 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 *CreateSubscriptionRequest) SetCustomerId(v string)
SetCustomerId sets CustomerId field to given value.
func (o *CreateSubscriptionRequest) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) 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 *CreateSubscriptionRequest) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *CreateSubscriptionRequest) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetDescriptionNil(b bool)
SetDescriptionNil sets the value for Description to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetDescription()
UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *CreateSubscriptionRequest) GetIsPreview() bool
GetIsPreview returns the IsPreview field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetIsPreviewOk() (*bool, bool)
GetIsPreviewOk returns a tuple with the IsPreview field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetIsPreview(v bool)
SetIsPreview sets IsPreview field to given value.
func (o *CreateSubscriptionRequest) HasIsPreview() bool
HasIsPreview returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) GetNetD() int32
GetNetD returns the NetD field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetNetDOk() (*int32, bool)
GetNetDOk returns a tuple with the NetD field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetNetD(v int32)
SetNetD sets NetD field to given value.
func (o *CreateSubscriptionRequest) HasNetD() bool
HasNetD returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetNetDNil(b bool)
SetNetDNil sets the value for NetD to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetNetD()
UnsetNetD ensures that no value is present for NetD, not even an explicit nil
func (o *CreateSubscriptionRequest) GetPaymentMethodId() string
GetPaymentMethodId returns the PaymentMethodId field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetPaymentMethodIdOk() (*string, bool)
GetPaymentMethodIdOk returns a tuple with the PaymentMethodId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetPaymentMethodId(v string)
SetPaymentMethodId sets PaymentMethodId field to given value.
func (o *CreateSubscriptionRequest) HasPaymentMethodId() bool
HasPaymentMethodId returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetPaymentMethodIdNil(b bool)
SetPaymentMethodIdNil sets the value for PaymentMethodId to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetPaymentMethodId()
UnsetPaymentMethodId ensures that no value is present for PaymentMethodId, not even an explicit nil
func (o *CreateSubscriptionRequest) GetPaymentRouteId() string
GetPaymentRouteId returns the PaymentRouteId field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetPaymentRouteIdOk() (*string, bool)
GetPaymentRouteIdOk returns a tuple with the PaymentRouteId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetPaymentRouteId(v string)
SetPaymentRouteId sets PaymentRouteId field to given value.
func (o *CreateSubscriptionRequest) HasPaymentRouteId() bool
HasPaymentRouteId returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetPaymentRouteIdNil(b bool)
SetPaymentRouteIdNil sets the value for PaymentRouteId to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetPaymentRouteId()
UnsetPaymentRouteId ensures that no value is present for PaymentRouteId, not even an explicit nil
func (o *CreateSubscriptionRequest) GetPromotionCode() string
GetPromotionCode returns the PromotionCode field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetPromotionCodeOk() (*string, bool)
GetPromotionCodeOk returns a tuple with the PromotionCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetPromotionCode(v string)
SetPromotionCode sets PromotionCode field to given value.
func (o *CreateSubscriptionRequest) HasPromotionCode() bool
HasPromotionCode returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetPromotionCodeNil(b bool)
SetPromotionCodeNil sets the value for PromotionCode to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetPromotionCode()
UnsetPromotionCode ensures that no value is present for PromotionCode, not even an explicit nil
func (o *CreateSubscriptionRequest) GetSelectedProductPriceQuantity() []SelectedPriceQuantity
GetSelectedProductPriceQuantity returns the SelectedProductPriceQuantity field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetSelectedProductPriceQuantityOk() (*[]SelectedPriceQuantity, bool)
GetSelectedProductPriceQuantityOk returns a tuple with the SelectedProductPriceQuantity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetSelectedProductPriceQuantity(v []SelectedPriceQuantity)
SetSelectedProductPriceQuantity sets SelectedProductPriceQuantity field to given value.
func (o *CreateSubscriptionRequest) GetSkipInvoicePayment() bool
GetSkipInvoicePayment returns the SkipInvoicePayment field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetSkipInvoicePaymentOk() (*bool, bool)
GetSkipInvoicePaymentOk returns a tuple with the SkipInvoicePayment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetSkipInvoicePayment(v bool)
SetSkipInvoicePayment sets SkipInvoicePayment field to given value.
func (o *CreateSubscriptionRequest) HasSkipInvoicePayment() bool
HasSkipInvoicePayment returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) GetStartsAt() time.Time
GetStartsAt returns the StartsAt field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetStartsAtOk() (*time.Time, bool)
GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetStartsAt(v time.Time)
SetStartsAt sets StartsAt field to given value.
func (o *CreateSubscriptionRequest) HasStartsAt() bool
HasStartsAt returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetStartsAtNil(b bool)
SetStartsAtNil sets the value for StartsAt to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetStartsAt()
UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil
func (o *CreateSubscriptionRequest) GetSubscriptionItemDetails() map[string]SubscriptionItemDetails
GetSubscriptionItemDetails returns the SubscriptionItemDetails field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetSubscriptionItemDetailsOk() (*map[string]SubscriptionItemDetails, bool)
GetSubscriptionItemDetailsOk returns a tuple with the SubscriptionItemDetails field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetSubscriptionItemDetails(v map[string]SubscriptionItemDetails)
SetSubscriptionItemDetails sets SubscriptionItemDetails field to given value.
func (o *CreateSubscriptionRequest) HasSubscriptionItemDetails() bool
HasSubscriptionItemDetails returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetSubscriptionItemDetailsNil(b bool)
SetSubscriptionItemDetailsNil sets the value for SubscriptionItemDetails to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetSubscriptionItemDetails()
UnsetSubscriptionItemDetails ensures that no value is present for SubscriptionItemDetails, not even an explicit nil
func (o *CreateSubscriptionRequest) GetTotalAmountAtom() int32
GetTotalAmountAtom returns the TotalAmountAtom field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) 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 *CreateSubscriptionRequest) SetTotalAmountAtom(v int32)
SetTotalAmountAtom sets TotalAmountAtom field to given value.
func (o *CreateSubscriptionRequest) HasTotalAmountAtom() bool
HasTotalAmountAtom returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetTotalAmountAtomNil(b bool)
SetTotalAmountAtomNil sets the value for TotalAmountAtom to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetTotalAmountAtom()
UnsetTotalAmountAtom ensures that no value is present for TotalAmountAtom, not even an explicit nil
func (o *CreateSubscriptionRequest) GetTrialEnd() time.Time
GetTrialEnd returns the TrialEnd field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetTrialEndOk() (*time.Time, bool)
GetTrialEndOk returns a tuple with the TrialEnd field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetTrialEnd(v time.Time)
SetTrialEnd sets TrialEnd field to given value.
func (o *CreateSubscriptionRequest) HasTrialEnd() bool
HasTrialEnd returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetTrialEndNil(b bool)
SetTrialEndNil sets the value for TrialEnd to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetTrialEnd()
UnsetTrialEnd ensures that no value is present for TrialEnd, not even an explicit nil
func (o *CreateSubscriptionRequest) GetTrialFromPrice() bool
GetTrialFromPrice returns the TrialFromPrice field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetTrialFromPriceOk() (*bool, bool)
GetTrialFromPriceOk returns a tuple with the TrialFromPrice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetTrialFromPrice(v bool)
SetTrialFromPrice sets TrialFromPrice field to given value.
func (o *CreateSubscriptionRequest) HasTrialFromPrice() bool
HasTrialFromPrice returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) GetTrialPeriodDays() int32
GetTrialPeriodDays returns the TrialPeriodDays field if non-nil, zero value otherwise.
func (o *CreateSubscriptionRequest) GetTrialPeriodDaysOk() (*int32, bool)
GetTrialPeriodDaysOk returns a tuple with the TrialPeriodDays field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateSubscriptionRequest) SetTrialPeriodDays(v int32)
SetTrialPeriodDays sets TrialPeriodDays field to given value.
func (o *CreateSubscriptionRequest) HasTrialPeriodDays() bool
HasTrialPeriodDays returns a boolean if a field has been set.
func (o *CreateSubscriptionRequest) SetTrialPeriodDaysNil(b bool)
SetTrialPeriodDaysNil sets the value for TrialPeriodDays to be an explicit nil
func (o *CreateSubscriptionRequest) UnsetTrialPeriodDays()
UnsetTrialPeriodDays ensures that no value is present for TrialPeriodDays, not even an explicit nil