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 +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +5 -0
- data/lib/cetustek/models/invoice_data.rb +8 -0
- data/lib/cetustek/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11241dc1ed3590b579fb5f94d5f603ed0a98b4982f05dca627c44ca7524dde42
|
|
4
|
+
data.tar.gz: a190190ca3df260e647721db67a462f965d598d9f0f334cff76954abd8dab0c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/cetustek/version.rb
CHANGED