ruby-brightpearl 0.12.0 → 0.13.0

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: 4e872e28d8c8ed42ed2e30a141e6b37b709e857e11e506feefcd9ffba901398f
4
- data.tar.gz: e73b1a317a93421b24fe84959d816edd0b5940243cd87a1f0e6fb56da9856c25
3
+ metadata.gz: f3539fad8c430985c6ece72e77c2e2b3f78715015e623ecdbb980a364157d161
4
+ data.tar.gz: 894969f37205405866722f74a9dbf2102c5bd5897313c5ed3b7b20ae4410b417
5
5
  SHA512:
6
- metadata.gz: b9e8a6fca6d64b1d641b24dbcdef1ef942ea4ddb6c8aae150800a2db1dd945712540d4159615ce4eb97a69d47d5b20f3062fe785369886dea0064d0fca27be9c
7
- data.tar.gz: 2bee8f31a03585425df7c4527a78f8a7e29850534c6437ec1da87a95e72bcd78fa216052e6249be45d3c06b70e30ac308559090820f063d72c05a1c8a8d6217f
6
+ metadata.gz: 8eb7d4a26a60bac1c81ecc5e93bbe688858bece22a63ec8e37734d71941b1a3901fe37c94cfd78c7ecbef0385a9e6287e07fa9f3b0752bd44aac2d3775bdd84c
7
+ data.tar.gz: 6d01013171d2ad29cc3f94e84a7e41e2d2b182ca2a894db8e6d46f73d76383bfa51bbe93db24bf293f3df711ceeff4b8fb0d0e02ff1c8970413cad765b24359d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.13.0] - 2026-06-03
4
+
5
+ ### Added
6
+
7
+ - New contact reference resources `ContactTag`, `ContactGroup`, and `LeadSource`
8
+ - Available operations: `GET`
9
+ - Supports fetching the full list (no argument) or a specific record by id-set
10
+ - Note: `ContactTag` response is a Hash keyed by tag id, not an Array
11
+ - New order reference resources `OrderType` and `OrderStockStatus`
12
+ - Available operations: `GET`
13
+ - Supports fetching the full list (no argument) or a specific record by id-set
14
+ - New accounting reference resources `NominalCode` and `PaymentMethod`
15
+ - Available operations: `GET`
16
+ - Supports fetching the full list (no argument) or a specific record by id-set
17
+ - New warehouse reference resource `ShippingMethod`
18
+ - Available operations: `GET`
19
+ - Supports fetching the full list (no argument) or a specific record by id-set
20
+
3
21
  ## [0.12.0] - 2026-06-02
4
22
 
5
23
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-brightpearl (0.12.0)
4
+ ruby-brightpearl (0.13.0)
5
5
  httparty (~> 0.20)
6
6
 
7
7
  GEM
@@ -0,0 +1,21 @@
1
+ module Brightpearl
2
+ class ContactGroup < Resource
3
+ extend Brightpearl::APIOperations::Get
4
+ class << self
5
+ def resource_path
6
+ "contact-service/contact-group"
7
+ end
8
+
9
+ def get(id_set = nil)
10
+ if id_set
11
+ super
12
+ else
13
+ super(nil)
14
+ end
15
+ end
16
+
17
+ # https://api-docs.brightpearl.com/contact/contact-group/get.html
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Brightpearl
2
+ class ContactTag < Resource
3
+ extend Brightpearl::APIOperations::Get
4
+ class << self
5
+ def resource_path
6
+ "contact-service/tag"
7
+ end
8
+
9
+ def get(id_set = nil)
10
+ if id_set
11
+ super
12
+ else
13
+ super(nil)
14
+ end
15
+ end
16
+
17
+ # https://api-docs.brightpearl.com/contact/tag/get.html
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Brightpearl
2
+ class LeadSource < Resource
3
+ extend Brightpearl::APIOperations::Get
4
+ class << self
5
+ def resource_path
6
+ "contact-service/lead-source"
7
+ end
8
+
9
+ def get(id_set = nil)
10
+ if id_set
11
+ super
12
+ else
13
+ super(nil)
14
+ end
15
+ end
16
+
17
+ # https://api-docs.brightpearl.com/contact/lead-source/get.html
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Brightpearl
2
+ class NominalCode < Resource
3
+ extend Brightpearl::APIOperations::Get
4
+ class << self
5
+ def resource_path
6
+ "accounting-service/nominal-code"
7
+ end
8
+
9
+ def get(id_set = nil)
10
+ if id_set
11
+ super
12
+ else
13
+ super(nil)
14
+ end
15
+ end
16
+
17
+ # https://api-docs.brightpearl.com/accounting/nominal-code/get.html
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Brightpearl
2
+ class OrderStockStatus < Resource
3
+ extend Brightpearl::APIOperations::Get
4
+ class << self
5
+ def resource_path
6
+ "order-service/order-stock-status"
7
+ end
8
+
9
+ def get(id_set = nil)
10
+ if id_set
11
+ super
12
+ else
13
+ super(nil)
14
+ end
15
+ end
16
+
17
+ # https://api-docs.brightpearl.com/order/order-stock-status/get.html
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Brightpearl
2
+ class OrderType < Resource
3
+ extend Brightpearl::APIOperations::Get
4
+ class << self
5
+ def resource_path
6
+ "order-service/order-type"
7
+ end
8
+
9
+ def get(id_set = nil)
10
+ if id_set
11
+ super
12
+ else
13
+ super(nil)
14
+ end
15
+ end
16
+
17
+ # https://api-docs.brightpearl.com/order/order-type/get.html
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Brightpearl
2
+ class PaymentMethod < Resource
3
+ extend Brightpearl::APIOperations::Get
4
+ class << self
5
+ def resource_path
6
+ "accounting-service/payment-method"
7
+ end
8
+
9
+ def get(id_set = nil)
10
+ if id_set
11
+ super
12
+ else
13
+ super(nil)
14
+ end
15
+ end
16
+
17
+ # https://api-docs.brightpearl.com/accounting/payment-method/get.html
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ module Brightpearl
2
+ class ShippingMethod < Resource
3
+ extend Brightpearl::APIOperations::Get
4
+ class << self
5
+ def resource_path
6
+ "warehouse-service/shipping-method"
7
+ end
8
+
9
+ def get(id_set = nil)
10
+ if id_set
11
+ super
12
+ else
13
+ super(nil)
14
+ end
15
+ end
16
+
17
+ # https://api-docs.brightpearl.com/warehouse/shipping-method/get.html
18
+
19
+ end
20
+ end
21
+ end
@@ -4,6 +4,9 @@ require 'brightpearl/resource'
4
4
  require 'brightpearl/resources/contact'
5
5
  require 'brightpearl/resources/contact_custom_field'
6
6
  require 'brightpearl/resources/contact_custom_field_metadata'
7
+ require 'brightpearl/resources/contact_group'
8
+ require 'brightpearl/resources/contact_tag'
9
+ require 'brightpearl/resources/lead_source'
7
10
 
8
11
  # Orders
9
12
  require 'brightpearl/resources/order'
@@ -13,6 +16,8 @@ require 'brightpearl/resources/order_status'
13
16
  require 'brightpearl/resources/order_status_update'
14
17
  require 'brightpearl/resources/order_custom_field'
15
18
  require 'brightpearl/resources/order_custom_field_metadata'
19
+ require 'brightpearl/resources/order_stock_status'
20
+ require 'brightpearl/resources/order_type'
16
21
 
17
22
  require 'brightpearl/resources/goods_out_note'
18
23
 
@@ -29,6 +34,7 @@ require 'brightpearl/resources/channel'
29
34
  require 'brightpearl/resources/product_category'
30
35
  require 'brightpearl/resources/product_type'
31
36
  require 'brightpearl/resources/warehouse'
37
+ require 'brightpearl/resources/shipping_method'
32
38
 
33
39
  # Integration
34
40
  require 'brightpearl/resources/webhook'
@@ -36,3 +42,5 @@ require 'brightpearl/resources/webhook'
36
42
  # Accounting
37
43
  require 'brightpearl/resources/tax_code'
38
44
  require 'brightpearl/resources/customer_payment'
45
+ require 'brightpearl/resources/nominal_code'
46
+ require 'brightpearl/resources/payment_method'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Brightpearl
4
- VERSION = "0.12.0"
4
+ VERSION = "0.13.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-brightpearl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - vicvans20
@@ -157,8 +157,12 @@ files:
157
157
  - lib/brightpearl/resources/contact.rb
158
158
  - lib/brightpearl/resources/contact_custom_field.rb
159
159
  - lib/brightpearl/resources/contact_custom_field_metadata.rb
160
+ - lib/brightpearl/resources/contact_group.rb
161
+ - lib/brightpearl/resources/contact_tag.rb
160
162
  - lib/brightpearl/resources/customer_payment.rb
161
163
  - lib/brightpearl/resources/goods_out_note.rb
164
+ - lib/brightpearl/resources/lead_source.rb
165
+ - lib/brightpearl/resources/nominal_code.rb
162
166
  - lib/brightpearl/resources/order.rb
163
167
  - lib/brightpearl/resources/order_custom_field.rb
164
168
  - lib/brightpearl/resources/order_custom_field_metadata.rb
@@ -166,6 +170,9 @@ files:
166
170
  - lib/brightpearl/resources/order_shipping_status.rb
167
171
  - lib/brightpearl/resources/order_status.rb
168
172
  - lib/brightpearl/resources/order_status_update.rb
173
+ - lib/brightpearl/resources/order_stock_status.rb
174
+ - lib/brightpearl/resources/order_type.rb
175
+ - lib/brightpearl/resources/payment_method.rb
169
176
  - lib/brightpearl/resources/price_list.rb
170
177
  - lib/brightpearl/resources/product.rb
171
178
  - lib/brightpearl/resources/product_availability.rb
@@ -173,6 +180,7 @@ files:
173
180
  - lib/brightpearl/resources/product_custom_field_metadata.rb
174
181
  - lib/brightpearl/resources/product_price.rb
175
182
  - lib/brightpearl/resources/product_type.rb
183
+ - lib/brightpearl/resources/shipping_method.rb
176
184
  - lib/brightpearl/resources/tax_code.rb
177
185
  - lib/brightpearl/resources/warehouse.rb
178
186
  - lib/brightpearl/resources/webhook.rb