Class: MuffinMan::Finances::V20240619
- Inherits:
-
SpApiClient
- Object
- SpApiClient
- MuffinMan::Finances::V20240619
- Defined in:
- lib/muffin_man/finances/v20240619.rb
Constant Summary
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
- #list_transactions(posted_after:, posted_before: nil, marketplace_id: nil, next_token: nil) ⇒ Object
Methods inherited from SpApiClient
Constructor Details
This class inherits a constructor from MuffinMan::SpApiClient
Instance Method Details
#list_transactions(posted_after:, posted_before: nil, marketplace_id: nil, next_token: nil) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/muffin_man/finances/v20240619.rb', line 6 def list_transactions(posted_after:, posted_before: nil, marketplace_id: nil, next_token: nil) @local_var_path = "/finances/2024-06-19/transactions" @query_params = { "postedAfter" => posted_after } @query_params["PostedBefore"] = posted_before unless posted_before.nil? @query_params["marketplaceId"] = marketplace_id unless marketplace_id.nil? @query_params["nextToken"] = next_token unless next_token.nil? @request_type = "GET" call_api end |