Class: Workarea::GlobalE::Merchant::Customer
- Inherits:
-
Object
- Object
- Workarea::GlobalE::Merchant::Customer
- Defined in:
- app/services/workarea/global_e/merchant/customer.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Customer
constructor
A new instance of Customer.
-
#is_end_customer_primary ⇒ Boolean
Indicates if end customer details are “swapped” with a paying (Global-e) customer’s details when submitting the order to the Merchant.
-
#send_confirmation ⇒ Boolean
Indicates if e-mail confirmation of the respective order’s status change needs to be sent to the paying customer (Global-e acts as a paying customer).
Constructor Details
#initialize(hash) ⇒ Customer
Returns a new instance of Customer.
7 8 9 |
# File 'app/services/workarea/global_e/merchant/customer.rb', line 7 def initialize(hash) @hash = hash end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
5 6 7 |
# File 'app/services/workarea/global_e/merchant/customer.rb', line 5 def hash @hash end |
Instance Method Details
#is_end_customer_primary ⇒ Boolean
Indicates if end customer details are “swapped” with a paying (Global-e) customer’s details when submitting the order to the Merchant. By default IsEndCustomerPrimary is FALSE which means that Primary customer denotes the paying (Global-e) customer and Secondary customer denotes the end customer who has placed the order with Global-e checkout
30 31 32 |
# File 'app/services/workarea/global_e/merchant/customer.rb', line 30 def is_end_customer_primary hash["IsEndCustomerPrimary"] end |
#send_confirmation ⇒ Boolean
Indicates if e-mail confirmation of the respective order’s status change needs to be sent to the paying customer (Global-e acts as a paying customer).
17 18 19 |
# File 'app/services/workarea/global_e/merchant/customer.rb', line 17 def send_confirmation hash["SendConfirmation"] end |