Class: OpenApiSDK::Models::Operations::UpdateCustomerDiscount
- Inherits:
-
Object
- Object
- OpenApiSDK::Models::Operations::UpdateCustomerDiscount
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/open_api_sdk/models/operations/updatecustomer_discount.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, amount:, type:, max_duration: nil, coupon_id: nil, coupon_test_id: nil, description: nil, partners_count: nil) ⇒ UpdateCustomerDiscount
constructor
A new instance of UpdateCustomerDiscount.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, amount:, type:, max_duration: nil, coupon_id: nil, coupon_test_id: nil, description: nil, partners_count: nil) ⇒ UpdateCustomerDiscount
Returns a new instance of UpdateCustomerDiscount.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/open_api_sdk/models/operations/updatecustomer_discount.rb', line 33 def initialize(id:, amount:, type:, max_duration: nil, coupon_id: nil, coupon_test_id: nil, description: nil, partners_count: nil) @id = id @amount = amount @type = type @max_duration = max_duration @coupon_id = coupon_id @coupon_test_id = coupon_test_id @description = description @partners_count = partners_count end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/open_api_sdk/models/operations/updatecustomer_discount.rb', line 45 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @amount == other.amount return false unless @type == other.type return false unless @max_duration == other.max_duration return false unless @coupon_id == other.coupon_id return false unless @coupon_test_id == other.coupon_test_id return false unless @description == other.description return false unless @partners_count == other.partners_count true end |