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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ccc0d2eeeb7a1702d337ab33d2fbb8dea3223c39aefc94a9a5460930f808293
4
- data.tar.gz: 7f41dc18f595b8bfa410eda98c4f55ca377db74b28a7336469ca4660513d907c
3
+ metadata.gz: 7d8d5a1ddee326274b3bf70f1984a643b09a03d67b92f5a2ae000ca6a82e538d
4
+ data.tar.gz: 85113215243021df5e95cf03ec0a7b77c471c653ff88e5b2bb4d300b980554de
5
5
  SHA512:
6
- metadata.gz: e2311ef4c1c2be6041830d7512449d65b8d37804ff6d6b160f53c5b82afc66eba8cce0b188cd383e6416dae43b4458785ed725c746686405e21a2f2cba2f4b77
7
- data.tar.gz: 8ef1985d27314dad4a6e30c26e6b3e5e379aed5318114ebe20e2e883661c2ef5d555374853b3346aba8139904da5d6129a9db5f30220fcc0b9aba9aeeea021e0
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
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "checkout-intents", "~> 0.2.0"
20
+ gem "checkout-intents", "~> 0.2.1"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -277,15 +277,17 @@ module CheckoutIntents
277
277
  max_attempts: DEFAULT_MAX_ATTEMPTS,
278
278
  request_options: {}
279
279
  )
280
- intent = create(
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CheckoutIntents
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
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.0
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-12 00:00:00.000000000 Z
11
+ date: 2026-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi