Class: SolidusPaypalCommercePlatform::FetchMerchantCredentialsRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/solidus_paypal_commerce_platform/fetch_merchant_credentials_request.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

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

#headersObject

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

#pathObject

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

#verbObject

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