cetustek 0.5.0 → 0.6.0

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: 2914b87b1c342a5309f39629998f26cf081179b02c064177f44628c0d1853329
4
- data.tar.gz: e65afdb10fcfa7c358f7eaa7f953169f0265b6f69e56b624b75e5fe4ea1fc61e
3
+ metadata.gz: 11241dc1ed3590b579fb5f94d5f603ed0a98b4982f05dca627c44ca7524dde42
4
+ data.tar.gz: a190190ca3df260e647721db67a462f965d598d9f0f334cff76954abd8dab0c0
5
5
  SHA512:
6
- metadata.gz: 5fe69cd1d22f538861b5dde8124133db53f618b059fc6cb5f7ed6cbe85c0f894c6c4aefb7eb1fda410d883a98f4f910f049a5e9aa0687b5108f7a407f16b209c
7
- data.tar.gz: 0b64ceeeda241d5f7780e8b7ced545f2309657f3dd3dfcce7b7d631658ed6b1144b2481cd510920ed08ce863970e448c65d9ec485950a41c6ea57eddbeff5f14
6
+ metadata.gz: 1f936e09221b7c978df161742f3337a8ee1e622f33c75a3da752e7d3d0cc4744f899fc229e0c0232a2995edfd3a171f48ff162d69aba7b436a85f1a412550226
7
+ data.tar.gz: 5a407169d83578fb120c2318f5908f5737f9e3ef8df4d963054e4ee2eae8c48858ec54f31a40aeda7346d907c37844f63594f99d30f6c25204f84de927dc1e27
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.6.0] - 2026-06-30
9
+
10
+ ### Added
11
+ - `Cetustek::DonateMark` constants for 捐贈註記 (spec AVM-26-03 Table 1):
12
+ `CARRIER` (0), `DONATE` (1), `PAPER` (2). Convenience only — `donate_mark`
13
+ still accepts any raw value.
14
+
8
15
  ## [0.5.0] - 2026-06-30
9
16
 
10
17
  ### Added
data/README.md CHANGED
@@ -134,6 +134,11 @@ Cetustek::Models::InvoiceData.new(
134
134
  | | | | `QUAN_PAY` | `X` |
135
135
  | | | | `COIN_CARD` | `Z` |
136
136
 
137
+ ### Donation mark (`donate_mark` / DonateMark)
138
+
139
+ `donate_mark` accepts any raw code, or use `Cetustek::DonateMark`:
140
+ `CARRIER` (0, 載具), `DONATE` (1, 捐贈), `PAPER` (2, 紙本).
141
+
137
142
  ### Discounts and fees
138
143
 
139
144
  The gem is a faithful wrapper of the API's invoice detail format, so it has no
@@ -35,6 +35,14 @@ module Cetustek
35
35
  COIN_CARD = 'Z' # 銀角零卡
36
36
  end
37
37
 
38
+ # DonateMark (捐贈註記) codes for CreateInvoiceV3, spec AVM-26-03 Table 1.
39
+ # Convenience constants only — InvoiceData#donate_mark still accepts any raw value.
40
+ module DonateMark
41
+ CARRIER = 0 # 載具
42
+ DONATE = 1 # 捐贈
43
+ PAPER = 2 # 紙本
44
+ end
45
+
38
46
  module Models
39
47
  class InvoiceData
40
48
  DEFAULT_TAX_RATE = 0.05
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cetustek
4
- VERSION = "0.5.0"
4
+ VERSION = "0.6.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cetustek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zac