@mj-biz-apps/orders-entities 5.17.0 → 5.18.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.
@@ -404,6 +404,9 @@ export declare const mjBizAppsOrdersEntitlementGrantSchema: z.ZodObject<{
404
404
  RevocationReason: z.ZodNullable<z.ZodString>;
405
405
  __mj_CreatedAt: z.ZodDate;
406
406
  __mj_UpdatedAt: z.ZodDate;
407
+ GrantTimingApplied: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"OnActivation">, z.ZodLiteral<"OnConfirm">, z.ZodLiteral<"OnFirstPayment">, z.ZodLiteral<"OnPaidInFull">]>>;
408
+ SuspendedAt: z.ZodNullable<z.ZodDate>;
409
+ SuspensionReason: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"AwaitingActivation">, z.ZodLiteral<"AwaitingPayment">, z.ZodLiteral<"PastDue">]>>;
407
410
  ProductEntitlement: z.ZodNullable<z.ZodString>;
408
411
  Subscription: z.ZodNullable<z.ZodString>;
409
412
  BeneficiaryPerson: z.ZodNullable<z.ZodString>;
@@ -426,6 +429,9 @@ export declare const mjBizAppsOrdersEntitlementGrantSchema: z.ZodObject<{
426
429
  ProvisionedAt?: Date;
427
430
  ValidityModeApplied?: "EventWindow" | "FixedDuration" | "Perpetual" | "SubscriptionTerm";
428
431
  SubscriptionTermID?: string;
432
+ GrantTimingApplied?: "OnActivation" | "OnConfirm" | "OnFirstPayment" | "OnPaidInFull";
433
+ SuspendedAt?: Date;
434
+ SuspensionReason?: "AwaitingActivation" | "AwaitingPayment" | "PastDue";
429
435
  ProductEntitlement?: string;
430
436
  Subscription?: string;
431
437
  BeneficiaryPerson?: string;
@@ -448,6 +454,9 @@ export declare const mjBizAppsOrdersEntitlementGrantSchema: z.ZodObject<{
448
454
  ProvisionedAt?: Date;
449
455
  ValidityModeApplied?: "EventWindow" | "FixedDuration" | "Perpetual" | "SubscriptionTerm";
450
456
  SubscriptionTermID?: string;
457
+ GrantTimingApplied?: "OnActivation" | "OnConfirm" | "OnFirstPayment" | "OnPaidInFull";
458
+ SuspendedAt?: Date;
459
+ SuspensionReason?: "AwaitingActivation" | "AwaitingPayment" | "PastDue";
451
460
  ProductEntitlement?: string;
452
461
  Subscription?: string;
453
462
  BeneficiaryPerson?: string;
@@ -1578,6 +1587,7 @@ export declare const mjBizAppsOrdersPaymentHeaderSchema: z.ZodObject<{
1578
1587
  IdempotencyKey: z.ZodNullable<z.ZodString>;
1579
1588
  __mj_CreatedAt: z.ZodDate;
1580
1589
  __mj_UpdatedAt: z.ZodDate;
1590
+ ReversalSource: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"BankReturn">, z.ZodLiteral<"Refund">]>>;
1581
1591
  ReceivingCompany: z.ZodString;
1582
1592
  BillToPerson: z.ZodNullable<z.ZodString>;
1583
1593
  BillToOrganization: z.ZodNullable<z.ZodString>;
@@ -1619,6 +1629,7 @@ export declare const mjBizAppsOrdersPaymentHeaderSchema: z.ZodObject<{
1619
1629
  ProviderRefundID?: string;
1620
1630
  ReversesPaymentHeaderID?: string;
1621
1631
  IdempotencyKey?: string;
1632
+ ReversalSource?: "BankReturn" | "Refund";
1622
1633
  ReceivingCompany?: string;
1623
1634
  ReversesPaymentHeader?: string;
1624
1635
  }, {
@@ -1653,6 +1664,7 @@ export declare const mjBizAppsOrdersPaymentHeaderSchema: z.ZodObject<{
1653
1664
  ProviderRefundID?: string;
1654
1665
  ReversesPaymentHeaderID?: string;
1655
1666
  IdempotencyKey?: string;
1667
+ ReversalSource?: "BankReturn" | "Refund";
1656
1668
  ReceivingCompany?: string;
1657
1669
  ReversesPaymentHeader?: string;
1658
1670
  }>;
@@ -2121,7 +2133,7 @@ export declare const mjBizAppsOrdersProductCategorySchema: z.ZodObject<{
2121
2133
  IsActive: z.ZodBoolean;
2122
2134
  DefaultIsTaxable: z.ZodNullable<z.ZodBoolean>;
2123
2135
  DefaultTaxCategory: z.ZodNullable<z.ZodString>;
2124
- DefaultEntitlementGrantTiming: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"OnActivation">, z.ZodLiteral<"OnConfirm">, z.ZodLiteral<"OnPaidInFull">]>>;
2136
+ DefaultEntitlementGrantTiming: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"OnActivation">, z.ZodLiteral<"OnConfirm">, z.ZodLiteral<"OnFirstPayment">, z.ZodLiteral<"OnPaidInFull">]>>;
2125
2137
  DefaultEntitlementQuantityMode: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Flat">, z.ZodLiteral<"PerUnit">]>>;
2126
2138
  DefaultEntitlementValidityMode: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"EventWindow">, z.ZodLiteral<"FixedDuration">, z.ZodLiteral<"Perpetual">, z.ZodLiteral<"SubscriptionTerm">]>>;
2127
2139
  __mj_CreatedAt: z.ZodDate;
@@ -2148,7 +2160,7 @@ export declare const mjBizAppsOrdersProductCategorySchema: z.ZodObject<{
2148
2160
  ParentProductCategoryID?: string;
2149
2161
  DefaultIsTaxable?: boolean;
2150
2162
  DefaultTaxCategory?: string;
2151
- DefaultEntitlementGrantTiming?: "OnActivation" | "OnConfirm" | "OnPaidInFull";
2163
+ DefaultEntitlementGrantTiming?: "OnActivation" | "OnConfirm" | "OnFirstPayment" | "OnPaidInFull";
2152
2164
  DefaultEntitlementQuantityMode?: "Flat" | "PerUnit";
2153
2165
  DefaultEntitlementValidityMode?: "EventWindow" | "FixedDuration" | "Perpetual" | "SubscriptionTerm";
2154
2166
  ParentProductCategory?: string;
@@ -2171,7 +2183,7 @@ export declare const mjBizAppsOrdersProductCategorySchema: z.ZodObject<{
2171
2183
  ParentProductCategoryID?: string;
2172
2184
  DefaultIsTaxable?: boolean;
2173
2185
  DefaultTaxCategory?: string;
2174
- DefaultEntitlementGrantTiming?: "OnActivation" | "OnConfirm" | "OnPaidInFull";
2186
+ DefaultEntitlementGrantTiming?: "OnActivation" | "OnConfirm" | "OnFirstPayment" | "OnPaidInFull";
2175
2187
  DefaultEntitlementQuantityMode?: "Flat" | "PerUnit";
2176
2188
  DefaultEntitlementValidityMode?: "EventWindow" | "FixedDuration" | "Perpetual" | "SubscriptionTerm";
2177
2189
  ParentProductCategory?: string;
@@ -2346,7 +2358,7 @@ export declare const mjBizAppsOrdersProductTypeSchema: z.ZodObject<{
2346
2358
  ProductExtensionEntity: z.ZodNullable<z.ZodString>;
2347
2359
  OrderLineExtensionEntity: z.ZodNullable<z.ZodString>;
2348
2360
  IsActive: z.ZodBoolean;
2349
- DefaultEntitlementGrantTiming: z.ZodUnion<[z.ZodLiteral<"OnActivation">, z.ZodLiteral<"OnConfirm">, z.ZodLiteral<"OnPaidInFull">]>;
2361
+ DefaultEntitlementGrantTiming: z.ZodUnion<[z.ZodLiteral<"OnActivation">, z.ZodLiteral<"OnConfirm">, z.ZodLiteral<"OnFirstPayment">, z.ZodLiteral<"OnPaidInFull">]>;
2350
2362
  DefaultEntitlementQuantityMode: z.ZodUnion<[z.ZodLiteral<"Flat">, z.ZodLiteral<"PerUnit">]>;
2351
2363
  DefaultEntitlementValidityMode: z.ZodUnion<[z.ZodLiteral<"EventWindow">, z.ZodLiteral<"FixedDuration">, z.ZodLiteral<"Perpetual">, z.ZodLiteral<"SubscriptionTerm">]>;
2352
2364
  __mj_CreatedAt: z.ZodDate;
@@ -2367,7 +2379,7 @@ export declare const mjBizAppsOrdersProductTypeSchema: z.ZodObject<{
2367
2379
  PricingDriverClass?: string;
2368
2380
  DefaultIsTaxable?: boolean;
2369
2381
  DefaultTaxCategory?: string;
2370
- DefaultEntitlementGrantTiming?: "OnActivation" | "OnConfirm" | "OnPaidInFull";
2382
+ DefaultEntitlementGrantTiming?: "OnActivation" | "OnConfirm" | "OnFirstPayment" | "OnPaidInFull";
2371
2383
  DefaultEntitlementQuantityMode?: "Flat" | "PerUnit";
2372
2384
  DefaultEntitlementValidityMode?: "EventWindow" | "FixedDuration" | "Perpetual" | "SubscriptionTerm";
2373
2385
  RequiresFulfillment?: boolean;
@@ -2389,7 +2401,7 @@ export declare const mjBizAppsOrdersProductTypeSchema: z.ZodObject<{
2389
2401
  PricingDriverClass?: string;
2390
2402
  DefaultIsTaxable?: boolean;
2391
2403
  DefaultTaxCategory?: string;
2392
- DefaultEntitlementGrantTiming?: "OnActivation" | "OnConfirm" | "OnPaidInFull";
2404
+ DefaultEntitlementGrantTiming?: "OnActivation" | "OnConfirm" | "OnFirstPayment" | "OnPaidInFull";
2393
2405
  DefaultEntitlementQuantityMode?: "Flat" | "PerUnit";
2394
2406
  DefaultEntitlementValidityMode?: "EventWindow" | "FixedDuration" | "Perpetual" | "SubscriptionTerm";
2395
2407
  RequiresFulfillment?: boolean;
@@ -2421,7 +2433,7 @@ export declare const mjBizAppsOrdersProductSchema: z.ZodObject<{
2421
2433
  IsTaxable: z.ZodNullable<z.ZodBoolean>;
2422
2434
  Description: z.ZodNullable<z.ZodString>;
2423
2435
  TaxCategory: z.ZodNullable<z.ZodString>;
2424
- EntitlementGrantTiming: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"OnActivation">, z.ZodLiteral<"OnConfirm">, z.ZodLiteral<"OnPaidInFull">]>>;
2436
+ EntitlementGrantTiming: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"OnActivation">, z.ZodLiteral<"OnConfirm">, z.ZodLiteral<"OnFirstPayment">, z.ZodLiteral<"OnPaidInFull">]>>;
2425
2437
  EntitlementQuantityMode: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Flat">, z.ZodLiteral<"PerUnit">]>>;
2426
2438
  EntitlementValidityMode: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"EventWindow">, z.ZodLiteral<"FixedDuration">, z.ZodLiteral<"Perpetual">, z.ZodLiteral<"SubscriptionTerm">]>>;
2427
2439
  __mj_CreatedAt: z.ZodDate;
@@ -2454,7 +2466,7 @@ export declare const mjBizAppsOrdersProductSchema: z.ZodObject<{
2454
2466
  StandaloneSellingPrice?: number;
2455
2467
  SubscriptionTypeID?: string;
2456
2468
  IsTaxable?: boolean;
2457
- EntitlementGrantTiming?: "OnActivation" | "OnConfirm" | "OnPaidInFull";
2469
+ EntitlementGrantTiming?: "OnActivation" | "OnConfirm" | "OnFirstPayment" | "OnPaidInFull";
2458
2470
  EntitlementQuantityMode?: "Flat" | "PerUnit";
2459
2471
  EntitlementValidityMode?: "EventWindow" | "FixedDuration" | "Perpetual" | "SubscriptionTerm";
2460
2472
  PricingDriverClass?: string;
@@ -2484,7 +2496,7 @@ export declare const mjBizAppsOrdersProductSchema: z.ZodObject<{
2484
2496
  StandaloneSellingPrice?: number;
2485
2497
  SubscriptionTypeID?: string;
2486
2498
  IsTaxable?: boolean;
2487
- EntitlementGrantTiming?: "OnActivation" | "OnConfirm" | "OnPaidInFull";
2499
+ EntitlementGrantTiming?: "OnActivation" | "OnConfirm" | "OnFirstPayment" | "OnPaidInFull";
2488
2500
  EntitlementQuantityMode?: "Flat" | "PerUnit";
2489
2501
  EntitlementValidityMode?: "EventWindow" | "FixedDuration" | "Perpetual" | "SubscriptionTerm";
2490
2502
  PricingDriverClass?: string;
@@ -2899,7 +2911,7 @@ export declare const mjBizAppsOrdersStoredValueTransactionSchema: z.ZodObject<{
2899
2911
  Amount?: number;
2900
2912
  StoredValueAccountID?: string;
2901
2913
  StoredValueAccount?: string;
2902
- TransactionType?: "Adjust" | "Expire" | "Issue" | "Redeem" | "Refund";
2914
+ TransactionType?: "Refund" | "Adjust" | "Expire" | "Issue" | "Redeem";
2903
2915
  BalanceAfter?: number;
2904
2916
  RelatedPaymentID?: string;
2905
2917
  RelatedOrderHeaderID?: string;
@@ -2913,7 +2925,7 @@ export declare const mjBizAppsOrdersStoredValueTransactionSchema: z.ZodObject<{
2913
2925
  Amount?: number;
2914
2926
  StoredValueAccountID?: string;
2915
2927
  StoredValueAccount?: string;
2916
- TransactionType?: "Adjust" | "Expire" | "Issue" | "Redeem" | "Refund";
2928
+ TransactionType?: "Refund" | "Adjust" | "Expire" | "Issue" | "Redeem";
2917
2929
  BalanceAfter?: number;
2918
2930
  RelatedPaymentID?: string;
2919
2931
  RelatedOrderHeaderID?: string;
@@ -4533,6 +4545,41 @@ export declare class mjBizAppsOrdersEntitlementGrantEntity extends BaseEntity<mj
4533
4545
  */
4534
4546
  get __mj_UpdatedAt(): Date;
4535
4547
  /**
4548
+ * * Field Name: GrantTimingApplied
4549
+ * * Display Name: Grant Timing Applied
4550
+ * * SQL Data Type: nvarchar(20)
4551
+ * * Value List Type: List
4552
+ * * Possible Values
4553
+ * * OnActivation
4554
+ * * OnConfirm
4555
+ * * OnFirstPayment
4556
+ * * OnPaidInFull
4557
+ * * Description: The grant timing that produced this grant (OnConfirm, OnPaidInFull, OnFirstPayment, OnActivation), resolved at confirm from product, category and product type. Access is re-decided from this when the order's payments change. NULL on grants written before the column existed.
4558
+ */
4559
+ get GrantTimingApplied(): 'OnActivation' | 'OnConfirm' | 'OnFirstPayment' | 'OnPaidInFull' | null;
4560
+ set GrantTimingApplied(value: 'OnActivation' | 'OnConfirm' | 'OnFirstPayment' | 'OnPaidInFull' | null);
4561
+ /**
4562
+ * * Field Name: SuspendedAt
4563
+ * * Display Name: Suspended At
4564
+ * * SQL Data Type: datetimeoffset
4565
+ * * Description: When the grant was last suspended. Set together with SuspensionReason and cleared when the grant becomes Active again.
4566
+ */
4567
+ get SuspendedAt(): Date | null;
4568
+ set SuspendedAt(value: Date | null);
4569
+ /**
4570
+ * * Field Name: SuspensionReason
4571
+ * * Display Name: Suspension Reason
4572
+ * * SQL Data Type: nvarchar(20)
4573
+ * * Value List Type: List
4574
+ * * Possible Values
4575
+ * * AwaitingActivation
4576
+ * * AwaitingPayment
4577
+ * * PastDue
4578
+ * * Description: Why the grant is suspended: AwaitingPayment (a new purchase whose first payment has not been received), PastDue (a renewal past the configured cutoff), or AwaitingActivation. AwaitingPayment and PastDue are lifted automatically when payment arrives.
4579
+ */
4580
+ get SuspensionReason(): 'AwaitingActivation' | 'AwaitingPayment' | 'PastDue' | null;
4581
+ set SuspensionReason(value: 'AwaitingActivation' | 'AwaitingPayment' | 'PastDue' | null);
4582
+ /**
4536
4583
  * * Field Name: ProductEntitlement
4537
4584
  * * Display Name: Product Entitlement Name
4538
4585
  * * SQL Data Type: nvarchar(200)
@@ -7980,6 +8027,18 @@ export declare class mjBizAppsOrdersPaymentHeaderEntity extends BaseEntity<mjBiz
7980
8027
  */
7981
8028
  get __mj_UpdatedAt(): Date;
7982
8029
  /**
8030
+ * * Field Name: ReversalSource
8031
+ * * Display Name: Reversal Source
8032
+ * * SQL Data Type: nvarchar(20)
8033
+ * * Value List Type: List
8034
+ * * Possible Values
8035
+ * * BankReturn
8036
+ * * Refund
8037
+ * * Description: Who took the money back on a reversal: Refund (the seller chose to, via Orders.RefundPayment) or BankReturn (the bank reversed a debit). Set on every reversal and on nothing else. A bank return removes payment-gated access; a refund does not.
8038
+ */
8039
+ get ReversalSource(): 'BankReturn' | 'Refund' | null;
8040
+ set ReversalSource(value: 'BankReturn' | 'Refund' | null);
8041
+ /**
7983
8042
  * * Field Name: ReceivingCompany
7984
8043
  * * Display Name: Receiving Company Name
7985
8044
  * * SQL Data Type: nvarchar(50)
@@ -9494,10 +9553,11 @@ export declare class mjBizAppsOrdersProductCategoryEntity extends BaseEntity<mjB
9494
9553
  * * Possible Values
9495
9554
  * * OnActivation
9496
9555
  * * OnConfirm
9556
+ * * OnFirstPayment
9497
9557
  * * OnPaidInFull
9498
9558
  */
9499
- get DefaultEntitlementGrantTiming(): 'OnActivation' | 'OnConfirm' | 'OnPaidInFull' | null;
9500
- set DefaultEntitlementGrantTiming(value: 'OnActivation' | 'OnConfirm' | 'OnPaidInFull' | null);
9559
+ get DefaultEntitlementGrantTiming(): 'OnActivation' | 'OnConfirm' | 'OnFirstPayment' | 'OnPaidInFull' | null;
9560
+ set DefaultEntitlementGrantTiming(value: 'OnActivation' | 'OnConfirm' | 'OnFirstPayment' | 'OnPaidInFull' | null);
9501
9561
  /**
9502
9562
  * * Field Name: DefaultEntitlementQuantityMode
9503
9563
  * * Display Name: Default Entitlement Quantity Mode
@@ -10228,10 +10288,11 @@ export declare class mjBizAppsOrdersProductTypeEntity extends BaseEntity<mjBizAp
10228
10288
  * * Possible Values
10229
10289
  * * OnActivation
10230
10290
  * * OnConfirm
10291
+ * * OnFirstPayment
10231
10292
  * * OnPaidInFull
10232
10293
  */
10233
- get DefaultEntitlementGrantTiming(): 'OnActivation' | 'OnConfirm' | 'OnPaidInFull';
10234
- set DefaultEntitlementGrantTiming(value: 'OnActivation' | 'OnConfirm' | 'OnPaidInFull');
10294
+ get DefaultEntitlementGrantTiming(): 'OnActivation' | 'OnConfirm' | 'OnFirstPayment' | 'OnPaidInFull';
10295
+ set DefaultEntitlementGrantTiming(value: 'OnActivation' | 'OnConfirm' | 'OnFirstPayment' | 'OnPaidInFull');
10235
10296
  /**
10236
10297
  * * Field Name: DefaultEntitlementQuantityMode
10237
10298
  * * Display Name: Default Entitlement Quantity Mode
@@ -10510,10 +10571,11 @@ export declare class mjBizAppsOrdersProductEntity extends BaseEntity<mjBizAppsOr
10510
10571
  * * Possible Values
10511
10572
  * * OnActivation
10512
10573
  * * OnConfirm
10574
+ * * OnFirstPayment
10513
10575
  * * OnPaidInFull
10514
10576
  */
10515
- get EntitlementGrantTiming(): 'OnActivation' | 'OnConfirm' | 'OnPaidInFull' | null;
10516
- set EntitlementGrantTiming(value: 'OnActivation' | 'OnConfirm' | 'OnPaidInFull' | null);
10577
+ get EntitlementGrantTiming(): 'OnActivation' | 'OnConfirm' | 'OnFirstPayment' | 'OnPaidInFull' | null;
10578
+ set EntitlementGrantTiming(value: 'OnActivation' | 'OnConfirm' | 'OnFirstPayment' | 'OnPaidInFull' | null);
10517
10579
  /**
10518
10580
  * * Field Name: EntitlementQuantityMode
10519
10581
  * * Display Name: Entitlement Quantity Mode