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 +4 -4
- data/CHANGELOG.md +18 -0
- data/Gemfile.lock +1 -1
- 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/shipping_method.rb +21 -0
- data/lib/brightpearl/resources.rb +8 -0
- data/lib/brightpearl/version.rb +1 -1
- metadata +9 -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,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
|
@@ -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'
|
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
|
|
@@ -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
|