| Name | Type | Description | Notes |
|---|---|---|---|
| CheckoutPreferences | Pointer to NullableCheckoutPreferences | [optional] | |
| ClientReferenceId | Pointer to NullableString | [optional] | |
| CouponId | Pointer to NullableString | [optional] | |
| Currency | Pointer to NullableCurrencyEnum | [optional] | |
| CustomFields | Pointer to map[string]interface{} | [optional] | |
| CustomerEmail | Pointer to NullableString | [optional] | |
| CustomerId | Pointer to NullableString | [optional] | |
| Language | Pointer to NullableCustomerLanguage | [optional] | |
| LineItems | Pointer to []CreateCheckoutLineItem | The line items purchased by the customer. | [optional] |
| Mode | CheckoutMode | The mode of the Checkout Session. Possible values: payment (one-time payments), setup (collect payment info), subscription (recurring payments). | |
| ReturnUrl | Pointer to NullableString | [optional] | |
| SuccessUrl | Pointer to NullableString | [optional] | |
| TrialEnd | Pointer to NullableTime | [optional] | |
| TrialFromPrice | Pointer to NullableBool | [optional] | |
| TrialPeriodDays | Pointer to NullableInt32 | [optional] |
func NewCreateCheckoutSessionRequest(mode CheckoutMode, ) *CreateCheckoutSessionRequest
NewCreateCheckoutSessionRequest instantiates a new CreateCheckoutSessionRequest 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 NewCreateCheckoutSessionRequestWithDefaults() *CreateCheckoutSessionRequest
NewCreateCheckoutSessionRequestWithDefaults instantiates a new CreateCheckoutSessionRequest 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 *CreateCheckoutSessionRequest) GetCheckoutPreferences() CheckoutPreferences
GetCheckoutPreferences returns the CheckoutPreferences field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) 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 *CreateCheckoutSessionRequest) SetCheckoutPreferences(v CheckoutPreferences)
SetCheckoutPreferences sets CheckoutPreferences field to given value.
func (o *CreateCheckoutSessionRequest) HasCheckoutPreferences() bool
HasCheckoutPreferences returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetCheckoutPreferencesNil(b bool)
SetCheckoutPreferencesNil sets the value for CheckoutPreferences to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetCheckoutPreferences()
UnsetCheckoutPreferences ensures that no value is present for CheckoutPreferences, not even an explicit nil
func (o *CreateCheckoutSessionRequest) GetClientReferenceId() string
GetClientReferenceId returns the ClientReferenceId field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) GetClientReferenceIdOk() (*string, bool)
GetClientReferenceIdOk returns a tuple with the ClientReferenceId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionRequest) SetClientReferenceId(v string)
SetClientReferenceId sets ClientReferenceId field to given value.
func (o *CreateCheckoutSessionRequest) HasClientReferenceId() bool
HasClientReferenceId returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetClientReferenceIdNil(b bool)
SetClientReferenceIdNil sets the value for ClientReferenceId to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetClientReferenceId()
UnsetClientReferenceId ensures that no value is present for ClientReferenceId, not even an explicit nil
func (o *CreateCheckoutSessionRequest) GetCouponId() string
GetCouponId returns the CouponId field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) 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 *CreateCheckoutSessionRequest) SetCouponId(v string)
SetCouponId sets CouponId field to given value.
func (o *CreateCheckoutSessionRequest) HasCouponId() bool
HasCouponId returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetCouponIdNil(b bool)
SetCouponIdNil sets the value for CouponId to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetCouponId()
UnsetCouponId ensures that no value is present for CouponId, not even an explicit nil
func (o *CreateCheckoutSessionRequest) GetCurrency() CurrencyEnum
GetCurrency returns the Currency field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) 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 *CreateCheckoutSessionRequest) SetCurrency(v CurrencyEnum)
SetCurrency sets Currency field to given value.
func (o *CreateCheckoutSessionRequest) HasCurrency() bool
HasCurrency returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetCurrencyNil(b bool)
SetCurrencyNil sets the value for Currency to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetCurrency()
UnsetCurrency ensures that no value is present for Currency, not even an explicit nil
func (o *CreateCheckoutSessionRequest) GetCustomFields() map[string]interface{}
GetCustomFields returns the CustomFields field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) 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 *CreateCheckoutSessionRequest) SetCustomFields(v map[string]interface{})
SetCustomFields sets CustomFields field to given value.
func (o *CreateCheckoutSessionRequest) HasCustomFields() bool
HasCustomFields returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetCustomFieldsNil(b bool)
SetCustomFieldsNil sets the value for CustomFields to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetCustomFields()
UnsetCustomFields ensures that no value is present for CustomFields, not even an explicit nil
func (o *CreateCheckoutSessionRequest) GetCustomerEmail() string
GetCustomerEmail returns the CustomerEmail field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) GetCustomerEmailOk() (*string, bool)
GetCustomerEmailOk returns a tuple with the CustomerEmail field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionRequest) SetCustomerEmail(v string)
SetCustomerEmail sets CustomerEmail field to given value.
func (o *CreateCheckoutSessionRequest) HasCustomerEmail() bool
HasCustomerEmail returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetCustomerEmailNil(b bool)
SetCustomerEmailNil sets the value for CustomerEmail to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetCustomerEmail()
UnsetCustomerEmail ensures that no value is present for CustomerEmail, not even an explicit nil
func (o *CreateCheckoutSessionRequest) GetCustomerId() string
GetCustomerId returns the CustomerId field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) 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 *CreateCheckoutSessionRequest) SetCustomerId(v string)
SetCustomerId sets CustomerId field to given value.
func (o *CreateCheckoutSessionRequest) HasCustomerId() bool
HasCustomerId returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetCustomerIdNil(b bool)
SetCustomerIdNil sets the value for CustomerId to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetCustomerId()
UnsetCustomerId ensures that no value is present for CustomerId, not even an explicit nil
func (o *CreateCheckoutSessionRequest) GetLanguage() CustomerLanguage
GetLanguage returns the Language field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) GetLanguageOk() (*CustomerLanguage, bool)
GetLanguageOk returns a tuple with the Language field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionRequest) SetLanguage(v CustomerLanguage)
SetLanguage sets Language field to given value.
func (o *CreateCheckoutSessionRequest) HasLanguage() bool
HasLanguage returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetLanguageNil(b bool)
SetLanguageNil sets the value for Language to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetLanguage()
UnsetLanguage ensures that no value is present for Language, not even an explicit nil
func (o *CreateCheckoutSessionRequest) GetLineItems() []CreateCheckoutLineItem
GetLineItems returns the LineItems field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) GetLineItemsOk() (*[]CreateCheckoutLineItem, bool)
GetLineItemsOk returns a tuple with the LineItems field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionRequest) SetLineItems(v []CreateCheckoutLineItem)
SetLineItems sets LineItems field to given value.
func (o *CreateCheckoutSessionRequest) HasLineItems() bool
HasLineItems returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) GetMode() CheckoutMode
GetMode returns the Mode field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) GetModeOk() (*CheckoutMode, bool)
GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionRequest) SetMode(v CheckoutMode)
SetMode sets Mode field to given value.
func (o *CreateCheckoutSessionRequest) GetReturnUrl() string
GetReturnUrl returns the ReturnUrl field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) GetReturnUrlOk() (*string, bool)
GetReturnUrlOk returns a tuple with the ReturnUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionRequest) SetReturnUrl(v string)
SetReturnUrl sets ReturnUrl field to given value.
func (o *CreateCheckoutSessionRequest) HasReturnUrl() bool
HasReturnUrl returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetReturnUrlNil(b bool)
SetReturnUrlNil sets the value for ReturnUrl to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetReturnUrl()
UnsetReturnUrl ensures that no value is present for ReturnUrl, not even an explicit nil
func (o *CreateCheckoutSessionRequest) GetSuccessUrl() string
GetSuccessUrl returns the SuccessUrl field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) GetSuccessUrlOk() (*string, bool)
GetSuccessUrlOk returns a tuple with the SuccessUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionRequest) SetSuccessUrl(v string)
SetSuccessUrl sets SuccessUrl field to given value.
func (o *CreateCheckoutSessionRequest) HasSuccessUrl() bool
HasSuccessUrl returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetSuccessUrlNil(b bool)
SetSuccessUrlNil sets the value for SuccessUrl to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetSuccessUrl()
UnsetSuccessUrl ensures that no value is present for SuccessUrl, not even an explicit nil
func (o *CreateCheckoutSessionRequest) GetTrialEnd() time.Time
GetTrialEnd returns the TrialEnd field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) 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 *CreateCheckoutSessionRequest) SetTrialEnd(v time.Time)
SetTrialEnd sets TrialEnd field to given value.
func (o *CreateCheckoutSessionRequest) HasTrialEnd() bool
HasTrialEnd returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetTrialEndNil(b bool)
SetTrialEndNil sets the value for TrialEnd to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetTrialEnd()
UnsetTrialEnd ensures that no value is present for TrialEnd, not even an explicit nil
func (o *CreateCheckoutSessionRequest) GetTrialFromPrice() bool
GetTrialFromPrice returns the TrialFromPrice field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) 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 *CreateCheckoutSessionRequest) SetTrialFromPrice(v bool)
SetTrialFromPrice sets TrialFromPrice field to given value.
func (o *CreateCheckoutSessionRequest) HasTrialFromPrice() bool
HasTrialFromPrice returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetTrialFromPriceNil(b bool)
SetTrialFromPriceNil sets the value for TrialFromPrice to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetTrialFromPrice()
UnsetTrialFromPrice ensures that no value is present for TrialFromPrice, not even an explicit nil
func (o *CreateCheckoutSessionRequest) GetTrialPeriodDays() int32
GetTrialPeriodDays returns the TrialPeriodDays field if non-nil, zero value otherwise.
func (o *CreateCheckoutSessionRequest) 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 *CreateCheckoutSessionRequest) SetTrialPeriodDays(v int32)
SetTrialPeriodDays sets TrialPeriodDays field to given value.
func (o *CreateCheckoutSessionRequest) HasTrialPeriodDays() bool
HasTrialPeriodDays returns a boolean if a field has been set.
func (o *CreateCheckoutSessionRequest) SetTrialPeriodDaysNil(b bool)
SetTrialPeriodDaysNil sets the value for TrialPeriodDays to be an explicit nil
func (o *CreateCheckoutSessionRequest) UnsetTrialPeriodDays()
UnsetTrialPeriodDays ensures that no value is present for TrialPeriodDays, not even an explicit nil