Class: BloomRemitClient::CreateTxnRequest
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- BloomRemitClient::CreateTxnRequest
- Defined in:
- lib/bloom_remit_client/requests/create_txn_request.rb
Constant Summary collapse
- BODY_ATTRIBUTES =
%i[ sender_first_name sender_last_name sender_email sender_mobile sender_address sender_city sender_state sender_zip_code sender_country sender_occupation recipient_first_name recipient_last_name recipient_mobile recipient_address recipient_city recipient_state recipient_zip_code recipient_country recipient_occupation recipient_relationship_to_sender dest_currency receivable_in_dest_currency payout_method purpose account_number account_name client_external_id ].freeze
Instance Method Summary collapse
Methods inherited from BaseRequest
Instance Method Details
#body ⇒ Object
70 71 72 73 74 75 76 |
# File 'lib/bloom_remit_client/requests/create_txn_request.rb', line 70 def body txn_values = BODY_ATTRIBUTES.each_with_object({}) do |attr, hash| hash[attr] = send(attr) end { txn: txn_values } end |
#default_action ⇒ Object
62 63 64 |
# File 'lib/bloom_remit_client/requests/create_txn_request.rb', line 62 def default_action :post end |
#path ⇒ Object
66 67 68 |
# File 'lib/bloom_remit_client/requests/create_txn_request.rb', line 66 def path "/api/v2/txns" end |