Class: Moov::Models::Components::AppleBillingContact
- Inherits:
-
Object
- Object
- Moov::Models::Components::AppleBillingContact
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/applebillingcontact.rb
Overview
Billing contact information as returned from Apple Pay.
Refer to [Apple's documentation](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymentcontact)
for more information.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(address_lines: nil, locality: nil, postal_code: nil, administrative_area: nil, country_code: nil) ⇒ AppleBillingContact
constructor
A new instance of AppleBillingContact.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(address_lines: nil, locality: nil, postal_code: nil, administrative_area: nil, country_code: nil) ⇒ AppleBillingContact
Returns a new instance of AppleBillingContact.
31 32 33 34 35 36 37 |
# File 'lib/moov/models/components/applebillingcontact.rb', line 31 def initialize(address_lines: nil, locality: nil, postal_code: nil, administrative_area: nil, country_code: nil) @address_lines = address_lines @locality = locality @postal_code = postal_code @administrative_area = administrative_area @country_code = country_code end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'lib/moov/models/components/applebillingcontact.rb', line 40 def ==(other) return false unless other.is_a? self.class return false unless @address_lines == other.address_lines return false unless @locality == other.locality return false unless @postal_code == other.postal_code return false unless @administrative_area == other.administrative_area return false unless @country_code == other.country_code true end |