Class: MuffinMan::FbaInventory::V1
- Inherits:
-
SpApiClient
- Object
- SpApiClient
- MuffinMan::FbaInventory::V1
- Defined in:
- lib/muffin_man/fba_inventory/v1.rb
Constant Summary collapse
- GET_INVENTORY_SUMMARIES_PARAMS =
%w[ details granularityType granularityId startDateTime sellerSkus nextToken marketplaceIds ].freeze
Constants inherited from SpApiClient
SpApiClient::ACCESS_TOKEN_URL, SpApiClient::AWS_REGION_MAP, SpApiClient::SERVICE_NAME, SpApiClient::UNPROCESSABLE_ENTITY_STATUS_CODE
Instance Attribute Summary
Attributes inherited from SpApiClient
#access_token_cache_key, #aws_access_key_id, #aws_secret_access_key, #client_id, #client_secret, #config, #credentials, #local_var_path, #pii_data_elements, #query_params, #refresh_token, #region, #request_body, #request_type, #sandbox, #scope, #sts_iam_role_arn
Instance Method Summary collapse
-
#get_inventory_summaries(params) ⇒ Object
NOTE: when passing nextToken, if the original request had a startDateTime, that must be included in subsequent requests.
Methods inherited from SpApiClient
Constructor Details
This class inherits a constructor from MuffinMan::SpApiClient
Instance Method Details
#get_inventory_summaries(params) ⇒ Object
NOTE: when passing nextToken, if the original request had a startDateTime, that must be included in subsequent requests.
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/muffin_man/fba_inventory/v1.rb', line 17 def get_inventory_summaries(params) if sandbox params['granularityType'] = 'Marketplace' params['granularityId'] = 'ATVPDKIKX0DER' params['marketplaceIds'] = 'ATVPDKIKX0DER' end @local_var_path = "/fba/inventory/v1/summaries" @query_params = params.slice(*GET_INVENTORY_SUMMARIES_PARAMS) @request_type = "GET" call_api end |