Class: Moov::Models::Components::PaymentLinkPaymentDetails

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

Overview

Options for payment links used to collect payment.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(allowed_methods:, amount_range: nil, suggested_amounts: nil, card_details: nil, ach_details: nil, metadata: nil, amount_type: Models::Components::PaymentLinkPaymentDetailsAmountType::FIXED) ⇒ PaymentLinkPaymentDetails

Returns a new instance of PaymentLinkPaymentDetails.



31
32
33
34
35
36
37
38
39
# File 'lib/moov/models/components/paymentlinkpaymentdetails.rb', line 31

def initialize(allowed_methods:, amount_range: nil, suggested_amounts: nil, card_details: nil, ach_details: nil, metadata: nil, amount_type: Models::Components::PaymentLinkPaymentDetailsAmountType::FIXED)
  @allowed_methods = allowed_methods
  @amount_range = amount_range
  @suggested_amounts = suggested_amounts
  @card_details = card_details
  @ach_details = ach_details
  @metadata = 
  @amount_type = amount_type
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/moov/models/components/paymentlinkpaymentdetails.rb', line 42

def ==(other)
  return false unless other.is_a? self.class
  return false unless @allowed_methods == other.allowed_methods
  return false unless @amount_range == other.amount_range
  return false unless @suggested_amounts == other.suggested_amounts
  return false unless @card_details == other.card_details
  return false unless @ach_details == other.ach_details
  return false unless @metadata == other.
  return false unless @amount_type == other.amount_type
  true
end