checkout-intents 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/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/checkout_intents/resources/checkout_intents.rb +7 -5
- data/lib/checkout_intents/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: 7d8d5a1ddee326274b3bf70f1984a643b09a03d67b92f5a2ae000ca6a82e538d
|
|
4
|
+
data.tar.gz: 85113215243021df5e95cf03ec0a7b77c471c653ff88e5b2bb4d300b980554de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7dc143a24721befccedb01f1c4449d02c23966b325bfbac050dda2fe238a1cf655472ba98216024d8e6bac18c78493f68e4145aef435675a46fbe7ee665c8914
|
|
7
|
+
data.tar.gz: a9f2fdfc3c4e44176ad6fa2fe41050c3919693ca31a0d75d90f3adccc8e49e3e5e8554ecde12295b3c91907d664427a5806f693dd14a5427ebd915b1daeb6f52
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1 (2026-01-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.2.0...v0.2.1](https://github.com/rye-com/checkout-intents-ruby/compare/v0.2.0...v0.2.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **api:** handle optional args ([8ef7d2b](https://github.com/rye-com/checkout-intents-ruby/commit/8ef7d2b96781b484a96a4c6c7cb8fff1c52f5a05))
|
|
10
|
+
|
|
3
11
|
## 0.2.0 (2026-01-12)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0...v0.2.0](https://github.com/rye-com/checkout-intents-ruby/compare/v0.1.0...v0.2.0)
|
data/README.md
CHANGED
|
@@ -277,15 +277,17 @@ module CheckoutIntents
|
|
|
277
277
|
max_attempts: DEFAULT_MAX_ATTEMPTS,
|
|
278
278
|
request_options: {}
|
|
279
279
|
)
|
|
280
|
-
|
|
280
|
+
create_params = {
|
|
281
281
|
buyer: buyer,
|
|
282
282
|
product_url: product_url,
|
|
283
283
|
quantity: quantity,
|
|
284
|
-
constraints: constraints,
|
|
285
|
-
promo_codes: promo_codes,
|
|
286
|
-
variant_selections: variant_selections,
|
|
287
284
|
request_options: request_options
|
|
288
|
-
|
|
285
|
+
}
|
|
286
|
+
create_params[:constraints] = constraints if constraints
|
|
287
|
+
create_params[:promo_codes] = promo_codes if promo_codes
|
|
288
|
+
create_params[:variant_selections] = variant_selections if variant_selections
|
|
289
|
+
|
|
290
|
+
intent = create(create_params)
|
|
289
291
|
poll_until_awaiting_confirmation(
|
|
290
292
|
intent.id,
|
|
291
293
|
poll_interval: poll_interval,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: checkout-intents
|
|
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
|
- Checkout Intents
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|