Class: PayPal::ExpressCheckout::Response::Address
- Defined in:
- lib/paypal/express_checkout/response/address.rb
Constant Summary
Constants included from Fields
Fields::ASSOCIATIONS, Fields::ATTRIBUTES
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#confirmed? ⇒ Boolean
mapping( :confirmation => :CONFIRMATIONCODE, :street_match => :STREETMATCH, :zip_match => :ZIPMATCH, :country => :COUNTRYCODE :token => :TOKEN, ).
- #street_matched? ⇒ Boolean
- #zip_matched? ⇒ Boolean
Methods inherited from Base
#build_association, #build_billings, #build_fmfs, #build_payment_items, #build_payments, #build_shipping_options, #build_values, #errors, #initialize, #params, #success?, #valid?
Methods included from Utils
Methods included from Fields
#field_map, #group_collect, #group_fields, #has_fields?, #has_many?, included, #inverted_field_map
Constructor Details
This class inherits a constructor from PayPal::ExpressCheckout::Response::Base
Instance Method Details
#confirmed? ⇒ Boolean
mapping(
:confirmation => :CONFIRMATIONCODE,
:street_match => :STREETMATCH,
:zip_match => :ZIPMATCH,
:country => :COUNTRYCODE
:token => :TOKEN,
)
15 16 17 |
# File 'lib/paypal/express_checkout/response/address.rb', line 15 def confirmed? confirmation == 'Confirmed' end |
#street_matched? ⇒ Boolean
19 20 21 |
# File 'lib/paypal/express_checkout/response/address.rb', line 19 def street_matched? street_match == 'Matched' end |
#zip_matched? ⇒ Boolean
23 24 25 |
# File 'lib/paypal/express_checkout/response/address.rb', line 23 def zip_matched? zip_match == 'Matched' end |