digiwin_dsp 0.4.1 → 0.4.2

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: 3c97b2b31a4aef72b75b7597df9577f3107963906fc673f8b95edc40bd4102e8
4
- data.tar.gz: 323356c76f98fb9e443e23317f4fba1a40e2029507de73d84f6c017cf26658d8
3
+ metadata.gz: 7ea76bd5a8bb2c25914e0f9bd6c40ff1fdf5ac6c6c0e83b6652b9a4c20f26a33
4
+ data.tar.gz: bca70e0fd5ba6f33831f2aaf4cf61aa29987a241d958dadd20539a34490bbf53
5
5
  SHA512:
6
- metadata.gz: d4016d3746fa67d7ee637b7f6bd49b7a7f639e731adf0846277b276cd22efeb3595d909d9c2ff802c2e6ce7b5ffec05b35f5a08ed8b0e5971209cbd3f9f5c344
7
- data.tar.gz: 6c507083e6ac8225ccfa6d3f80cc5cd876bb3b4378fc1f4d3f9078fe5299e523b03fa21323e62e4da1b86cf1647b801440647da334d5c1ae6569060644613508
6
+ metadata.gz: dc0e854bc169fda091248b0048c9cf79ab0cad639b0cd431dfce867d3f9eaeaab737bad0f8103975bf9311efe99cd737b9bb05d65019cabfcb27ac8d77d1da7f
7
+ data.tar.gz: 619d56aa98ec48df0055bad21448618a244b8e29623429a07adaa8ca236229d7501ade6f978c69d7df3a495de1d5be6b5d6951e25f3ba050a18a9f6c4826176e
data/CHANGELOG.md CHANGED
@@ -6,6 +6,13 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.4.2] - 2026-06-18
10
+
11
+ ### Added
12
+
13
+ - **`Enums::TaxType`** — `TAXABLE` (`"1"` 應稅) / `TAX_FREE` (`"2"` 免稅), with a frozen `ALL`. The enum is documented only on the order endpoint (DSPOOFFICIAL001); the `tax_type` field on the return/invoice endpoints is assumed to share these values but isn't enumerated in their specs. `docs/dsp-api-spec.md` gains the matching table.
14
+ - **`Enums::ShippingType::FACE_TO_FACE_PICKUP`** (`"9109"` 面交自取) — synced from DSPOOFFICIAL001 rev 5 (2026/06/18), which newly documented this code alongside the pay_type 9115–9130 codes already shipped in 0.4.1. `ShippingType::ALL` grows from 9 to 10 entries; the spec mirror and `docs/dsp-api-spec.md` are updated.
15
+
9
16
  ## [0.4.1] - 2026-06-13
10
17
 
11
18
  ### Added
@@ -257,7 +264,8 @@ Initial release. Covers the four Self-hosted Website Module (自有官網模組)
257
264
  - The gem is **synchronous on purpose**. Callers wrap requests in their own background job runner (e.g. ActiveJob) when needed.
258
265
  - Idempotency: clients can send `X-Idempotency-Key` via the `idempotency_key:` kwarg. DSP also dedupes server-side by `form_no + platform_id`.
259
266
 
260
- [Unreleased]: https://github.com/7a6163/digiwin_dsp/compare/v0.4.1...HEAD
267
+ [Unreleased]: https://github.com/7a6163/digiwin_dsp/compare/v0.4.2...HEAD
268
+ [0.4.2]: https://github.com/7a6163/digiwin_dsp/compare/v0.4.1...v0.4.2
261
269
  [0.4.1]: https://github.com/7a6163/digiwin_dsp/compare/v0.4.0...v0.4.1
262
270
  [0.4.0]: https://github.com/7a6163/digiwin_dsp/compare/v0.3.1...v0.4.0
263
271
  [0.3.1]: https://github.com/7a6163/digiwin_dsp/compare/v0.3.0...v0.3.1
@@ -62,21 +62,34 @@ module DigiwinDsp
62
62
  PLUS_PAY, ALIPAY, TAISHIN_PAY, COD_CREDIT_CARD].freeze
63
63
  end
64
64
 
65
- # request_detail.shipping_type on Resources::Order (DSPOOFFICIAL001:186-200).
65
+ # request_detail.shipping_type on Resources::Order (DSPOOFFICIAL001:199-214).
66
66
  module ShippingType
67
- OTHER = "9100" # 其他取貨方式
68
- INTERNATIONAL = "9101" # 海外宅配
69
- HOME_DELIVERY_COD = "9102" # 宅配貨到付款
70
- STORE_PICKUP_PAID = "9103" # 付款後門市自取
71
- HOME_DELIVERY_PAID = "9104" # 宅配(含離島)已付款只取貨
72
- CVS_PICKUP_PAID = "9105" # 付款後超商取貨
73
- CVS_PICKUP_COD = "9106" # 超商取貨付款
74
- HOME_DELIVERY_CASH = "9107" # 宅配(含離島)貨到付現
75
- HOME_DELIVERY_CARD = "9108" # 宅配(含離島)貨到刷卡
67
+ OTHER = "9100" # 其他取貨方式
68
+ INTERNATIONAL = "9101" # 海外宅配
69
+ HOME_DELIVERY_COD = "9102" # 宅配貨到付款
70
+ STORE_PICKUP_PAID = "9103" # 付款後門市自取
71
+ HOME_DELIVERY_PAID = "9104" # 宅配(含離島)已付款只取貨
72
+ CVS_PICKUP_PAID = "9105" # 付款後超商取貨
73
+ CVS_PICKUP_COD = "9106" # 超商取貨付款
74
+ HOME_DELIVERY_CASH = "9107" # 宅配(含離島)貨到付現
75
+ HOME_DELIVERY_CARD = "9108" # 宅配(含離島)貨到刷卡
76
+ FACE_TO_FACE_PICKUP = "9109" # 面交自取 (added DSPOOFFICIAL001 rev 5, 2026/06/18)
76
77
 
77
78
  ALL = [OTHER, INTERNATIONAL, HOME_DELIVERY_COD, STORE_PICKUP_PAID,
78
79
  HOME_DELIVERY_PAID, CVS_PICKUP_PAID, CVS_PICKUP_COD,
79
- HOME_DELIVERY_CASH, HOME_DELIVERY_CARD].freeze
80
+ HOME_DELIVERY_CASH, HOME_DELIVERY_CARD, FACE_TO_FACE_PICKUP].freeze
81
+ end
82
+
83
+ # request_detail.tax_type — taxable vs tax-free. Enum is documented only
84
+ # on the order endpoint (DSPOOFFICIAL001:230); the same field on the
85
+ # return (005) and invoice (004) endpoints is described as "課稅別" with
86
+ # no enum listed, but is assumed to share these values. Field maxLength
87
+ # is 10 per spec.
88
+ module TaxType
89
+ TAXABLE = "1" # 應稅
90
+ TAX_FREE = "2" # 免稅
91
+
92
+ ALL = [TAXABLE, TAX_FREE].freeze
80
93
  end
81
94
 
82
95
  # request_detail.invoice_status on Resources::Invoice (DSPOOFFICIAL004:110-122).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DigiwinDsp
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digiwin_dsp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zac
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-06-17 00:00:00.000000000 Z
11
+ date: 2026-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday