| Name | Type | Description | Notes |
|---|---|---|---|
| Coupon | CouponExternal | ||
| CouponId | string | ||
| CreatedAt | time.Time | DateTime at which the object was created, in 'ISO 8601' format. | |
| CustomerId | NullableString | ||
| EndDate | NullableTime | ||
| Id | string | ||
| InvoiceId | NullableString | ||
| InvoiceItemId | NullableString | ||
| IsDeleted | Pointer to bool | If true, indicates that this object has been deleted | [optional] [default to false] |
| Object | Pointer to ObjectName | [optional] | |
| PromotionCode | NullablePromotionCodeExternal | ||
| PromotionCodeId | NullableString | ||
| StartDate | time.Time | ||
| SubscriptionId | NullableString | ||
| UpdatedAt | time.Time | DateTime at which the object was updated, in 'ISO 8601' format. |
func NewDiscountExternal(coupon CouponExternal, couponId string, createdAt time.Time, customerId NullableString, endDate NullableTime, id string, invoiceId NullableString, invoiceItemId NullableString, promotionCode NullablePromotionCodeExternal, promotionCodeId NullableString, startDate time.Time, subscriptionId NullableString, updatedAt time.Time, ) *DiscountExternal
NewDiscountExternal instantiates a new DiscountExternal 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 NewDiscountExternalWithDefaults() *DiscountExternal
NewDiscountExternalWithDefaults instantiates a new DiscountExternal 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 *DiscountExternal) GetCoupon() CouponExternal
GetCoupon returns the Coupon field if non-nil, zero value otherwise.
func (o *DiscountExternal) GetCouponOk() (*CouponExternal, bool)
GetCouponOk returns a tuple with the Coupon field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountExternal) SetCoupon(v CouponExternal)
SetCoupon sets Coupon field to given value.
func (o *DiscountExternal) GetCouponId() string
GetCouponId returns the CouponId field if non-nil, zero value otherwise.
func (o *DiscountExternal) 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 *DiscountExternal) SetCouponId(v string)
SetCouponId sets CouponId field to given value.
func (o *DiscountExternal) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *DiscountExternal) 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 *DiscountExternal) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.
func (o *DiscountExternal) GetCustomerId() string
GetCustomerId returns the CustomerId field if non-nil, zero value otherwise.
func (o *DiscountExternal) 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 *DiscountExternal) SetCustomerId(v string)
SetCustomerId sets CustomerId field to given value.
func (o *DiscountExternal) SetCustomerIdNil(b bool)
SetCustomerIdNil sets the value for CustomerId to be an explicit nil
func (o *DiscountExternal) UnsetCustomerId()
UnsetCustomerId ensures that no value is present for CustomerId, not even an explicit nil
func (o *DiscountExternal) GetEndDate() time.Time
GetEndDate returns the EndDate field if non-nil, zero value otherwise.
func (o *DiscountExternal) GetEndDateOk() (*time.Time, bool)
GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountExternal) SetEndDate(v time.Time)
SetEndDate sets EndDate field to given value.
func (o *DiscountExternal) SetEndDateNil(b bool)
SetEndDateNil sets the value for EndDate to be an explicit nil
func (o *DiscountExternal) UnsetEndDate()
UnsetEndDate ensures that no value is present for EndDate, not even an explicit nil
func (o *DiscountExternal) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *DiscountExternal) 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 *DiscountExternal) SetId(v string)
SetId sets Id field to given value.
func (o *DiscountExternal) GetInvoiceId() string
GetInvoiceId returns the InvoiceId field if non-nil, zero value otherwise.
func (o *DiscountExternal) 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 *DiscountExternal) SetInvoiceId(v string)
SetInvoiceId sets InvoiceId field to given value.
func (o *DiscountExternal) SetInvoiceIdNil(b bool)
SetInvoiceIdNil sets the value for InvoiceId to be an explicit nil
func (o *DiscountExternal) UnsetInvoiceId()
UnsetInvoiceId ensures that no value is present for InvoiceId, not even an explicit nil
func (o *DiscountExternal) GetInvoiceItemId() string
GetInvoiceItemId returns the InvoiceItemId field if non-nil, zero value otherwise.
func (o *DiscountExternal) GetInvoiceItemIdOk() (*string, bool)
GetInvoiceItemIdOk returns a tuple with the InvoiceItemId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountExternal) SetInvoiceItemId(v string)
SetInvoiceItemId sets InvoiceItemId field to given value.
func (o *DiscountExternal) SetInvoiceItemIdNil(b bool)
SetInvoiceItemIdNil sets the value for InvoiceItemId to be an explicit nil
func (o *DiscountExternal) UnsetInvoiceItemId()
UnsetInvoiceItemId ensures that no value is present for InvoiceItemId, not even an explicit nil
func (o *DiscountExternal) GetIsDeleted() bool
GetIsDeleted returns the IsDeleted field if non-nil, zero value otherwise.
func (o *DiscountExternal) 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 *DiscountExternal) SetIsDeleted(v bool)
SetIsDeleted sets IsDeleted field to given value.
func (o *DiscountExternal) HasIsDeleted() bool
HasIsDeleted returns a boolean if a field has been set.
func (o *DiscountExternal) GetObject() ObjectName
GetObject returns the Object field if non-nil, zero value otherwise.
func (o *DiscountExternal) 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 *DiscountExternal) SetObject(v ObjectName)
SetObject sets Object field to given value.
func (o *DiscountExternal) HasObject() bool
HasObject returns a boolean if a field has been set.
func (o *DiscountExternal) GetPromotionCode() PromotionCodeExternal
GetPromotionCode returns the PromotionCode field if non-nil, zero value otherwise.
func (o *DiscountExternal) GetPromotionCodeOk() (*PromotionCodeExternal, 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 *DiscountExternal) SetPromotionCode(v PromotionCodeExternal)
SetPromotionCode sets PromotionCode field to given value.
func (o *DiscountExternal) SetPromotionCodeNil(b bool)
SetPromotionCodeNil sets the value for PromotionCode to be an explicit nil
func (o *DiscountExternal) UnsetPromotionCode()
UnsetPromotionCode ensures that no value is present for PromotionCode, not even an explicit nil
func (o *DiscountExternal) GetPromotionCodeId() string
GetPromotionCodeId returns the PromotionCodeId field if non-nil, zero value otherwise.
func (o *DiscountExternal) GetPromotionCodeIdOk() (*string, bool)
GetPromotionCodeIdOk returns a tuple with the PromotionCodeId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountExternal) SetPromotionCodeId(v string)
SetPromotionCodeId sets PromotionCodeId field to given value.
func (o *DiscountExternal) SetPromotionCodeIdNil(b bool)
SetPromotionCodeIdNil sets the value for PromotionCodeId to be an explicit nil
func (o *DiscountExternal) UnsetPromotionCodeId()
UnsetPromotionCodeId ensures that no value is present for PromotionCodeId, not even an explicit nil
func (o *DiscountExternal) GetStartDate() time.Time
GetStartDate returns the StartDate field if non-nil, zero value otherwise.
func (o *DiscountExternal) GetStartDateOk() (*time.Time, bool)
GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DiscountExternal) SetStartDate(v time.Time)
SetStartDate sets StartDate field to given value.
func (o *DiscountExternal) GetSubscriptionId() string
GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise.
func (o *DiscountExternal) 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 *DiscountExternal) SetSubscriptionId(v string)
SetSubscriptionId sets SubscriptionId field to given value.
func (o *DiscountExternal) SetSubscriptionIdNil(b bool)
SetSubscriptionIdNil sets the value for SubscriptionId to be an explicit nil
func (o *DiscountExternal) UnsetSubscriptionId()
UnsetSubscriptionId ensures that no value is present for SubscriptionId, not even an explicit nil
func (o *DiscountExternal) GetUpdatedAt() time.Time
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
func (o *DiscountExternal) 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 *DiscountExternal) SetUpdatedAt(v time.Time)
SetUpdatedAt sets UpdatedAt field to given value.