Class: Retailer::CostcoCredentials::Config

Inherits:
Data
  • Object
show all
Defined in:
app/services/retailer/costco_credentials.rb

Overview

Resolved Costco catalog-API credentials for one region.

Instance Attribute Summary collapse

Instance Attribute Details

#client_idString (readonly)

Returns value for the clientId query parameter.

Returns:

  • (String)

    value for the clientId query parameter



30
# File 'app/services/retailer/costco_credentials.rb', line 30

Config = Data.define(:price_endpoint, :client_identifier, :client_id, :warehouse)

#client_identifierString (readonly)

Returns value for the Client-Identifier request header.

Returns:

  • (String)

    value for the Client-Identifier request header



30
# File 'app/services/retailer/costco_credentials.rb', line 30

Config = Data.define(:price_endpoint, :client_identifier, :client_id, :warehouse)

#price_endpointString (readonly)

Returns full URL of the display-price-lite endpoint.

Returns:

  • (String)

    full URL of the display-price-lite endpoint



30
# File 'app/services/retailer/costco_credentials.rb', line 30

Config = Data.define(:price_endpoint, :client_identifier, :client_id, :warehouse)

#warehouseString (readonly)

Returns warehouse number for the region (e.g. "894").

Returns:

  • (String)

    warehouse number for the region (e.g. "894")



30
# File 'app/services/retailer/costco_credentials.rb', line 30

Config = Data.define(:price_endpoint, :client_identifier, :client_id, :warehouse)