tango-api-client 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aaca119882836f7c7ce028b229ef0bab2e57766b388aaab5825a6e8a03b336c1
4
- data.tar.gz: c32dd9d3e4ae82a78731d7408ade3a22a08f69e9c39b558b51700ca141d9d80b
3
+ metadata.gz: 88450e3c1efb08e7e580777f396ba0204c799c2085f00c9fa0aaa3e8bb88ba3b
4
+ data.tar.gz: 3f293079d5ca3722ef14c6a25a605e86abfe3e69ca42618e7ee0ab94900c41e3
5
5
  SHA512:
6
- metadata.gz: 7ed6160b4286d4628a79d961581bc6165a01f9a4446255a65663e0ff27a5145138da42b958b04bba2209168a103c74df4f29d3bdc930a02bb6f74202578414cb
7
- data.tar.gz: b2a464703e63b4a5869a3c61f0d670aafb906b757c020a58abd62935dbaea23b1331be6d342830ca439dc9018fe0e990e477e4730a3c2a74451091c57943784d
6
+ metadata.gz: 58cf36892477434d0e0aad46e2e89dfe82cd87e450d6644693d2f710f4117670c9d995297c0a0589ba605dc479458123943911bd12491cfd308a3d9ed1b30d7f
7
+ data.tar.gz: 1d183742be3c3599f7df9e7fa5000e65f6f260ad99cd1e5bb77d8335ac2d862b75019bad430ee96d0efcdd459865056ebbc7791133d1a86b9891f9acc4d4e939
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  ## [Unreleased]
6
6
  - Nothing yet.
7
7
 
8
+ ## [0.1.2] - 2025-11-12
9
+ - Add Brand Categories resource: `get` method for `/brandCategories` endpoint
10
+
11
+ ## [0.1.1] - 2025-11-12
12
+ - (Version already published)
13
+
8
14
  ## [0.1.0] - 2025-11-07
9
15
  - Initial release
10
16
  - Basic and OAuth2 auth strategies
data/README.md CHANGED
@@ -122,6 +122,7 @@ client.orders.resend('ORDER-123', idempotency_key: idempotency)
122
122
  | Resource | Class | Methods (args) | HTTP / Path |
123
123
  |-----------|-----------------------------------|----------------------------------------------------------------------------------------|----------------------------------------------------|
124
124
  | Catalogs | `Tango::Api::Resources::Catalogs` | `get(params = {})` | GET `/catalogs` |
125
+ | Brand Categories | `Tango::Api::Resources::BrandCategories` | `get` | GET `/brandCategories` |
125
126
  | Orders | `Tango::Api::Resources::Orders` | `create(body)`, `get(order_id)`, `list(params = {})`, `resend(order_id)` | POST `/orders`; GET `/orders/{id}`; GET `/orders`; POST `/orders/{id}/resend` |
126
127
  | Accounts | `Tango::Api::Resources::Accounts` | `get(account_identifier)`, `list_for_customer(customer_identifier, params)`, `create(customer_identifier, body)`, `update_under_customer(customer_identifier, account_identifier, body)`, low balance alerts: `list_low_balance_alerts`, `set_low_balance_alert`, `get_low_balance_alert`, `update_low_balance_alert`, `delete_low_balance_alert` | GET `/accounts/{accountIdentifier}`; GET/POST/PATCH/DELETE under `/customers/{customerIdentifier}/accounts/...` |
127
128
  | Customers | `Tango::Api::Resources::Customers`| `list(params = {})`, `get(customer_identifier)`, `create(body)`, `accounts(customer_identifier, params)` | GET `/customers`; GET `/customers/{customerIdentifier}`; POST `/customers`; GET `/customers/{customerIdentifier}/accounts` |
@@ -3,7 +3,7 @@
3
3
  module Tango
4
4
  module Api
5
5
  class Client
6
- VERSION = "0.1.1"
6
+ VERSION = "0.1.2"
7
7
  end
8
8
  end
9
9
  end
@@ -19,6 +19,7 @@ require_relative "resources/customers"
19
19
  require_relative "resources/status"
20
20
  require_relative "resources/exchange_rates"
21
21
  require_relative "resources/choice_products"
22
+ require_relative "resources/brand_categories"
22
23
 
23
24
  module Tango
24
25
  module Api
@@ -78,6 +79,10 @@ module Tango
78
79
  Resources::ChoiceProducts.new(@conn)
79
80
  end
80
81
 
82
+ def brand_categories
83
+ Resources::BrandCategories.new(@conn)
84
+ end
85
+
81
86
  private
82
87
 
83
88
  def build_connection
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tango
4
+ module Api
5
+ module Resources
6
+ # Resource for Brand Categories endpoints.
7
+ class BrandCategories < Base
8
+ # GET /brandCategories
9
+ def get
10
+ get_json("brandCategories")
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -15,6 +15,7 @@ module Tango
15
15
  def status: Resources::Status
16
16
  def exchange_rates: Resources::ExchangeRates
17
17
  def choice_products: Resources::ChoiceProducts
18
+ def brand_categories: Resources::BrandCategories
18
19
  end
19
20
  end
20
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tango-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puneeth Kumar DN
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-11-12 00:00:00.000000000 Z
11
+ date: 2025-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -88,6 +88,7 @@ files:
88
88
  - lib/tango/api/errors.rb
89
89
  - lib/tango/api/resources/accounts.rb
90
90
  - lib/tango/api/resources/base.rb
91
+ - lib/tango/api/resources/brand_categories.rb
91
92
  - lib/tango/api/resources/catalogs.rb
92
93
  - lib/tango/api/resources/choice_products.rb
93
94
  - lib/tango/api/resources/customers.rb