Class: Moov::Models::Components::PaymentLinkPaymentDetailsUpdate
- Inherits:
-
Object
- Object
- Moov::Models::Components::PaymentLinkPaymentDetailsUpdate
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/paymentlinkpaymentdetailsupdate.rb
Overview
Options for payment links used to collect payment.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(allowed_methods: nil, amount_range: nil, suggested_amounts: nil, card_details: nil, ach_details: nil, metadata: nil, amount_type: Models::Components::PaymentLinkPaymentDetailsUpdateAmountType::FIXED) ⇒ PaymentLinkPaymentDetailsUpdate
constructor
A new instance of PaymentLinkPaymentDetailsUpdate.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(allowed_methods: nil, amount_range: nil, suggested_amounts: nil, card_details: nil, ach_details: nil, metadata: nil, amount_type: Models::Components::PaymentLinkPaymentDetailsUpdateAmountType::FIXED) ⇒ PaymentLinkPaymentDetailsUpdate
Returns a new instance of PaymentLinkPaymentDetailsUpdate.
31 32 33 34 35 36 37 38 39 |
# File 'lib/moov/models/components/paymentlinkpaymentdetailsupdate.rb', line 31 def initialize(allowed_methods: nil, amount_range: nil, suggested_amounts: nil, card_details: nil, ach_details: nil, metadata: nil, amount_type: Models::Components::PaymentLinkPaymentDetailsUpdateAmountType::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/paymentlinkpaymentdetailsupdate.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 |