@mpgd/platform 0.18.0 → 0.19.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.
@@ -0,0 +1,3084 @@
1
+ import * as _isTypeUint32_1 from "typia/lib/internal/_isTypeUint32";
2
+ import * as _isFormatDateTime_1 from "typia/lib/internal/_isFormatDateTime";
3
+ import * as _assertGuard_1 from "typia/lib/internal/_assertGuard";
4
+ import * as _accessExpressionAsString_1 from "typia/lib/internal/_accessExpressionAsString";
5
+ const __typia_transform__accessExpressionAsString = _accessExpressionAsString_1._accessExpressionAsString;
6
+ import typia from 'typia';
7
+ const assertCommerceConformanceVectorShape = (() => {
8
+ const _iv0 = new Set(["ACCOUNT_BINDING_REQUIRED", "ACTION_REQUIRED", "ALREADY_OWNED", "CONFIGURATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RESPONSE", "IN_PROGRESS", "ITEM_UNAVAILABLE", "NETWORK", "NOT_PREPARED", "OUTCOME_UNKNOWN", "STORE_UNAVAILABLE", "UNKNOWN", "USER_CANCELLED"]);
9
+ const _iv1 = new Set(["cancelled", "failed", "finished", "finishing", "granted", "launched", "pending", "purchased", "rejected", "requested", "revoked", "verifying"]);
10
+ const _iv2 = new Set(["ACCOUNT_BINDING_REQUIRED", "ACTION_REQUIRED", "ALREADY_OWNED", "CONFIGURATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RESPONSE", "IN_PROGRESS", "ITEM_UNAVAILABLE", "NETWORK", "NOT_PREPARED", "OUTCOME_UNKNOWN", "STORE_UNAVAILABLE", "UNKNOWN", "USER_CANCELLED", "finished"]);
11
+ const _ae0 = "({ readonly actor: \"backend\"; readonly action: \"push\"; readonly transactionId: NonEmptyString; readonly entryId: NonEmptyString; readonly logicalId: CommerceLogicalProductId; } | { readonly actor: \"backend\"; readonly action: \"queueVerify\"; readonly decision: CommerceConformanceVerifyDecision; } | { readonly actor: \"backend\"; readonly action: \"revoke\"; readonly ledgerEntryId: NonEmptyString; readonly entryId: NonEmptyString; readonly reason: NonEmptyString; } | { readonly actor: \"clock\"; readonly action: \"set\"; readonly at: IsoTimestamp; } | { readonly actor: \"game\"; readonly action: \"fetchProducts\"; readonly input?: { readonly logicalIds?: readonly CommerceLogicalProductId[]; readonly type?: \"all\" | \"in-app\" | \"subscription\"; }; readonly returns?: CommerceConformanceFetchProductsExpectation; } | { readonly actor: \"game\"; readonly action: \"requestPurchase\"; readonly input: { readonly logicalId: CommerceLogicalProductId; readonly idempotencyKey: NonEmptyString; readonly source?: PurchaseSource; readonly offerId?: NonEmptyString; readonly quantity?: number & ... 1 more ... & Minimum<...>; }; readonly returns?:... | { readonly actor: \"runtime\"; readonly action: \"reconcile\" | \"start\" | \"stop\"; } | { readonly actor: \"store\"; readonly action: \"complete\" | \"update\"; readonly purchase: CommerceConformancePurchaseFixture; } | { readonly actor: \"store\"; readonly action: \"error\"; readonly logicalId?: CommerceLogicalProductId; readonly error: CommerceConformanceErrorFixture; } | { readonly actor: \"store\"; readonly action: \"queueFinish\"; readonly result: CommerceConformanceFinishResultFixture; } | { readonly actor: \"store\"; readonly action: \"queueRequest\"; readonly result: CommerceConformanceRequestResultFixture; } | { readonly actor: \"wallet\"; readonly action: \"creditFromGrant\"; readonly lot: CommerceConformanceLotFixture; } | { readonly actor: \"wallet\"; readonly action: \"renewDue\"; } | { readonly actor: \"wallet\"; readonly action: \"spend\"; readonly input: CommerceConformanceSpendInput; readonly returns?: CommerceConformanceSpendExpectation; })";
12
+ const _ae1 = "{ readonly logicalId: CommerceLogicalProductId; readonly idempotencyKey: NonEmptyString; readonly source?: PurchaseSource; readonly offerId?: NonEmptyString; readonly quantity?: number & ... 1 more ... & Minimum<...>; }";
13
+ const _av0 = new Set(["ACCOUNT_BINDING_REQUIRED", "ACTION_REQUIRED", "ALREADY_OWNED", "CONFIGURATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RESPONSE", "IN_PROGRESS", "ITEM_UNAVAILABLE", "NETWORK", "NOT_PREPARED", "OUTCOME_UNKNOWN", "STORE_UNAVAILABLE", "UNKNOWN", "USER_CANCELLED"]);
14
+ const _ae2 = "(\"ACCOUNT_BINDING_REQUIRED\" | \"ACTION_REQUIRED\" | \"ALREADY_OWNED\" | \"CONFIGURATION_REQUIRED\" | \"INSUFFICIENT_BALANCE\" | \"INVALID_RESPONSE\" | \"IN_PROGRESS\" | \"ITEM_UNAVAILABLE\" | \"NETWORK\" | \"NOT_PREPARED\" | \"OUTCOME_UNKNOWN\" | \"STORE_UNAVAILABLE\" | \"UNKNOWN\" | \"USER_CANCELLED\")";
15
+ const _ae3 = "({ readonly outcome: \"cancelled\" | \"failed\"; readonly error: CommerceConformanceErrorFixture; } | { readonly outcome: \"launched\"; } | { readonly outcome: \"purchased\"; readonly purchase: CommerceConformancePurchaseFixture; })";
16
+ const _av1 = new Set(["cancelled", "failed", "finished", "finishing", "granted", "launched", "pending", "purchased", "rejected", "requested", "revoked", "verifying"]);
17
+ const _ae4 = "(\"cancelled\" | \"failed\" | \"finished\" | \"finishing\" | \"granted\" | \"launched\" | \"pending\" | \"purchased\" | \"rejected\" | \"requested\" | \"revoked\" | \"verifying\")";
18
+ const _av2 = new Set(["ACCOUNT_BINDING_REQUIRED", "ACTION_REQUIRED", "ALREADY_OWNED", "CONFIGURATION_REQUIRED", "INSUFFICIENT_BALANCE", "INVALID_RESPONSE", "IN_PROGRESS", "ITEM_UNAVAILABLE", "NETWORK", "NOT_PREPARED", "OUTCOME_UNKNOWN", "STORE_UNAVAILABLE", "UNKNOWN", "USER_CANCELLED", "finished"]);
19
+ const _ae5 = "(\"ACCOUNT_BINDING_REQUIRED\" | \"ACTION_REQUIRED\" | \"ALREADY_OWNED\" | \"CONFIGURATION_REQUIRED\" | \"INSUFFICIENT_BALANCE\" | \"INVALID_RESPONSE\" | \"IN_PROGRESS\" | \"ITEM_UNAVAILABLE\" | \"NETWORK\" | \"NOT_PREPARED\" | \"OUTCOME_UNKNOWN\" | \"STORE_UNAVAILABLE\" | \"UNKNOWN\" | \"USER_CANCELLED\" | \"finished\")";
20
+ const _ae6 = "(\"ACCOUNT_BINDING_REQUIRED\" | \"ACTION_REQUIRED\" | \"ALREADY_OWNED\" | \"CONFIGURATION_REQUIRED\" | \"INSUFFICIENT_BALANCE\" | \"INVALID_RESPONSE\" | \"IN_PROGRESS\" | \"ITEM_UNAVAILABLE\" | \"NETWORK\" | \"NOT_PREPARED\" | \"OUTCOME_UNKNOWN\" | \"STORE_UNAVAILABLE\" | \"UNKNOWN\" | \"USER_CANCELLED\" | undefined)";
21
+ const _ae7 = "({ readonly actor: \"runtime\"; readonly action: \"reconcile\" | \"start\" | \"stop\"; } | { readonly actor: \"game\"; readonly action: \"fetchProducts\"; readonly input?: { readonly logicalIds?: readonly CommerceLogicalProductId[]; readonly type?: \"all\" | \"in-app\" | \"subscription\"; }; readonly returns?: CommerceConformanceFetchProductsExpectation; } | { readonly actor: \"game\"; readonly action: \"requestPurchase\"; readonly input: { readonly logicalId: CommerceLogicalProductId; readonly idempotencyKey: NonEmptyString; readonly source?: PurchaseSource; readonly offerId?: NonEmptyString; readonly quantity?: number & ... 1 more ... & Minimum<...>; }; readonly returns?:... | { readonly actor: \"store\"; readonly action: \"complete\" | \"update\"; readonly purchase: CommerceConformancePurchaseFixture; } | { readonly actor: \"store\"; readonly action: \"error\"; readonly logicalId?: CommerceLogicalProductId; readonly error: CommerceConformanceErrorFixture; } | { readonly actor: \"store\"; readonly action: \"queueFinish\"; readonly result: CommerceConformanceFinishResultFixture; } | { readonly actor: \"store\"; readonly action: \"queueRequest\"; readonly result: CommerceConformanceRequestResultFixture; } | { readonly actor: \"backend\"; readonly action: \"queueVerify\"; readonly decision: CommerceConformanceVerifyDecision; } | { readonly actor: \"backend\"; readonly action: \"push\"; readonly transactionId: NonEmptyString; readonly entryId: NonEmptyString; readonly logicalId: CommerceLogicalProductId; } | { readonly actor: \"backend\"; readonly action: \"revoke\"; readonly ledgerEntryId: NonEmptyString; readonly entryId: NonEmptyString; readonly reason: NonEmptyString; } | { readonly actor: \"wallet\"; readonly action: \"creditFromGrant\"; readonly lot: CommerceConformanceLotFixture; } | { readonly actor: \"wallet\"; readonly action: \"spend\"; readonly input: CommerceConformanceSpendInput; readonly returns?: CommerceConformanceSpendExpectation; } | { readonly actor: \"wallet\"; readonly action: \"renewDue\"; } | { readonly actor: \"clock\"; readonly action: \"set\"; readonly at: IsoTimestamp; })";
22
+ const _ae8 = "({ readonly outcome: \"launched\"; } | { readonly outcome: \"purchased\"; readonly purchase: CommerceConformancePurchaseFixture; } | { readonly outcome: \"cancelled\" | \"failed\"; readonly error: CommerceConformanceErrorFixture; })";
23
+ const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.vector && (RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$").test(input.vector) || _assertGuard_1._assertGuard(_exceptionable, {
24
+ method: "typia.createAssertEquals",
25
+ path: _path + ".vector",
26
+ expected: "string & Pattern<\"^[a-z0-9]+(?:-[a-z0-9]+)*$\">",
27
+ value: input.vector
28
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
29
+ method: "typia.createAssertEquals",
30
+ path: _path + ".vector",
31
+ expected: "(string & Pattern<\"^[a-z0-9]+(?:-[a-z0-9]+)*$\">)",
32
+ value: input.vector
33
+ }, _errorFactory)) && ("string" === typeof input.protocol && (1 <= input.protocol.length || _assertGuard_1._assertGuard(_exceptionable, {
34
+ method: "typia.createAssertEquals",
35
+ path: _path + ".protocol",
36
+ expected: "string & MinLength<1>",
37
+ value: input.protocol
38
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
39
+ method: "typia.createAssertEquals",
40
+ path: _path + ".protocol",
41
+ expected: "(string & MinLength<1>)",
42
+ value: input.protocol
43
+ }, _errorFactory)) && ("string" === typeof input.summary && (1 <= input.summary.length || _assertGuard_1._assertGuard(_exceptionable, {
44
+ method: "typia.createAssertEquals",
45
+ path: _path + ".summary",
46
+ expected: "string & MinLength<1>",
47
+ value: input.summary
48
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
49
+ method: "typia.createAssertEquals",
50
+ path: _path + ".summary",
51
+ expected: "(string & MinLength<1>)",
52
+ value: input.summary
53
+ }, _errorFactory)) && (("object" === typeof input.profile && null !== input.profile || _assertGuard_1._assertGuard(_exceptionable, {
54
+ method: "typia.createAssertEquals",
55
+ path: _path + ".profile",
56
+ expected: "CommerceConformanceProfile",
57
+ value: input.profile
58
+ }, _errorFactory)) && _ao1(input.profile, _path + ".profile", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
59
+ method: "typia.createAssertEquals",
60
+ path: _path + ".profile",
61
+ expected: "CommerceConformanceProfile",
62
+ value: input.profile
63
+ }, _errorFactory)) && (undefined === input.catalog || (Array.isArray(input.catalog) || _assertGuard_1._assertGuard(_exceptionable, {
64
+ method: "typia.createAssertEquals",
65
+ path: _path + ".catalog",
66
+ expected: "(ReadonlyArray<CommerceConformanceCatalogEntry> | undefined)",
67
+ value: input.catalog
68
+ }, _errorFactory)) && input.catalog.every((elem, _index17) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
69
+ method: "typia.createAssertEquals",
70
+ path: _path + ".catalog[" + _index17 + "]",
71
+ expected: "CommerceConformanceCatalogEntry",
72
+ value: elem
73
+ }, _errorFactory)) && _ao5(elem, _path + ".catalog[" + _index17 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
74
+ method: "typia.createAssertEquals",
75
+ path: _path + ".catalog[" + _index17 + "]",
76
+ expected: "CommerceConformanceCatalogEntry",
77
+ value: elem
78
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
79
+ method: "typia.createAssertEquals",
80
+ path: _path + ".catalog",
81
+ expected: "(ReadonlyArray<CommerceConformanceCatalogEntry> | undefined)",
82
+ value: input.catalog
83
+ }, _errorFactory)) && (undefined === input.wallet || ("object" === typeof input.wallet && null !== input.wallet || _assertGuard_1._assertGuard(_exceptionable, {
84
+ method: "typia.createAssertEquals",
85
+ path: _path + ".wallet",
86
+ expected: "(CommerceConformanceWallet | undefined)",
87
+ value: input.wallet
88
+ }, _errorFactory)) && _ao8(input.wallet, _path + ".wallet", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
89
+ method: "typia.createAssertEquals",
90
+ path: _path + ".wallet",
91
+ expected: "(CommerceConformanceWallet | undefined)",
92
+ value: input.wallet
93
+ }, _errorFactory)) && ((Array.isArray(input.steps) || _assertGuard_1._assertGuard(_exceptionable, {
94
+ method: "typia.createAssertEquals",
95
+ path: _path + ".steps",
96
+ expected: "(ReadonlyArray<CommerceConformanceStep> & MinItems<1>)",
97
+ value: input.steps
98
+ }, _errorFactory)) && ((1 <= input.steps.length || _assertGuard_1._assertGuard(_exceptionable, {
99
+ method: "typia.createAssertEquals",
100
+ path: _path + ".steps",
101
+ expected: "Array<> & MinItems<1>",
102
+ value: input.steps
103
+ }, _errorFactory)) && input.steps.every((elem, _index18) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
104
+ method: "typia.createAssertEquals",
105
+ path: _path + ".steps[" + _index18 + "]",
106
+ expected: _ae0,
107
+ value: elem
108
+ }, _errorFactory)) && _au0(elem, _path + ".steps[" + _index18 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
109
+ method: "typia.createAssertEquals",
110
+ path: _path + ".steps[" + _index18 + "]",
111
+ expected: _ae0,
112
+ value: elem
113
+ }, _errorFactory))) || _assertGuard_1._assertGuard(_exceptionable, {
114
+ method: "typia.createAssertEquals",
115
+ path: _path + ".steps",
116
+ expected: "(ReadonlyArray<CommerceConformanceStep> & MinItems<1>)",
117
+ value: input.steps
118
+ }, _errorFactory)) && (("object" === typeof input.expect && null !== input.expect && false === Array.isArray(input.expect) || _assertGuard_1._assertGuard(_exceptionable, {
119
+ method: "typia.createAssertEquals",
120
+ path: _path + ".expect",
121
+ expected: "CommerceConformanceExpectation",
122
+ value: input.expect
123
+ }, _errorFactory)) && _ao42(input.expect, _path + ".expect", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
124
+ method: "typia.createAssertEquals",
125
+ path: _path + ".expect",
126
+ expected: "CommerceConformanceExpectation",
127
+ value: input.expect
128
+ }, _errorFactory)) && (6 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
129
+ if (["vector", "protocol", "summary", "profile", "catalog", "wallet", "steps", "expect"].some(prop => key === prop))
130
+ return true;
131
+ const value = input[key];
132
+ if (undefined === value)
133
+ return true;
134
+ return _assertGuard_1._assertGuard(_exceptionable, {
135
+ method: "typia.createAssertEquals",
136
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
137
+ expected: "undefined",
138
+ value: value
139
+ }, _errorFactory);
140
+ })));
141
+ const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.store && (1 <= input.store.length || _assertGuard_1._assertGuard(_exceptionable, {
142
+ method: "typia.createAssertEquals",
143
+ path: _path + ".store",
144
+ expected: "string & MinLength<1>",
145
+ value: input.store
146
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
147
+ method: "typia.createAssertEquals",
148
+ path: _path + ".store",
149
+ expected: "(string & MinLength<1>)",
150
+ value: input.store
151
+ }, _errorFactory)) && (undefined === input.purchase || ("object" === typeof input.purchase && null !== input.purchase || _assertGuard_1._assertGuard(_exceptionable, {
152
+ method: "typia.createAssertEquals",
153
+ path: _path + ".purchase",
154
+ expected: "(CommercePurchaseCapabilities | undefined)",
155
+ value: input.purchase
156
+ }, _errorFactory)) && _ao2(input.purchase, _path + ".purchase", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
157
+ method: "typia.createAssertEquals",
158
+ path: _path + ".purchase",
159
+ expected: "(CommercePurchaseCapabilities | undefined)",
160
+ value: input.purchase
161
+ }, _errorFactory)) && (undefined === input.lifecycle || ("object" === typeof input.lifecycle && null !== input.lifecycle || _assertGuard_1._assertGuard(_exceptionable, {
162
+ method: "typia.createAssertEquals",
163
+ path: _path + ".lifecycle",
164
+ expected: "(CommerceLifecycleCapabilities | undefined)",
165
+ value: input.lifecycle
166
+ }, _errorFactory)) && _ao3(input.lifecycle, _path + ".lifecycle", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
167
+ method: "typia.createAssertEquals",
168
+ path: _path + ".lifecycle",
169
+ expected: "(CommerceLifecycleCapabilities | undefined)",
170
+ value: input.lifecycle
171
+ }, _errorFactory)) && (undefined === input.authority || ("object" === typeof input.authority && null !== input.authority || _assertGuard_1._assertGuard(_exceptionable, {
172
+ method: "typia.createAssertEquals",
173
+ path: _path + ".authority",
174
+ expected: "(CommerceAuthorityCapabilities | undefined)",
175
+ value: input.authority
176
+ }, _errorFactory)) && _ao4(input.authority, _path + ".authority", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
177
+ method: "typia.createAssertEquals",
178
+ path: _path + ".authority",
179
+ expected: "(CommerceAuthorityCapabilities | undefined)",
180
+ value: input.authority
181
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
182
+ if (["store", "purchase", "lifecycle", "authority"].some(prop => key === prop))
183
+ return true;
184
+ const value = input[key];
185
+ if (undefined === value)
186
+ return true;
187
+ return _assertGuard_1._assertGuard(_exceptionable, {
188
+ method: "typia.createAssertEquals",
189
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
190
+ expected: "undefined",
191
+ value: value
192
+ }, _errorFactory);
193
+ })));
194
+ const _ao10 = (input, _path, _exceptionable = true) => ("game" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
195
+ method: "typia.createAssertEquals",
196
+ path: _path + ".actor",
197
+ expected: "\"game\"",
198
+ value: input.actor
199
+ }, _errorFactory)) && ("requestPurchase" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
200
+ method: "typia.createAssertEquals",
201
+ path: _path + ".action",
202
+ expected: "\"requestPurchase\"",
203
+ value: input.action
204
+ }, _errorFactory)) && (("object" === typeof input.input && null !== input.input || _assertGuard_1._assertGuard(_exceptionable, {
205
+ method: "typia.createAssertEquals",
206
+ path: _path + ".input",
207
+ expected: _ae1,
208
+ value: input.input
209
+ }, _errorFactory)) && _ao11(input.input, _path + ".input", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
210
+ method: "typia.createAssertEquals",
211
+ path: _path + ".input",
212
+ expected: _ae1,
213
+ value: input.input
214
+ }, _errorFactory)) && (undefined === input.returns || ("object" === typeof input.returns && null !== input.returns || _assertGuard_1._assertGuard(_exceptionable, {
215
+ method: "typia.createAssertEquals",
216
+ path: _path + ".returns",
217
+ expected: "(CommerceConformanceRequestPurchaseExpectation | undefined)",
218
+ value: input.returns
219
+ }, _errorFactory)) && _ao12(input.returns, _path + ".returns", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
220
+ method: "typia.createAssertEquals",
221
+ path: _path + ".returns",
222
+ expected: "(CommerceConformanceRequestPurchaseExpectation | undefined)",
223
+ value: input.returns
224
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
225
+ if (["actor", "action", "input", "returns"].some(prop => key === prop))
226
+ return true;
227
+ const value = input[key];
228
+ if (undefined === value)
229
+ return true;
230
+ return _assertGuard_1._assertGuard(_exceptionable, {
231
+ method: "typia.createAssertEquals",
232
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
233
+ expected: "undefined",
234
+ value: value
235
+ }, _errorFactory);
236
+ })));
237
+ const _ao11 = (input, _path, _exceptionable = true) => ("string" === typeof input.logicalId && (1 <= input.logicalId.length || _assertGuard_1._assertGuard(_exceptionable, {
238
+ method: "typia.createAssertEquals",
239
+ path: _path + ".logicalId",
240
+ expected: "string & MinLength<1>",
241
+ value: input.logicalId
242
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
243
+ method: "typia.createAssertEquals",
244
+ path: _path + ".logicalId",
245
+ expected: "(string & MinLength<1>)",
246
+ value: input.logicalId
247
+ }, _errorFactory)) && ("string" === typeof input.idempotencyKey && (1 <= input.idempotencyKey.length || _assertGuard_1._assertGuard(_exceptionable, {
248
+ method: "typia.createAssertEquals",
249
+ path: _path + ".idempotencyKey",
250
+ expected: "string & MinLength<1>",
251
+ value: input.idempotencyKey
252
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
253
+ method: "typia.createAssertEquals",
254
+ path: _path + ".idempotencyKey",
255
+ expected: "(string & MinLength<1>)",
256
+ value: input.idempotencyKey
257
+ }, _errorFactory)) && (undefined === input.source || "event" === input.source || "result" === input.source || "shop" === input.source || "stage_fail" === input.source || _assertGuard_1._assertGuard(_exceptionable, {
258
+ method: "typia.createAssertEquals",
259
+ path: _path + ".source",
260
+ expected: "(\"event\" | \"result\" | \"shop\" | \"stage_fail\" | undefined)",
261
+ value: input.source
262
+ }, _errorFactory)) && (undefined === input.offerId || "string" === typeof input.offerId && (1 <= input.offerId.length || _assertGuard_1._assertGuard(_exceptionable, {
263
+ method: "typia.createAssertEquals",
264
+ path: _path + ".offerId",
265
+ expected: "string & MinLength<1>",
266
+ value: input.offerId
267
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
268
+ method: "typia.createAssertEquals",
269
+ path: _path + ".offerId",
270
+ expected: "((string & MinLength<1>) | undefined)",
271
+ value: input.offerId
272
+ }, _errorFactory)) && (undefined === input.quantity || "number" === typeof input.quantity && (_isTypeUint32_1._isTypeUint32(input.quantity) || _assertGuard_1._assertGuard(_exceptionable, {
273
+ method: "typia.createAssertEquals",
274
+ path: _path + ".quantity",
275
+ expected: "number & Type<\"uint32\">",
276
+ value: input.quantity
277
+ }, _errorFactory)) && (1 <= input.quantity || _assertGuard_1._assertGuard(_exceptionable, {
278
+ method: "typia.createAssertEquals",
279
+ path: _path + ".quantity",
280
+ expected: "number & Minimum<1>",
281
+ value: input.quantity
282
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
283
+ method: "typia.createAssertEquals",
284
+ path: _path + ".quantity",
285
+ expected: "((number & Type<\"uint32\"> & Minimum<1>) | undefined)",
286
+ value: input.quantity
287
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
288
+ if (["logicalId", "idempotencyKey", "source", "offerId", "quantity"].some(prop => key === prop))
289
+ return true;
290
+ const value = input[key];
291
+ if (undefined === value)
292
+ return true;
293
+ return _assertGuard_1._assertGuard(_exceptionable, {
294
+ method: "typia.createAssertEquals",
295
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
296
+ expected: "undefined",
297
+ value: value
298
+ }, _errorFactory);
299
+ })));
300
+ const _ao12 = (input, _path, _exceptionable = true) => ("cancelled" === input.outcome || "failed" === input.outcome || "launched" === input.outcome || "purchased" === input.outcome || _assertGuard_1._assertGuard(_exceptionable, {
301
+ method: "typia.createAssertEquals",
302
+ path: _path + ".outcome",
303
+ expected: "(\"cancelled\" | \"failed\" | \"launched\" | \"purchased\")",
304
+ value: input.outcome
305
+ }, _errorFactory)) && (undefined === input.error || ("object" === typeof input.error && null !== input.error || _assertGuard_1._assertGuard(_exceptionable, {
306
+ method: "typia.createAssertEquals",
307
+ path: _path + ".error",
308
+ expected: "(CommerceConformanceErrorExpectation | undefined)",
309
+ value: input.error
310
+ }, _errorFactory)) && _ao13(input.error, _path + ".error", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
311
+ method: "typia.createAssertEquals",
312
+ path: _path + ".error",
313
+ expected: "(CommerceConformanceErrorExpectation | undefined)",
314
+ value: input.error
315
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
316
+ if (["outcome", "error"].some(prop => key === prop))
317
+ return true;
318
+ const value = input[key];
319
+ if (undefined === value)
320
+ return true;
321
+ return _assertGuard_1._assertGuard(_exceptionable, {
322
+ method: "typia.createAssertEquals",
323
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
324
+ expected: "undefined",
325
+ value: value
326
+ }, _errorFactory);
327
+ })));
328
+ const _ao13 = (input, _path, _exceptionable = true) => (true === _av0.has(input.code) || _assertGuard_1._assertGuard(_exceptionable, {
329
+ method: "typia.createAssertEquals",
330
+ path: _path + ".code",
331
+ expected: _ae2,
332
+ value: input.code
333
+ }, _errorFactory)) && (undefined === input.retryable || "boolean" === typeof input.retryable || _assertGuard_1._assertGuard(_exceptionable, {
334
+ method: "typia.createAssertEquals",
335
+ path: _path + ".retryable",
336
+ expected: "(boolean | undefined)",
337
+ value: input.retryable
338
+ }, _errorFactory)) && (undefined === input.storeCode || "string" === typeof input.storeCode || _assertGuard_1._assertGuard(_exceptionable, {
339
+ method: "typia.createAssertEquals",
340
+ path: _path + ".storeCode",
341
+ expected: "(string | undefined)",
342
+ value: input.storeCode
343
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
344
+ if (["code", "retryable", "storeCode"].some(prop => key === prop))
345
+ return true;
346
+ const value = input[key];
347
+ if (undefined === value)
348
+ return true;
349
+ return _assertGuard_1._assertGuard(_exceptionable, {
350
+ method: "typia.createAssertEquals",
351
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
352
+ expected: "undefined",
353
+ value: value
354
+ }, _errorFactory);
355
+ })));
356
+ const _ao14 = (input, _path, _exceptionable = true) => ("game" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
357
+ method: "typia.createAssertEquals",
358
+ path: _path + ".actor",
359
+ expected: "\"game\"",
360
+ value: input.actor
361
+ }, _errorFactory)) && ("fetchProducts" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
362
+ method: "typia.createAssertEquals",
363
+ path: _path + ".action",
364
+ expected: "\"fetchProducts\"",
365
+ value: input.action
366
+ }, _errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || _assertGuard_1._assertGuard(_exceptionable, {
367
+ method: "typia.createAssertEquals",
368
+ path: _path + ".input",
369
+ expected: "(undefined | { readonly logicalIds?: readonly CommerceLogicalProductId[]; readonly type?: \"all\" | \"in-app\" | \"subscription\"; })",
370
+ value: input.input
371
+ }, _errorFactory)) && _ao15(input.input, _path + ".input", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
372
+ method: "typia.createAssertEquals",
373
+ path: _path + ".input",
374
+ expected: "(undefined | { readonly logicalIds?: readonly CommerceLogicalProductId[]; readonly type?: \"all\" | \"in-app\" | \"subscription\"; })",
375
+ value: input.input
376
+ }, _errorFactory)) && (undefined === input.returns || ("object" === typeof input.returns && null !== input.returns || _assertGuard_1._assertGuard(_exceptionable, {
377
+ method: "typia.createAssertEquals",
378
+ path: _path + ".returns",
379
+ expected: "(CommerceConformanceFetchProductsExpectation | undefined)",
380
+ value: input.returns
381
+ }, _errorFactory)) && _ao16(input.returns, _path + ".returns", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
382
+ method: "typia.createAssertEquals",
383
+ path: _path + ".returns",
384
+ expected: "(CommerceConformanceFetchProductsExpectation | undefined)",
385
+ value: input.returns
386
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
387
+ if (["actor", "action", "input", "returns"].some(prop => key === prop))
388
+ return true;
389
+ const value = input[key];
390
+ if (undefined === value)
391
+ return true;
392
+ return _assertGuard_1._assertGuard(_exceptionable, {
393
+ method: "typia.createAssertEquals",
394
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
395
+ expected: "undefined",
396
+ value: value
397
+ }, _errorFactory);
398
+ })));
399
+ const _ao15 = (input, _path, _exceptionable = true) => (undefined === input.logicalIds || (Array.isArray(input.logicalIds) || _assertGuard_1._assertGuard(_exceptionable, {
400
+ method: "typia.createAssertEquals",
401
+ path: _path + ".logicalIds",
402
+ expected: "(ReadonlyArray<CommerceLogicalProductId> | undefined)",
403
+ value: input.logicalIds
404
+ }, _errorFactory)) && input.logicalIds.every((elem, _index20) => "string" === typeof elem && (1 <= elem.length || _assertGuard_1._assertGuard(_exceptionable, {
405
+ method: "typia.createAssertEquals",
406
+ path: _path + ".logicalIds[" + _index20 + "]",
407
+ expected: "string & MinLength<1>",
408
+ value: elem
409
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
410
+ method: "typia.createAssertEquals",
411
+ path: _path + ".logicalIds[" + _index20 + "]",
412
+ expected: "(string & MinLength<1>)",
413
+ value: elem
414
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
415
+ method: "typia.createAssertEquals",
416
+ path: _path + ".logicalIds",
417
+ expected: "(ReadonlyArray<CommerceLogicalProductId> | undefined)",
418
+ value: input.logicalIds
419
+ }, _errorFactory)) && (undefined === input.type || "all" === input.type || "in-app" === input.type || "subscription" === input.type || _assertGuard_1._assertGuard(_exceptionable, {
420
+ method: "typia.createAssertEquals",
421
+ path: _path + ".type",
422
+ expected: "(\"all\" | \"in-app\" | \"subscription\" | undefined)",
423
+ value: input.type
424
+ }, _errorFactory)) && (0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
425
+ if (["logicalIds", "type"].some(prop => key === prop))
426
+ return true;
427
+ const value = input[key];
428
+ if (undefined === value)
429
+ return true;
430
+ return _assertGuard_1._assertGuard(_exceptionable, {
431
+ method: "typia.createAssertEquals",
432
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
433
+ expected: "undefined",
434
+ value: value
435
+ }, _errorFactory);
436
+ })));
437
+ const _ao16 = (input, _path, _exceptionable = true) => ((Array.isArray(input.logicalIds) || _assertGuard_1._assertGuard(_exceptionable, {
438
+ method: "typia.createAssertEquals",
439
+ path: _path + ".logicalIds",
440
+ expected: "ReadonlyArray<CommerceLogicalProductId>",
441
+ value: input.logicalIds
442
+ }, _errorFactory)) && input.logicalIds.every((elem, _index21) => "string" === typeof elem && (1 <= elem.length || _assertGuard_1._assertGuard(_exceptionable, {
443
+ method: "typia.createAssertEquals",
444
+ path: _path + ".logicalIds[" + _index21 + "]",
445
+ expected: "string & MinLength<1>",
446
+ value: elem
447
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
448
+ method: "typia.createAssertEquals",
449
+ path: _path + ".logicalIds[" + _index21 + "]",
450
+ expected: "(string & MinLength<1>)",
451
+ value: elem
452
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
453
+ method: "typia.createAssertEquals",
454
+ path: _path + ".logicalIds",
455
+ expected: "ReadonlyArray<CommerceLogicalProductId>",
456
+ value: input.logicalIds
457
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
458
+ if (["logicalIds"].some(prop => key === prop))
459
+ return true;
460
+ const value = input[key];
461
+ if (undefined === value)
462
+ return true;
463
+ return _assertGuard_1._assertGuard(_exceptionable, {
464
+ method: "typia.createAssertEquals",
465
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
466
+ expected: "undefined",
467
+ value: value
468
+ }, _errorFactory);
469
+ })));
470
+ const _ao17 = (input, _path, _exceptionable = true) => ("store" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
471
+ method: "typia.createAssertEquals",
472
+ path: _path + ".actor",
473
+ expected: "\"store\"",
474
+ value: input.actor
475
+ }, _errorFactory)) && ("complete" === input.action || "update" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
476
+ method: "typia.createAssertEquals",
477
+ path: _path + ".action",
478
+ expected: "(\"complete\" | \"update\")",
479
+ value: input.action
480
+ }, _errorFactory)) && (("object" === typeof input.purchase && null !== input.purchase || _assertGuard_1._assertGuard(_exceptionable, {
481
+ method: "typia.createAssertEquals",
482
+ path: _path + ".purchase",
483
+ expected: "CommerceConformancePurchaseFixture",
484
+ value: input.purchase
485
+ }, _errorFactory)) && _ao18(input.purchase, _path + ".purchase", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
486
+ method: "typia.createAssertEquals",
487
+ path: _path + ".purchase",
488
+ expected: "CommerceConformancePurchaseFixture",
489
+ value: input.purchase
490
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
491
+ if (["actor", "action", "purchase"].some(prop => key === prop))
492
+ return true;
493
+ const value = input[key];
494
+ if (undefined === value)
495
+ return true;
496
+ return _assertGuard_1._assertGuard(_exceptionable, {
497
+ method: "typia.createAssertEquals",
498
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
499
+ expected: "undefined",
500
+ value: value
501
+ }, _errorFactory);
502
+ })));
503
+ const _ao18 = (input, _path, _exceptionable = true) => ("string" === typeof input.transactionId && (1 <= input.transactionId.length || _assertGuard_1._assertGuard(_exceptionable, {
504
+ method: "typia.createAssertEquals",
505
+ path: _path + ".transactionId",
506
+ expected: "string & MinLength<1>",
507
+ value: input.transactionId
508
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
509
+ method: "typia.createAssertEquals",
510
+ path: _path + ".transactionId",
511
+ expected: "(string & MinLength<1>)",
512
+ value: input.transactionId
513
+ }, _errorFactory)) && ("string" === typeof input.storeSku && (1 <= input.storeSku.length || _assertGuard_1._assertGuard(_exceptionable, {
514
+ method: "typia.createAssertEquals",
515
+ path: _path + ".storeSku",
516
+ expected: "string & MinLength<1>",
517
+ value: input.storeSku
518
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
519
+ method: "typia.createAssertEquals",
520
+ path: _path + ".storeSku",
521
+ expected: "(string & MinLength<1>)",
522
+ value: input.storeSku
523
+ }, _errorFactory)) && ("string" === typeof input.token && (1 <= input.token.length || _assertGuard_1._assertGuard(_exceptionable, {
524
+ method: "typia.createAssertEquals",
525
+ path: _path + ".token",
526
+ expected: "string & MinLength<1>",
527
+ value: input.token
528
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
529
+ method: "typia.createAssertEquals",
530
+ path: _path + ".token",
531
+ expected: "(string & MinLength<1>)",
532
+ value: input.token
533
+ }, _errorFactory)) && ("pending" === input.state || "purchased" === input.state || "revoked" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
534
+ method: "typia.createAssertEquals",
535
+ path: _path + ".state",
536
+ expected: "(\"pending\" | \"purchased\" | \"revoked\")",
537
+ value: input.state
538
+ }, _errorFactory)) && (undefined === input.originalTransactionId || "string" === typeof input.originalTransactionId && (1 <= input.originalTransactionId.length || _assertGuard_1._assertGuard(_exceptionable, {
539
+ method: "typia.createAssertEquals",
540
+ path: _path + ".originalTransactionId",
541
+ expected: "string & MinLength<1>",
542
+ value: input.originalTransactionId
543
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
544
+ method: "typia.createAssertEquals",
545
+ path: _path + ".originalTransactionId",
546
+ expected: "((string & MinLength<1>) | undefined)",
547
+ value: input.originalTransactionId
548
+ }, _errorFactory)) && (undefined === input.purchasedAt || "string" === typeof input.purchasedAt && (_isFormatDateTime_1._isFormatDateTime(input.purchasedAt) || _assertGuard_1._assertGuard(_exceptionable, {
549
+ method: "typia.createAssertEquals",
550
+ path: _path + ".purchasedAt",
551
+ expected: "string & Format<\"date-time\">",
552
+ value: input.purchasedAt
553
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
554
+ method: "typia.createAssertEquals",
555
+ path: _path + ".purchasedAt",
556
+ expected: "((string & Format<\"date-time\">) | undefined)",
557
+ value: input.purchasedAt
558
+ }, _errorFactory)) && (undefined === input.settlement || ("object" === typeof input.settlement && null !== input.settlement || _assertGuard_1._assertGuard(_exceptionable, {
559
+ method: "typia.createAssertEquals",
560
+ path: _path + ".settlement",
561
+ expected: "(undefined | { readonly ledgerEntryId: NonEmptyString; })",
562
+ value: input.settlement
563
+ }, _errorFactory)) && _ao19(input.settlement, _path + ".settlement", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
564
+ method: "typia.createAssertEquals",
565
+ path: _path + ".settlement",
566
+ expected: "(undefined | { readonly ledgerEntryId: NonEmptyString; })",
567
+ value: input.settlement
568
+ }, _errorFactory)) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
569
+ if (["transactionId", "storeSku", "token", "state", "originalTransactionId", "purchasedAt", "settlement"].some(prop => key === prop))
570
+ return true;
571
+ const value = input[key];
572
+ if (undefined === value)
573
+ return true;
574
+ return _assertGuard_1._assertGuard(_exceptionable, {
575
+ method: "typia.createAssertEquals",
576
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
577
+ expected: "undefined",
578
+ value: value
579
+ }, _errorFactory);
580
+ })));
581
+ const _ao19 = (input, _path, _exceptionable = true) => ("string" === typeof input.ledgerEntryId && (1 <= input.ledgerEntryId.length || _assertGuard_1._assertGuard(_exceptionable, {
582
+ method: "typia.createAssertEquals",
583
+ path: _path + ".ledgerEntryId",
584
+ expected: "string & MinLength<1>",
585
+ value: input.ledgerEntryId
586
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
587
+ method: "typia.createAssertEquals",
588
+ path: _path + ".ledgerEntryId",
589
+ expected: "(string & MinLength<1>)",
590
+ value: input.ledgerEntryId
591
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
592
+ if (["ledgerEntryId"].some(prop => key === prop))
593
+ return true;
594
+ const value = input[key];
595
+ if (undefined === value)
596
+ return true;
597
+ return _assertGuard_1._assertGuard(_exceptionable, {
598
+ method: "typia.createAssertEquals",
599
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
600
+ expected: "undefined",
601
+ value: value
602
+ }, _errorFactory);
603
+ })));
604
+ const _ao2 = (input, _path, _exceptionable = true) => ("boolean" === typeof input.consumable || _assertGuard_1._assertGuard(_exceptionable, {
605
+ method: "typia.createAssertEquals",
606
+ path: _path + ".consumable",
607
+ expected: "boolean",
608
+ value: input.consumable
609
+ }, _errorFactory)) && ("boolean" === typeof input.durable || _assertGuard_1._assertGuard(_exceptionable, {
610
+ method: "typia.createAssertEquals",
611
+ path: _path + ".durable",
612
+ expected: "boolean",
613
+ value: input.durable
614
+ }, _errorFactory)) && ("boolean" === typeof input.subscription || _assertGuard_1._assertGuard(_exceptionable, {
615
+ method: "typia.createAssertEquals",
616
+ path: _path + ".subscription",
617
+ expected: "boolean",
618
+ value: input.subscription
619
+ }, _errorFactory)) && ("boolean" === typeof input.quantity || _assertGuard_1._assertGuard(_exceptionable, {
620
+ method: "typia.createAssertEquals",
621
+ path: _path + ".quantity",
622
+ expected: "boolean",
623
+ value: input.quantity
624
+ }, _errorFactory)) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
625
+ if (["consumable", "durable", "subscription", "quantity"].some(prop => key === prop))
626
+ return true;
627
+ const value = input[key];
628
+ if (undefined === value)
629
+ return true;
630
+ return _assertGuard_1._assertGuard(_exceptionable, {
631
+ method: "typia.createAssertEquals",
632
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
633
+ expected: "undefined",
634
+ value: value
635
+ }, _errorFactory);
636
+ })));
637
+ const _ao20 = (input, _path, _exceptionable = true) => ("store" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
638
+ method: "typia.createAssertEquals",
639
+ path: _path + ".actor",
640
+ expected: "\"store\"",
641
+ value: input.actor
642
+ }, _errorFactory)) && ("error" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
643
+ method: "typia.createAssertEquals",
644
+ path: _path + ".action",
645
+ expected: "\"error\"",
646
+ value: input.action
647
+ }, _errorFactory)) && (undefined === input.logicalId || "string" === typeof input.logicalId && (1 <= input.logicalId.length || _assertGuard_1._assertGuard(_exceptionable, {
648
+ method: "typia.createAssertEquals",
649
+ path: _path + ".logicalId",
650
+ expected: "string & MinLength<1>",
651
+ value: input.logicalId
652
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
653
+ method: "typia.createAssertEquals",
654
+ path: _path + ".logicalId",
655
+ expected: "((string & MinLength<1>) | undefined)",
656
+ value: input.logicalId
657
+ }, _errorFactory)) && (("object" === typeof input.error && null !== input.error || _assertGuard_1._assertGuard(_exceptionable, {
658
+ method: "typia.createAssertEquals",
659
+ path: _path + ".error",
660
+ expected: "CommerceConformanceErrorFixture",
661
+ value: input.error
662
+ }, _errorFactory)) && _ao21(input.error, _path + ".error", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
663
+ method: "typia.createAssertEquals",
664
+ path: _path + ".error",
665
+ expected: "CommerceConformanceErrorFixture",
666
+ value: input.error
667
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
668
+ if (["actor", "action", "logicalId", "error"].some(prop => key === prop))
669
+ return true;
670
+ const value = input[key];
671
+ if (undefined === value)
672
+ return true;
673
+ return _assertGuard_1._assertGuard(_exceptionable, {
674
+ method: "typia.createAssertEquals",
675
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
676
+ expected: "undefined",
677
+ value: value
678
+ }, _errorFactory);
679
+ })));
680
+ const _ao21 = (input, _path, _exceptionable = true) => (true === _av0.has(input.code) || _assertGuard_1._assertGuard(_exceptionable, {
681
+ method: "typia.createAssertEquals",
682
+ path: _path + ".code",
683
+ expected: _ae2,
684
+ value: input.code
685
+ }, _errorFactory)) && ("boolean" === typeof input.retryable || _assertGuard_1._assertGuard(_exceptionable, {
686
+ method: "typia.createAssertEquals",
687
+ path: _path + ".retryable",
688
+ expected: "boolean",
689
+ value: input.retryable
690
+ }, _errorFactory)) && (undefined === input.storeCode || "string" === typeof input.storeCode || _assertGuard_1._assertGuard(_exceptionable, {
691
+ method: "typia.createAssertEquals",
692
+ path: _path + ".storeCode",
693
+ expected: "(string | undefined)",
694
+ value: input.storeCode
695
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
696
+ if (["code", "retryable", "storeCode"].some(prop => key === prop))
697
+ return true;
698
+ const value = input[key];
699
+ if (undefined === value)
700
+ return true;
701
+ return _assertGuard_1._assertGuard(_exceptionable, {
702
+ method: "typia.createAssertEquals",
703
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
704
+ expected: "undefined",
705
+ value: value
706
+ }, _errorFactory);
707
+ })));
708
+ const _ao22 = (input, _path, _exceptionable = true) => ("store" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
709
+ method: "typia.createAssertEquals",
710
+ path: _path + ".actor",
711
+ expected: "\"store\"",
712
+ value: input.actor
713
+ }, _errorFactory)) && ("queueRequest" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
714
+ method: "typia.createAssertEquals",
715
+ path: _path + ".action",
716
+ expected: "\"queueRequest\"",
717
+ value: input.action
718
+ }, _errorFactory)) && (("object" === typeof input.result && null !== input.result || _assertGuard_1._assertGuard(_exceptionable, {
719
+ method: "typia.createAssertEquals",
720
+ path: _path + ".result",
721
+ expected: _ae3,
722
+ value: input.result
723
+ }, _errorFactory)) && _au1(input.result, _path + ".result", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
724
+ method: "typia.createAssertEquals",
725
+ path: _path + ".result",
726
+ expected: _ae3,
727
+ value: input.result
728
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
729
+ if (["actor", "action", "result"].some(prop => key === prop))
730
+ return true;
731
+ const value = input[key];
732
+ if (undefined === value)
733
+ return true;
734
+ return _assertGuard_1._assertGuard(_exceptionable, {
735
+ method: "typia.createAssertEquals",
736
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
737
+ expected: "undefined",
738
+ value: value
739
+ }, _errorFactory);
740
+ })));
741
+ const _ao23 = (input, _path, _exceptionable = true) => ("launched" === input.outcome || _assertGuard_1._assertGuard(_exceptionable, {
742
+ method: "typia.createAssertEquals",
743
+ path: _path + ".outcome",
744
+ expected: "\"launched\"",
745
+ value: input.outcome
746
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
747
+ if (["outcome"].some(prop => key === prop))
748
+ return true;
749
+ const value = input[key];
750
+ if (undefined === value)
751
+ return true;
752
+ return _assertGuard_1._assertGuard(_exceptionable, {
753
+ method: "typia.createAssertEquals",
754
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
755
+ expected: "undefined",
756
+ value: value
757
+ }, _errorFactory);
758
+ })));
759
+ const _ao24 = (input, _path, _exceptionable = true) => ("purchased" === input.outcome || _assertGuard_1._assertGuard(_exceptionable, {
760
+ method: "typia.createAssertEquals",
761
+ path: _path + ".outcome",
762
+ expected: "\"purchased\"",
763
+ value: input.outcome
764
+ }, _errorFactory)) && (("object" === typeof input.purchase && null !== input.purchase || _assertGuard_1._assertGuard(_exceptionable, {
765
+ method: "typia.createAssertEquals",
766
+ path: _path + ".purchase",
767
+ expected: "CommerceConformancePurchaseFixture",
768
+ value: input.purchase
769
+ }, _errorFactory)) && _ao18(input.purchase, _path + ".purchase", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
770
+ method: "typia.createAssertEquals",
771
+ path: _path + ".purchase",
772
+ expected: "CommerceConformancePurchaseFixture",
773
+ value: input.purchase
774
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
775
+ if (["outcome", "purchase"].some(prop => key === prop))
776
+ return true;
777
+ const value = input[key];
778
+ if (undefined === value)
779
+ return true;
780
+ return _assertGuard_1._assertGuard(_exceptionable, {
781
+ method: "typia.createAssertEquals",
782
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
783
+ expected: "undefined",
784
+ value: value
785
+ }, _errorFactory);
786
+ })));
787
+ const _ao25 = (input, _path, _exceptionable = true) => ("cancelled" === input.outcome || "failed" === input.outcome || _assertGuard_1._assertGuard(_exceptionable, {
788
+ method: "typia.createAssertEquals",
789
+ path: _path + ".outcome",
790
+ expected: "(\"cancelled\" | \"failed\")",
791
+ value: input.outcome
792
+ }, _errorFactory)) && (("object" === typeof input.error && null !== input.error || _assertGuard_1._assertGuard(_exceptionable, {
793
+ method: "typia.createAssertEquals",
794
+ path: _path + ".error",
795
+ expected: "CommerceConformanceErrorFixture",
796
+ value: input.error
797
+ }, _errorFactory)) && _ao21(input.error, _path + ".error", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
798
+ method: "typia.createAssertEquals",
799
+ path: _path + ".error",
800
+ expected: "CommerceConformanceErrorFixture",
801
+ value: input.error
802
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
803
+ if (["outcome", "error"].some(prop => key === prop))
804
+ return true;
805
+ const value = input[key];
806
+ if (undefined === value)
807
+ return true;
808
+ return _assertGuard_1._assertGuard(_exceptionable, {
809
+ method: "typia.createAssertEquals",
810
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
811
+ expected: "undefined",
812
+ value: value
813
+ }, _errorFactory);
814
+ })));
815
+ const _ao26 = (input, _path, _exceptionable = true) => ("store" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
816
+ method: "typia.createAssertEquals",
817
+ path: _path + ".actor",
818
+ expected: "\"store\"",
819
+ value: input.actor
820
+ }, _errorFactory)) && ("queueFinish" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
821
+ method: "typia.createAssertEquals",
822
+ path: _path + ".action",
823
+ expected: "\"queueFinish\"",
824
+ value: input.action
825
+ }, _errorFactory)) && (("object" === typeof input.result && null !== input.result || _assertGuard_1._assertGuard(_exceptionable, {
826
+ method: "typia.createAssertEquals",
827
+ path: _path + ".result",
828
+ expected: "({ readonly error: CommerceErrorCode; } | { readonly finished: boolean; })",
829
+ value: input.result
830
+ }, _errorFactory)) && _au2(input.result, _path + ".result", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
831
+ method: "typia.createAssertEquals",
832
+ path: _path + ".result",
833
+ expected: "({ readonly error: CommerceErrorCode; } | { readonly finished: boolean; })",
834
+ value: input.result
835
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
836
+ if (["actor", "action", "result"].some(prop => key === prop))
837
+ return true;
838
+ const value = input[key];
839
+ if (undefined === value)
840
+ return true;
841
+ return _assertGuard_1._assertGuard(_exceptionable, {
842
+ method: "typia.createAssertEquals",
843
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
844
+ expected: "undefined",
845
+ value: value
846
+ }, _errorFactory);
847
+ })));
848
+ const _ao27 = (input, _path, _exceptionable = true) => ("boolean" === typeof input.finished || _assertGuard_1._assertGuard(_exceptionable, {
849
+ method: "typia.createAssertEquals",
850
+ path: _path + ".finished",
851
+ expected: "boolean",
852
+ value: input.finished
853
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
854
+ if (["finished"].some(prop => key === prop))
855
+ return true;
856
+ const value = input[key];
857
+ if (undefined === value)
858
+ return true;
859
+ return _assertGuard_1._assertGuard(_exceptionable, {
860
+ method: "typia.createAssertEquals",
861
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
862
+ expected: "undefined",
863
+ value: value
864
+ }, _errorFactory);
865
+ })));
866
+ const _ao28 = (input, _path, _exceptionable = true) => (true === _av0.has(input.error) || _assertGuard_1._assertGuard(_exceptionable, {
867
+ method: "typia.createAssertEquals",
868
+ path: _path + ".error",
869
+ expected: _ae2,
870
+ value: input.error
871
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
872
+ if (["error"].some(prop => key === prop))
873
+ return true;
874
+ const value = input[key];
875
+ if (undefined === value)
876
+ return true;
877
+ return _assertGuard_1._assertGuard(_exceptionable, {
878
+ method: "typia.createAssertEquals",
879
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
880
+ expected: "undefined",
881
+ value: value
882
+ }, _errorFactory);
883
+ })));
884
+ const _ao29 = (input, _path, _exceptionable = true) => ("backend" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
885
+ method: "typia.createAssertEquals",
886
+ path: _path + ".actor",
887
+ expected: "\"backend\"",
888
+ value: input.actor
889
+ }, _errorFactory)) && ("queueVerify" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
890
+ method: "typia.createAssertEquals",
891
+ path: _path + ".action",
892
+ expected: "\"queueVerify\"",
893
+ value: input.action
894
+ }, _errorFactory)) && (("object" === typeof input.decision && null !== input.decision || _assertGuard_1._assertGuard(_exceptionable, {
895
+ method: "typia.createAssertEquals",
896
+ path: _path + ".decision",
897
+ expected: "CommerceConformanceVerifyDecision",
898
+ value: input.decision
899
+ }, _errorFactory)) && _ao30(input.decision, _path + ".decision", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
900
+ method: "typia.createAssertEquals",
901
+ path: _path + ".decision",
902
+ expected: "CommerceConformanceVerifyDecision",
903
+ value: input.decision
904
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
905
+ if (["actor", "action", "decision"].some(prop => key === prop))
906
+ return true;
907
+ const value = input[key];
908
+ if (undefined === value)
909
+ return true;
910
+ return _assertGuard_1._assertGuard(_exceptionable, {
911
+ method: "typia.createAssertEquals",
912
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
913
+ expected: "undefined",
914
+ value: value
915
+ }, _errorFactory);
916
+ })));
917
+ const _ao3 = (input, _path, _exceptionable = true) => ("boolean" === typeof input.availablePurchases || _assertGuard_1._assertGuard(_exceptionable, {
918
+ method: "typia.createAssertEquals",
919
+ path: _path + ".availablePurchases",
920
+ expected: "boolean",
921
+ value: input.availablePurchases
922
+ }, _errorFactory)) && ("boolean" === typeof input.pending || _assertGuard_1._assertGuard(_exceptionable, {
923
+ method: "typia.createAssertEquals",
924
+ path: _path + ".pending",
925
+ expected: "boolean",
926
+ value: input.pending
927
+ }, _errorFactory)) && ("boolean" === typeof input.restore || _assertGuard_1._assertGuard(_exceptionable, {
928
+ method: "typia.createAssertEquals",
929
+ path: _path + ".restore",
930
+ expected: "boolean",
931
+ value: input.restore
932
+ }, _errorFactory)) && ("boolean" === typeof input.events || _assertGuard_1._assertGuard(_exceptionable, {
933
+ method: "typia.createAssertEquals",
934
+ path: _path + ".events",
935
+ expected: "boolean",
936
+ value: input.events
937
+ }, _errorFactory)) && ("client" === input.finish || "host" === input.finish || "none" === input.finish || "server" === input.finish || _assertGuard_1._assertGuard(_exceptionable, {
938
+ method: "typia.createAssertEquals",
939
+ path: _path + ".finish",
940
+ expected: "(\"client\" | \"host\" | \"none\" | \"server\")",
941
+ value: input.finish
942
+ }, _errorFactory)) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
943
+ if (["availablePurchases", "pending", "restore", "events", "finish"].some(prop => key === prop))
944
+ return true;
945
+ const value = input[key];
946
+ if (undefined === value)
947
+ return true;
948
+ return _assertGuard_1._assertGuard(_exceptionable, {
949
+ method: "typia.createAssertEquals",
950
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
951
+ expected: "undefined",
952
+ value: value
953
+ }, _errorFactory);
954
+ })));
955
+ const _ao30 = (input, _path, _exceptionable = true) => ("granted" === input.status || "pending" === input.status || "rejected" === input.status || _assertGuard_1._assertGuard(_exceptionable, {
956
+ method: "typia.createAssertEquals",
957
+ path: _path + ".status",
958
+ expected: "(\"granted\" | \"pending\" | \"rejected\")",
959
+ value: input.status
960
+ }, _errorFactory)) && (undefined === input.ledgerEntryId || "string" === typeof input.ledgerEntryId && (1 <= input.ledgerEntryId.length || _assertGuard_1._assertGuard(_exceptionable, {
961
+ method: "typia.createAssertEquals",
962
+ path: _path + ".ledgerEntryId",
963
+ expected: "string & MinLength<1>",
964
+ value: input.ledgerEntryId
965
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
966
+ method: "typia.createAssertEquals",
967
+ path: _path + ".ledgerEntryId",
968
+ expected: "((string & MinLength<1>) | undefined)",
969
+ value: input.ledgerEntryId
970
+ }, _errorFactory)) && (undefined === input.finalization || "completed" === input.finalization || "pending" === input.finalization || _assertGuard_1._assertGuard(_exceptionable, {
971
+ method: "typia.createAssertEquals",
972
+ path: _path + ".finalization",
973
+ expected: "(\"completed\" | \"pending\" | undefined)",
974
+ value: input.finalization
975
+ }, _errorFactory)) && (undefined === input.alreadyProcessed || "boolean" === typeof input.alreadyProcessed || _assertGuard_1._assertGuard(_exceptionable, {
976
+ method: "typia.createAssertEquals",
977
+ path: _path + ".alreadyProcessed",
978
+ expected: "(boolean | undefined)",
979
+ value: input.alreadyProcessed
980
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
981
+ if (["status", "ledgerEntryId", "finalization", "alreadyProcessed"].some(prop => key === prop))
982
+ return true;
983
+ const value = input[key];
984
+ if (undefined === value)
985
+ return true;
986
+ return _assertGuard_1._assertGuard(_exceptionable, {
987
+ method: "typia.createAssertEquals",
988
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
989
+ expected: "undefined",
990
+ value: value
991
+ }, _errorFactory);
992
+ })));
993
+ const _ao31 = (input, _path, _exceptionable = true) => ("backend" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
994
+ method: "typia.createAssertEquals",
995
+ path: _path + ".actor",
996
+ expected: "\"backend\"",
997
+ value: input.actor
998
+ }, _errorFactory)) && ("push" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
999
+ method: "typia.createAssertEquals",
1000
+ path: _path + ".action",
1001
+ expected: "\"push\"",
1002
+ value: input.action
1003
+ }, _errorFactory)) && ("string" === typeof input.transactionId && (1 <= input.transactionId.length || _assertGuard_1._assertGuard(_exceptionable, {
1004
+ method: "typia.createAssertEquals",
1005
+ path: _path + ".transactionId",
1006
+ expected: "string & MinLength<1>",
1007
+ value: input.transactionId
1008
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1009
+ method: "typia.createAssertEquals",
1010
+ path: _path + ".transactionId",
1011
+ expected: "(string & MinLength<1>)",
1012
+ value: input.transactionId
1013
+ }, _errorFactory)) && ("string" === typeof input.entryId && (1 <= input.entryId.length || _assertGuard_1._assertGuard(_exceptionable, {
1014
+ method: "typia.createAssertEquals",
1015
+ path: _path + ".entryId",
1016
+ expected: "string & MinLength<1>",
1017
+ value: input.entryId
1018
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1019
+ method: "typia.createAssertEquals",
1020
+ path: _path + ".entryId",
1021
+ expected: "(string & MinLength<1>)",
1022
+ value: input.entryId
1023
+ }, _errorFactory)) && ("string" === typeof input.logicalId && (1 <= input.logicalId.length || _assertGuard_1._assertGuard(_exceptionable, {
1024
+ method: "typia.createAssertEquals",
1025
+ path: _path + ".logicalId",
1026
+ expected: "string & MinLength<1>",
1027
+ value: input.logicalId
1028
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1029
+ method: "typia.createAssertEquals",
1030
+ path: _path + ".logicalId",
1031
+ expected: "(string & MinLength<1>)",
1032
+ value: input.logicalId
1033
+ }, _errorFactory)) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1034
+ if (["actor", "action", "transactionId", "entryId", "logicalId"].some(prop => key === prop))
1035
+ return true;
1036
+ const value = input[key];
1037
+ if (undefined === value)
1038
+ return true;
1039
+ return _assertGuard_1._assertGuard(_exceptionable, {
1040
+ method: "typia.createAssertEquals",
1041
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1042
+ expected: "undefined",
1043
+ value: value
1044
+ }, _errorFactory);
1045
+ })));
1046
+ const _ao32 = (input, _path, _exceptionable = true) => ("backend" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
1047
+ method: "typia.createAssertEquals",
1048
+ path: _path + ".actor",
1049
+ expected: "\"backend\"",
1050
+ value: input.actor
1051
+ }, _errorFactory)) && ("revoke" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
1052
+ method: "typia.createAssertEquals",
1053
+ path: _path + ".action",
1054
+ expected: "\"revoke\"",
1055
+ value: input.action
1056
+ }, _errorFactory)) && ("string" === typeof input.ledgerEntryId && (1 <= input.ledgerEntryId.length || _assertGuard_1._assertGuard(_exceptionable, {
1057
+ method: "typia.createAssertEquals",
1058
+ path: _path + ".ledgerEntryId",
1059
+ expected: "string & MinLength<1>",
1060
+ value: input.ledgerEntryId
1061
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1062
+ method: "typia.createAssertEquals",
1063
+ path: _path + ".ledgerEntryId",
1064
+ expected: "(string & MinLength<1>)",
1065
+ value: input.ledgerEntryId
1066
+ }, _errorFactory)) && ("string" === typeof input.entryId && (1 <= input.entryId.length || _assertGuard_1._assertGuard(_exceptionable, {
1067
+ method: "typia.createAssertEquals",
1068
+ path: _path + ".entryId",
1069
+ expected: "string & MinLength<1>",
1070
+ value: input.entryId
1071
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1072
+ method: "typia.createAssertEquals",
1073
+ path: _path + ".entryId",
1074
+ expected: "(string & MinLength<1>)",
1075
+ value: input.entryId
1076
+ }, _errorFactory)) && ("string" === typeof input.reason && (1 <= input.reason.length || _assertGuard_1._assertGuard(_exceptionable, {
1077
+ method: "typia.createAssertEquals",
1078
+ path: _path + ".reason",
1079
+ expected: "string & MinLength<1>",
1080
+ value: input.reason
1081
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1082
+ method: "typia.createAssertEquals",
1083
+ path: _path + ".reason",
1084
+ expected: "(string & MinLength<1>)",
1085
+ value: input.reason
1086
+ }, _errorFactory)) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1087
+ if (["actor", "action", "ledgerEntryId", "entryId", "reason"].some(prop => key === prop))
1088
+ return true;
1089
+ const value = input[key];
1090
+ if (undefined === value)
1091
+ return true;
1092
+ return _assertGuard_1._assertGuard(_exceptionable, {
1093
+ method: "typia.createAssertEquals",
1094
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1095
+ expected: "undefined",
1096
+ value: value
1097
+ }, _errorFactory);
1098
+ })));
1099
+ const _ao33 = (input, _path, _exceptionable = true) => ("wallet" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
1100
+ method: "typia.createAssertEquals",
1101
+ path: _path + ".actor",
1102
+ expected: "\"wallet\"",
1103
+ value: input.actor
1104
+ }, _errorFactory)) && ("creditFromGrant" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
1105
+ method: "typia.createAssertEquals",
1106
+ path: _path + ".action",
1107
+ expected: "\"creditFromGrant\"",
1108
+ value: input.action
1109
+ }, _errorFactory)) && (("object" === typeof input.lot && null !== input.lot || _assertGuard_1._assertGuard(_exceptionable, {
1110
+ method: "typia.createAssertEquals",
1111
+ path: _path + ".lot",
1112
+ expected: "CommerceConformanceLotFixture",
1113
+ value: input.lot
1114
+ }, _errorFactory)) && _ao34(input.lot, _path + ".lot", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1115
+ method: "typia.createAssertEquals",
1116
+ path: _path + ".lot",
1117
+ expected: "CommerceConformanceLotFixture",
1118
+ value: input.lot
1119
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1120
+ if (["actor", "action", "lot"].some(prop => key === prop))
1121
+ return true;
1122
+ const value = input[key];
1123
+ if (undefined === value)
1124
+ return true;
1125
+ return _assertGuard_1._assertGuard(_exceptionable, {
1126
+ method: "typia.createAssertEquals",
1127
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1128
+ expected: "undefined",
1129
+ value: value
1130
+ }, _errorFactory);
1131
+ })));
1132
+ const _ao34 = (input, _path, _exceptionable = true) => ("string" === typeof input.ledgerEntryId && (1 <= input.ledgerEntryId.length || _assertGuard_1._assertGuard(_exceptionable, {
1133
+ method: "typia.createAssertEquals",
1134
+ path: _path + ".ledgerEntryId",
1135
+ expected: "string & MinLength<1>",
1136
+ value: input.ledgerEntryId
1137
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1138
+ method: "typia.createAssertEquals",
1139
+ path: _path + ".ledgerEntryId",
1140
+ expected: "(string & MinLength<1>)",
1141
+ value: input.ledgerEntryId
1142
+ }, _errorFactory)) && ("string" === typeof input.currency && (1 <= input.currency.length || _assertGuard_1._assertGuard(_exceptionable, {
1143
+ method: "typia.createAssertEquals",
1144
+ path: _path + ".currency",
1145
+ expected: "string & MinLength<1>",
1146
+ value: input.currency
1147
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1148
+ method: "typia.createAssertEquals",
1149
+ path: _path + ".currency",
1150
+ expected: "(string & MinLength<1>)",
1151
+ value: input.currency
1152
+ }, _errorFactory)) && ("number" === typeof input.amount && (0 < input.amount || _assertGuard_1._assertGuard(_exceptionable, {
1153
+ method: "typia.createAssertEquals",
1154
+ path: _path + ".amount",
1155
+ expected: "number & ExclusiveMinimum<0>",
1156
+ value: input.amount
1157
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1158
+ method: "typia.createAssertEquals",
1159
+ path: _path + ".amount",
1160
+ expected: "(number & ExclusiveMinimum<0>)",
1161
+ value: input.amount
1162
+ }, _errorFactory)) && (("object" === typeof input.origin && null !== input.origin || _assertGuard_1._assertGuard(_exceptionable, {
1163
+ method: "typia.createAssertEquals",
1164
+ path: _path + ".origin",
1165
+ expected: "CreditLotOrigin",
1166
+ value: input.origin
1167
+ }, _errorFactory)) && _ao35(input.origin, _path + ".origin", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1168
+ method: "typia.createAssertEquals",
1169
+ path: _path + ".origin",
1170
+ expected: "CreditLotOrigin",
1171
+ value: input.origin
1172
+ }, _errorFactory)) && ("string" === typeof input.createdAt && (_isFormatDateTime_1._isFormatDateTime(input.createdAt) || _assertGuard_1._assertGuard(_exceptionable, {
1173
+ method: "typia.createAssertEquals",
1174
+ path: _path + ".createdAt",
1175
+ expected: "string & Format<\"date-time\">",
1176
+ value: input.createdAt
1177
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1178
+ method: "typia.createAssertEquals",
1179
+ path: _path + ".createdAt",
1180
+ expected: "(string & Format<\"date-time\">)",
1181
+ value: input.createdAt
1182
+ }, _errorFactory)) && (undefined === input.expiresAt || "string" === typeof input.expiresAt && (_isFormatDateTime_1._isFormatDateTime(input.expiresAt) || _assertGuard_1._assertGuard(_exceptionable, {
1183
+ method: "typia.createAssertEquals",
1184
+ path: _path + ".expiresAt",
1185
+ expected: "string & Format<\"date-time\">",
1186
+ value: input.expiresAt
1187
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1188
+ method: "typia.createAssertEquals",
1189
+ path: _path + ".expiresAt",
1190
+ expected: "((string & Format<\"date-time\">) | undefined)",
1191
+ value: input.expiresAt
1192
+ }, _errorFactory)) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1193
+ if (["ledgerEntryId", "currency", "amount", "origin", "createdAt", "expiresAt"].some(prop => key === prop))
1194
+ return true;
1195
+ const value = input[key];
1196
+ if (undefined === value)
1197
+ return true;
1198
+ return _assertGuard_1._assertGuard(_exceptionable, {
1199
+ method: "typia.createAssertEquals",
1200
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1201
+ expected: "undefined",
1202
+ value: value
1203
+ }, _errorFactory);
1204
+ })));
1205
+ const _ao35 = (input, _path, _exceptionable = true) => ("off-store" === input.channel || "promotion" === input.channel || "store" === input.channel || _assertGuard_1._assertGuard(_exceptionable, {
1206
+ method: "typia.createAssertEquals",
1207
+ path: _path + ".channel",
1208
+ expected: "(\"off-store\" | \"promotion\" | \"store\")",
1209
+ value: input.channel
1210
+ }, _errorFactory)) && ("string" === typeof input.store && (1 <= input.store.length || _assertGuard_1._assertGuard(_exceptionable, {
1211
+ method: "typia.createAssertEquals",
1212
+ path: _path + ".store",
1213
+ expected: "string & MinLength<1>",
1214
+ value: input.store
1215
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1216
+ method: "typia.createAssertEquals",
1217
+ path: _path + ".store",
1218
+ expected: "(string & MinLength<1>)",
1219
+ value: input.store
1220
+ }, _errorFactory)) && ("string" === typeof input.titleId && (1 <= input.titleId.length || _assertGuard_1._assertGuard(_exceptionable, {
1221
+ method: "typia.createAssertEquals",
1222
+ path: _path + ".titleId",
1223
+ expected: "string & MinLength<1>",
1224
+ value: input.titleId
1225
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1226
+ method: "typia.createAssertEquals",
1227
+ path: _path + ".titleId",
1228
+ expected: "(string & MinLength<1>)",
1229
+ value: input.titleId
1230
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1231
+ if (["channel", "store", "titleId"].some(prop => key === prop))
1232
+ return true;
1233
+ const value = input[key];
1234
+ if (undefined === value)
1235
+ return true;
1236
+ return _assertGuard_1._assertGuard(_exceptionable, {
1237
+ method: "typia.createAssertEquals",
1238
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1239
+ expected: "undefined",
1240
+ value: value
1241
+ }, _errorFactory);
1242
+ })));
1243
+ const _ao36 = (input, _path, _exceptionable = true) => ("wallet" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
1244
+ method: "typia.createAssertEquals",
1245
+ path: _path + ".actor",
1246
+ expected: "\"wallet\"",
1247
+ value: input.actor
1248
+ }, _errorFactory)) && ("spend" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
1249
+ method: "typia.createAssertEquals",
1250
+ path: _path + ".action",
1251
+ expected: "\"spend\"",
1252
+ value: input.action
1253
+ }, _errorFactory)) && (("object" === typeof input.input && null !== input.input || _assertGuard_1._assertGuard(_exceptionable, {
1254
+ method: "typia.createAssertEquals",
1255
+ path: _path + ".input",
1256
+ expected: "CommerceConformanceSpendInput",
1257
+ value: input.input
1258
+ }, _errorFactory)) && _ao37(input.input, _path + ".input", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1259
+ method: "typia.createAssertEquals",
1260
+ path: _path + ".input",
1261
+ expected: "CommerceConformanceSpendInput",
1262
+ value: input.input
1263
+ }, _errorFactory)) && (undefined === input.returns || ("object" === typeof input.returns && null !== input.returns || _assertGuard_1._assertGuard(_exceptionable, {
1264
+ method: "typia.createAssertEquals",
1265
+ path: _path + ".returns",
1266
+ expected: "(CommerceConformanceSpendExpectation | undefined)",
1267
+ value: input.returns
1268
+ }, _errorFactory)) && _ao38(input.returns, _path + ".returns", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1269
+ method: "typia.createAssertEquals",
1270
+ path: _path + ".returns",
1271
+ expected: "(CommerceConformanceSpendExpectation | undefined)",
1272
+ value: input.returns
1273
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1274
+ if (["actor", "action", "input", "returns"].some(prop => key === prop))
1275
+ return true;
1276
+ const value = input[key];
1277
+ if (undefined === value)
1278
+ return true;
1279
+ return _assertGuard_1._assertGuard(_exceptionable, {
1280
+ method: "typia.createAssertEquals",
1281
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1282
+ expected: "undefined",
1283
+ value: value
1284
+ }, _errorFactory);
1285
+ })));
1286
+ const _ao37 = (input, _path, _exceptionable = true) => ("string" === typeof input.titleId && (1 <= input.titleId.length || _assertGuard_1._assertGuard(_exceptionable, {
1287
+ method: "typia.createAssertEquals",
1288
+ path: _path + ".titleId",
1289
+ expected: "string & MinLength<1>",
1290
+ value: input.titleId
1291
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1292
+ method: "typia.createAssertEquals",
1293
+ path: _path + ".titleId",
1294
+ expected: "(string & MinLength<1>)",
1295
+ value: input.titleId
1296
+ }, _errorFactory)) && ("string" === typeof input.currency && (1 <= input.currency.length || _assertGuard_1._assertGuard(_exceptionable, {
1297
+ method: "typia.createAssertEquals",
1298
+ path: _path + ".currency",
1299
+ expected: "string & MinLength<1>",
1300
+ value: input.currency
1301
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1302
+ method: "typia.createAssertEquals",
1303
+ path: _path + ".currency",
1304
+ expected: "(string & MinLength<1>)",
1305
+ value: input.currency
1306
+ }, _errorFactory)) && ("number" === typeof input.amount && (0 < input.amount || _assertGuard_1._assertGuard(_exceptionable, {
1307
+ method: "typia.createAssertEquals",
1308
+ path: _path + ".amount",
1309
+ expected: "number & ExclusiveMinimum<0>",
1310
+ value: input.amount
1311
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1312
+ method: "typia.createAssertEquals",
1313
+ path: _path + ".amount",
1314
+ expected: "(number & ExclusiveMinimum<0>)",
1315
+ value: input.amount
1316
+ }, _errorFactory)) && ("string" === typeof input.idempotencyKey && (1 <= input.idempotencyKey.length || _assertGuard_1._assertGuard(_exceptionable, {
1317
+ method: "typia.createAssertEquals",
1318
+ path: _path + ".idempotencyKey",
1319
+ expected: "string & MinLength<1>",
1320
+ value: input.idempotencyKey
1321
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1322
+ method: "typia.createAssertEquals",
1323
+ path: _path + ".idempotencyKey",
1324
+ expected: "(string & MinLength<1>)",
1325
+ value: input.idempotencyKey
1326
+ }, _errorFactory)) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1327
+ if (["titleId", "currency", "amount", "idempotencyKey"].some(prop => key === prop))
1328
+ return true;
1329
+ const value = input[key];
1330
+ if (undefined === value)
1331
+ return true;
1332
+ return _assertGuard_1._assertGuard(_exceptionable, {
1333
+ method: "typia.createAssertEquals",
1334
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1335
+ expected: "undefined",
1336
+ value: value
1337
+ }, _errorFactory);
1338
+ })));
1339
+ const _ao38 = (input, _path, _exceptionable = true) => ("debited" === input.status || "rejected" === input.status || _assertGuard_1._assertGuard(_exceptionable, {
1340
+ method: "typia.createAssertEquals",
1341
+ path: _path + ".status",
1342
+ expected: "(\"debited\" | \"rejected\")",
1343
+ value: input.status
1344
+ }, _errorFactory)) && (undefined === input.debits || (Array.isArray(input.debits) || _assertGuard_1._assertGuard(_exceptionable, {
1345
+ method: "typia.createAssertEquals",
1346
+ path: _path + ".debits",
1347
+ expected: "(ReadonlyArray<CommerceConformanceDebitExpectation> | undefined)",
1348
+ value: input.debits
1349
+ }, _errorFactory)) && input.debits.every((elem, _index22) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
1350
+ method: "typia.createAssertEquals",
1351
+ path: _path + ".debits[" + _index22 + "]",
1352
+ expected: "CommerceConformanceDebitExpectation",
1353
+ value: elem
1354
+ }, _errorFactory)) && _ao39(elem, _path + ".debits[" + _index22 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1355
+ method: "typia.createAssertEquals",
1356
+ path: _path + ".debits[" + _index22 + "]",
1357
+ expected: "CommerceConformanceDebitExpectation",
1358
+ value: elem
1359
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1360
+ method: "typia.createAssertEquals",
1361
+ path: _path + ".debits",
1362
+ expected: "(ReadonlyArray<CommerceConformanceDebitExpectation> | undefined)",
1363
+ value: input.debits
1364
+ }, _errorFactory)) && (undefined === input.alreadyProcessed || "boolean" === typeof input.alreadyProcessed || _assertGuard_1._assertGuard(_exceptionable, {
1365
+ method: "typia.createAssertEquals",
1366
+ path: _path + ".alreadyProcessed",
1367
+ expected: "(boolean | undefined)",
1368
+ value: input.alreadyProcessed
1369
+ }, _errorFactory)) && (undefined === input.error || ("object" === typeof input.error && null !== input.error || _assertGuard_1._assertGuard(_exceptionable, {
1370
+ method: "typia.createAssertEquals",
1371
+ path: _path + ".error",
1372
+ expected: "(CommerceConformanceErrorExpectation | undefined)",
1373
+ value: input.error
1374
+ }, _errorFactory)) && _ao13(input.error, _path + ".error", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1375
+ method: "typia.createAssertEquals",
1376
+ path: _path + ".error",
1377
+ expected: "(CommerceConformanceErrorExpectation | undefined)",
1378
+ value: input.error
1379
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1380
+ if (["status", "debits", "alreadyProcessed", "error"].some(prop => key === prop))
1381
+ return true;
1382
+ const value = input[key];
1383
+ if (undefined === value)
1384
+ return true;
1385
+ return _assertGuard_1._assertGuard(_exceptionable, {
1386
+ method: "typia.createAssertEquals",
1387
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1388
+ expected: "undefined",
1389
+ value: value
1390
+ }, _errorFactory);
1391
+ })));
1392
+ const _ao39 = (input, _path, _exceptionable = true) => ("string" === typeof input.lotId && (1 <= input.lotId.length || _assertGuard_1._assertGuard(_exceptionable, {
1393
+ method: "typia.createAssertEquals",
1394
+ path: _path + ".lotId",
1395
+ expected: "string & MinLength<1>",
1396
+ value: input.lotId
1397
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1398
+ method: "typia.createAssertEquals",
1399
+ path: _path + ".lotId",
1400
+ expected: "(string & MinLength<1>)",
1401
+ value: input.lotId
1402
+ }, _errorFactory)) && ("number" === typeof input.amount && (0 < input.amount || _assertGuard_1._assertGuard(_exceptionable, {
1403
+ method: "typia.createAssertEquals",
1404
+ path: _path + ".amount",
1405
+ expected: "number & ExclusiveMinimum<0>",
1406
+ value: input.amount
1407
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1408
+ method: "typia.createAssertEquals",
1409
+ path: _path + ".amount",
1410
+ expected: "(number & ExclusiveMinimum<0>)",
1411
+ value: input.amount
1412
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1413
+ if (["lotId", "amount"].some(prop => key === prop))
1414
+ return true;
1415
+ const value = input[key];
1416
+ if (undefined === value)
1417
+ return true;
1418
+ return _assertGuard_1._assertGuard(_exceptionable, {
1419
+ method: "typia.createAssertEquals",
1420
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1421
+ expected: "undefined",
1422
+ value: value
1423
+ }, _errorFactory);
1424
+ })));
1425
+ const _ao4 = (input, _path, _exceptionable = true) => ("adapter-settled" === input.evidence || "client-token" === input.evidence || "host-callback" === input.evidence || "server-push" === input.evidence || _assertGuard_1._assertGuard(_exceptionable, {
1426
+ method: "typia.createAssertEquals",
1427
+ path: _path + ".evidence",
1428
+ expected: "(\"adapter-settled\" | \"client-token\" | \"host-callback\" | \"server-push\")",
1429
+ value: input.evidence
1430
+ }, _errorFactory)) && ("host" === input.accountBinding || "optional" === input.accountBinding || "required" === input.accountBinding || _assertGuard_1._assertGuard(_exceptionable, {
1431
+ method: "typia.createAssertEquals",
1432
+ path: _path + ".accountBinding",
1433
+ expected: "(\"host\" | \"optional\" | \"required\")",
1434
+ value: input.accountBinding
1435
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1436
+ if (["evidence", "accountBinding"].some(prop => key === prop))
1437
+ return true;
1438
+ const value = input[key];
1439
+ if (undefined === value)
1440
+ return true;
1441
+ return _assertGuard_1._assertGuard(_exceptionable, {
1442
+ method: "typia.createAssertEquals",
1443
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1444
+ expected: "undefined",
1445
+ value: value
1446
+ }, _errorFactory);
1447
+ })));
1448
+ const _ao40 = (input, _path, _exceptionable = true) => ("wallet" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
1449
+ method: "typia.createAssertEquals",
1450
+ path: _path + ".actor",
1451
+ expected: "\"wallet\"",
1452
+ value: input.actor
1453
+ }, _errorFactory)) && ("renewDue" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
1454
+ method: "typia.createAssertEquals",
1455
+ path: _path + ".action",
1456
+ expected: "\"renewDue\"",
1457
+ value: input.action
1458
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1459
+ if (["actor", "action"].some(prop => key === prop))
1460
+ return true;
1461
+ const value = input[key];
1462
+ if (undefined === value)
1463
+ return true;
1464
+ return _assertGuard_1._assertGuard(_exceptionable, {
1465
+ method: "typia.createAssertEquals",
1466
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1467
+ expected: "undefined",
1468
+ value: value
1469
+ }, _errorFactory);
1470
+ })));
1471
+ const _ao41 = (input, _path, _exceptionable = true) => ("clock" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
1472
+ method: "typia.createAssertEquals",
1473
+ path: _path + ".actor",
1474
+ expected: "\"clock\"",
1475
+ value: input.actor
1476
+ }, _errorFactory)) && ("set" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
1477
+ method: "typia.createAssertEquals",
1478
+ path: _path + ".action",
1479
+ expected: "\"set\"",
1480
+ value: input.action
1481
+ }, _errorFactory)) && ("string" === typeof input.at && (_isFormatDateTime_1._isFormatDateTime(input.at) || _assertGuard_1._assertGuard(_exceptionable, {
1482
+ method: "typia.createAssertEquals",
1483
+ path: _path + ".at",
1484
+ expected: "string & Format<\"date-time\">",
1485
+ value: input.at
1486
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1487
+ method: "typia.createAssertEquals",
1488
+ path: _path + ".at",
1489
+ expected: "(string & Format<\"date-time\">)",
1490
+ value: input.at
1491
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1492
+ if (["actor", "action", "at"].some(prop => key === prop))
1493
+ return true;
1494
+ const value = input[key];
1495
+ if (undefined === value)
1496
+ return true;
1497
+ return _assertGuard_1._assertGuard(_exceptionable, {
1498
+ method: "typia.createAssertEquals",
1499
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1500
+ expected: "undefined",
1501
+ value: value
1502
+ }, _errorFactory);
1503
+ })));
1504
+ const _ao42 = (input, _path, _exceptionable = true) => (undefined === input.journal || ("object" === typeof input.journal && null !== input.journal && false === Array.isArray(input.journal) || _assertGuard_1._assertGuard(_exceptionable, {
1505
+ method: "typia.createAssertEquals",
1506
+ path: _path + ".journal",
1507
+ expected: "(Readonly<Record<string, readonly CommercePurchaseState[]>> | undefined)",
1508
+ value: input.journal
1509
+ }, _errorFactory)) && _ao43(input.journal, _path + ".journal", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1510
+ method: "typia.createAssertEquals",
1511
+ path: _path + ".journal",
1512
+ expected: "(Readonly<Record<string, readonly CommercePurchaseState[]>> | undefined)",
1513
+ value: input.journal
1514
+ }, _errorFactory)) && (undefined === input.verifyRequests || (Array.isArray(input.verifyRequests) || _assertGuard_1._assertGuard(_exceptionable, {
1515
+ method: "typia.createAssertEquals",
1516
+ path: _path + ".verifyRequests",
1517
+ expected: "(ReadonlyArray<CommerceConformanceVerifyRequestExpectation> | undefined)",
1518
+ value: input.verifyRequests
1519
+ }, _errorFactory)) && input.verifyRequests.every((elem, _index23) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
1520
+ method: "typia.createAssertEquals",
1521
+ path: _path + ".verifyRequests[" + _index23 + "]",
1522
+ expected: "CommerceConformanceVerifyRequestExpectation",
1523
+ value: elem
1524
+ }, _errorFactory)) && _ao44(elem, _path + ".verifyRequests[" + _index23 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1525
+ method: "typia.createAssertEquals",
1526
+ path: _path + ".verifyRequests[" + _index23 + "]",
1527
+ expected: "CommerceConformanceVerifyRequestExpectation",
1528
+ value: elem
1529
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1530
+ method: "typia.createAssertEquals",
1531
+ path: _path + ".verifyRequests",
1532
+ expected: "(ReadonlyArray<CommerceConformanceVerifyRequestExpectation> | undefined)",
1533
+ value: input.verifyRequests
1534
+ }, _errorFactory)) && (undefined === input.ledger || (Array.isArray(input.ledger) || _assertGuard_1._assertGuard(_exceptionable, {
1535
+ method: "typia.createAssertEquals",
1536
+ path: _path + ".ledger",
1537
+ expected: "(ReadonlyArray<CommerceConformanceLedgerEntryExpectation> | undefined)",
1538
+ value: input.ledger
1539
+ }, _errorFactory)) && input.ledger.every((elem, _index24) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
1540
+ method: "typia.createAssertEquals",
1541
+ path: _path + ".ledger[" + _index24 + "]",
1542
+ expected: "CommerceConformanceLedgerEntryExpectation",
1543
+ value: elem
1544
+ }, _errorFactory)) && _ao45(elem, _path + ".ledger[" + _index24 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1545
+ method: "typia.createAssertEquals",
1546
+ path: _path + ".ledger[" + _index24 + "]",
1547
+ expected: "CommerceConformanceLedgerEntryExpectation",
1548
+ value: elem
1549
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1550
+ method: "typia.createAssertEquals",
1551
+ path: _path + ".ledger",
1552
+ expected: "(ReadonlyArray<CommerceConformanceLedgerEntryExpectation> | undefined)",
1553
+ value: input.ledger
1554
+ }, _errorFactory)) && (undefined === input.finishCalls || (Array.isArray(input.finishCalls) || _assertGuard_1._assertGuard(_exceptionable, {
1555
+ method: "typia.createAssertEquals",
1556
+ path: _path + ".finishCalls",
1557
+ expected: "(ReadonlyArray<CommerceConformanceFinishCallExpectation> | undefined)",
1558
+ value: input.finishCalls
1559
+ }, _errorFactory)) && input.finishCalls.every((elem, _index25) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
1560
+ method: "typia.createAssertEquals",
1561
+ path: _path + ".finishCalls[" + _index25 + "]",
1562
+ expected: "CommerceConformanceFinishCallExpectation",
1563
+ value: elem
1564
+ }, _errorFactory)) && _ao46(elem, _path + ".finishCalls[" + _index25 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1565
+ method: "typia.createAssertEquals",
1566
+ path: _path + ".finishCalls[" + _index25 + "]",
1567
+ expected: "CommerceConformanceFinishCallExpectation",
1568
+ value: elem
1569
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1570
+ method: "typia.createAssertEquals",
1571
+ path: _path + ".finishCalls",
1572
+ expected: "(ReadonlyArray<CommerceConformanceFinishCallExpectation> | undefined)",
1573
+ value: input.finishCalls
1574
+ }, _errorFactory)) && (undefined === input.available || (Array.isArray(input.available) || _assertGuard_1._assertGuard(_exceptionable, {
1575
+ method: "typia.createAssertEquals",
1576
+ path: _path + ".available",
1577
+ expected: "(ReadonlyArray<CommerceConformanceAvailableExpectation> | undefined)",
1578
+ value: input.available
1579
+ }, _errorFactory)) && input.available.every((elem, _index26) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
1580
+ method: "typia.createAssertEquals",
1581
+ path: _path + ".available[" + _index26 + "]",
1582
+ expected: "CommerceConformanceAvailableExpectation",
1583
+ value: elem
1584
+ }, _errorFactory)) && _ao47(elem, _path + ".available[" + _index26 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1585
+ method: "typia.createAssertEquals",
1586
+ path: _path + ".available[" + _index26 + "]",
1587
+ expected: "CommerceConformanceAvailableExpectation",
1588
+ value: elem
1589
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1590
+ method: "typia.createAssertEquals",
1591
+ path: _path + ".available",
1592
+ expected: "(ReadonlyArray<CommerceConformanceAvailableExpectation> | undefined)",
1593
+ value: input.available
1594
+ }, _errorFactory)) && (undefined === input.entitlements || (Array.isArray(input.entitlements) || _assertGuard_1._assertGuard(_exceptionable, {
1595
+ method: "typia.createAssertEquals",
1596
+ path: _path + ".entitlements",
1597
+ expected: "(ReadonlyArray<CommerceConformanceEntitlementExpectation> | undefined)",
1598
+ value: input.entitlements
1599
+ }, _errorFactory)) && input.entitlements.every((elem, _index27) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
1600
+ method: "typia.createAssertEquals",
1601
+ path: _path + ".entitlements[" + _index27 + "]",
1602
+ expected: "CommerceConformanceEntitlementExpectation",
1603
+ value: elem
1604
+ }, _errorFactory)) && _ao48(elem, _path + ".entitlements[" + _index27 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1605
+ method: "typia.createAssertEquals",
1606
+ path: _path + ".entitlements[" + _index27 + "]",
1607
+ expected: "CommerceConformanceEntitlementExpectation",
1608
+ value: elem
1609
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1610
+ method: "typia.createAssertEquals",
1611
+ path: _path + ".entitlements",
1612
+ expected: "(ReadonlyArray<CommerceConformanceEntitlementExpectation> | undefined)",
1613
+ value: input.entitlements
1614
+ }, _errorFactory)) && (undefined === input.lots || (Array.isArray(input.lots) || _assertGuard_1._assertGuard(_exceptionable, {
1615
+ method: "typia.createAssertEquals",
1616
+ path: _path + ".lots",
1617
+ expected: "(ReadonlyArray<CommerceConformanceLotExpectation> | undefined)",
1618
+ value: input.lots
1619
+ }, _errorFactory)) && input.lots.every((elem, _index28) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
1620
+ method: "typia.createAssertEquals",
1621
+ path: _path + ".lots[" + _index28 + "]",
1622
+ expected: "CommerceConformanceLotExpectation",
1623
+ value: elem
1624
+ }, _errorFactory)) && _ao49(elem, _path + ".lots[" + _index28 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1625
+ method: "typia.createAssertEquals",
1626
+ path: _path + ".lots[" + _index28 + "]",
1627
+ expected: "CommerceConformanceLotExpectation",
1628
+ value: elem
1629
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1630
+ method: "typia.createAssertEquals",
1631
+ path: _path + ".lots",
1632
+ expected: "(ReadonlyArray<CommerceConformanceLotExpectation> | undefined)",
1633
+ value: input.lots
1634
+ }, _errorFactory)) && (undefined === input.balances || ("object" === typeof input.balances && null !== input.balances && false === Array.isArray(input.balances) || _assertGuard_1._assertGuard(_exceptionable, {
1635
+ method: "typia.createAssertEquals",
1636
+ path: _path + ".balances",
1637
+ expected: "(Readonly<Record<string, Readonly<Record<string, number>>>> | undefined)",
1638
+ value: input.balances
1639
+ }, _errorFactory)) && _ao52(input.balances, _path + ".balances", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1640
+ method: "typia.createAssertEquals",
1641
+ path: _path + ".balances",
1642
+ expected: "(Readonly<Record<string, Readonly<Record<string, number>>>> | undefined)",
1643
+ value: input.balances
1644
+ }, _errorFactory)) && (undefined === input.debits || (Array.isArray(input.debits) || _assertGuard_1._assertGuard(_exceptionable, {
1645
+ method: "typia.createAssertEquals",
1646
+ path: _path + ".debits",
1647
+ expected: "(ReadonlyArray<CommerceConformanceScheduledDebitExpectation> | undefined)",
1648
+ value: input.debits
1649
+ }, _errorFactory)) && input.debits.every((elem, _index29) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
1650
+ method: "typia.createAssertEquals",
1651
+ path: _path + ".debits[" + _index29 + "]",
1652
+ expected: "CommerceConformanceScheduledDebitExpectation",
1653
+ value: elem
1654
+ }, _errorFactory)) && _ao54(elem, _path + ".debits[" + _index29 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1655
+ method: "typia.createAssertEquals",
1656
+ path: _path + ".debits[" + _index29 + "]",
1657
+ expected: "CommerceConformanceScheduledDebitExpectation",
1658
+ value: elem
1659
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1660
+ method: "typia.createAssertEquals",
1661
+ path: _path + ".debits",
1662
+ expected: "(ReadonlyArray<CommerceConformanceScheduledDebitExpectation> | undefined)",
1663
+ value: input.debits
1664
+ }, _errorFactory)) && (undefined === input.events || (Array.isArray(input.events) || _assertGuard_1._assertGuard(_exceptionable, {
1665
+ method: "typia.createAssertEquals",
1666
+ path: _path + ".events",
1667
+ expected: "(ReadonlyArray<CommerceConformanceSubscriptionEventExpectation> | undefined)",
1668
+ value: input.events
1669
+ }, _errorFactory)) && input.events.every((elem, _index30) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
1670
+ method: "typia.createAssertEquals",
1671
+ path: _path + ".events[" + _index30 + "]",
1672
+ expected: "CommerceConformanceSubscriptionEventExpectation",
1673
+ value: elem
1674
+ }, _errorFactory)) && _ao55(elem, _path + ".events[" + _index30 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1675
+ method: "typia.createAssertEquals",
1676
+ path: _path + ".events[" + _index30 + "]",
1677
+ expected: "CommerceConformanceSubscriptionEventExpectation",
1678
+ value: elem
1679
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1680
+ method: "typia.createAssertEquals",
1681
+ path: _path + ".events",
1682
+ expected: "(ReadonlyArray<CommerceConformanceSubscriptionEventExpectation> | undefined)",
1683
+ value: input.events
1684
+ }, _errorFactory)) && (undefined === input.activeSubscriptions || (Array.isArray(input.activeSubscriptions) || _assertGuard_1._assertGuard(_exceptionable, {
1685
+ method: "typia.createAssertEquals",
1686
+ path: _path + ".activeSubscriptions",
1687
+ expected: "(ReadonlyArray<CommerceConformanceActiveSubscriptionExpectation> | undefined)",
1688
+ value: input.activeSubscriptions
1689
+ }, _errorFactory)) && input.activeSubscriptions.every((elem, _index31) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
1690
+ method: "typia.createAssertEquals",
1691
+ path: _path + ".activeSubscriptions[" + _index31 + "]",
1692
+ expected: "CommerceConformanceActiveSubscriptionExpectation",
1693
+ value: elem
1694
+ }, _errorFactory)) && _ao56(elem, _path + ".activeSubscriptions[" + _index31 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
1695
+ method: "typia.createAssertEquals",
1696
+ path: _path + ".activeSubscriptions[" + _index31 + "]",
1697
+ expected: "CommerceConformanceActiveSubscriptionExpectation",
1698
+ value: elem
1699
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1700
+ method: "typia.createAssertEquals",
1701
+ path: _path + ".activeSubscriptions",
1702
+ expected: "(ReadonlyArray<CommerceConformanceActiveSubscriptionExpectation> | undefined)",
1703
+ value: input.activeSubscriptions
1704
+ }, _errorFactory)) && (undefined === input.purchaseUiOpened || "number" === typeof input.purchaseUiOpened && (_isTypeUint32_1._isTypeUint32(input.purchaseUiOpened) || _assertGuard_1._assertGuard(_exceptionable, {
1705
+ method: "typia.createAssertEquals",
1706
+ path: _path + ".purchaseUiOpened",
1707
+ expected: "number & Type<\"uint32\">",
1708
+ value: input.purchaseUiOpened
1709
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1710
+ method: "typia.createAssertEquals",
1711
+ path: _path + ".purchaseUiOpened",
1712
+ expected: "((number & Type<\"uint32\">) | undefined)",
1713
+ value: input.purchaseUiOpened
1714
+ }, _errorFactory)) && (0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1715
+ if (["journal", "verifyRequests", "ledger", "finishCalls", "available", "entitlements", "lots", "balances", "debits", "events", "activeSubscriptions", "purchaseUiOpened"].some(prop => key === prop))
1716
+ return true;
1717
+ const value = input[key];
1718
+ if (undefined === value)
1719
+ return true;
1720
+ return _assertGuard_1._assertGuard(_exceptionable, {
1721
+ method: "typia.createAssertEquals",
1722
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1723
+ expected: "undefined",
1724
+ value: value
1725
+ }, _errorFactory);
1726
+ })));
1727
+ const _ao43 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1728
+ const value = input[key];
1729
+ if (undefined === value)
1730
+ return true;
1731
+ return (Array.isArray(value) || _assertGuard_1._assertGuard(_exceptionable, {
1732
+ method: "typia.createAssertEquals",
1733
+ path: _path + __typia_transform__accessExpressionAsString(key),
1734
+ expected: "ReadonlyArray<CommercePurchaseState>",
1735
+ value: value
1736
+ }, _errorFactory)) && value.every((elem, _index32) => true === _av1.has(elem) || _assertGuard_1._assertGuard(_exceptionable, {
1737
+ method: "typia.createAssertEquals",
1738
+ path: _path + __typia_transform__accessExpressionAsString(key) + "[" + _index32 + "]",
1739
+ expected: _ae4,
1740
+ value: elem
1741
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1742
+ method: "typia.createAssertEquals",
1743
+ path: _path + __typia_transform__accessExpressionAsString(key),
1744
+ expected: "ReadonlyArray<CommercePurchaseState>",
1745
+ value: value
1746
+ }, _errorFactory);
1747
+ });
1748
+ const _ao44 = (input, _path, _exceptionable = true) => ("string" === typeof input.idempotencyKey && (1 <= input.idempotencyKey.length || _assertGuard_1._assertGuard(_exceptionable, {
1749
+ method: "typia.createAssertEquals",
1750
+ path: _path + ".idempotencyKey",
1751
+ expected: "string & MinLength<1>",
1752
+ value: input.idempotencyKey
1753
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1754
+ method: "typia.createAssertEquals",
1755
+ path: _path + ".idempotencyKey",
1756
+ expected: "(string & MinLength<1>)",
1757
+ value: input.idempotencyKey
1758
+ }, _errorFactory)) && ("string" === typeof input.store && (1 <= input.store.length || _assertGuard_1._assertGuard(_exceptionable, {
1759
+ method: "typia.createAssertEquals",
1760
+ path: _path + ".store",
1761
+ expected: "string & MinLength<1>",
1762
+ value: input.store
1763
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1764
+ method: "typia.createAssertEquals",
1765
+ path: _path + ".store",
1766
+ expected: "(string & MinLength<1>)",
1767
+ value: input.store
1768
+ }, _errorFactory)) && ("string" === typeof input.transactionId && (1 <= input.transactionId.length || _assertGuard_1._assertGuard(_exceptionable, {
1769
+ method: "typia.createAssertEquals",
1770
+ path: _path + ".transactionId",
1771
+ expected: "string & MinLength<1>",
1772
+ value: input.transactionId
1773
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1774
+ method: "typia.createAssertEquals",
1775
+ path: _path + ".transactionId",
1776
+ expected: "(string & MinLength<1>)",
1777
+ value: input.transactionId
1778
+ }, _errorFactory)) && ("string" === typeof input.token && (1 <= input.token.length || _assertGuard_1._assertGuard(_exceptionable, {
1779
+ method: "typia.createAssertEquals",
1780
+ path: _path + ".token",
1781
+ expected: "string & MinLength<1>",
1782
+ value: input.token
1783
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1784
+ method: "typia.createAssertEquals",
1785
+ path: _path + ".token",
1786
+ expected: "(string & MinLength<1>)",
1787
+ value: input.token
1788
+ }, _errorFactory)) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1789
+ if (["idempotencyKey", "store", "transactionId", "token"].some(prop => key === prop))
1790
+ return true;
1791
+ const value = input[key];
1792
+ if (undefined === value)
1793
+ return true;
1794
+ return _assertGuard_1._assertGuard(_exceptionable, {
1795
+ method: "typia.createAssertEquals",
1796
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1797
+ expected: "undefined",
1798
+ value: value
1799
+ }, _errorFactory);
1800
+ })));
1801
+ const _ao45 = (input, _path, _exceptionable = true) => ("string" === typeof input.entryId && (1 <= input.entryId.length || _assertGuard_1._assertGuard(_exceptionable, {
1802
+ method: "typia.createAssertEquals",
1803
+ path: _path + ".entryId",
1804
+ expected: "string & MinLength<1>",
1805
+ value: input.entryId
1806
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1807
+ method: "typia.createAssertEquals",
1808
+ path: _path + ".entryId",
1809
+ expected: "(string & MinLength<1>)",
1810
+ value: input.entryId
1811
+ }, _errorFactory)) && ("grant" === input.type || "period" === input.type || "revoke" === input.type || _assertGuard_1._assertGuard(_exceptionable, {
1812
+ method: "typia.createAssertEquals",
1813
+ path: _path + ".type",
1814
+ expected: "(\"grant\" | \"period\" | \"revoke\")",
1815
+ value: input.type
1816
+ }, _errorFactory)) && ("string" === typeof input.logicalId && (1 <= input.logicalId.length || _assertGuard_1._assertGuard(_exceptionable, {
1817
+ method: "typia.createAssertEquals",
1818
+ path: _path + ".logicalId",
1819
+ expected: "string & MinLength<1>",
1820
+ value: input.logicalId
1821
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1822
+ method: "typia.createAssertEquals",
1823
+ path: _path + ".logicalId",
1824
+ expected: "(string & MinLength<1>)",
1825
+ value: input.logicalId
1826
+ }, _errorFactory)) && (undefined === input.reverses || "string" === typeof input.reverses && (1 <= input.reverses.length || _assertGuard_1._assertGuard(_exceptionable, {
1827
+ method: "typia.createAssertEquals",
1828
+ path: _path + ".reverses",
1829
+ expected: "string & MinLength<1>",
1830
+ value: input.reverses
1831
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1832
+ method: "typia.createAssertEquals",
1833
+ path: _path + ".reverses",
1834
+ expected: "((string & MinLength<1>) | undefined)",
1835
+ value: input.reverses
1836
+ }, _errorFactory)) && (undefined === input.reason || "string" === typeof input.reason && (1 <= input.reason.length || _assertGuard_1._assertGuard(_exceptionable, {
1837
+ method: "typia.createAssertEquals",
1838
+ path: _path + ".reason",
1839
+ expected: "string & MinLength<1>",
1840
+ value: input.reason
1841
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1842
+ method: "typia.createAssertEquals",
1843
+ path: _path + ".reason",
1844
+ expected: "((string & MinLength<1>) | undefined)",
1845
+ value: input.reason
1846
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1847
+ if (["entryId", "type", "logicalId", "reverses", "reason"].some(prop => key === prop))
1848
+ return true;
1849
+ const value = input[key];
1850
+ if (undefined === value)
1851
+ return true;
1852
+ return _assertGuard_1._assertGuard(_exceptionable, {
1853
+ method: "typia.createAssertEquals",
1854
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1855
+ expected: "undefined",
1856
+ value: value
1857
+ }, _errorFactory);
1858
+ })));
1859
+ const _ao46 = (input, _path, _exceptionable = true) => ("client" === input.by || "host" === input.by || _assertGuard_1._assertGuard(_exceptionable, {
1860
+ method: "typia.createAssertEquals",
1861
+ path: _path + ".by",
1862
+ expected: "(\"client\" | \"host\")",
1863
+ value: input.by
1864
+ }, _errorFactory)) && ("string" === typeof input.transactionId && (1 <= input.transactionId.length || _assertGuard_1._assertGuard(_exceptionable, {
1865
+ method: "typia.createAssertEquals",
1866
+ path: _path + ".transactionId",
1867
+ expected: "string & MinLength<1>",
1868
+ value: input.transactionId
1869
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1870
+ method: "typia.createAssertEquals",
1871
+ path: _path + ".transactionId",
1872
+ expected: "(string & MinLength<1>)",
1873
+ value: input.transactionId
1874
+ }, _errorFactory)) && ("string" === typeof input.ledgerEntryId && (1 <= input.ledgerEntryId.length || _assertGuard_1._assertGuard(_exceptionable, {
1875
+ method: "typia.createAssertEquals",
1876
+ path: _path + ".ledgerEntryId",
1877
+ expected: "string & MinLength<1>",
1878
+ value: input.ledgerEntryId
1879
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1880
+ method: "typia.createAssertEquals",
1881
+ path: _path + ".ledgerEntryId",
1882
+ expected: "(string & MinLength<1>)",
1883
+ value: input.ledgerEntryId
1884
+ }, _errorFactory)) && ("boolean" === typeof input.isConsumable || _assertGuard_1._assertGuard(_exceptionable, {
1885
+ method: "typia.createAssertEquals",
1886
+ path: _path + ".isConsumable",
1887
+ expected: "boolean",
1888
+ value: input.isConsumable
1889
+ }, _errorFactory)) && (true === _av2.has(input.result) || _assertGuard_1._assertGuard(_exceptionable, {
1890
+ method: "typia.createAssertEquals",
1891
+ path: _path + ".result",
1892
+ expected: _ae5,
1893
+ value: input.result
1894
+ }, _errorFactory)) && (5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1895
+ if (["by", "transactionId", "ledgerEntryId", "isConsumable", "result"].some(prop => key === prop))
1896
+ return true;
1897
+ const value = input[key];
1898
+ if (undefined === value)
1899
+ return true;
1900
+ return _assertGuard_1._assertGuard(_exceptionable, {
1901
+ method: "typia.createAssertEquals",
1902
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1903
+ expected: "undefined",
1904
+ value: value
1905
+ }, _errorFactory);
1906
+ })));
1907
+ const _ao47 = (input, _path, _exceptionable = true) => ("string" === typeof input.transactionId && (1 <= input.transactionId.length || _assertGuard_1._assertGuard(_exceptionable, {
1908
+ method: "typia.createAssertEquals",
1909
+ path: _path + ".transactionId",
1910
+ expected: "string & MinLength<1>",
1911
+ value: input.transactionId
1912
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1913
+ method: "typia.createAssertEquals",
1914
+ path: _path + ".transactionId",
1915
+ expected: "(string & MinLength<1>)",
1916
+ value: input.transactionId
1917
+ }, _errorFactory)) && (undefined === input.storeSku || "string" === typeof input.storeSku && (1 <= input.storeSku.length || _assertGuard_1._assertGuard(_exceptionable, {
1918
+ method: "typia.createAssertEquals",
1919
+ path: _path + ".storeSku",
1920
+ expected: "string & MinLength<1>",
1921
+ value: input.storeSku
1922
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1923
+ method: "typia.createAssertEquals",
1924
+ path: _path + ".storeSku",
1925
+ expected: "((string & MinLength<1>) | undefined)",
1926
+ value: input.storeSku
1927
+ }, _errorFactory)) && (undefined === input.state || "pending" === input.state || "purchased" === input.state || "revoked" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
1928
+ method: "typia.createAssertEquals",
1929
+ path: _path + ".state",
1930
+ expected: "(\"pending\" | \"purchased\" | \"revoked\" | undefined)",
1931
+ value: input.state
1932
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1933
+ if (["transactionId", "storeSku", "state"].some(prop => key === prop))
1934
+ return true;
1935
+ const value = input[key];
1936
+ if (undefined === value)
1937
+ return true;
1938
+ return _assertGuard_1._assertGuard(_exceptionable, {
1939
+ method: "typia.createAssertEquals",
1940
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1941
+ expected: "undefined",
1942
+ value: value
1943
+ }, _errorFactory);
1944
+ })));
1945
+ const _ao48 = (input, _path, _exceptionable = true) => ("string" === typeof input.id && (1 <= input.id.length || _assertGuard_1._assertGuard(_exceptionable, {
1946
+ method: "typia.createAssertEquals",
1947
+ path: _path + ".id",
1948
+ expected: "string & MinLength<1>",
1949
+ value: input.id
1950
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1951
+ method: "typia.createAssertEquals",
1952
+ path: _path + ".id",
1953
+ expected: "(string & MinLength<1>)",
1954
+ value: input.id
1955
+ }, _errorFactory)) && (undefined === input.logicalId || "string" === typeof input.logicalId && (1 <= input.logicalId.length || _assertGuard_1._assertGuard(_exceptionable, {
1956
+ method: "typia.createAssertEquals",
1957
+ path: _path + ".logicalId",
1958
+ expected: "string & MinLength<1>",
1959
+ value: input.logicalId
1960
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1961
+ method: "typia.createAssertEquals",
1962
+ path: _path + ".logicalId",
1963
+ expected: "((string & MinLength<1>) | undefined)",
1964
+ value: input.logicalId
1965
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
1966
+ if (["id", "logicalId"].some(prop => key === prop))
1967
+ return true;
1968
+ const value = input[key];
1969
+ if (undefined === value)
1970
+ return true;
1971
+ return _assertGuard_1._assertGuard(_exceptionable, {
1972
+ method: "typia.createAssertEquals",
1973
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
1974
+ expected: "undefined",
1975
+ value: value
1976
+ }, _errorFactory);
1977
+ })));
1978
+ const _ao49 = (input, _path, _exceptionable = true) => ("string" === typeof input.lotId && (1 <= input.lotId.length || _assertGuard_1._assertGuard(_exceptionable, {
1979
+ method: "typia.createAssertEquals",
1980
+ path: _path + ".lotId",
1981
+ expected: "string & MinLength<1>",
1982
+ value: input.lotId
1983
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1984
+ method: "typia.createAssertEquals",
1985
+ path: _path + ".lotId",
1986
+ expected: "(string & MinLength<1>)",
1987
+ value: input.lotId
1988
+ }, _errorFactory)) && (undefined === input.currency || "string" === typeof input.currency && (1 <= input.currency.length || _assertGuard_1._assertGuard(_exceptionable, {
1989
+ method: "typia.createAssertEquals",
1990
+ path: _path + ".currency",
1991
+ expected: "string & MinLength<1>",
1992
+ value: input.currency
1993
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
1994
+ method: "typia.createAssertEquals",
1995
+ path: _path + ".currency",
1996
+ expected: "((string & MinLength<1>) | undefined)",
1997
+ value: input.currency
1998
+ }, _errorFactory)) && (undefined === input.amount || "number" === typeof input.amount && (0 < input.amount || _assertGuard_1._assertGuard(_exceptionable, {
1999
+ method: "typia.createAssertEquals",
2000
+ path: _path + ".amount",
2001
+ expected: "number & ExclusiveMinimum<0>",
2002
+ value: input.amount
2003
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2004
+ method: "typia.createAssertEquals",
2005
+ path: _path + ".amount",
2006
+ expected: "((number & ExclusiveMinimum<0>) | undefined)",
2007
+ value: input.amount
2008
+ }, _errorFactory)) && ("number" === typeof input.remaining && (0 <= input.remaining || _assertGuard_1._assertGuard(_exceptionable, {
2009
+ method: "typia.createAssertEquals",
2010
+ path: _path + ".remaining",
2011
+ expected: "number & Minimum<0>",
2012
+ value: input.remaining
2013
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2014
+ method: "typia.createAssertEquals",
2015
+ path: _path + ".remaining",
2016
+ expected: "(number & Minimum<0>)",
2017
+ value: input.remaining
2018
+ }, _errorFactory)) && (undefined === input.origin || ("object" === typeof input.origin && null !== input.origin || _assertGuard_1._assertGuard(_exceptionable, {
2019
+ method: "typia.createAssertEquals",
2020
+ path: _path + ".origin",
2021
+ expected: "(CreditLotOrigin | undefined)",
2022
+ value: input.origin
2023
+ }, _errorFactory)) && _ao35(input.origin, _path + ".origin", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
2024
+ method: "typia.createAssertEquals",
2025
+ path: _path + ".origin",
2026
+ expected: "(CreditLotOrigin | undefined)",
2027
+ value: input.origin
2028
+ }, _errorFactory)) && (undefined === input.spendScope || ("object" === typeof input.spendScope && null !== input.spendScope || _assertGuard_1._assertGuard(_exceptionable, {
2029
+ method: "typia.createAssertEquals",
2030
+ path: _path + ".spendScope",
2031
+ expected: "(undefined | { readonly kind: \"cross-title\"; } | { readonly kind: \"title\"; readonly titleId: NonEmptyString; })",
2032
+ value: input.spendScope
2033
+ }, _errorFactory)) && _au3(input.spendScope, _path + ".spendScope", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
2034
+ method: "typia.createAssertEquals",
2035
+ path: _path + ".spendScope",
2036
+ expected: "(undefined | { readonly kind: \"cross-title\"; } | { readonly kind: \"title\"; readonly titleId: NonEmptyString; })",
2037
+ value: input.spendScope
2038
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
2039
+ if (["lotId", "currency", "amount", "remaining", "origin", "spendScope"].some(prop => key === prop))
2040
+ return true;
2041
+ const value = input[key];
2042
+ if (undefined === value)
2043
+ return true;
2044
+ return _assertGuard_1._assertGuard(_exceptionable, {
2045
+ method: "typia.createAssertEquals",
2046
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
2047
+ expected: "undefined",
2048
+ value: value
2049
+ }, _errorFactory);
2050
+ })));
2051
+ const _ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.logicalId && (1 <= input.logicalId.length || _assertGuard_1._assertGuard(_exceptionable, {
2052
+ method: "typia.createAssertEquals",
2053
+ path: _path + ".logicalId",
2054
+ expected: "string & MinLength<1>",
2055
+ value: input.logicalId
2056
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2057
+ method: "typia.createAssertEquals",
2058
+ path: _path + ".logicalId",
2059
+ expected: "(string & MinLength<1>)",
2060
+ value: input.logicalId
2061
+ }, _errorFactory)) && ("consumable" === input.kind || "durable" === input.kind || "subscription" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
2062
+ method: "typia.createAssertEquals",
2063
+ path: _path + ".kind",
2064
+ expected: "(\"consumable\" | \"durable\" | \"subscription\")",
2065
+ value: input.kind
2066
+ }, _errorFactory)) && ("string" === typeof input.storeSku && (1 <= input.storeSku.length || _assertGuard_1._assertGuard(_exceptionable, {
2067
+ method: "typia.createAssertEquals",
2068
+ path: _path + ".storeSku",
2069
+ expected: "string & MinLength<1>",
2070
+ value: input.storeSku
2071
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2072
+ method: "typia.createAssertEquals",
2073
+ path: _path + ".storeSku",
2074
+ expected: "(string & MinLength<1>)",
2075
+ value: input.storeSku
2076
+ }, _errorFactory)) && (undefined === input.membership || ("object" === typeof input.membership && null !== input.membership || _assertGuard_1._assertGuard(_exceptionable, {
2077
+ method: "typia.createAssertEquals",
2078
+ path: _path + ".membership",
2079
+ expected: "(CreditMembershipTerms | undefined)",
2080
+ value: input.membership
2081
+ }, _errorFactory)) && _ao6(input.membership, _path + ".membership", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
2082
+ method: "typia.createAssertEquals",
2083
+ path: _path + ".membership",
2084
+ expected: "(CreditMembershipTerms | undefined)",
2085
+ value: input.membership
2086
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
2087
+ if (["logicalId", "kind", "storeSku", "membership"].some(prop => key === prop))
2088
+ return true;
2089
+ const value = input[key];
2090
+ if (undefined === value)
2091
+ return true;
2092
+ return _assertGuard_1._assertGuard(_exceptionable, {
2093
+ method: "typia.createAssertEquals",
2094
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
2095
+ expected: "undefined",
2096
+ value: value
2097
+ }, _errorFactory);
2098
+ })));
2099
+ const _ao50 = (input, _path, _exceptionable = true) => ("title" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
2100
+ method: "typia.createAssertEquals",
2101
+ path: _path + ".kind",
2102
+ expected: "\"title\"",
2103
+ value: input.kind
2104
+ }, _errorFactory)) && ("string" === typeof input.titleId && (1 <= input.titleId.length || _assertGuard_1._assertGuard(_exceptionable, {
2105
+ method: "typia.createAssertEquals",
2106
+ path: _path + ".titleId",
2107
+ expected: "string & MinLength<1>",
2108
+ value: input.titleId
2109
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2110
+ method: "typia.createAssertEquals",
2111
+ path: _path + ".titleId",
2112
+ expected: "(string & MinLength<1>)",
2113
+ value: input.titleId
2114
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
2115
+ if (["kind", "titleId"].some(prop => key === prop))
2116
+ return true;
2117
+ const value = input[key];
2118
+ if (undefined === value)
2119
+ return true;
2120
+ return _assertGuard_1._assertGuard(_exceptionable, {
2121
+ method: "typia.createAssertEquals",
2122
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
2123
+ expected: "undefined",
2124
+ value: value
2125
+ }, _errorFactory);
2126
+ })));
2127
+ const _ao51 = (input, _path, _exceptionable = true) => ("cross-title" === input.kind || _assertGuard_1._assertGuard(_exceptionable, {
2128
+ method: "typia.createAssertEquals",
2129
+ path: _path + ".kind",
2130
+ expected: "\"cross-title\"",
2131
+ value: input.kind
2132
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
2133
+ if (["kind"].some(prop => key === prop))
2134
+ return true;
2135
+ const value = input[key];
2136
+ if (undefined === value)
2137
+ return true;
2138
+ return _assertGuard_1._assertGuard(_exceptionable, {
2139
+ method: "typia.createAssertEquals",
2140
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
2141
+ expected: "undefined",
2142
+ value: value
2143
+ }, _errorFactory);
2144
+ })));
2145
+ const _ao52 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
2146
+ const value = input[key];
2147
+ if (undefined === value)
2148
+ return true;
2149
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || _assertGuard_1._assertGuard(_exceptionable, {
2150
+ method: "typia.createAssertEquals",
2151
+ path: _path + __typia_transform__accessExpressionAsString(key),
2152
+ expected: "Readonly<Record<string, number>>",
2153
+ value: value
2154
+ }, _errorFactory)) && _ao53(value, _path + __typia_transform__accessExpressionAsString(key), true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
2155
+ method: "typia.createAssertEquals",
2156
+ path: _path + __typia_transform__accessExpressionAsString(key),
2157
+ expected: "Readonly<Record<string, number>>",
2158
+ value: value
2159
+ }, _errorFactory);
2160
+ });
2161
+ const _ao53 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
2162
+ const value = input[key];
2163
+ if (undefined === value)
2164
+ return true;
2165
+ return "number" === typeof value || _assertGuard_1._assertGuard(_exceptionable, {
2166
+ method: "typia.createAssertEquals",
2167
+ path: _path + __typia_transform__accessExpressionAsString(key),
2168
+ expected: "number",
2169
+ value: value
2170
+ }, _errorFactory);
2171
+ });
2172
+ const _ao54 = (input, _path, _exceptionable = true) => ("string" === typeof input.idempotencyKey && (1 <= input.idempotencyKey.length || _assertGuard_1._assertGuard(_exceptionable, {
2173
+ method: "typia.createAssertEquals",
2174
+ path: _path + ".idempotencyKey",
2175
+ expected: "string & MinLength<1>",
2176
+ value: input.idempotencyKey
2177
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2178
+ method: "typia.createAssertEquals",
2179
+ path: _path + ".idempotencyKey",
2180
+ expected: "(string & MinLength<1>)",
2181
+ value: input.idempotencyKey
2182
+ }, _errorFactory)) && ("string" === typeof input.lotId && (1 <= input.lotId.length || _assertGuard_1._assertGuard(_exceptionable, {
2183
+ method: "typia.createAssertEquals",
2184
+ path: _path + ".lotId",
2185
+ expected: "string & MinLength<1>",
2186
+ value: input.lotId
2187
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2188
+ method: "typia.createAssertEquals",
2189
+ path: _path + ".lotId",
2190
+ expected: "(string & MinLength<1>)",
2191
+ value: input.lotId
2192
+ }, _errorFactory)) && ("number" === typeof input.amount && (0 < input.amount || _assertGuard_1._assertGuard(_exceptionable, {
2193
+ method: "typia.createAssertEquals",
2194
+ path: _path + ".amount",
2195
+ expected: "number & ExclusiveMinimum<0>",
2196
+ value: input.amount
2197
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2198
+ method: "typia.createAssertEquals",
2199
+ path: _path + ".amount",
2200
+ expected: "(number & ExclusiveMinimum<0>)",
2201
+ value: input.amount
2202
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
2203
+ if (["idempotencyKey", "lotId", "amount"].some(prop => key === prop))
2204
+ return true;
2205
+ const value = input[key];
2206
+ if (undefined === value)
2207
+ return true;
2208
+ return _assertGuard_1._assertGuard(_exceptionable, {
2209
+ method: "typia.createAssertEquals",
2210
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
2211
+ expected: "undefined",
2212
+ value: value
2213
+ }, _errorFactory);
2214
+ })));
2215
+ const _ao55 = (input, _path, _exceptionable = true) => ("subscriptionLapsed" === input.type || "subscriptionRenewed" === input.type || "subscriptionRevoked" === input.type || "subscriptionStarted" === input.type || _assertGuard_1._assertGuard(_exceptionable, {
2216
+ method: "typia.createAssertEquals",
2217
+ path: _path + ".type",
2218
+ expected: "(\"subscriptionLapsed\" | \"subscriptionRenewed\" | \"subscriptionRevoked\" | \"subscriptionStarted\")",
2219
+ value: input.type
2220
+ }, _errorFactory)) && ("string" === typeof input.logicalId && (1 <= input.logicalId.length || _assertGuard_1._assertGuard(_exceptionable, {
2221
+ method: "typia.createAssertEquals",
2222
+ path: _path + ".logicalId",
2223
+ expected: "string & MinLength<1>",
2224
+ value: input.logicalId
2225
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2226
+ method: "typia.createAssertEquals",
2227
+ path: _path + ".logicalId",
2228
+ expected: "(string & MinLength<1>)",
2229
+ value: input.logicalId
2230
+ }, _errorFactory)) && ("number" === typeof input.periodIndex && (_isTypeUint32_1._isTypeUint32(input.periodIndex) || _assertGuard_1._assertGuard(_exceptionable, {
2231
+ method: "typia.createAssertEquals",
2232
+ path: _path + ".periodIndex",
2233
+ expected: "number & Type<\"uint32\">",
2234
+ value: input.periodIndex
2235
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2236
+ method: "typia.createAssertEquals",
2237
+ path: _path + ".periodIndex",
2238
+ expected: "(number & Type<\"uint32\">)",
2239
+ value: input.periodIndex
2240
+ }, _errorFactory)) && ("string" === typeof input.expiresAt && (_isFormatDateTime_1._isFormatDateTime(input.expiresAt) || _assertGuard_1._assertGuard(_exceptionable, {
2241
+ method: "typia.createAssertEquals",
2242
+ path: _path + ".expiresAt",
2243
+ expected: "string & Format<\"date-time\">",
2244
+ value: input.expiresAt
2245
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2246
+ method: "typia.createAssertEquals",
2247
+ path: _path + ".expiresAt",
2248
+ expected: "(string & Format<\"date-time\">)",
2249
+ value: input.expiresAt
2250
+ }, _errorFactory)) && (undefined === input.reason || true === _av0.has(input.reason) || _assertGuard_1._assertGuard(_exceptionable, {
2251
+ method: "typia.createAssertEquals",
2252
+ path: _path + ".reason",
2253
+ expected: _ae6,
2254
+ value: input.reason
2255
+ }, _errorFactory)) && (4 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
2256
+ if (["type", "logicalId", "periodIndex", "expiresAt", "reason"].some(prop => key === prop))
2257
+ return true;
2258
+ const value = input[key];
2259
+ if (undefined === value)
2260
+ return true;
2261
+ return _assertGuard_1._assertGuard(_exceptionable, {
2262
+ method: "typia.createAssertEquals",
2263
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
2264
+ expected: "undefined",
2265
+ value: value
2266
+ }, _errorFactory);
2267
+ })));
2268
+ const _ao56 = (input, _path, _exceptionable = true) => ("string" === typeof input.logicalId && (1 <= input.logicalId.length || _assertGuard_1._assertGuard(_exceptionable, {
2269
+ method: "typia.createAssertEquals",
2270
+ path: _path + ".logicalId",
2271
+ expected: "string & MinLength<1>",
2272
+ value: input.logicalId
2273
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2274
+ method: "typia.createAssertEquals",
2275
+ path: _path + ".logicalId",
2276
+ expected: "(string & MinLength<1>)",
2277
+ value: input.logicalId
2278
+ }, _errorFactory)) && (undefined === input.periodIndex || "number" === typeof input.periodIndex && (_isTypeUint32_1._isTypeUint32(input.periodIndex) || _assertGuard_1._assertGuard(_exceptionable, {
2279
+ method: "typia.createAssertEquals",
2280
+ path: _path + ".periodIndex",
2281
+ expected: "number & Type<\"uint32\">",
2282
+ value: input.periodIndex
2283
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2284
+ method: "typia.createAssertEquals",
2285
+ path: _path + ".periodIndex",
2286
+ expected: "((number & Type<\"uint32\">) | undefined)",
2287
+ value: input.periodIndex
2288
+ }, _errorFactory)) && (undefined === input.state || "active" === input.state || "lapsed" === input.state || "revoked" === input.state || _assertGuard_1._assertGuard(_exceptionable, {
2289
+ method: "typia.createAssertEquals",
2290
+ path: _path + ".state",
2291
+ expected: "(\"active\" | \"lapsed\" | \"revoked\" | undefined)",
2292
+ value: input.state
2293
+ }, _errorFactory)) && (undefined === input.expiresAt || "string" === typeof input.expiresAt && (_isFormatDateTime_1._isFormatDateTime(input.expiresAt) || _assertGuard_1._assertGuard(_exceptionable, {
2294
+ method: "typia.createAssertEquals",
2295
+ path: _path + ".expiresAt",
2296
+ expected: "string & Format<\"date-time\">",
2297
+ value: input.expiresAt
2298
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2299
+ method: "typia.createAssertEquals",
2300
+ path: _path + ".expiresAt",
2301
+ expected: "((string & Format<\"date-time\">) | undefined)",
2302
+ value: input.expiresAt
2303
+ }, _errorFactory)) && (1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
2304
+ if (["logicalId", "periodIndex", "state", "expiresAt"].some(prop => key === prop))
2305
+ return true;
2306
+ const value = input[key];
2307
+ if (undefined === value)
2308
+ return true;
2309
+ return _assertGuard_1._assertGuard(_exceptionable, {
2310
+ method: "typia.createAssertEquals",
2311
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
2312
+ expected: "undefined",
2313
+ value: value
2314
+ }, _errorFactory);
2315
+ })));
2316
+ const _ao6 = (input, _path, _exceptionable = true) => ("platform" === input.scope || "title" === input.scope || _assertGuard_1._assertGuard(_exceptionable, {
2317
+ method: "typia.createAssertEquals",
2318
+ path: _path + ".scope",
2319
+ expected: "(\"platform\" | \"title\")",
2320
+ value: input.scope
2321
+ }, _errorFactory)) && (("object" === typeof input.price && null !== input.price || _assertGuard_1._assertGuard(_exceptionable, {
2322
+ method: "typia.createAssertEquals",
2323
+ path: _path + ".price",
2324
+ expected: "CreditPrice",
2325
+ value: input.price
2326
+ }, _errorFactory)) && _ao7(input.price, _path + ".price", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
2327
+ method: "typia.createAssertEquals",
2328
+ path: _path + ".price",
2329
+ expected: "CreditPrice",
2330
+ value: input.price
2331
+ }, _errorFactory)) && ("string" === typeof input.period && (1 <= input.period.length || _assertGuard_1._assertGuard(_exceptionable, {
2332
+ method: "typia.createAssertEquals",
2333
+ path: _path + ".period",
2334
+ expected: "string & MinLength<1>",
2335
+ value: input.period
2336
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2337
+ method: "typia.createAssertEquals",
2338
+ path: _path + ".period",
2339
+ expected: "(string & MinLength<1>)",
2340
+ value: input.period
2341
+ }, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
2342
+ if (["scope", "price", "period"].some(prop => key === prop))
2343
+ return true;
2344
+ const value = input[key];
2345
+ if (undefined === value)
2346
+ return true;
2347
+ return _assertGuard_1._assertGuard(_exceptionable, {
2348
+ method: "typia.createAssertEquals",
2349
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
2350
+ expected: "undefined",
2351
+ value: value
2352
+ }, _errorFactory);
2353
+ })));
2354
+ const _ao7 = (input, _path, _exceptionable = true) => ("string" === typeof input.currency && (1 <= input.currency.length || _assertGuard_1._assertGuard(_exceptionable, {
2355
+ method: "typia.createAssertEquals",
2356
+ path: _path + ".currency",
2357
+ expected: "string & MinLength<1>",
2358
+ value: input.currency
2359
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2360
+ method: "typia.createAssertEquals",
2361
+ path: _path + ".currency",
2362
+ expected: "(string & MinLength<1>)",
2363
+ value: input.currency
2364
+ }, _errorFactory)) && ("number" === typeof input.amount && (0 < input.amount || _assertGuard_1._assertGuard(_exceptionable, {
2365
+ method: "typia.createAssertEquals",
2366
+ path: _path + ".amount",
2367
+ expected: "number & ExclusiveMinimum<0>",
2368
+ value: input.amount
2369
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2370
+ method: "typia.createAssertEquals",
2371
+ path: _path + ".amount",
2372
+ expected: "(number & ExclusiveMinimum<0>)",
2373
+ value: input.amount
2374
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
2375
+ if (["currency", "amount"].some(prop => key === prop))
2376
+ return true;
2377
+ const value = input[key];
2378
+ if (undefined === value)
2379
+ return true;
2380
+ return _assertGuard_1._assertGuard(_exceptionable, {
2381
+ method: "typia.createAssertEquals",
2382
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
2383
+ expected: "undefined",
2384
+ value: value
2385
+ }, _errorFactory);
2386
+ })));
2387
+ const _ao8 = (input, _path, _exceptionable = true) => ((Array.isArray(input.currencies) || _assertGuard_1._assertGuard(_exceptionable, {
2388
+ method: "typia.createAssertEquals",
2389
+ path: _path + ".currencies",
2390
+ expected: "(ReadonlyArray<NonEmptyString> & MinItems<1>)",
2391
+ value: input.currencies
2392
+ }, _errorFactory)) && ((1 <= input.currencies.length || _assertGuard_1._assertGuard(_exceptionable, {
2393
+ method: "typia.createAssertEquals",
2394
+ path: _path + ".currencies",
2395
+ expected: "Array<> & MinItems<1>",
2396
+ value: input.currencies
2397
+ }, _errorFactory)) && input.currencies.every((elem, _index19) => "string" === typeof elem && (1 <= elem.length || _assertGuard_1._assertGuard(_exceptionable, {
2398
+ method: "typia.createAssertEquals",
2399
+ path: _path + ".currencies[" + _index19 + "]",
2400
+ expected: "string & MinLength<1>",
2401
+ value: elem
2402
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
2403
+ method: "typia.createAssertEquals",
2404
+ path: _path + ".currencies[" + _index19 + "]",
2405
+ expected: "(string & MinLength<1>)",
2406
+ value: elem
2407
+ }, _errorFactory))) || _assertGuard_1._assertGuard(_exceptionable, {
2408
+ method: "typia.createAssertEquals",
2409
+ path: _path + ".currencies",
2410
+ expected: "(ReadonlyArray<NonEmptyString> & MinItems<1>)",
2411
+ value: input.currencies
2412
+ }, _errorFactory)) && ("host" === input.billingAuthority || "store" === input.billingAuthority || _assertGuard_1._assertGuard(_exceptionable, {
2413
+ method: "typia.createAssertEquals",
2414
+ path: _path + ".billingAuthority",
2415
+ expected: "(\"host\" | \"store\")",
2416
+ value: input.billingAuthority
2417
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
2418
+ if (["currencies", "billingAuthority"].some(prop => key === prop))
2419
+ return true;
2420
+ const value = input[key];
2421
+ if (undefined === value)
2422
+ return true;
2423
+ return _assertGuard_1._assertGuard(_exceptionable, {
2424
+ method: "typia.createAssertEquals",
2425
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
2426
+ expected: "undefined",
2427
+ value: value
2428
+ }, _errorFactory);
2429
+ })));
2430
+ const _ao9 = (input, _path, _exceptionable = true) => ("runtime" === input.actor || _assertGuard_1._assertGuard(_exceptionable, {
2431
+ method: "typia.createAssertEquals",
2432
+ path: _path + ".actor",
2433
+ expected: "\"runtime\"",
2434
+ value: input.actor
2435
+ }, _errorFactory)) && ("reconcile" === input.action || "start" === input.action || "stop" === input.action || _assertGuard_1._assertGuard(_exceptionable, {
2436
+ method: "typia.createAssertEquals",
2437
+ path: _path + ".action",
2438
+ expected: "(\"reconcile\" | \"start\" | \"stop\")",
2439
+ value: input.action
2440
+ }, _errorFactory)) && (2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
2441
+ if (["actor", "action"].some(prop => key === prop))
2442
+ return true;
2443
+ const value = input[key];
2444
+ if (undefined === value)
2445
+ return true;
2446
+ return _assertGuard_1._assertGuard(_exceptionable, {
2447
+ method: "typia.createAssertEquals",
2448
+ path: _path + _accessExpressionAsString_1._accessExpressionAsString(key),
2449
+ expected: "undefined",
2450
+ value: value
2451
+ }, _errorFactory);
2452
+ })));
2453
+ const _au0 = (input, _path, _exceptionable = true) => (() => {
2454
+ if ("runtime" === input.actor)
2455
+ return _ao9(input, _path, true && _exceptionable);
2456
+ else if ("fetchProducts" === input.action)
2457
+ return _ao14(input, _path, true && _exceptionable);
2458
+ else if ("requestPurchase" === input.action)
2459
+ return _ao10(input, _path, true && _exceptionable);
2460
+ else if ("complete" === input.action || "update" === input.action)
2461
+ return _ao17(input, _path, true && _exceptionable);
2462
+ else if ("error" === input.action)
2463
+ return _ao20(input, _path, true && _exceptionable);
2464
+ else if ("queueFinish" === input.action)
2465
+ return _ao26(input, _path, true && _exceptionable);
2466
+ else if ("queueRequest" === input.action)
2467
+ return _ao22(input, _path, true && _exceptionable);
2468
+ else if ("queueVerify" === input.action)
2469
+ return _ao29(input, _path, true && _exceptionable);
2470
+ else if ("push" === input.action)
2471
+ return _ao31(input, _path, true && _exceptionable);
2472
+ else if ("revoke" === input.action)
2473
+ return _ao32(input, _path, true && _exceptionable);
2474
+ else if ("creditFromGrant" === input.action)
2475
+ return _ao33(input, _path, true && _exceptionable);
2476
+ else if ("spend" === input.action)
2477
+ return _ao36(input, _path, true && _exceptionable);
2478
+ else if ("renewDue" === input.action)
2479
+ return _ao40(input, _path, true && _exceptionable);
2480
+ else if ("clock" === input.actor)
2481
+ return _ao41(input, _path, true && _exceptionable);
2482
+ else
2483
+ return _assertGuard_1._assertGuard(_exceptionable, {
2484
+ method: "typia.createAssertEquals",
2485
+ path: _path,
2486
+ expected: _ae7,
2487
+ value: input
2488
+ }, _errorFactory);
2489
+ })();
2490
+ const _au1 = (input, _path, _exceptionable = true) => (() => {
2491
+ if ("launched" === input.outcome)
2492
+ return _ao23(input, _path, true && _exceptionable);
2493
+ else if ("purchased" === input.outcome)
2494
+ return _ao24(input, _path, true && _exceptionable);
2495
+ else if ("cancelled" === input.outcome || "failed" === input.outcome)
2496
+ return _ao25(input, _path, true && _exceptionable);
2497
+ else
2498
+ return _assertGuard_1._assertGuard(_exceptionable, {
2499
+ method: "typia.createAssertEquals",
2500
+ path: _path,
2501
+ expected: _ae8,
2502
+ value: input
2503
+ }, _errorFactory);
2504
+ })();
2505
+ const _au2 = (input, _path, _exceptionable = true) => (() => {
2506
+ if (undefined !== input.finished)
2507
+ return _ao27(input, _path, true && _exceptionable);
2508
+ else if (undefined !== input.error)
2509
+ return _ao28(input, _path, true && _exceptionable);
2510
+ else
2511
+ return _assertGuard_1._assertGuard(_exceptionable, {
2512
+ method: "typia.createAssertEquals",
2513
+ path: _path,
2514
+ expected: "({ readonly finished: boolean; } | { readonly error: CommerceErrorCode; })",
2515
+ value: input
2516
+ }, _errorFactory);
2517
+ })();
2518
+ const _au3 = (input, _path, _exceptionable = true) => (() => {
2519
+ if ("title" === input.kind)
2520
+ return _ao50(input, _path, true && _exceptionable);
2521
+ else if ("cross-title" === input.kind)
2522
+ return _ao51(input, _path, true && _exceptionable);
2523
+ else
2524
+ return _assertGuard_1._assertGuard(_exceptionable, {
2525
+ method: "typia.createAssertEquals",
2526
+ path: _path,
2527
+ expected: "({ readonly kind: \"title\"; readonly titleId: NonEmptyString; } | { readonly kind: \"cross-title\"; })",
2528
+ value: input
2529
+ }, _errorFactory);
2530
+ })();
2531
+ const _io0 = (input, _exceptionable = true) => "string" === typeof input.vector && RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$").test(input.vector) && ("string" === typeof input.protocol && 1 <= input.protocol.length) && ("string" === typeof input.summary && 1 <= input.summary.length) && ("object" === typeof input.profile && null !== input.profile && _io1(input.profile, true && _exceptionable)) && (undefined === input.catalog || Array.isArray(input.catalog) && input.catalog.every((elem, _index1) => "object" === typeof elem && null !== elem && _io5(elem, true && _exceptionable))) && (undefined === input.wallet || "object" === typeof input.wallet && null !== input.wallet && _io8(input.wallet, true && _exceptionable)) && (Array.isArray(input.steps) && (1 <= input.steps.length && input.steps.every((elem, _index2) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable)))) && ("object" === typeof input.expect && null !== input.expect && false === Array.isArray(input.expect) && _io42(input.expect, true && _exceptionable)) && (6 === Object.keys(input).length || Object.keys(input).every(key => {
2532
+ if (["vector", "protocol", "summary", "profile", "catalog", "wallet", "steps", "expect"].some(prop => key === prop))
2533
+ return true;
2534
+ const value = input[key];
2535
+ if (undefined === value)
2536
+ return true;
2537
+ return false;
2538
+ }));
2539
+ const _io1 = (input, _exceptionable = true) => "string" === typeof input.store && 1 <= input.store.length && (undefined === input.purchase || "object" === typeof input.purchase && null !== input.purchase && _io2(input.purchase, true && _exceptionable)) && (undefined === input.lifecycle || "object" === typeof input.lifecycle && null !== input.lifecycle && _io3(input.lifecycle, true && _exceptionable)) && (undefined === input.authority || "object" === typeof input.authority && null !== input.authority && _io4(input.authority, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2540
+ if (["store", "purchase", "lifecycle", "authority"].some(prop => key === prop))
2541
+ return true;
2542
+ const value = input[key];
2543
+ if (undefined === value)
2544
+ return true;
2545
+ return false;
2546
+ }));
2547
+ const _io10 = (input, _exceptionable = true) => "game" === input.actor && "requestPurchase" === input.action && ("object" === typeof input.input && null !== input.input && _io11(input.input, true && _exceptionable)) && (undefined === input.returns || "object" === typeof input.returns && null !== input.returns && _io12(input.returns, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2548
+ if (["actor", "action", "input", "returns"].some(prop => key === prop))
2549
+ return true;
2550
+ const value = input[key];
2551
+ if (undefined === value)
2552
+ return true;
2553
+ return false;
2554
+ }));
2555
+ const _io11 = (input, _exceptionable = true) => "string" === typeof input.logicalId && 1 <= input.logicalId.length && ("string" === typeof input.idempotencyKey && 1 <= input.idempotencyKey.length) && (undefined === input.source || "event" === input.source || "result" === input.source || "shop" === input.source || "stage_fail" === input.source) && (undefined === input.offerId || "string" === typeof input.offerId && 1 <= input.offerId.length) && (undefined === input.quantity || "number" === typeof input.quantity && (_isTypeUint32_1._isTypeUint32(input.quantity) && 1 <= input.quantity)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2556
+ if (["logicalId", "idempotencyKey", "source", "offerId", "quantity"].some(prop => key === prop))
2557
+ return true;
2558
+ const value = input[key];
2559
+ if (undefined === value)
2560
+ return true;
2561
+ return false;
2562
+ }));
2563
+ const _io12 = (input, _exceptionable = true) => ("cancelled" === input.outcome || "failed" === input.outcome || "launched" === input.outcome || "purchased" === input.outcome) && (undefined === input.error || "object" === typeof input.error && null !== input.error && _io13(input.error, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2564
+ if (["outcome", "error"].some(prop => key === prop))
2565
+ return true;
2566
+ const value = input[key];
2567
+ if (undefined === value)
2568
+ return true;
2569
+ return false;
2570
+ }));
2571
+ const _io13 = (input, _exceptionable = true) => true === _iv0.has(input.code) && (undefined === input.retryable || "boolean" === typeof input.retryable) && (undefined === input.storeCode || "string" === typeof input.storeCode) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2572
+ if (["code", "retryable", "storeCode"].some(prop => key === prop))
2573
+ return true;
2574
+ const value = input[key];
2575
+ if (undefined === value)
2576
+ return true;
2577
+ return false;
2578
+ }));
2579
+ const _io14 = (input, _exceptionable = true) => "game" === input.actor && "fetchProducts" === input.action && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io15(input.input, true && _exceptionable)) && (undefined === input.returns || "object" === typeof input.returns && null !== input.returns && _io16(input.returns, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2580
+ if (["actor", "action", "input", "returns"].some(prop => key === prop))
2581
+ return true;
2582
+ const value = input[key];
2583
+ if (undefined === value)
2584
+ return true;
2585
+ return false;
2586
+ }));
2587
+ const _io15 = (input, _exceptionable = true) => (undefined === input.logicalIds || Array.isArray(input.logicalIds) && input.logicalIds.every((elem, _index4) => "string" === typeof elem && 1 <= elem.length)) && (undefined === input.type || "all" === input.type || "in-app" === input.type || "subscription" === input.type) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
2588
+ if (["logicalIds", "type"].some(prop => key === prop))
2589
+ return true;
2590
+ const value = input[key];
2591
+ if (undefined === value)
2592
+ return true;
2593
+ return false;
2594
+ }));
2595
+ const _io16 = (input, _exceptionable = true) => Array.isArray(input.logicalIds) && input.logicalIds.every((elem, _index5) => "string" === typeof elem && 1 <= elem.length) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2596
+ if (["logicalIds"].some(prop => key === prop))
2597
+ return true;
2598
+ const value = input[key];
2599
+ if (undefined === value)
2600
+ return true;
2601
+ return false;
2602
+ }));
2603
+ const _io17 = (input, _exceptionable = true) => "store" === input.actor && ("complete" === input.action || "update" === input.action) && ("object" === typeof input.purchase && null !== input.purchase && _io18(input.purchase, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2604
+ if (["actor", "action", "purchase"].some(prop => key === prop))
2605
+ return true;
2606
+ const value = input[key];
2607
+ if (undefined === value)
2608
+ return true;
2609
+ return false;
2610
+ }));
2611
+ const _io18 = (input, _exceptionable = true) => "string" === typeof input.transactionId && 1 <= input.transactionId.length && ("string" === typeof input.storeSku && 1 <= input.storeSku.length) && ("string" === typeof input.token && 1 <= input.token.length) && ("pending" === input.state || "purchased" === input.state || "revoked" === input.state) && (undefined === input.originalTransactionId || "string" === typeof input.originalTransactionId && 1 <= input.originalTransactionId.length) && (undefined === input.purchasedAt || "string" === typeof input.purchasedAt && _isFormatDateTime_1._isFormatDateTime(input.purchasedAt)) && (undefined === input.settlement || "object" === typeof input.settlement && null !== input.settlement && _io19(input.settlement, true && _exceptionable)) && (4 === Object.keys(input).length || Object.keys(input).every(key => {
2612
+ if (["transactionId", "storeSku", "token", "state", "originalTransactionId", "purchasedAt", "settlement"].some(prop => key === prop))
2613
+ return true;
2614
+ const value = input[key];
2615
+ if (undefined === value)
2616
+ return true;
2617
+ return false;
2618
+ }));
2619
+ const _io19 = (input, _exceptionable = true) => "string" === typeof input.ledgerEntryId && 1 <= input.ledgerEntryId.length && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2620
+ if (["ledgerEntryId"].some(prop => key === prop))
2621
+ return true;
2622
+ const value = input[key];
2623
+ if (undefined === value)
2624
+ return true;
2625
+ return false;
2626
+ }));
2627
+ const _io2 = (input, _exceptionable = true) => "boolean" === typeof input.consumable && "boolean" === typeof input.durable && "boolean" === typeof input.subscription && "boolean" === typeof input.quantity && (4 === Object.keys(input).length || Object.keys(input).every(key => {
2628
+ if (["consumable", "durable", "subscription", "quantity"].some(prop => key === prop))
2629
+ return true;
2630
+ const value = input[key];
2631
+ if (undefined === value)
2632
+ return true;
2633
+ return false;
2634
+ }));
2635
+ const _io20 = (input, _exceptionable = true) => "store" === input.actor && "error" === input.action && (undefined === input.logicalId || "string" === typeof input.logicalId && 1 <= input.logicalId.length) && ("object" === typeof input.error && null !== input.error && _io21(input.error, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2636
+ if (["actor", "action", "logicalId", "error"].some(prop => key === prop))
2637
+ return true;
2638
+ const value = input[key];
2639
+ if (undefined === value)
2640
+ return true;
2641
+ return false;
2642
+ }));
2643
+ const _io21 = (input, _exceptionable = true) => true === _iv0.has(input.code) && "boolean" === typeof input.retryable && (undefined === input.storeCode || "string" === typeof input.storeCode) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2644
+ if (["code", "retryable", "storeCode"].some(prop => key === prop))
2645
+ return true;
2646
+ const value = input[key];
2647
+ if (undefined === value)
2648
+ return true;
2649
+ return false;
2650
+ }));
2651
+ const _io22 = (input, _exceptionable = true) => "store" === input.actor && "queueRequest" === input.action && ("object" === typeof input.result && null !== input.result && _iu1(input.result, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2652
+ if (["actor", "action", "result"].some(prop => key === prop))
2653
+ return true;
2654
+ const value = input[key];
2655
+ if (undefined === value)
2656
+ return true;
2657
+ return false;
2658
+ }));
2659
+ const _io23 = (input, _exceptionable = true) => "launched" === input.outcome && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2660
+ if (["outcome"].some(prop => key === prop))
2661
+ return true;
2662
+ const value = input[key];
2663
+ if (undefined === value)
2664
+ return true;
2665
+ return false;
2666
+ }));
2667
+ const _io24 = (input, _exceptionable = true) => "purchased" === input.outcome && ("object" === typeof input.purchase && null !== input.purchase && _io18(input.purchase, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2668
+ if (["outcome", "purchase"].some(prop => key === prop))
2669
+ return true;
2670
+ const value = input[key];
2671
+ if (undefined === value)
2672
+ return true;
2673
+ return false;
2674
+ }));
2675
+ const _io25 = (input, _exceptionable = true) => ("cancelled" === input.outcome || "failed" === input.outcome) && ("object" === typeof input.error && null !== input.error && _io21(input.error, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2676
+ if (["outcome", "error"].some(prop => key === prop))
2677
+ return true;
2678
+ const value = input[key];
2679
+ if (undefined === value)
2680
+ return true;
2681
+ return false;
2682
+ }));
2683
+ const _io26 = (input, _exceptionable = true) => "store" === input.actor && "queueFinish" === input.action && ("object" === typeof input.result && null !== input.result && _iu2(input.result, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2684
+ if (["actor", "action", "result"].some(prop => key === prop))
2685
+ return true;
2686
+ const value = input[key];
2687
+ if (undefined === value)
2688
+ return true;
2689
+ return false;
2690
+ }));
2691
+ const _io27 = (input, _exceptionable = true) => "boolean" === typeof input.finished && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2692
+ if (["finished"].some(prop => key === prop))
2693
+ return true;
2694
+ const value = input[key];
2695
+ if (undefined === value)
2696
+ return true;
2697
+ return false;
2698
+ }));
2699
+ const _io28 = (input, _exceptionable = true) => true === _iv0.has(input.error) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2700
+ if (["error"].some(prop => key === prop))
2701
+ return true;
2702
+ const value = input[key];
2703
+ if (undefined === value)
2704
+ return true;
2705
+ return false;
2706
+ }));
2707
+ const _io29 = (input, _exceptionable = true) => "backend" === input.actor && "queueVerify" === input.action && ("object" === typeof input.decision && null !== input.decision && _io30(input.decision, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2708
+ if (["actor", "action", "decision"].some(prop => key === prop))
2709
+ return true;
2710
+ const value = input[key];
2711
+ if (undefined === value)
2712
+ return true;
2713
+ return false;
2714
+ }));
2715
+ const _io3 = (input, _exceptionable = true) => "boolean" === typeof input.availablePurchases && "boolean" === typeof input.pending && "boolean" === typeof input.restore && "boolean" === typeof input.events && ("client" === input.finish || "host" === input.finish || "none" === input.finish || "server" === input.finish) && (5 === Object.keys(input).length || Object.keys(input).every(key => {
2716
+ if (["availablePurchases", "pending", "restore", "events", "finish"].some(prop => key === prop))
2717
+ return true;
2718
+ const value = input[key];
2719
+ if (undefined === value)
2720
+ return true;
2721
+ return false;
2722
+ }));
2723
+ const _io30 = (input, _exceptionable = true) => ("granted" === input.status || "pending" === input.status || "rejected" === input.status) && (undefined === input.ledgerEntryId || "string" === typeof input.ledgerEntryId && 1 <= input.ledgerEntryId.length) && (undefined === input.finalization || "completed" === input.finalization || "pending" === input.finalization) && (undefined === input.alreadyProcessed || "boolean" === typeof input.alreadyProcessed) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2724
+ if (["status", "ledgerEntryId", "finalization", "alreadyProcessed"].some(prop => key === prop))
2725
+ return true;
2726
+ const value = input[key];
2727
+ if (undefined === value)
2728
+ return true;
2729
+ return false;
2730
+ }));
2731
+ const _io31 = (input, _exceptionable = true) => "backend" === input.actor && "push" === input.action && ("string" === typeof input.transactionId && 1 <= input.transactionId.length) && ("string" === typeof input.entryId && 1 <= input.entryId.length) && ("string" === typeof input.logicalId && 1 <= input.logicalId.length) && (5 === Object.keys(input).length || Object.keys(input).every(key => {
2732
+ if (["actor", "action", "transactionId", "entryId", "logicalId"].some(prop => key === prop))
2733
+ return true;
2734
+ const value = input[key];
2735
+ if (undefined === value)
2736
+ return true;
2737
+ return false;
2738
+ }));
2739
+ const _io32 = (input, _exceptionable = true) => "backend" === input.actor && "revoke" === input.action && ("string" === typeof input.ledgerEntryId && 1 <= input.ledgerEntryId.length) && ("string" === typeof input.entryId && 1 <= input.entryId.length) && ("string" === typeof input.reason && 1 <= input.reason.length) && (5 === Object.keys(input).length || Object.keys(input).every(key => {
2740
+ if (["actor", "action", "ledgerEntryId", "entryId", "reason"].some(prop => key === prop))
2741
+ return true;
2742
+ const value = input[key];
2743
+ if (undefined === value)
2744
+ return true;
2745
+ return false;
2746
+ }));
2747
+ const _io33 = (input, _exceptionable = true) => "wallet" === input.actor && "creditFromGrant" === input.action && ("object" === typeof input.lot && null !== input.lot && _io34(input.lot, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2748
+ if (["actor", "action", "lot"].some(prop => key === prop))
2749
+ return true;
2750
+ const value = input[key];
2751
+ if (undefined === value)
2752
+ return true;
2753
+ return false;
2754
+ }));
2755
+ const _io34 = (input, _exceptionable = true) => "string" === typeof input.ledgerEntryId && 1 <= input.ledgerEntryId.length && ("string" === typeof input.currency && 1 <= input.currency.length) && ("number" === typeof input.amount && 0 < input.amount) && ("object" === typeof input.origin && null !== input.origin && _io35(input.origin, true && _exceptionable)) && ("string" === typeof input.createdAt && _isFormatDateTime_1._isFormatDateTime(input.createdAt)) && (undefined === input.expiresAt || "string" === typeof input.expiresAt && _isFormatDateTime_1._isFormatDateTime(input.expiresAt)) && (5 === Object.keys(input).length || Object.keys(input).every(key => {
2756
+ if (["ledgerEntryId", "currency", "amount", "origin", "createdAt", "expiresAt"].some(prop => key === prop))
2757
+ return true;
2758
+ const value = input[key];
2759
+ if (undefined === value)
2760
+ return true;
2761
+ return false;
2762
+ }));
2763
+ const _io35 = (input, _exceptionable = true) => ("off-store" === input.channel || "promotion" === input.channel || "store" === input.channel) && ("string" === typeof input.store && 1 <= input.store.length) && ("string" === typeof input.titleId && 1 <= input.titleId.length) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2764
+ if (["channel", "store", "titleId"].some(prop => key === prop))
2765
+ return true;
2766
+ const value = input[key];
2767
+ if (undefined === value)
2768
+ return true;
2769
+ return false;
2770
+ }));
2771
+ const _io36 = (input, _exceptionable = true) => "wallet" === input.actor && "spend" === input.action && ("object" === typeof input.input && null !== input.input && _io37(input.input, true && _exceptionable)) && (undefined === input.returns || "object" === typeof input.returns && null !== input.returns && _io38(input.returns, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2772
+ if (["actor", "action", "input", "returns"].some(prop => key === prop))
2773
+ return true;
2774
+ const value = input[key];
2775
+ if (undefined === value)
2776
+ return true;
2777
+ return false;
2778
+ }));
2779
+ const _io37 = (input, _exceptionable = true) => "string" === typeof input.titleId && 1 <= input.titleId.length && ("string" === typeof input.currency && 1 <= input.currency.length) && ("number" === typeof input.amount && 0 < input.amount) && ("string" === typeof input.idempotencyKey && 1 <= input.idempotencyKey.length) && (4 === Object.keys(input).length || Object.keys(input).every(key => {
2780
+ if (["titleId", "currency", "amount", "idempotencyKey"].some(prop => key === prop))
2781
+ return true;
2782
+ const value = input[key];
2783
+ if (undefined === value)
2784
+ return true;
2785
+ return false;
2786
+ }));
2787
+ const _io38 = (input, _exceptionable = true) => ("debited" === input.status || "rejected" === input.status) && (undefined === input.debits || Array.isArray(input.debits) && input.debits.every((elem, _index6) => "object" === typeof elem && null !== elem && _io39(elem, true && _exceptionable))) && (undefined === input.alreadyProcessed || "boolean" === typeof input.alreadyProcessed) && (undefined === input.error || "object" === typeof input.error && null !== input.error && _io13(input.error, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2788
+ if (["status", "debits", "alreadyProcessed", "error"].some(prop => key === prop))
2789
+ return true;
2790
+ const value = input[key];
2791
+ if (undefined === value)
2792
+ return true;
2793
+ return false;
2794
+ }));
2795
+ const _io39 = (input, _exceptionable = true) => "string" === typeof input.lotId && 1 <= input.lotId.length && ("number" === typeof input.amount && 0 < input.amount) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2796
+ if (["lotId", "amount"].some(prop => key === prop))
2797
+ return true;
2798
+ const value = input[key];
2799
+ if (undefined === value)
2800
+ return true;
2801
+ return false;
2802
+ }));
2803
+ const _io4 = (input, _exceptionable = true) => ("adapter-settled" === input.evidence || "client-token" === input.evidence || "host-callback" === input.evidence || "server-push" === input.evidence) && ("host" === input.accountBinding || "optional" === input.accountBinding || "required" === input.accountBinding) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2804
+ if (["evidence", "accountBinding"].some(prop => key === prop))
2805
+ return true;
2806
+ const value = input[key];
2807
+ if (undefined === value)
2808
+ return true;
2809
+ return false;
2810
+ }));
2811
+ const _io40 = (input, _exceptionable = true) => "wallet" === input.actor && "renewDue" === input.action && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2812
+ if (["actor", "action"].some(prop => key === prop))
2813
+ return true;
2814
+ const value = input[key];
2815
+ if (undefined === value)
2816
+ return true;
2817
+ return false;
2818
+ }));
2819
+ const _io41 = (input, _exceptionable = true) => "clock" === input.actor && "set" === input.action && ("string" === typeof input.at && _isFormatDateTime_1._isFormatDateTime(input.at)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2820
+ if (["actor", "action", "at"].some(prop => key === prop))
2821
+ return true;
2822
+ const value = input[key];
2823
+ if (undefined === value)
2824
+ return true;
2825
+ return false;
2826
+ }));
2827
+ const _io42 = (input, _exceptionable = true) => (undefined === input.journal || "object" === typeof input.journal && null !== input.journal && false === Array.isArray(input.journal) && _io43(input.journal, true && _exceptionable)) && (undefined === input.verifyRequests || Array.isArray(input.verifyRequests) && input.verifyRequests.every((elem, _index7) => "object" === typeof elem && null !== elem && _io44(elem, true && _exceptionable))) && (undefined === input.ledger || Array.isArray(input.ledger) && input.ledger.every((elem, _index8) => "object" === typeof elem && null !== elem && _io45(elem, true && _exceptionable))) && (undefined === input.finishCalls || Array.isArray(input.finishCalls) && input.finishCalls.every((elem, _index9) => "object" === typeof elem && null !== elem && _io46(elem, true && _exceptionable))) && (undefined === input.available || Array.isArray(input.available) && input.available.every((elem, _index10) => "object" === typeof elem && null !== elem && _io47(elem, true && _exceptionable))) && (undefined === input.entitlements || Array.isArray(input.entitlements) && input.entitlements.every((elem, _index11) => "object" === typeof elem && null !== elem && _io48(elem, true && _exceptionable))) && (undefined === input.lots || Array.isArray(input.lots) && input.lots.every((elem, _index12) => "object" === typeof elem && null !== elem && _io49(elem, true && _exceptionable))) && (undefined === input.balances || "object" === typeof input.balances && null !== input.balances && false === Array.isArray(input.balances) && _io52(input.balances, true && _exceptionable)) && (undefined === input.debits || Array.isArray(input.debits) && input.debits.every((elem, _index13) => "object" === typeof elem && null !== elem && _io54(elem, true && _exceptionable))) && (undefined === input.events || Array.isArray(input.events) && input.events.every((elem, _index14) => "object" === typeof elem && null !== elem && _io55(elem, true && _exceptionable))) && (undefined === input.activeSubscriptions || Array.isArray(input.activeSubscriptions) && input.activeSubscriptions.every((elem, _index15) => "object" === typeof elem && null !== elem && _io56(elem, true && _exceptionable))) && (undefined === input.purchaseUiOpened || "number" === typeof input.purchaseUiOpened && _isTypeUint32_1._isTypeUint32(input.purchaseUiOpened)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
2828
+ if (["journal", "verifyRequests", "ledger", "finishCalls", "available", "entitlements", "lots", "balances", "debits", "events", "activeSubscriptions", "purchaseUiOpened"].some(prop => key === prop))
2829
+ return true;
2830
+ const value = input[key];
2831
+ if (undefined === value)
2832
+ return true;
2833
+ return false;
2834
+ }));
2835
+ const _io43 = (input, _exceptionable = true) => Object.keys(input).every(key => {
2836
+ const value = input[key];
2837
+ if (undefined === value)
2838
+ return true;
2839
+ return Array.isArray(value) && value.every((elem, _index16) => true === _iv1.has(elem));
2840
+ });
2841
+ const _io44 = (input, _exceptionable = true) => "string" === typeof input.idempotencyKey && 1 <= input.idempotencyKey.length && ("string" === typeof input.store && 1 <= input.store.length) && ("string" === typeof input.transactionId && 1 <= input.transactionId.length) && ("string" === typeof input.token && 1 <= input.token.length) && (4 === Object.keys(input).length || Object.keys(input).every(key => {
2842
+ if (["idempotencyKey", "store", "transactionId", "token"].some(prop => key === prop))
2843
+ return true;
2844
+ const value = input[key];
2845
+ if (undefined === value)
2846
+ return true;
2847
+ return false;
2848
+ }));
2849
+ const _io45 = (input, _exceptionable = true) => "string" === typeof input.entryId && 1 <= input.entryId.length && ("grant" === input.type || "period" === input.type || "revoke" === input.type) && ("string" === typeof input.logicalId && 1 <= input.logicalId.length) && (undefined === input.reverses || "string" === typeof input.reverses && 1 <= input.reverses.length) && (undefined === input.reason || "string" === typeof input.reason && 1 <= input.reason.length) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2850
+ if (["entryId", "type", "logicalId", "reverses", "reason"].some(prop => key === prop))
2851
+ return true;
2852
+ const value = input[key];
2853
+ if (undefined === value)
2854
+ return true;
2855
+ return false;
2856
+ }));
2857
+ const _io46 = (input, _exceptionable = true) => ("client" === input.by || "host" === input.by) && ("string" === typeof input.transactionId && 1 <= input.transactionId.length) && ("string" === typeof input.ledgerEntryId && 1 <= input.ledgerEntryId.length) && "boolean" === typeof input.isConsumable && true === _iv2.has(input.result) && (5 === Object.keys(input).length || Object.keys(input).every(key => {
2858
+ if (["by", "transactionId", "ledgerEntryId", "isConsumable", "result"].some(prop => key === prop))
2859
+ return true;
2860
+ const value = input[key];
2861
+ if (undefined === value)
2862
+ return true;
2863
+ return false;
2864
+ }));
2865
+ const _io47 = (input, _exceptionable = true) => "string" === typeof input.transactionId && 1 <= input.transactionId.length && (undefined === input.storeSku || "string" === typeof input.storeSku && 1 <= input.storeSku.length) && (undefined === input.state || "pending" === input.state || "purchased" === input.state || "revoked" === input.state) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2866
+ if (["transactionId", "storeSku", "state"].some(prop => key === prop))
2867
+ return true;
2868
+ const value = input[key];
2869
+ if (undefined === value)
2870
+ return true;
2871
+ return false;
2872
+ }));
2873
+ const _io48 = (input, _exceptionable = true) => "string" === typeof input.id && 1 <= input.id.length && (undefined === input.logicalId || "string" === typeof input.logicalId && 1 <= input.logicalId.length) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2874
+ if (["id", "logicalId"].some(prop => key === prop))
2875
+ return true;
2876
+ const value = input[key];
2877
+ if (undefined === value)
2878
+ return true;
2879
+ return false;
2880
+ }));
2881
+ const _io49 = (input, _exceptionable = true) => "string" === typeof input.lotId && 1 <= input.lotId.length && (undefined === input.currency || "string" === typeof input.currency && 1 <= input.currency.length) && (undefined === input.amount || "number" === typeof input.amount && 0 < input.amount) && ("number" === typeof input.remaining && 0 <= input.remaining) && (undefined === input.origin || "object" === typeof input.origin && null !== input.origin && _io35(input.origin, true && _exceptionable)) && (undefined === input.spendScope || "object" === typeof input.spendScope && null !== input.spendScope && _iu3(input.spendScope, true && _exceptionable)) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2882
+ if (["lotId", "currency", "amount", "remaining", "origin", "spendScope"].some(prop => key === prop))
2883
+ return true;
2884
+ const value = input[key];
2885
+ if (undefined === value)
2886
+ return true;
2887
+ return false;
2888
+ }));
2889
+ const _io5 = (input, _exceptionable = true) => "string" === typeof input.logicalId && 1 <= input.logicalId.length && ("consumable" === input.kind || "durable" === input.kind || "subscription" === input.kind) && ("string" === typeof input.storeSku && 1 <= input.storeSku.length) && (undefined === input.membership || "object" === typeof input.membership && null !== input.membership && _io6(input.membership, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2890
+ if (["logicalId", "kind", "storeSku", "membership"].some(prop => key === prop))
2891
+ return true;
2892
+ const value = input[key];
2893
+ if (undefined === value)
2894
+ return true;
2895
+ return false;
2896
+ }));
2897
+ const _io50 = (input, _exceptionable = true) => "title" === input.kind && ("string" === typeof input.titleId && 1 <= input.titleId.length) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2898
+ if (["kind", "titleId"].some(prop => key === prop))
2899
+ return true;
2900
+ const value = input[key];
2901
+ if (undefined === value)
2902
+ return true;
2903
+ return false;
2904
+ }));
2905
+ const _io51 = (input, _exceptionable = true) => "cross-title" === input.kind && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2906
+ if (["kind"].some(prop => key === prop))
2907
+ return true;
2908
+ const value = input[key];
2909
+ if (undefined === value)
2910
+ return true;
2911
+ return false;
2912
+ }));
2913
+ const _io52 = (input, _exceptionable = true) => Object.keys(input).every(key => {
2914
+ const value = input[key];
2915
+ if (undefined === value)
2916
+ return true;
2917
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io53(value, true && _exceptionable);
2918
+ });
2919
+ const _io53 = (input, _exceptionable = true) => Object.keys(input).every(key => {
2920
+ const value = input[key];
2921
+ if (undefined === value)
2922
+ return true;
2923
+ return "number" === typeof value;
2924
+ });
2925
+ const _io54 = (input, _exceptionable = true) => "string" === typeof input.idempotencyKey && 1 <= input.idempotencyKey.length && ("string" === typeof input.lotId && 1 <= input.lotId.length) && ("number" === typeof input.amount && 0 < input.amount) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2926
+ if (["idempotencyKey", "lotId", "amount"].some(prop => key === prop))
2927
+ return true;
2928
+ const value = input[key];
2929
+ if (undefined === value)
2930
+ return true;
2931
+ return false;
2932
+ }));
2933
+ const _io55 = (input, _exceptionable = true) => ("subscriptionLapsed" === input.type || "subscriptionRenewed" === input.type || "subscriptionRevoked" === input.type || "subscriptionStarted" === input.type) && ("string" === typeof input.logicalId && 1 <= input.logicalId.length) && ("number" === typeof input.periodIndex && _isTypeUint32_1._isTypeUint32(input.periodIndex)) && ("string" === typeof input.expiresAt && _isFormatDateTime_1._isFormatDateTime(input.expiresAt)) && (undefined === input.reason || true === _iv0.has(input.reason)) && (4 === Object.keys(input).length || Object.keys(input).every(key => {
2934
+ if (["type", "logicalId", "periodIndex", "expiresAt", "reason"].some(prop => key === prop))
2935
+ return true;
2936
+ const value = input[key];
2937
+ if (undefined === value)
2938
+ return true;
2939
+ return false;
2940
+ }));
2941
+ const _io56 = (input, _exceptionable = true) => "string" === typeof input.logicalId && 1 <= input.logicalId.length && (undefined === input.periodIndex || "number" === typeof input.periodIndex && _isTypeUint32_1._isTypeUint32(input.periodIndex)) && (undefined === input.state || "active" === input.state || "lapsed" === input.state || "revoked" === input.state) && (undefined === input.expiresAt || "string" === typeof input.expiresAt && _isFormatDateTime_1._isFormatDateTime(input.expiresAt)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
2942
+ if (["logicalId", "periodIndex", "state", "expiresAt"].some(prop => key === prop))
2943
+ return true;
2944
+ const value = input[key];
2945
+ if (undefined === value)
2946
+ return true;
2947
+ return false;
2948
+ }));
2949
+ const _io6 = (input, _exceptionable = true) => ("platform" === input.scope || "title" === input.scope) && ("object" === typeof input.price && null !== input.price && _io7(input.price, true && _exceptionable)) && ("string" === typeof input.period && 1 <= input.period.length) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
2950
+ if (["scope", "price", "period"].some(prop => key === prop))
2951
+ return true;
2952
+ const value = input[key];
2953
+ if (undefined === value)
2954
+ return true;
2955
+ return false;
2956
+ }));
2957
+ const _io7 = (input, _exceptionable = true) => "string" === typeof input.currency && 1 <= input.currency.length && ("number" === typeof input.amount && 0 < input.amount) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2958
+ if (["currency", "amount"].some(prop => key === prop))
2959
+ return true;
2960
+ const value = input[key];
2961
+ if (undefined === value)
2962
+ return true;
2963
+ return false;
2964
+ }));
2965
+ const _io8 = (input, _exceptionable = true) => Array.isArray(input.currencies) && (1 <= input.currencies.length && input.currencies.every((elem, _index3) => "string" === typeof elem && 1 <= elem.length)) && ("host" === input.billingAuthority || "store" === input.billingAuthority) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2966
+ if (["currencies", "billingAuthority"].some(prop => key === prop))
2967
+ return true;
2968
+ const value = input[key];
2969
+ if (undefined === value)
2970
+ return true;
2971
+ return false;
2972
+ }));
2973
+ const _io9 = (input, _exceptionable = true) => "runtime" === input.actor && ("reconcile" === input.action || "start" === input.action || "stop" === input.action) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
2974
+ if (["actor", "action"].some(prop => key === prop))
2975
+ return true;
2976
+ const value = input[key];
2977
+ if (undefined === value)
2978
+ return true;
2979
+ return false;
2980
+ }));
2981
+ const _iu0 = (input, _exceptionable = true) => (() => {
2982
+ if ("runtime" === input.actor)
2983
+ return _io9(input, true && _exceptionable);
2984
+ else if ("fetchProducts" === input.action)
2985
+ return _io14(input, true && _exceptionable);
2986
+ else if ("requestPurchase" === input.action)
2987
+ return _io10(input, true && _exceptionable);
2988
+ else if ("complete" === input.action || "update" === input.action)
2989
+ return _io17(input, true && _exceptionable);
2990
+ else if ("error" === input.action)
2991
+ return _io20(input, true && _exceptionable);
2992
+ else if ("queueFinish" === input.action)
2993
+ return _io26(input, true && _exceptionable);
2994
+ else if ("queueRequest" === input.action)
2995
+ return _io22(input, true && _exceptionable);
2996
+ else if ("queueVerify" === input.action)
2997
+ return _io29(input, true && _exceptionable);
2998
+ else if ("push" === input.action)
2999
+ return _io31(input, true && _exceptionable);
3000
+ else if ("revoke" === input.action)
3001
+ return _io32(input, true && _exceptionable);
3002
+ else if ("creditFromGrant" === input.action)
3003
+ return _io33(input, true && _exceptionable);
3004
+ else if ("spend" === input.action)
3005
+ return _io36(input, true && _exceptionable);
3006
+ else if ("renewDue" === input.action)
3007
+ return _io40(input, true && _exceptionable);
3008
+ else if ("clock" === input.actor)
3009
+ return _io41(input, true && _exceptionable);
3010
+ else
3011
+ return false;
3012
+ })();
3013
+ const _iu1 = (input, _exceptionable = true) => (() => {
3014
+ if ("launched" === input.outcome)
3015
+ return _io23(input, true && _exceptionable);
3016
+ else if ("purchased" === input.outcome)
3017
+ return _io24(input, true && _exceptionable);
3018
+ else if ("cancelled" === input.outcome || "failed" === input.outcome)
3019
+ return _io25(input, true && _exceptionable);
3020
+ else
3021
+ return false;
3022
+ })();
3023
+ const _iu2 = (input, _exceptionable = true) => (() => {
3024
+ if (undefined !== input.finished)
3025
+ return _io27(input, true && _exceptionable);
3026
+ else if (undefined !== input.error)
3027
+ return _io28(input, true && _exceptionable);
3028
+ else
3029
+ return false;
3030
+ })();
3031
+ const _iu3 = (input, _exceptionable = true) => (() => {
3032
+ if ("title" === input.kind)
3033
+ return _io50(input, true && _exceptionable);
3034
+ else if ("cross-title" === input.kind)
3035
+ return _io51(input, true && _exceptionable);
3036
+ else
3037
+ return false;
3038
+ })();
3039
+ const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true);
3040
+ let _errorFactory;
3041
+ return (input, errorFactory) => {
3042
+ if (false === __is(input)) {
3043
+ _errorFactory = errorFactory;
3044
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _assertGuard_1._assertGuard(true, {
3045
+ method: "typia.createAssertEquals",
3046
+ path: _path + "",
3047
+ expected: "CommerceConformanceVector",
3048
+ value: input
3049
+ }, _errorFactory)) && _ao0(input, _path + "", true) || _assertGuard_1._assertGuard(true, {
3050
+ method: "typia.createAssertEquals",
3051
+ path: _path + "",
3052
+ expected: "CommerceConformanceVector",
3053
+ value: input
3054
+ }, _errorFactory))(input, "$input", true);
3055
+ }
3056
+ return input;
3057
+ };
3058
+ })();
3059
+ /** Validates one vector file. Catalog logical ids must be unique. */
3060
+ export function assertCommerceConformanceVector(input) {
3061
+ const vector = assertCommerceConformanceVectorShape(input);
3062
+ const logicalIds = new Set();
3063
+ for (const entry of vector.catalog ?? []) {
3064
+ if (logicalIds.has(entry.logicalId)) {
3065
+ throw new TypeError(`Vector ${vector.vector} declares ${entry.logicalId} twice.`);
3066
+ }
3067
+ logicalIds.add(entry.logicalId);
3068
+ }
3069
+ return vector;
3070
+ }
3071
+ export function isCommerceConformanceVector(input) {
3072
+ try {
3073
+ assertCommerceConformanceVector(input);
3074
+ return true;
3075
+ }
3076
+ catch {
3077
+ return false;
3078
+ }
3079
+ }
3080
+ /** The vector name a file at `path` must declare. */
3081
+ export function commerceConformanceVectorNameOf(path) {
3082
+ const fileName = path.split(/[\\/]/u).pop() ?? path;
3083
+ return fileName.endsWith('.json') ? fileName.slice(0, -'.json'.length) : fileName;
3084
+ }