@shisyamo4131/air-guard-v2-schemas 1.3.1-dev.23 → 1.3.1-dev.25

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shisyamo4131/air-guard-v2-schemas",
3
- "version": "1.3.1-dev.23",
3
+ "version": "1.3.1-dev.25",
4
4
  "description": "Schemas for AirGuard V2",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/src/Billing.js CHANGED
@@ -153,7 +153,9 @@ export default class Billing extends FireModel {
153
153
  // 消費税額を計算
154
154
  Object.defineProperty(this, "taxAmount", {
155
155
  get() {
156
- return Math.floor(this.subtotal * 0.1); // 10% 切り捨て
156
+ return this.operationResults.reduce((sum, item) => {
157
+ return sum + (item.tax || 0);
158
+ }, 0);
157
159
  },
158
160
  set() {},
159
161
  enumerable: true,
package/src/Customer.js CHANGED
@@ -30,7 +30,7 @@
30
30
  * @prop {string} STATUS_ACTIVE - constant for active contract status
31
31
  * @prop {string} STATUS_TERMINATED - constant for terminated contract status
32
32
  *
33
- * @method getPaymentDueAt
33
+ * @method getPaymentDueDateAt
34
34
  * @param {Date} baseDate - base date in UTC (JST - 9 hours)
35
35
  * @returns {Date} payment due date in UTC (JST - 9 hours)
36
36
  *****************************************************************************/
@@ -109,7 +109,7 @@ export default class Customer extends FireModel {
109
109
  * @param {Date} baseDate - 基準日(JSTから9時間引いたUTC表現)
110
110
  * @returns {Date} 支払期日(JSTから9時間引いたUTC表現)
111
111
  */
112
- getPaymentDueAt(baseDate) {
112
+ getPaymentDueDateAt(baseDate) {
113
113
  // UTC → JST に変換(+9時間)
114
114
  const jstDate = new Date(baseDate.getTime() + 9 * 60 * 60 * 1000);
115
115