ruby-brightpearl 0.11.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 +4 -4
- data/CHANGELOG.md +26 -0
- data/Gemfile.lock +1 -1
- data/lib/brightpearl/resources/brand.rb +21 -0
- data/lib/brightpearl/resources/channel.rb +21 -0
- data/lib/brightpearl/resources/contact_group.rb +21 -0
- data/lib/brightpearl/resources/contact_tag.rb +21 -0
- data/lib/brightpearl/resources/lead_source.rb +21 -0
- data/lib/brightpearl/resources/nominal_code.rb +21 -0
- data/lib/brightpearl/resources/order_stock_status.rb +21 -0
- data/lib/brightpearl/resources/order_type.rb +21 -0
- data/lib/brightpearl/resources/payment_method.rb +21 -0
- data/lib/brightpearl/resources/product_category.rb +21 -0
- data/lib/brightpearl/resources/product_type.rb +21 -0
- data/lib/brightpearl/resources/shipping_method.rb +21 -0
- data/lib/brightpearl/resources/warehouse.rb +21 -0
- data/lib/brightpearl/resources.rb +18 -0
- data/lib/brightpearl/version.rb +1 -1
- metadata +14 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f3539fad8c430985c6ece72e77c2e2b3f78715015e623ecdbb980a364157d161
|
|
4
|
+
data.tar.gz: 894969f37205405866722f74a9dbf2102c5bd5897313c5ed3b7b20ae4410b417
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8eb7d4a26a60bac1c81ecc5e93bbe688858bece22a63ec8e37734d71941b1a3901fe37c94cfd78c7ecbef0385a9e6287e07fa9f3b0752bd44aac2d3775bdd84c
|
|
7
|
+
data.tar.gz: 6d01013171d2ad29cc3f94e84a7e41e2d2b182ca2a894db8e6d46f73d76383bfa51bbe93db24bf293f3df711ceeff4b8fb0d0e02ff1c8970413cad765b24359d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
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
|
+
|
|
21
|
+
## [0.12.0] - 2026-06-02
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- New catalog resources `Brand`, `Channel`, `ProductCategory`, `ProductType`, and `Warehouse`
|
|
26
|
+
- Available operations: `GET`
|
|
27
|
+
- Supports fetching the full list (no argument) or a specific record by id-set
|
|
28
|
+
|
|
3
29
|
## [0.11.0] - 2026-05-08
|
|
4
30
|
|
|
5
31
|
### Added
|
data/Gemfile.lock
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module Brightpearl
|
|
2
|
+
class Brand < Resource
|
|
3
|
+
extend Brightpearl::APIOperations::Get
|
|
4
|
+
class << self
|
|
5
|
+
def resource_path
|
|
6
|
+
"product-service/brand"
|
|
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/product/brand/get.html
|
|
18
|
+
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module Brightpearl
|
|
2
|
+
class Channel < Resource
|
|
3
|
+
extend Brightpearl::APIOperations::Get
|
|
4
|
+
class << self
|
|
5
|
+
def resource_path
|
|
6
|
+
"product-service/channel"
|
|
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/product/sales-channel/get.html
|
|
18
|
+
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -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 ProductCategory < Resource
|
|
3
|
+
extend Brightpearl::APIOperations::Get
|
|
4
|
+
class << self
|
|
5
|
+
def resource_path
|
|
6
|
+
"product-service/brightpearl-category"
|
|
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/product/category/get.html
|
|
18
|
+
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module Brightpearl
|
|
2
|
+
class ProductType < Resource
|
|
3
|
+
extend Brightpearl::APIOperations::Get
|
|
4
|
+
class << self
|
|
5
|
+
def resource_path
|
|
6
|
+
"product-service/product-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/product/product-type/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
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module Brightpearl
|
|
2
|
+
class Warehouse < Resource
|
|
3
|
+
extend Brightpearl::APIOperations::Get
|
|
4
|
+
class << self
|
|
5
|
+
def resource_path
|
|
6
|
+
"warehouse-service/warehouse"
|
|
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/warehouse/get.html
|
|
18
|
+
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
require 'brightpearl/resource'
|
|
2
2
|
|
|
3
|
+
# Contacts
|
|
3
4
|
require 'brightpearl/resources/contact'
|
|
4
5
|
require 'brightpearl/resources/contact_custom_field'
|
|
5
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'
|
|
6
10
|
|
|
11
|
+
# Orders
|
|
7
12
|
require 'brightpearl/resources/order'
|
|
8
13
|
require 'brightpearl/resources/order_row'
|
|
9
14
|
require 'brightpearl/resources/order_shipping_status'
|
|
@@ -11,18 +16,31 @@ require 'brightpearl/resources/order_status'
|
|
|
11
16
|
require 'brightpearl/resources/order_status_update'
|
|
12
17
|
require 'brightpearl/resources/order_custom_field'
|
|
13
18
|
require 'brightpearl/resources/order_custom_field_metadata'
|
|
19
|
+
require 'brightpearl/resources/order_stock_status'
|
|
20
|
+
require 'brightpearl/resources/order_type'
|
|
14
21
|
|
|
15
22
|
require 'brightpearl/resources/goods_out_note'
|
|
16
23
|
|
|
24
|
+
# Products
|
|
17
25
|
require 'brightpearl/resources/product'
|
|
18
26
|
require 'brightpearl/resources/product_price'
|
|
19
27
|
require 'brightpearl/resources/price_list'
|
|
20
28
|
require 'brightpearl/resources/product_availability'
|
|
21
29
|
require 'brightpearl/resources/product_custom_field_metadata'
|
|
22
30
|
|
|
31
|
+
# Catalogs
|
|
32
|
+
require 'brightpearl/resources/brand'
|
|
33
|
+
require 'brightpearl/resources/channel'
|
|
34
|
+
require 'brightpearl/resources/product_category'
|
|
35
|
+
require 'brightpearl/resources/product_type'
|
|
36
|
+
require 'brightpearl/resources/warehouse'
|
|
37
|
+
require 'brightpearl/resources/shipping_method'
|
|
38
|
+
|
|
23
39
|
# Integration
|
|
24
40
|
require 'brightpearl/resources/webhook'
|
|
25
41
|
|
|
26
42
|
# Accounting
|
|
27
43
|
require 'brightpearl/resources/tax_code'
|
|
28
44
|
require 'brightpearl/resources/customer_payment'
|
|
45
|
+
require 'brightpearl/resources/nominal_code'
|
|
46
|
+
require 'brightpearl/resources/payment_method'
|
data/lib/brightpearl/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.13.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- vicvans20
|
|
@@ -152,11 +152,17 @@ files:
|
|
|
152
152
|
- lib/brightpearl/errors.rb
|
|
153
153
|
- lib/brightpearl/resource.rb
|
|
154
154
|
- lib/brightpearl/resources.rb
|
|
155
|
+
- lib/brightpearl/resources/brand.rb
|
|
156
|
+
- lib/brightpearl/resources/channel.rb
|
|
155
157
|
- lib/brightpearl/resources/contact.rb
|
|
156
158
|
- lib/brightpearl/resources/contact_custom_field.rb
|
|
157
159
|
- lib/brightpearl/resources/contact_custom_field_metadata.rb
|
|
160
|
+
- lib/brightpearl/resources/contact_group.rb
|
|
161
|
+
- lib/brightpearl/resources/contact_tag.rb
|
|
158
162
|
- lib/brightpearl/resources/customer_payment.rb
|
|
159
163
|
- lib/brightpearl/resources/goods_out_note.rb
|
|
164
|
+
- lib/brightpearl/resources/lead_source.rb
|
|
165
|
+
- lib/brightpearl/resources/nominal_code.rb
|
|
160
166
|
- lib/brightpearl/resources/order.rb
|
|
161
167
|
- lib/brightpearl/resources/order_custom_field.rb
|
|
162
168
|
- lib/brightpearl/resources/order_custom_field_metadata.rb
|
|
@@ -164,12 +170,19 @@ files:
|
|
|
164
170
|
- lib/brightpearl/resources/order_shipping_status.rb
|
|
165
171
|
- lib/brightpearl/resources/order_status.rb
|
|
166
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
|
|
167
176
|
- lib/brightpearl/resources/price_list.rb
|
|
168
177
|
- lib/brightpearl/resources/product.rb
|
|
169
178
|
- lib/brightpearl/resources/product_availability.rb
|
|
179
|
+
- lib/brightpearl/resources/product_category.rb
|
|
170
180
|
- lib/brightpearl/resources/product_custom_field_metadata.rb
|
|
171
181
|
- lib/brightpearl/resources/product_price.rb
|
|
182
|
+
- lib/brightpearl/resources/product_type.rb
|
|
183
|
+
- lib/brightpearl/resources/shipping_method.rb
|
|
172
184
|
- lib/brightpearl/resources/tax_code.rb
|
|
185
|
+
- lib/brightpearl/resources/warehouse.rb
|
|
173
186
|
- lib/brightpearl/resources/webhook.rb
|
|
174
187
|
- lib/brightpearl/version.rb
|
|
175
188
|
- playground.rb
|