digiwin_dsp 0.4.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: 8b74fbc1739d80f99a563f002be9ab06212eb0ffce531ddf9144c9c8ceb28b34
4
- data.tar.gz: 363e1faecee60d9a4c8f5cfe03b00bf2febd35f015f0034451e1c9c9e191308a
3
+ metadata.gz: 3c97b2b31a4aef72b75b7597df9577f3107963906fc673f8b95edc40bd4102e8
4
+ data.tar.gz: 323356c76f98fb9e443e23317f4fba1a40e2029507de73d84f6c017cf26658d8
5
5
  SHA512:
6
- metadata.gz: b14060dbe2c6d65890ffb925c1ee9f499a7870db0c4eb301646eaf0ea2907869e0e331d8ff14b76e1a6bd474a2de5bf75f97d9bdf5073d856a5c55b6753dd225
7
- data.tar.gz: 1f1f7ab22cd0e077e455ce7cc6451442e5285ccf7e1c94a1abcb0c6e284e3fc86f94cf879170b4ddd2cc3d747ca532ba64a6082bf89be972aacadef23df33e7c
6
+ metadata.gz: d4016d3746fa67d7ee637b7f6bd49b7a7f639e731adf0846277b276cd22efeb3595d909d9c2ff802c2e6ce7b5ffec05b35f5a08ed8b0e5971209cbd3f9f5c344
7
+ data.tar.gz: 6c507083e6ac8225ccfa6d3f80cc5cd876bb3b4378fc1f4d3f9078fe5299e523b03fa21323e62e4da1b86cf1647b801440647da334d5c1ae6569060644613508
data/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.4.1] - 2026-06-13
10
+
11
+ ### Added
12
+
13
+ - **`pay_type` codes 9115–9130** (16 new payment methods) synced from the updated DSPOOFFICIAL001 spec into `Enums::PayType`, `docs/dsp-api-spec.md`, and `docs/dsp-specs/DSPOOFFICIAL001.yaml`: POS結帳, Zingala 零卡分期, 現金, 悠遊卡, 一卡通, 愛金卡, 台灣 Pay, Pi 錢包, 歐付寶, 微信, 全支付, iCashPay, 全盈支付, 支付寶, 台新 Pay, 貨到信用卡一次付款. `Enums::PayType::ALL` now has 31 entries.
14
+
9
15
  ## [0.4.0] - 2026-06-12
10
16
 
11
17
  Ergonomics + cleanup release. One breaking change (dead config removal).
@@ -251,7 +257,8 @@ Initial release. Covers the four Self-hosted Website Module (自有官網模組)
251
257
  - The gem is **synchronous on purpose**. Callers wrap requests in their own background job runner (e.g. ActiveJob) when needed.
252
258
  - Idempotency: clients can send `X-Idempotency-Key` via the `idempotency_key:` kwarg. DSP also dedupes server-side by `form_no + platform_id`.
253
259
 
254
- [Unreleased]: https://github.com/7a6163/digiwin_dsp/compare/v0.4.0...HEAD
260
+ [Unreleased]: https://github.com/7a6163/digiwin_dsp/compare/v0.4.1...HEAD
261
+ [0.4.1]: https://github.com/7a6163/digiwin_dsp/compare/v0.4.0...v0.4.1
255
262
  [0.4.0]: https://github.com/7a6163/digiwin_dsp/compare/v0.3.1...v0.4.0
256
263
  [0.3.1]: https://github.com/7a6163/digiwin_dsp/compare/v0.3.0...v0.3.1
257
264
  [0.3.0]: https://github.com/7a6163/digiwin_dsp/compare/v0.2.4...v0.3.0
@@ -20,7 +20,7 @@ module DigiwinDsp
20
20
  ALL = [CANCEL, NEW_ORDER, INVOICE, RETURN].freeze
21
21
  end
22
22
 
23
- # request_detail.pay_type on Resources::Order (DSPOOFFICIAL001:163-179).
23
+ # request_detail.pay_type on Resources::Order (DSPOOFFICIAL001:163-195).
24
24
  module PayType
25
25
  OTHER = "9100" # 其他收款方式
26
26
  JKO_PAY = "9101" # 街口支付
@@ -32,15 +32,34 @@ module DigiwinDsp
32
32
  APPLE_PAY = "9107"
33
33
  ATM = "9108" # ATM 付款
34
34
  CREDIT_CARD_INSTALLMENT = "9109" # 信用卡分期付款
35
- EASY_WALLET = "9110" # 悠遊付
35
+ EASY_WALLET = "9110" # 悠遊付 (EasyWallet app — distinct from 9118 悠遊卡)
36
36
  LINE_PAY = "9111"
37
37
  PAYPAL_EXPRESS = "9112"
38
38
  FREE_CHECKOUT = "9113" # 免費結帳
39
39
  CVS_PAYMENT_CODE = "9114" # 超商代碼繳費
40
+ POS_CHECKOUT = "9115" # POS結帳
41
+ ZINGALA = "9116" # Zingala 零卡分期付款
42
+ CASH = "9117" # 現金
43
+ EASYCARD = "9118" # 悠遊卡 (physical EasyCard)
44
+ IPASS = "9119" # 一卡通
45
+ ICASH_CARD = "9120" # 愛金卡
46
+ TAIWAN_PAY = "9121" # 台灣 Pay
47
+ PI_WALLET = "9122" # Pi 錢包
48
+ OPAY = "9123" # 歐付寶
49
+ WECHAT_PAY = "9124" # 微信
50
+ PX_PAY = "9125" # 全支付
51
+ ICASH_PAY = "9126" # iCashPay
52
+ PLUS_PAY = "9127" # 全盈支付
53
+ ALIPAY = "9128" # 支付寶
54
+ TAISHIN_PAY = "9129" # 台新 Pay
55
+ COD_CREDIT_CARD = "9130" # 貨到信用卡一次付款
40
56
 
41
57
  ALL = [OTHER, JKO_PAY, CVS_COD, GOOGLE_PAY, CREDIT_CARD, CASH_ON_DELIVERY,
42
58
  AFTEE, APPLE_PAY, ATM, CREDIT_CARD_INSTALLMENT, EASY_WALLET,
43
- LINE_PAY, PAYPAL_EXPRESS, FREE_CHECKOUT, CVS_PAYMENT_CODE].freeze
59
+ LINE_PAY, PAYPAL_EXPRESS, FREE_CHECKOUT, CVS_PAYMENT_CODE,
60
+ POS_CHECKOUT, ZINGALA, CASH, EASYCARD, IPASS, ICASH_CARD,
61
+ TAIWAN_PAY, PI_WALLET, OPAY, WECHAT_PAY, PX_PAY, ICASH_PAY,
62
+ PLUS_PAY, ALIPAY, TAISHIN_PAY, COD_CREDIT_CARD].freeze
44
63
  end
45
64
 
46
65
  # request_detail.shipping_type on Resources::Order (DSPOOFFICIAL001:186-200).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DigiwinDsp
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
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.0
4
+ version: 0.4.1
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-12 00:00:00.000000000 Z
11
+ date: 2026-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday