Class: OpenApiSDK::Models::Operations::RequestBody3

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/open_api_sdk/models/operations/requestbody_3.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(type:, partner_id:, customer_id: nil, customer: nil, link_id: nil, sale_amount: nil, sale_event_date: nil, invoice_id: nil, product_id: nil, import_stripe_invoices: false) ⇒ RequestBody3

Returns a new instance of RequestBody3.



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/open_api_sdk/models/operations/requestbody_3.rb', line 37

def initialize(type:, partner_id:, customer_id: nil, customer: nil, link_id: nil, sale_amount: nil, sale_event_date: nil, invoice_id: nil, product_id: nil, import_stripe_invoices: false)
  @type = type
  @partner_id = partner_id
  @customer_id = customer_id
  @customer = customer
  @link_id = link_id
  @sale_amount = sale_amount
  @sale_event_date = sale_event_date
  @invoice_id = invoice_id
  @product_id = product_id
  @import_stripe_invoices = import_stripe_invoices
end

Instance Method Details

#==(other) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/open_api_sdk/models/operations/requestbody_3.rb', line 51

def ==(other)
  return false unless other.is_a? self.class
  return false unless @type == other.type
  return false unless @partner_id == other.partner_id
  return false unless @customer_id == other.customer_id
  return false unless @customer == other.customer
  return false unless @link_id == other.link_id
  return false unless @sale_amount == other.sale_amount
  return false unless @sale_event_date == other.sale_event_date
  return false unless @invoice_id == other.invoice_id
  return false unless @product_id == other.product_id
  return false unless @import_stripe_invoices == other.import_stripe_invoices
  true
end