Class: Moov::Models::Components::PaymentLink

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/paymentlink.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(code:, mode:, status:, partner_account_id:, merchant_account_id:, merchant_payment_method_id:, link:, amount:, uses:, display:, customer:, created_on:, updated_on:, max_uses: nil, last_used_on: nil, expires_on: nil, payment: nil, payout: nil, disabled_on: nil) ⇒ PaymentLink

Returns a new instance of PaymentLink.



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/moov/models/components/paymentlink.rb', line 58

def initialize(code:, mode:, status:, partner_account_id:, merchant_account_id:, merchant_payment_method_id:, link:, amount:, uses:, display:, customer:, created_on:, updated_on:, max_uses: nil, last_used_on: nil, expires_on: nil, payment: nil, payout: nil, disabled_on: nil)
  @code = code
  @mode = mode
  @status = status
   = 
   = 
  @merchant_payment_method_id = merchant_payment_method_id
  @link = link
  @amount = amount
  @uses = uses
  @display = display
  @customer = customer
  @created_on = created_on
  @updated_on = updated_on
  @max_uses = max_uses
  @last_used_on = last_used_on
  @expires_on = expires_on
  @payment = payment
  @payout = payout
  @disabled_on = disabled_on
end

Instance Method Details

#==(other) ⇒ Object



81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/moov/models/components/paymentlink.rb', line 81

def ==(other)
  return false unless other.is_a? self.class
  return false unless @code == other.code
  return false unless @mode == other.mode
  return false unless @status == other.status
  return false unless  == other.
  return false unless  == other.
  return false unless @merchant_payment_method_id == other.merchant_payment_method_id
  return false unless @link == other.link
  return false unless @amount == other.amount
  return false unless @uses == other.uses
  return false unless @display == other.display
  return false unless @customer == other.customer
  return false unless @created_on == other.created_on
  return false unless @updated_on == other.updated_on
  return false unless @max_uses == other.max_uses
  return false unless @last_used_on == other.last_used_on
  return false unless @expires_on == other.expires_on
  return false unless @payment == other.payment
  return false unless @payout == other.payout
  return false unless @disabled_on == other.disabled_on
  true
end