Class: SolidusPaypalCommercePlatform::FetchMerchantCredentialsRequest
- Inherits:
-
Object
- Object
- SolidusPaypalCommercePlatform::FetchMerchantCredentialsRequest
- Defined in:
- lib/solidus_paypal_commerce_platform/fetch_merchant_credentials_request.rb
Overview
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#path ⇒ Object
Returns the value of attribute path.
-
#verb ⇒ Object
Returns the value of attribute verb.
Instance Method Summary collapse
-
#initialize(partner_merchant_id:, access_token:) ⇒ FetchMerchantCredentialsRequest
constructor
A new instance of FetchMerchantCredentialsRequest.
Constructor Details
#initialize(partner_merchant_id:, access_token:) ⇒ FetchMerchantCredentialsRequest
Returns a new instance of FetchMerchantCredentialsRequest.
8 9 10 11 12 13 14 15 |
# File 'lib/solidus_paypal_commerce_platform/fetch_merchant_credentials_request.rb', line 8 def initialize(partner_merchant_id:, access_token:) @verb = "GET" @path = "/v1/customer/partners/#{partner_merchant_id}/merchant-integrations/credentials" @headers = { "Content-Type" => "application/json", "Authorization" => "Bearer #{access_token}" } end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
6 7 8 |
# File 'lib/solidus_paypal_commerce_platform/fetch_merchant_credentials_request.rb', line 6 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
6 7 8 |
# File 'lib/solidus_paypal_commerce_platform/fetch_merchant_credentials_request.rb', line 6 def headers @headers end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/solidus_paypal_commerce_platform/fetch_merchant_credentials_request.rb', line 6 def path @path end |
#verb ⇒ Object
Returns the value of attribute verb.
6 7 8 |
# File 'lib/solidus_paypal_commerce_platform/fetch_merchant_credentials_request.rb', line 6 def verb @verb end |