Skip to content

Latest commit

 

History

History
77 lines (42 loc) · 2.63 KB

CreateSubscriptionRequest.md

File metadata and controls

77 lines (42 loc) · 2.63 KB

CreateSubscriptionRequest

Properties

Name Type Description Notes
Product string Product id
PromotionCode Pointer to string Promotion Codes is a Billing and Checkout feature which enables you to generate customer facing codes which can be redeemed to apply a coupon to an order. Promotion Codes have advanced validation features which allow you to specify when and on what orders the codes can be redeemed. [optional]

Methods

NewCreateSubscriptionRequest

func NewCreateSubscriptionRequest(product string, ) *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

NewCreateSubscriptionRequestWithDefaults

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

GetProduct

func (o *CreateSubscriptionRequest) GetProduct() string

GetProduct returns the Product field if non-nil, zero value otherwise.

GetProductOk

func (o *CreateSubscriptionRequest) GetProductOk() (*string, bool)

GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProduct

func (o *CreateSubscriptionRequest) SetProduct(v string)

SetProduct sets Product field to given value.

GetPromotionCode

func (o *CreateSubscriptionRequest) GetPromotionCode() string

GetPromotionCode returns the PromotionCode field if non-nil, zero value otherwise.

GetPromotionCodeOk

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.

SetPromotionCode

func (o *CreateSubscriptionRequest) SetPromotionCode(v string)

SetPromotionCode sets PromotionCode field to given value.

HasPromotionCode

func (o *CreateSubscriptionRequest) HasPromotionCode() bool

HasPromotionCode returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]