shedcloud-partner_api 0.2.0 → 0.2.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 +4 -4
- data/README.md +1 -1
- data/lib/shedcloud/partner_api/resources/site_events.rb +7 -0
- data/lib/shedcloud/partner_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef147c587026c0e669b48177eff919ed647ba9220351c2fcb233caa960f57d84
|
|
4
|
+
data.tar.gz: 14e6b2a150cf3604feb9523705bbba744af9515533cca38a204f7d3c26e0419a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b1adcf401a3a46f25bc75b750e884a59743ac7d721d071f8f92606a621a51c7f44a0095996b5ca4944222bc5eea8c354e8601142311a7865e5fe6184ada71829
|
|
7
|
+
data.tar.gz: 0fa3865cffaf2a7f55ac5829b4e2bea56d06e202cc18953b624694a3756fe0687e9b46c99543aa3dec5cb8789970b035e658eac7c61a1b292b6f7b31cd94e296
|
data/README.md
CHANGED
|
@@ -208,6 +208,6 @@ The Partner API is **additive-only within `/partner/v1`**. This gem is tagged wi
|
|
|
208
208
|
- Partner API reference: https://go.shedcloud.com/partner/reference
|
|
209
209
|
- Backend source of truth: `shedcloud-api-go/docs/PARTNER_API.md`
|
|
210
210
|
- TypeScript/JavaScript: [`@shedcloud/partner-api`](https://github.com/Corland-Partners-LLC/shedcloud-npm)
|
|
211
|
-
- Go: [`shedcloud-gomod/partnerapi`](https://github.com/Corland-Partners-LLC/shedcloud-gomod)
|
|
211
|
+
- Go: [`shedcloud-gomod/partnerapi`](https://pkg.go.dev/github.com/Corland-Partners-LLC/shedcloud-gomod/partnerapi)
|
|
212
212
|
- Python: [`shedcloud-partner-api`](https://github.com/Corland-Partners-LLC/shedcloud-pypi)
|
|
213
213
|
- PHP: [`shedcloud/partner-api`](https://github.com/Corland-Partners-LLC/shedcloud-php)
|
|
@@ -14,6 +14,13 @@ module ShedCloud
|
|
|
14
14
|
# POST /partner/v1/site-events (scope partner-api.site-events.write).
|
|
15
15
|
# Unlike most Partner API endpoints, the ingest body natively speaks
|
|
16
16
|
# snake_case on the wire (session_id, visitor_id, events[].event_type, ...).
|
|
17
|
+
#
|
|
18
|
+
# Forward the end shopper's context via top-level client_ip and
|
|
19
|
+
# client_user_agent — without them every event is stamped with your
|
|
20
|
+
# server's IP/UA and visitor geo is meaningless. Identity events may
|
|
21
|
+
# carry events[].customer (first_name/last_name/email/phone/zip),
|
|
22
|
+
# events[].delivery (address), and events[].payment
|
|
23
|
+
# (payment_type "RENT_TO_OWN"|"CASH", monthly_term, ...) snapshots.
|
|
17
24
|
def track(body, options: nil)
|
|
18
25
|
@http.request('POST', '/partner/v1/site-events', body: body, headers: option_headers(options)) || {}
|
|
19
26
|
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.2.
|
|
4
|
+
version: 0.2.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-
|
|
11
|
+
date: 2026-07-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|