@shisyamo4131/air-guard-v2-schemas 2.3.7-dev.1 → 2.3.7-dev.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Company.js +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shisyamo4131/air-guard-v2-schemas",
3
- "version": "2.3.7-dev.1",
3
+ "version": "2.3.7-dev.2",
4
4
  "description": "Schemas for AirGuard V2",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/src/Company.js CHANGED
@@ -109,6 +109,22 @@ export default class Company extends FireModel {
109
109
  prefecture: defAccessor("prefecture"),
110
110
  });
111
111
 
112
+ Object.defineProperties(this, {
113
+ hasBankInfo: {
114
+ enumerable: true,
115
+ configurable: true,
116
+ get() {
117
+ return !!(
118
+ this.bankName &&
119
+ this.branchName &&
120
+ this.accountNumber &&
121
+ this.accountHolder
122
+ );
123
+ },
124
+ set() {},
125
+ },
126
+ });
127
+
112
128
  /*************************************************************************
113
129
  * CUSTOM METHODS FOR siteOrder ARRAY
114
130
  * Note: These methods modify the siteOrder array directly.