ruby-brightpearl 0.11.0 → 0.12.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 +8 -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/product_category.rb +21 -0
- data/lib/brightpearl/resources/product_type.rb +21 -0
- data/lib/brightpearl/resources/warehouse.rb +21 -0
- data/lib/brightpearl/resources.rb +10 -0
- data/lib/brightpearl/version.rb +1 -1
- metadata +6 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e872e28d8c8ed42ed2e30a141e6b37b709e857e11e506feefcd9ffba901398f
|
|
4
|
+
data.tar.gz: e73b1a317a93421b24fe84959d816edd0b5940243cd87a1f0e6fb56da9856c25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b9e8a6fca6d64b1d641b24dbcdef1ef942ea4ddb6c8aae150800a2db1dd945712540d4159615ce4eb97a69d47d5b20f3062fe785369886dea0064d0fca27be9c
|
|
7
|
+
data.tar.gz: 2bee8f31a03585425df7c4527a78f8a7e29850534c6437ec1da87a95e72bcd78fa216052e6249be45d3c06b70e30ac308559090820f063d72c05a1c8a8d6217f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.12.0] - 2026-06-02
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- New catalog resources `Brand`, `Channel`, `ProductCategory`, `ProductType`, and `Warehouse`
|
|
8
|
+
- Available operations: `GET`
|
|
9
|
+
- Supports fetching the full list (no argument) or a specific record by id-set
|
|
10
|
+
|
|
3
11
|
## [0.11.0] - 2026-05-08
|
|
4
12
|
|
|
5
13
|
### 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 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 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,11 @@
|
|
|
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'
|
|
6
7
|
|
|
8
|
+
# Orders
|
|
7
9
|
require 'brightpearl/resources/order'
|
|
8
10
|
require 'brightpearl/resources/order_row'
|
|
9
11
|
require 'brightpearl/resources/order_shipping_status'
|
|
@@ -14,12 +16,20 @@ require 'brightpearl/resources/order_custom_field_metadata'
|
|
|
14
16
|
|
|
15
17
|
require 'brightpearl/resources/goods_out_note'
|
|
16
18
|
|
|
19
|
+
# Products
|
|
17
20
|
require 'brightpearl/resources/product'
|
|
18
21
|
require 'brightpearl/resources/product_price'
|
|
19
22
|
require 'brightpearl/resources/price_list'
|
|
20
23
|
require 'brightpearl/resources/product_availability'
|
|
21
24
|
require 'brightpearl/resources/product_custom_field_metadata'
|
|
22
25
|
|
|
26
|
+
# Catalogs
|
|
27
|
+
require 'brightpearl/resources/brand'
|
|
28
|
+
require 'brightpearl/resources/channel'
|
|
29
|
+
require 'brightpearl/resources/product_category'
|
|
30
|
+
require 'brightpearl/resources/product_type'
|
|
31
|
+
require 'brightpearl/resources/warehouse'
|
|
32
|
+
|
|
23
33
|
# Integration
|
|
24
34
|
require 'brightpearl/resources/webhook'
|
|
25
35
|
|
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.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- vicvans20
|
|
@@ -152,6 +152,8 @@ 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
|
|
@@ -167,9 +169,12 @@ files:
|
|
|
167
169
|
- lib/brightpearl/resources/price_list.rb
|
|
168
170
|
- lib/brightpearl/resources/product.rb
|
|
169
171
|
- lib/brightpearl/resources/product_availability.rb
|
|
172
|
+
- lib/brightpearl/resources/product_category.rb
|
|
170
173
|
- lib/brightpearl/resources/product_custom_field_metadata.rb
|
|
171
174
|
- lib/brightpearl/resources/product_price.rb
|
|
175
|
+
- lib/brightpearl/resources/product_type.rb
|
|
172
176
|
- lib/brightpearl/resources/tax_code.rb
|
|
177
|
+
- lib/brightpearl/resources/warehouse.rb
|
|
173
178
|
- lib/brightpearl/resources/webhook.rb
|
|
174
179
|
- lib/brightpearl/version.rb
|
|
175
180
|
- playground.rb
|