shedcloud-partner_api 0.3.0 → 0.4.1

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: a78896e75288ba076d02b6c502db75bc6f645d70f01a84d71d56f2e49d4257c4
4
- data.tar.gz: ec94a587917290bf4b50a21ed6cdac8494c4b8787bba196d19f69f289a321a5b
3
+ metadata.gz: a35ecd123c5a4f2e99e75b0f67318257a426a409238e1bfcc120599d16438f9c
4
+ data.tar.gz: f0e9cc8a827267dce3eaa333754f3709b8b935c3c6040af4dc7b0aae06585039
5
5
  SHA512:
6
- metadata.gz: c751ed94096c4ee0e4b1d09da5343051e560c729dcba403cd13db15467baebe17a12a32ea24414264859613fc704434789827b3eeaf983503592c5765c636c71
7
- data.tar.gz: 8e6ce0647d26ab9dcce2c49f9dc45dcdf2f0c549637dbaeb28fc2689842d9edaf2d6daf06b258944761fa61e35ca904637676ef60ca6cc62ccbf71cb49526a51
6
+ metadata.gz: 7671de6a3469bdf76ae0c442dc5da5a64daa60ecb5688eb7ebf16d8b3d02be6c5244f1d0a6dab6b70263f2287af540ad7121f8566904b55d7574e76ee4e87fac
7
+ data.tar.gz: f106b480de7b1310820952496592b5e670e0bad99572a6dc379822f6412b519b99c6d15592b422efeb68addad0ef70b02f90d6c3fd23f194d12583d990c8d2cd
data/CHANGELOG.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # Changelog
2
2
 
3
- ## 0.3.0 — 2026-07-26
3
+ ## 0.4.1 — 2026-07-28
4
4
 
5
- - **Location sales budgets** `client.location_budgets.list/get/create/update`
6
- for `GET/POST/PUT /partner/v1/location-budgets` (scopes
7
- `partner-api.location-budgets.read` / `.write`).
8
- - Parity with `@shedcloud/partner-api` 0.7.0 and the `shedcloud-api-go` Partner
9
- API changelog entry (2026-07-25).
5
+ - **Lot-stock typed photo galleries.** `client.lot_stock.list` responses may
6
+ include `frontImages`, `backImages`, `leftImages`, `rightImages`,
7
+ `exteriorImages`, and `interiorImages` (public CDN URL arrays; empty when
8
+ none). Existing `images` and `heroImages` are unchanged. Hashes are passed
9
+ through as-is (no client-side transform).
10
+ - Parity with the `shedcloud-api-go` Partner API changelog entry (2026-07-28).
11
+
12
+ ## 0.4.0 — 2026-07-27
13
+
14
+ - **Orders: sale date + sold pricing.** Order GET/list responses may include
15
+ `saleDate` and `soldPricing`. List with `saleDateFrom` / `saleDateTo`.
16
+ PATCH body accepts `saleDate` (`nil` clears) and `soldPricing` (partial
17
+ hash; top-level `nil` clears every sold amount). Wire keys are camelCase in
18
+ the hashes this gem passes through.
19
+ - Parity with `@shedcloud/partner-api` 0.8.0 and the `shedcloud-api-go`
20
+ Partner API changelog entry (2026-07-27).
10
21
 
11
22
  ## Unreleased
12
23
 
@@ -24,6 +35,14 @@
24
35
  decision. Resolve the list per company rather than hard-coding the ten built-ins.
25
36
  - Parity with the `shedcloud-api-go` Partner API changelog entry (2026-07-25).
26
37
 
38
+ ## 0.3.0 — 2026-07-26
39
+
40
+ - **Location sales budgets** — `client.location_budgets.list/get/create/update`
41
+ for `GET/POST/PUT /partner/v1/location-budgets` (scopes
42
+ `partner-api.location-budgets.read` / `.write`).
43
+ - Parity with `@shedcloud/partner-api` 0.7.0 and the `shedcloud-api-go` Partner
44
+ API changelog entry (2026-07-25).
45
+
27
46
  ## 0.2.0 — 2026-07-19
28
47
 
29
48
  - **Site events** — `client.site_events.track`, `list`, and `each` for
data/README.md CHANGED
@@ -44,7 +44,12 @@ stock = client.lot_stock.list(
44
44
  )
45
45
 
46
46
  puts stock['total']
47
- puts stock['data'].first['title']
47
+ unit = stock['data'].first
48
+ puts unit['title']
49
+ # Typed public photo galleries (CDN URL arrays; empty when none):
50
+ # unit['heroImages'], unit['frontImages'], unit['backImages'],
51
+ # unit['leftImages'], unit['rightImages'], unit['exteriorImages'],
52
+ # unit['interiorImages']
48
53
  ```
49
54
 
50
55
  ### Sandbox
@@ -108,7 +113,12 @@ quote = client.quotes.create(
108
113
 
109
114
  client.orders.update(
110
115
  order['id'],
111
- { customerPhone: '555-0100' },
116
+ {
117
+ customerPhone: '555-0100'
118
+ # Optional Sold-by fields (camelCase on the wire):
119
+ # saleDate: '2026-07-15', # or nil to clear
120
+ # soldPricing: { total: 12_500 } # partial; nil clears all
121
+ },
112
122
  options: ShedCloud::PartnerApi::RequestOptions.with_if_match(order['version'])
113
123
  )
114
124
  ```
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ShedCloud
4
4
  module PartnerApi
5
- VERSION = '0.3.0'
5
+ VERSION = '0.4.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shedcloud-partner_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corland Partners LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-26 00:00:00.000000000 Z
11
+ date: 2026-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake