@mj-biz-apps/orders-entities 5.20.0 → 5.22.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.
@@ -42,6 +42,62 @@ export declare const mjBizAppsOrdersChargeTypeSchema: z.ZodObject<{
42
42
  __mj_UpdatedAt?: Date;
43
43
  }>;
44
44
  export type mjBizAppsOrdersChargeTypeEntityType = z.infer<typeof mjBizAppsOrdersChargeTypeSchema>;
45
+ /**
46
+ * zod schema definition for the entity MJ_BizApps_Orders: Checkout Session Steps
47
+ */
48
+ export declare const mjBizAppsOrdersCheckoutSessionStepSchema: z.ZodObject<{
49
+ ID: z.ZodString;
50
+ CheckoutSessionID: z.ZodString;
51
+ StepName: z.ZodUnion<[z.ZodLiteral<"Capture">, z.ZodLiteral<"Confirm">]>;
52
+ Status: z.ZodUnion<[z.ZodLiteral<"Failed">, z.ZodLiteral<"Running">, z.ZodLiteral<"Succeeded">]>;
53
+ Attempts: z.ZodNumber;
54
+ LastError: z.ZodNullable<z.ZodString>;
55
+ Retryable: z.ZodNullable<z.ZodBoolean>;
56
+ LastAttemptSource: z.ZodUnion<[z.ZodLiteral<"Checkout">, z.ZodLiteral<"Replay">, z.ZodLiteral<"Webhook">]>;
57
+ LastReplayedByUserID: z.ZodNullable<z.ZodString>;
58
+ FirstAttemptAt: z.ZodDate;
59
+ LastAttemptAt: z.ZodDate;
60
+ SucceededAt: z.ZodNullable<z.ZodDate>;
61
+ __mj_CreatedAt: z.ZodDate;
62
+ __mj_UpdatedAt: z.ZodDate;
63
+ CheckoutSession: z.ZodString;
64
+ LastReplayedByUser: z.ZodNullable<z.ZodString>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ ID?: string;
67
+ __mj_CreatedAt?: Date;
68
+ __mj_UpdatedAt?: Date;
69
+ CheckoutSessionID?: string;
70
+ StepName?: "Capture" | "Confirm";
71
+ Status?: "Failed" | "Running" | "Succeeded";
72
+ Attempts?: number;
73
+ LastError?: string;
74
+ Retryable?: boolean;
75
+ LastAttemptSource?: "Checkout" | "Replay" | "Webhook";
76
+ LastReplayedByUserID?: string;
77
+ FirstAttemptAt?: Date;
78
+ LastAttemptAt?: Date;
79
+ SucceededAt?: Date;
80
+ CheckoutSession?: string;
81
+ LastReplayedByUser?: string;
82
+ }, {
83
+ ID?: string;
84
+ __mj_CreatedAt?: Date;
85
+ __mj_UpdatedAt?: Date;
86
+ CheckoutSessionID?: string;
87
+ StepName?: "Capture" | "Confirm";
88
+ Status?: "Failed" | "Running" | "Succeeded";
89
+ Attempts?: number;
90
+ LastError?: string;
91
+ Retryable?: boolean;
92
+ LastAttemptSource?: "Checkout" | "Replay" | "Webhook";
93
+ LastReplayedByUserID?: string;
94
+ FirstAttemptAt?: Date;
95
+ LastAttemptAt?: Date;
96
+ SucceededAt?: Date;
97
+ CheckoutSession?: string;
98
+ LastReplayedByUser?: string;
99
+ }>;
100
+ export type mjBizAppsOrdersCheckoutSessionStepEntityType = z.infer<typeof mjBizAppsOrdersCheckoutSessionStepSchema>;
45
101
  /**
46
102
  * zod schema definition for the entity MJ_BizApps_Orders: Checkout Sessions
47
103
  */
@@ -68,6 +124,7 @@ export declare const mjBizAppsOrdersCheckoutSessionSchema: z.ZodObject<{
68
124
  ID?: string;
69
125
  __mj_CreatedAt?: Date;
70
126
  __mj_UpdatedAt?: Date;
127
+ Status?: "Abandoned" | "Confirmed" | "Expired" | "Open" | "Processing";
71
128
  CheckoutWidgetID?: string;
72
129
  DistributionID?: string;
73
130
  ClientSessionKey?: string;
@@ -75,7 +132,6 @@ export declare const mjBizAppsOrdersCheckoutSessionSchema: z.ZodObject<{
75
132
  PersonID?: string;
76
133
  DraftOrderID?: string;
77
134
  PaymentIntentID?: string;
78
- Status?: "Abandoned" | "Confirmed" | "Expired" | "Open" | "Processing";
79
135
  ExpiresAt?: Date;
80
136
  MetadataJSON?: string;
81
137
  CheckoutWidget?: string;
@@ -87,6 +143,7 @@ export declare const mjBizAppsOrdersCheckoutSessionSchema: z.ZodObject<{
87
143
  ID?: string;
88
144
  __mj_CreatedAt?: Date;
89
145
  __mj_UpdatedAt?: Date;
146
+ Status?: "Abandoned" | "Confirmed" | "Expired" | "Open" | "Processing";
90
147
  CheckoutWidgetID?: string;
91
148
  DistributionID?: string;
92
149
  ClientSessionKey?: string;
@@ -94,7 +151,6 @@ export declare const mjBizAppsOrdersCheckoutSessionSchema: z.ZodObject<{
94
151
  PersonID?: string;
95
152
  DraftOrderID?: string;
96
153
  PaymentIntentID?: string;
97
- Status?: "Abandoned" | "Confirmed" | "Expired" | "Open" | "Processing";
98
154
  ExpiresAt?: Date;
99
155
  MetadataJSON?: string;
100
156
  CheckoutWidget?: string;
@@ -123,8 +179,8 @@ export declare const mjBizAppsOrdersCheckoutWidgetDistributionSchema: z.ZodObjec
123
179
  ID?: string;
124
180
  __mj_CreatedAt?: Date;
125
181
  __mj_UpdatedAt?: Date;
126
- CheckoutWidgetID?: string;
127
182
  Status?: "Active" | "Revoked";
183
+ CheckoutWidgetID?: string;
128
184
  CheckoutWidget?: string;
129
185
  Slug?: string;
130
186
  MagicLinkInviteID?: string;
@@ -135,8 +191,8 @@ export declare const mjBizAppsOrdersCheckoutWidgetDistributionSchema: z.ZodObjec
135
191
  ID?: string;
136
192
  __mj_CreatedAt?: Date;
137
193
  __mj_UpdatedAt?: Date;
138
- CheckoutWidgetID?: string;
139
194
  Status?: "Active" | "Revoked";
195
+ CheckoutWidgetID?: string;
140
196
  CheckoutWidget?: string;
141
197
  Slug?: string;
142
198
  MagicLinkInviteID?: string;
@@ -250,8 +306,8 @@ export declare const mjBizAppsOrdersCustomerPaymentTermsSchema: z.ZodObject<{
250
306
  ID?: string;
251
307
  __mj_CreatedAt?: Date;
252
308
  __mj_UpdatedAt?: Date;
253
- PersonID?: string;
254
309
  Status?: "Active" | "Inactive";
310
+ PersonID?: string;
255
311
  CompanyID?: string;
256
312
  OrganizationID?: string;
257
313
  PaymentTermsTypeID?: string;
@@ -263,8 +319,8 @@ export declare const mjBizAppsOrdersCustomerPaymentTermsSchema: z.ZodObject<{
263
319
  ID?: string;
264
320
  __mj_CreatedAt?: Date;
265
321
  __mj_UpdatedAt?: Date;
266
- PersonID?: string;
267
322
  Status?: "Active" | "Inactive";
323
+ PersonID?: string;
268
324
  CompanyID?: string;
269
325
  OrganizationID?: string;
270
326
  PaymentTermsTypeID?: string;
@@ -299,8 +355,8 @@ export declare const mjBizAppsOrdersCustomerTaxExemptionSchema: z.ZodObject<{
299
355
  ID?: string;
300
356
  __mj_CreatedAt?: Date;
301
357
  __mj_UpdatedAt?: Date;
302
- PersonID?: string;
303
358
  Status?: "Active" | "Inactive";
359
+ PersonID?: string;
304
360
  Person?: string;
305
361
  OrganizationID?: string;
306
362
  StartedAt?: Date;
@@ -317,8 +373,8 @@ export declare const mjBizAppsOrdersCustomerTaxExemptionSchema: z.ZodObject<{
317
373
  ID?: string;
318
374
  __mj_CreatedAt?: Date;
319
375
  __mj_UpdatedAt?: Date;
320
- PersonID?: string;
321
376
  Status?: "Active" | "Inactive";
377
+ PersonID?: string;
322
378
  Person?: string;
323
379
  OrganizationID?: string;
324
380
  StartedAt?: Date;
@@ -383,6 +439,71 @@ export declare const mjBizAppsOrdersDimensionDefaultSchema: z.ZodObject<{
383
439
  DimensionValue?: string;
384
440
  }>;
385
441
  export type mjBizAppsOrdersDimensionDefaultEntityType = z.infer<typeof mjBizAppsOrdersDimensionDefaultSchema>;
442
+ /**
443
+ * zod schema definition for the entity MJ_BizApps_Orders: Entitlement Access Overrides
444
+ */
445
+ export declare const mjBizAppsOrdersEntitlementAccessOverrideSchema: z.ZodObject<{
446
+ ID: z.ZodString;
447
+ OrderHeaderID: z.ZodString;
448
+ OverrideType: z.ZodUnion<[z.ZodLiteral<"DeferCutoff">, z.ZodLiteral<"WaivePaymentHold">]>;
449
+ Reason: z.ZodString;
450
+ EffectiveThrough: z.ZodDate;
451
+ Status: z.ZodUnion<[z.ZodLiteral<"Approved">, z.ZodLiteral<"Expired">, z.ZodLiteral<"Rejected">, z.ZodLiteral<"Requested">, z.ZodLiteral<"Withdrawn">]>;
452
+ RequestedByUserID: z.ZodString;
453
+ RequestedAt: z.ZodDate;
454
+ ApprovalTaskID: z.ZodNullable<z.ZodString>;
455
+ ApprovalTaskRaisedAt: z.ZodNullable<z.ZodDate>;
456
+ DecidedByUserID: z.ZodNullable<z.ZodString>;
457
+ DecidedAt: z.ZodNullable<z.ZodDate>;
458
+ DecisionNotes: z.ZodNullable<z.ZodString>;
459
+ __mj_CreatedAt: z.ZodDate;
460
+ __mj_UpdatedAt: z.ZodDate;
461
+ OrderHeader: z.ZodString;
462
+ RequestedByUser: z.ZodString;
463
+ ApprovalTask: z.ZodNullable<z.ZodString>;
464
+ DecidedByUser: z.ZodNullable<z.ZodString>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ ID?: string;
467
+ __mj_CreatedAt?: Date;
468
+ __mj_UpdatedAt?: Date;
469
+ Status?: "Expired" | "Approved" | "Rejected" | "Requested" | "Withdrawn";
470
+ OrderHeaderID?: string;
471
+ OverrideType?: "DeferCutoff" | "WaivePaymentHold";
472
+ Reason?: string;
473
+ EffectiveThrough?: Date;
474
+ RequestedByUserID?: string;
475
+ RequestedAt?: Date;
476
+ ApprovalTaskID?: string;
477
+ ApprovalTaskRaisedAt?: Date;
478
+ DecidedByUserID?: string;
479
+ DecidedAt?: Date;
480
+ DecisionNotes?: string;
481
+ OrderHeader?: string;
482
+ RequestedByUser?: string;
483
+ ApprovalTask?: string;
484
+ DecidedByUser?: string;
485
+ }, {
486
+ ID?: string;
487
+ __mj_CreatedAt?: Date;
488
+ __mj_UpdatedAt?: Date;
489
+ Status?: "Expired" | "Approved" | "Rejected" | "Requested" | "Withdrawn";
490
+ OrderHeaderID?: string;
491
+ OverrideType?: "DeferCutoff" | "WaivePaymentHold";
492
+ Reason?: string;
493
+ EffectiveThrough?: Date;
494
+ RequestedByUserID?: string;
495
+ RequestedAt?: Date;
496
+ ApprovalTaskID?: string;
497
+ ApprovalTaskRaisedAt?: Date;
498
+ DecidedByUserID?: string;
499
+ DecidedAt?: Date;
500
+ DecisionNotes?: string;
501
+ OrderHeader?: string;
502
+ RequestedByUser?: string;
503
+ ApprovalTask?: string;
504
+ DecidedByUser?: string;
505
+ }>;
506
+ export type mjBizAppsOrdersEntitlementAccessOverrideEntityType = z.infer<typeof mjBizAppsOrdersEntitlementAccessOverrideSchema>;
386
507
  /**
387
508
  * zod schema definition for the entity MJ_BizApps_Orders: Entitlement Grants
388
509
  */
@@ -531,6 +652,7 @@ export declare const mjBizAppsOrdersEventOrderLineSchema: z.ZodObject<{
531
652
  Comments?: string;
532
653
  DimensionID?: string;
533
654
  DimensionValueID?: string;
655
+ OrderHeaderID?: string;
534
656
  SubscriptionID?: string;
535
657
  Quantity?: number;
536
658
  CheckInAt?: Date;
@@ -545,7 +667,6 @@ export declare const mjBizAppsOrdersEventOrderLineSchema: z.ZodObject<{
545
667
  TableAssignment?: string;
546
668
  SpecialRequests?: string;
547
669
  CheckInNotes?: string;
548
- OrderHeaderID?: string;
549
670
  ProductID?: string;
550
671
  LineNumber?: number;
551
672
  UnitPrice?: number;
@@ -585,6 +706,7 @@ export declare const mjBizAppsOrdersEventOrderLineSchema: z.ZodObject<{
585
706
  Comments?: string;
586
707
  DimensionID?: string;
587
708
  DimensionValueID?: string;
709
+ OrderHeaderID?: string;
588
710
  SubscriptionID?: string;
589
711
  Quantity?: number;
590
712
  CheckInAt?: Date;
@@ -599,7 +721,6 @@ export declare const mjBizAppsOrdersEventOrderLineSchema: z.ZodObject<{
599
721
  TableAssignment?: string;
600
722
  SpecialRequests?: string;
601
723
  CheckInNotes?: string;
602
- OrderHeaderID?: string;
603
724
  ProductID?: string;
604
725
  LineNumber?: number;
605
726
  UnitPrice?: number;
@@ -810,10 +931,12 @@ export declare const mjBizAppsOrdersExternalInvoiceSchema: z.ZodObject<{
810
931
  ID?: string;
811
932
  __mj_CreatedAt?: Date;
812
933
  __mj_UpdatedAt?: Date;
813
- Status?: "Canceled" | "Failed" | "Sending" | "Sent";
934
+ Status?: "Failed" | "Canceled" | "Sending" | "Sent";
935
+ LastError?: string;
814
936
  CompanyID?: string;
815
937
  Company?: string;
816
938
  OrderHeaderID?: string;
939
+ OrderHeader?: string;
817
940
  PaymentProviderID?: string;
818
941
  ExternalCustomerRef?: string;
819
942
  LastSyncedAt?: Date;
@@ -829,19 +952,19 @@ export declare const mjBizAppsOrdersExternalInvoiceSchema: z.ZodObject<{
829
952
  SentAt?: Date;
830
953
  CanceledAt?: Date;
831
954
  CancelReason?: string;
832
- LastError?: string;
833
955
  IssuedByUserID?: string;
834
956
  UnitScheduleKey?: string;
835
- OrderHeader?: string;
836
957
  IssuedByUser?: string;
837
958
  }, {
838
959
  ID?: string;
839
960
  __mj_CreatedAt?: Date;
840
961
  __mj_UpdatedAt?: Date;
841
- Status?: "Canceled" | "Failed" | "Sending" | "Sent";
962
+ Status?: "Failed" | "Canceled" | "Sending" | "Sent";
963
+ LastError?: string;
842
964
  CompanyID?: string;
843
965
  Company?: string;
844
966
  OrderHeaderID?: string;
967
+ OrderHeader?: string;
845
968
  PaymentProviderID?: string;
846
969
  ExternalCustomerRef?: string;
847
970
  LastSyncedAt?: Date;
@@ -857,10 +980,8 @@ export declare const mjBizAppsOrdersExternalInvoiceSchema: z.ZodObject<{
857
980
  SentAt?: Date;
858
981
  CanceledAt?: Date;
859
982
  CancelReason?: string;
860
- LastError?: string;
861
983
  IssuedByUserID?: string;
862
984
  UnitScheduleKey?: string;
863
- OrderHeader?: string;
864
985
  IssuedByUser?: string;
865
986
  }>;
866
987
  export type mjBizAppsOrdersExternalInvoiceEntityType = z.infer<typeof mjBizAppsOrdersExternalInvoiceSchema>;
@@ -982,13 +1103,13 @@ export declare const mjBizAppsOrdersOrderAdjustmentSchema: z.ZodObject<{
982
1103
  Sequence?: number;
983
1104
  __mj_CreatedAt?: Date;
984
1105
  __mj_UpdatedAt?: Date;
985
- OrderLineID?: string;
986
1106
  OrderHeaderID?: string;
987
- Amount?: number;
1107
+ Reason?: string;
988
1108
  OrderHeader?: string;
1109
+ OrderLineID?: string;
1110
+ Amount?: number;
989
1111
  PromotionID?: string;
990
1112
  PromotionCodeID?: string;
991
- Reason?: string;
992
1113
  AppliedByUserID?: string;
993
1114
  AppliedAt?: Date;
994
1115
  AuthorizedBySalesAuthorityID?: string;
@@ -1001,13 +1122,13 @@ export declare const mjBizAppsOrdersOrderAdjustmentSchema: z.ZodObject<{
1001
1122
  Sequence?: number;
1002
1123
  __mj_CreatedAt?: Date;
1003
1124
  __mj_UpdatedAt?: Date;
1004
- OrderLineID?: string;
1005
1125
  OrderHeaderID?: string;
1006
- Amount?: number;
1126
+ Reason?: string;
1007
1127
  OrderHeader?: string;
1128
+ OrderLineID?: string;
1129
+ Amount?: number;
1008
1130
  PromotionID?: string;
1009
1131
  PromotionCodeID?: string;
1010
- Reason?: string;
1011
1132
  AppliedByUserID?: string;
1012
1133
  AppliedAt?: Date;
1013
1134
  AuthorizedBySalesAuthorityID?: string;
@@ -1073,8 +1194,8 @@ export declare const mjBizAppsOrdersOrderChargeSchema: z.ZodObject<{
1073
1194
  __mj_UpdatedAt?: Date;
1074
1195
  TaxJurisdictionID?: string;
1075
1196
  OrderHeaderID?: string;
1076
- Amount?: number;
1077
1197
  OrderHeader?: string;
1198
+ Amount?: number;
1078
1199
  ChargeTypeID?: string;
1079
1200
  BasisAmount?: number;
1080
1201
  Rate?: number;
@@ -1093,8 +1214,8 @@ export declare const mjBizAppsOrdersOrderChargeSchema: z.ZodObject<{
1093
1214
  __mj_UpdatedAt?: Date;
1094
1215
  TaxJurisdictionID?: string;
1095
1216
  OrderHeaderID?: string;
1096
- Amount?: number;
1097
1217
  OrderHeader?: string;
1218
+ Amount?: number;
1098
1219
  ChargeTypeID?: string;
1099
1220
  BasisAmount?: number;
1100
1221
  Rate?: number;
@@ -1108,6 +1229,41 @@ export declare const mjBizAppsOrdersOrderChargeSchema: z.ZodObject<{
1108
1229
  ChargeType?: string;
1109
1230
  }>;
1110
1231
  export type mjBizAppsOrdersOrderChargeEntityType = z.infer<typeof mjBizAppsOrdersOrderChargeSchema>;
1232
+ /**
1233
+ * zod schema definition for the entity MJ_BizApps_Orders: Order Checkout Answers
1234
+ */
1235
+ export declare const mjBizAppsOrdersOrderCheckoutAnswerSchema: z.ZodObject<{
1236
+ ID: z.ZodString;
1237
+ OrderHeaderID: z.ZodString;
1238
+ QuestionKey: z.ZodString;
1239
+ QuestionLabel: z.ZodString;
1240
+ Answer: z.ZodString;
1241
+ OtherText: z.ZodNullable<z.ZodString>;
1242
+ __mj_CreatedAt: z.ZodDate;
1243
+ __mj_UpdatedAt: z.ZodDate;
1244
+ OrderHeader: z.ZodString;
1245
+ }, "strip", z.ZodTypeAny, {
1246
+ ID?: string;
1247
+ __mj_CreatedAt?: Date;
1248
+ __mj_UpdatedAt?: Date;
1249
+ OrderHeaderID?: string;
1250
+ OrderHeader?: string;
1251
+ QuestionKey?: string;
1252
+ QuestionLabel?: string;
1253
+ Answer?: string;
1254
+ OtherText?: string;
1255
+ }, {
1256
+ ID?: string;
1257
+ __mj_CreatedAt?: Date;
1258
+ __mj_UpdatedAt?: Date;
1259
+ OrderHeaderID?: string;
1260
+ OrderHeader?: string;
1261
+ QuestionKey?: string;
1262
+ QuestionLabel?: string;
1263
+ Answer?: string;
1264
+ OtherText?: string;
1265
+ }>;
1266
+ export type mjBizAppsOrdersOrderCheckoutAnswerEntityType = z.infer<typeof mjBizAppsOrdersOrderCheckoutAnswerSchema>;
1111
1267
  /**
1112
1268
  * zod schema definition for the entity MJ_BizApps_Orders: Order Company Policies
1113
1269
  */
@@ -1182,13 +1338,13 @@ export declare const mjBizAppsOrdersOrderHeaderPaymentScheduleSchema: z.ZodObjec
1182
1338
  CompanyID?: string;
1183
1339
  Company?: string;
1184
1340
  OrderHeaderID?: string;
1341
+ OrderHeader?: string;
1185
1342
  JournalEntryID?: string;
1186
1343
  DocumentNumber?: string;
1187
1344
  Amount?: number;
1188
1345
  DueDate?: Date;
1189
1346
  ExternalInvoiceRef?: string;
1190
1347
  SentAt?: Date;
1191
- OrderHeader?: string;
1192
1348
  InstallmentNumber?: number;
1193
1349
  InvoicedAt?: Date;
1194
1350
  InvoicedByUserID?: string;
@@ -1206,13 +1362,13 @@ export declare const mjBizAppsOrdersOrderHeaderPaymentScheduleSchema: z.ZodObjec
1206
1362
  CompanyID?: string;
1207
1363
  Company?: string;
1208
1364
  OrderHeaderID?: string;
1365
+ OrderHeader?: string;
1209
1366
  JournalEntryID?: string;
1210
1367
  DocumentNumber?: string;
1211
1368
  Amount?: number;
1212
1369
  DueDate?: Date;
1213
1370
  ExternalInvoiceRef?: string;
1214
1371
  SentAt?: Date;
1215
- OrderHeader?: string;
1216
1372
  InstallmentNumber?: number;
1217
1373
  InvoicedAt?: Date;
1218
1374
  InvoicedByUserID?: string;
@@ -1297,6 +1453,7 @@ export declare const mjBizAppsOrdersOrderHeaderSchema: z.ZodObject<{
1297
1453
  Company?: string;
1298
1454
  PaymentTermsTypeID?: string;
1299
1455
  PaymentTermsType?: string;
1456
+ ApprovalTaskID?: string;
1300
1457
  ShipToAddressID?: string;
1301
1458
  ShipToOrganizationID?: string;
1302
1459
  ShipToPersonID?: string;
@@ -1325,7 +1482,6 @@ export declare const mjBizAppsOrdersOrderHeaderSchema: z.ZodObject<{
1325
1482
  ReversesOrderHeaderID?: string;
1326
1483
  ReversalReason?: string;
1327
1484
  RequestedDeliveryDate?: Date;
1328
- ApprovalTaskID?: string;
1329
1485
  ConfirmedAt?: Date;
1330
1486
  Origin?: string;
1331
1487
  SourceCheckoutWidgetID?: string;
@@ -1358,6 +1514,7 @@ export declare const mjBizAppsOrdersOrderHeaderSchema: z.ZodObject<{
1358
1514
  Company?: string;
1359
1515
  PaymentTermsTypeID?: string;
1360
1516
  PaymentTermsType?: string;
1517
+ ApprovalTaskID?: string;
1361
1518
  ShipToAddressID?: string;
1362
1519
  ShipToOrganizationID?: string;
1363
1520
  ShipToPersonID?: string;
@@ -1386,7 +1543,6 @@ export declare const mjBizAppsOrdersOrderHeaderSchema: z.ZodObject<{
1386
1543
  ReversesOrderHeaderID?: string;
1387
1544
  ReversalReason?: string;
1388
1545
  RequestedDeliveryDate?: Date;
1389
- ApprovalTaskID?: string;
1390
1546
  ConfirmedAt?: Date;
1391
1547
  Origin?: string;
1392
1548
  SourceCheckoutWidgetID?: string;
@@ -1411,6 +1567,38 @@ export declare const mjBizAppsOrdersOrderHeaderSchema: z.ZodObject<{
1411
1567
  IsOverdue?: number;
1412
1568
  }>;
1413
1569
  export type mjBizAppsOrdersOrderHeaderEntityType = z.infer<typeof mjBizAppsOrdersOrderHeaderSchema>;
1570
+ /**
1571
+ * zod schema definition for the entity MJ_BizApps_Orders: Order Line Choices
1572
+ */
1573
+ export declare const mjBizAppsOrdersOrderLineChoiceSchema: z.ZodObject<{
1574
+ ID: z.ZodString;
1575
+ OrderLineID: z.ZodString;
1576
+ GroupKey: z.ZodString;
1577
+ GroupLabel: z.ZodString;
1578
+ OptionValue: z.ZodString;
1579
+ OptionLabel: z.ZodString;
1580
+ __mj_CreatedAt: z.ZodDate;
1581
+ __mj_UpdatedAt: z.ZodDate;
1582
+ }, "strip", z.ZodTypeAny, {
1583
+ ID?: string;
1584
+ __mj_CreatedAt?: Date;
1585
+ __mj_UpdatedAt?: Date;
1586
+ OrderLineID?: string;
1587
+ GroupKey?: string;
1588
+ GroupLabel?: string;
1589
+ OptionValue?: string;
1590
+ OptionLabel?: string;
1591
+ }, {
1592
+ ID?: string;
1593
+ __mj_CreatedAt?: Date;
1594
+ __mj_UpdatedAt?: Date;
1595
+ OrderLineID?: string;
1596
+ GroupKey?: string;
1597
+ GroupLabel?: string;
1598
+ OptionValue?: string;
1599
+ OptionLabel?: string;
1600
+ }>;
1601
+ export type mjBizAppsOrdersOrderLineChoiceEntityType = z.infer<typeof mjBizAppsOrdersOrderLineChoiceSchema>;
1414
1602
  /**
1415
1603
  * zod schema definition for the entity MJ_BizApps_Orders: Order Line Dimensions
1416
1604
  */
@@ -1624,10 +1812,11 @@ export declare const mjBizAppsOrdersOrderLineSchema: z.ZodObject<{
1624
1812
  DimensionValueID?: string;
1625
1813
  Dimension?: string;
1626
1814
  DimensionValue?: string;
1815
+ OrderHeaderID?: string;
1816
+ OrderHeader?: string;
1627
1817
  SubscriptionID?: string;
1628
1818
  Quantity?: number;
1629
1819
  Subscription?: string;
1630
- OrderHeaderID?: string;
1631
1820
  ProductID?: string;
1632
1821
  LineNumber?: number;
1633
1822
  UnitPrice?: number;
@@ -1656,7 +1845,6 @@ export declare const mjBizAppsOrdersOrderLineSchema: z.ZodObject<{
1656
1845
  BilledToDate?: number;
1657
1846
  RecognizedToDate?: number;
1658
1847
  ShipToAddressSnapshot?: string;
1659
- OrderHeader?: string;
1660
1848
  ShipToOrganization?: string;
1661
1849
  ShipToPerson?: string;
1662
1850
  Product?: string;
@@ -1679,10 +1867,11 @@ export declare const mjBizAppsOrdersOrderLineSchema: z.ZodObject<{
1679
1867
  DimensionValueID?: string;
1680
1868
  Dimension?: string;
1681
1869
  DimensionValue?: string;
1870
+ OrderHeaderID?: string;
1871
+ OrderHeader?: string;
1682
1872
  SubscriptionID?: string;
1683
1873
  Quantity?: number;
1684
1874
  Subscription?: string;
1685
- OrderHeaderID?: string;
1686
1875
  ProductID?: string;
1687
1876
  LineNumber?: number;
1688
1877
  UnitPrice?: number;
@@ -1711,7 +1900,6 @@ export declare const mjBizAppsOrdersOrderLineSchema: z.ZodObject<{
1711
1900
  BilledToDate?: number;
1712
1901
  RecognizedToDate?: number;
1713
1902
  ShipToAddressSnapshot?: string;
1714
- OrderHeader?: string;
1715
1903
  ShipToOrganization?: string;
1716
1904
  ShipToPerson?: string;
1717
1905
  Product?: string;
@@ -1745,6 +1933,91 @@ export declare const mjBizAppsOrdersOrderSequenceSchema: z.ZodObject<{
1745
1933
  NextSequenceNumber?: number;
1746
1934
  }>;
1747
1935
  export type mjBizAppsOrdersOrderSequenceEntityType = z.infer<typeof mjBizAppsOrdersOrderSequenceSchema>;
1936
+ /**
1937
+ * zod schema definition for the entity MJ_BizApps_Orders: Outbound Deliveries
1938
+ */
1939
+ export declare const mjBizAppsOrdersOutboundDeliverySchema: z.ZodObject<{
1940
+ ID: z.ZodString;
1941
+ OutboundEventID: z.ZodString;
1942
+ ConsumerKey: z.ZodString;
1943
+ GatesAccess: z.ZodBoolean;
1944
+ Status: z.ZodUnion<[z.ZodLiteral<"DeadLettered">, z.ZodLiteral<"Delivered">, z.ZodLiteral<"Pending">]>;
1945
+ Attempts: z.ZodNumber;
1946
+ NextAttemptAt: z.ZodDate;
1947
+ DeadlineAt: z.ZodDate;
1948
+ LeaseUntil: z.ZodNullable<z.ZodDate>;
1949
+ LastAttemptAt: z.ZodNullable<z.ZodDate>;
1950
+ LastError: z.ZodNullable<z.ZodString>;
1951
+ DeliveredAt: z.ZodNullable<z.ZodDate>;
1952
+ __mj_CreatedAt: z.ZodDate;
1953
+ __mj_UpdatedAt: z.ZodDate;
1954
+ }, "strip", z.ZodTypeAny, {
1955
+ ID?: string;
1956
+ __mj_CreatedAt?: Date;
1957
+ __mj_UpdatedAt?: Date;
1958
+ Status?: "Pending" | "DeadLettered" | "Delivered";
1959
+ Attempts?: number;
1960
+ LastError?: string;
1961
+ LastAttemptAt?: Date;
1962
+ OutboundEventID?: string;
1963
+ ConsumerKey?: string;
1964
+ GatesAccess?: boolean;
1965
+ NextAttemptAt?: Date;
1966
+ DeadlineAt?: Date;
1967
+ LeaseUntil?: Date;
1968
+ DeliveredAt?: Date;
1969
+ }, {
1970
+ ID?: string;
1971
+ __mj_CreatedAt?: Date;
1972
+ __mj_UpdatedAt?: Date;
1973
+ Status?: "Pending" | "DeadLettered" | "Delivered";
1974
+ Attempts?: number;
1975
+ LastError?: string;
1976
+ LastAttemptAt?: Date;
1977
+ OutboundEventID?: string;
1978
+ ConsumerKey?: string;
1979
+ GatesAccess?: boolean;
1980
+ NextAttemptAt?: Date;
1981
+ DeadlineAt?: Date;
1982
+ LeaseUntil?: Date;
1983
+ DeliveredAt?: Date;
1984
+ }>;
1985
+ export type mjBizAppsOrdersOutboundDeliveryEntityType = z.infer<typeof mjBizAppsOrdersOutboundDeliverySchema>;
1986
+ /**
1987
+ * zod schema definition for the entity MJ_BizApps_Orders: Outbound Events
1988
+ */
1989
+ export declare const mjBizAppsOrdersOutboundEventSchema: z.ZodObject<{
1990
+ ID: z.ZodString;
1991
+ EventType: z.ZodUnion<[z.ZodLiteral<"GrantStatusChanged">, z.ZodLiteral<"OrderConfirmed">]>;
1992
+ OrderHeaderID: z.ZodNullable<z.ZodString>;
1993
+ EntitlementGrantID: z.ZodNullable<z.ZodString>;
1994
+ PayloadJSON: z.ZodString;
1995
+ OccurredAt: z.ZodDate;
1996
+ __mj_CreatedAt: z.ZodDate;
1997
+ __mj_UpdatedAt: z.ZodDate;
1998
+ OrderHeader: z.ZodNullable<z.ZodString>;
1999
+ }, "strip", z.ZodTypeAny, {
2000
+ ID?: string;
2001
+ __mj_CreatedAt?: Date;
2002
+ __mj_UpdatedAt?: Date;
2003
+ OrderHeaderID?: string;
2004
+ OrderHeader?: string;
2005
+ EventType?: "GrantStatusChanged" | "OrderConfirmed";
2006
+ EntitlementGrantID?: string;
2007
+ PayloadJSON?: string;
2008
+ OccurredAt?: Date;
2009
+ }, {
2010
+ ID?: string;
2011
+ __mj_CreatedAt?: Date;
2012
+ __mj_UpdatedAt?: Date;
2013
+ OrderHeaderID?: string;
2014
+ OrderHeader?: string;
2015
+ EventType?: "GrantStatusChanged" | "OrderConfirmed";
2016
+ EntitlementGrantID?: string;
2017
+ PayloadJSON?: string;
2018
+ OccurredAt?: Date;
2019
+ }>;
2020
+ export type mjBizAppsOrdersOutboundEventEntityType = z.infer<typeof mjBizAppsOrdersOutboundEventSchema>;
1748
2021
  /**
1749
2022
  * zod schema definition for the entity MJ_BizApps_Orders: Payment Details
1750
2023
  */
@@ -1883,8 +2156,8 @@ export declare const mjBizAppsOrdersPaymentHeaderSchema: z.ZodObject<{
1883
2156
  Description?: string;
1884
2157
  __mj_CreatedAt?: Date;
1885
2158
  __mj_UpdatedAt?: Date;
2159
+ Status?: "Failed" | "Pending" | "Captured" | "Disputed" | "Refunded";
1886
2160
  PaymentIntentID?: string;
1887
- Status?: "Pending" | "Failed" | "Captured" | "Disputed" | "Refunded";
1888
2161
  PaymentIntent?: string;
1889
2162
  PaymentDetailID?: string;
1890
2163
  PaymentDetail?: string;
@@ -1918,8 +2191,8 @@ export declare const mjBizAppsOrdersPaymentHeaderSchema: z.ZodObject<{
1918
2191
  Description?: string;
1919
2192
  __mj_CreatedAt?: Date;
1920
2193
  __mj_UpdatedAt?: Date;
2194
+ Status?: "Failed" | "Pending" | "Captured" | "Disputed" | "Refunded";
1921
2195
  PaymentIntentID?: string;
1922
- Status?: "Pending" | "Failed" | "Captured" | "Disputed" | "Refunded";
1923
2196
  PaymentIntent?: string;
1924
2197
  PaymentDetailID?: string;
1925
2198
  PaymentDetail?: string;
@@ -1974,8 +2247,9 @@ export declare const mjBizAppsOrdersPaymentIntentSchema: z.ZodObject<{
1974
2247
  ID?: string;
1975
2248
  __mj_CreatedAt?: Date;
1976
2249
  __mj_UpdatedAt?: Date;
1977
- Status?: "Processing" | "Canceled" | "Failed" | "RequiresPayment" | "Succeeded";
2250
+ Status?: "Failed" | "Succeeded" | "Processing" | "Canceled" | "RequiresPayment";
1978
2251
  OrderHeaderID?: string;
2252
+ OrderHeader?: string;
1979
2253
  PaymentProviderID?: string;
1980
2254
  BillToOrganizationID?: string;
1981
2255
  BillToPersonID?: string;
@@ -1983,7 +2257,6 @@ export declare const mjBizAppsOrdersPaymentIntentSchema: z.ZodObject<{
1983
2257
  BillToOrganization?: string;
1984
2258
  BillToPerson?: string;
1985
2259
  Amount?: number;
1986
- OrderHeader?: string;
1987
2260
  ProviderIntentID?: string;
1988
2261
  ProviderEventID?: string;
1989
2262
  LastEventAt?: Date;
@@ -1991,8 +2264,9 @@ export declare const mjBizAppsOrdersPaymentIntentSchema: z.ZodObject<{
1991
2264
  ID?: string;
1992
2265
  __mj_CreatedAt?: Date;
1993
2266
  __mj_UpdatedAt?: Date;
1994
- Status?: "Processing" | "Canceled" | "Failed" | "RequiresPayment" | "Succeeded";
2267
+ Status?: "Failed" | "Succeeded" | "Processing" | "Canceled" | "RequiresPayment";
1995
2268
  OrderHeaderID?: string;
2269
+ OrderHeader?: string;
1996
2270
  PaymentProviderID?: string;
1997
2271
  BillToOrganizationID?: string;
1998
2272
  BillToPersonID?: string;
@@ -2000,7 +2274,6 @@ export declare const mjBizAppsOrdersPaymentIntentSchema: z.ZodObject<{
2000
2274
  BillToOrganization?: string;
2001
2275
  BillToPerson?: string;
2002
2276
  Amount?: number;
2003
- OrderHeader?: string;
2004
2277
  ProviderIntentID?: string;
2005
2278
  ProviderEventID?: string;
2006
2279
  LastEventAt?: Date;
@@ -2028,11 +2301,11 @@ export declare const mjBizAppsOrdersPaymentLineSchema: z.ZodObject<{
2028
2301
  ID?: string;
2029
2302
  __mj_CreatedAt?: Date;
2030
2303
  __mj_UpdatedAt?: Date;
2031
- OrderLineID?: string;
2032
2304
  OrderHeaderID?: string;
2305
+ OrderHeader?: string;
2306
+ OrderLineID?: string;
2033
2307
  OrderHeaderPaymentScheduleID?: string;
2034
2308
  Amount?: number;
2035
- OrderHeader?: string;
2036
2309
  PaymentHeaderID?: string;
2037
2310
  PaymentHeader?: string;
2038
2311
  AllocatedAt?: Date;
@@ -2043,11 +2316,11 @@ export declare const mjBizAppsOrdersPaymentLineSchema: z.ZodObject<{
2043
2316
  ID?: string;
2044
2317
  __mj_CreatedAt?: Date;
2045
2318
  __mj_UpdatedAt?: Date;
2046
- OrderLineID?: string;
2047
2319
  OrderHeaderID?: string;
2320
+ OrderHeader?: string;
2321
+ OrderLineID?: string;
2048
2322
  OrderHeaderPaymentScheduleID?: string;
2049
2323
  Amount?: number;
2050
- OrderHeader?: string;
2051
2324
  PaymentHeaderID?: string;
2052
2325
  PaymentHeader?: string;
2053
2326
  AllocatedAt?: Date;
@@ -2074,9 +2347,9 @@ export declare const mjBizAppsOrdersPaymentProviderSyncStateSchema: z.ZodObject<
2074
2347
  ID?: string;
2075
2348
  __mj_CreatedAt?: Date;
2076
2349
  __mj_UpdatedAt?: Date;
2350
+ LastError?: string;
2077
2351
  PaymentProviderID?: string;
2078
2352
  PaymentProvider?: string;
2079
- LastError?: string;
2080
2353
  ObjectName?: string;
2081
2354
  Watermark?: string;
2082
2355
  LastPolledAt?: Date;
@@ -2085,9 +2358,9 @@ export declare const mjBizAppsOrdersPaymentProviderSyncStateSchema: z.ZodObject<
2085
2358
  ID?: string;
2086
2359
  __mj_CreatedAt?: Date;
2087
2360
  __mj_UpdatedAt?: Date;
2361
+ LastError?: string;
2088
2362
  PaymentProviderID?: string;
2089
2363
  PaymentProvider?: string;
2090
- LastError?: string;
2091
2364
  ObjectName?: string;
2092
2365
  Watermark?: string;
2093
2366
  LastPolledAt?: Date;
@@ -2309,8 +2582,8 @@ export declare const mjBizAppsOrdersPriceListAssignmentSchema: z.ZodObject<{
2309
2582
  ID?: string;
2310
2583
  __mj_CreatedAt?: Date;
2311
2584
  __mj_UpdatedAt?: Date;
2312
- PersonID?: string;
2313
2585
  Status?: "Active" | "Inactive";
2586
+ PersonID?: string;
2314
2587
  Person?: string;
2315
2588
  OrganizationID?: string;
2316
2589
  StartedAt?: Date;
@@ -2324,8 +2597,8 @@ export declare const mjBizAppsOrdersPriceListAssignmentSchema: z.ZodObject<{
2324
2597
  ID?: string;
2325
2598
  __mj_CreatedAt?: Date;
2326
2599
  __mj_UpdatedAt?: Date;
2327
- PersonID?: string;
2328
2600
  Status?: "Active" | "Inactive";
2601
+ PersonID?: string;
2329
2602
  Person?: string;
2330
2603
  OrganizationID?: string;
2331
2604
  StartedAt?: Date;
@@ -2537,6 +2810,8 @@ export declare const mjBizAppsOrdersProductEntitlementSchema: z.ZodObject<{
2537
2810
  AccessLagHours: z.ZodNullable<z.ZodNumber>;
2538
2811
  __mj_CreatedAt: z.ZodDate;
2539
2812
  __mj_UpdatedAt: z.ZodDate;
2813
+ ChoiceGroupKey: z.ZodNullable<z.ZodString>;
2814
+ ChoiceOptionValue: z.ZodNullable<z.ZodString>;
2540
2815
  Product: z.ZodString;
2541
2816
  }, "strip", z.ZodTypeAny, {
2542
2817
  ID?: string;
@@ -2554,6 +2829,8 @@ export declare const mjBizAppsOrdersProductEntitlementSchema: z.ZodObject<{
2554
2829
  ValidityDurationDays?: number;
2555
2830
  AccessLeadHours?: number;
2556
2831
  AccessLagHours?: number;
2832
+ ChoiceGroupKey?: string;
2833
+ ChoiceOptionValue?: string;
2557
2834
  }, {
2558
2835
  ID?: string;
2559
2836
  Code?: string;
@@ -2570,6 +2847,8 @@ export declare const mjBizAppsOrdersProductEntitlementSchema: z.ZodObject<{
2570
2847
  ValidityDurationDays?: number;
2571
2848
  AccessLeadHours?: number;
2572
2849
  AccessLagHours?: number;
2850
+ ChoiceGroupKey?: string;
2851
+ ChoiceOptionValue?: string;
2573
2852
  }>;
2574
2853
  export type mjBizAppsOrdersProductEntitlementEntityType = z.infer<typeof mjBizAppsOrdersProductEntitlementSchema>;
2575
2854
  /**
@@ -3237,13 +3516,13 @@ export declare const mjBizAppsOrdersStoredValueTransactionSchema: z.ZodObject<{
3237
3516
  __mj_CreatedAt?: Date;
3238
3517
  __mj_UpdatedAt?: Date;
3239
3518
  Amount?: number;
3519
+ OccurredAt?: Date;
3240
3520
  StoredValueAccountID?: string;
3241
3521
  StoredValueAccount?: string;
3242
3522
  TransactionType?: "Refund" | "Adjust" | "Expire" | "Issue" | "Redeem";
3243
3523
  BalanceAfter?: number;
3244
3524
  RelatedPaymentID?: string;
3245
3525
  RelatedOrderHeaderID?: string;
3246
- OccurredAt?: Date;
3247
3526
  RelatedPayment?: string;
3248
3527
  RelatedOrderHeader?: string;
3249
3528
  }, {
@@ -3251,13 +3530,13 @@ export declare const mjBizAppsOrdersStoredValueTransactionSchema: z.ZodObject<{
3251
3530
  __mj_CreatedAt?: Date;
3252
3531
  __mj_UpdatedAt?: Date;
3253
3532
  Amount?: number;
3533
+ OccurredAt?: Date;
3254
3534
  StoredValueAccountID?: string;
3255
3535
  StoredValueAccount?: string;
3256
3536
  TransactionType?: "Refund" | "Adjust" | "Expire" | "Issue" | "Redeem";
3257
3537
  BalanceAfter?: number;
3258
3538
  RelatedPaymentID?: string;
3259
3539
  RelatedOrderHeaderID?: string;
3260
- OccurredAt?: Date;
3261
3540
  RelatedPayment?: string;
3262
3541
  RelatedOrderHeader?: string;
3263
3542
  }>;
@@ -3285,13 +3564,13 @@ export declare const mjBizAppsOrdersSubscriptionEventSchema: z.ZodObject<{
3285
3564
  __mj_UpdatedAt?: Date;
3286
3565
  SubscriptionID?: string;
3287
3566
  Subscription?: string;
3567
+ EventType?: "Canceled" | "Paused" | "Activated" | "CancellationRequested" | "Created" | "Extended" | "Migrated" | "PaymentFailed" | "PaymentSucceeded" | "RenewalOrderSpawned" | "Resumed" | "TrialEnded" | "TrialStarted";
3568
+ OccurredAt?: Date;
3288
3569
  ProviderEventID?: string;
3289
3570
  RelatedPaymentID?: string;
3290
3571
  RelatedOrderHeaderID?: string;
3291
- OccurredAt?: Date;
3292
3572
  RelatedPayment?: string;
3293
3573
  RelatedOrderHeader?: string;
3294
- EventType?: "Canceled" | "Paused" | "Activated" | "CancellationRequested" | "Created" | "Extended" | "Migrated" | "PaymentFailed" | "PaymentSucceeded" | "RenewalOrderSpawned" | "Resumed" | "TrialEnded" | "TrialStarted";
3295
3574
  EventData?: string;
3296
3575
  }, {
3297
3576
  ID?: string;
@@ -3299,13 +3578,13 @@ export declare const mjBizAppsOrdersSubscriptionEventSchema: z.ZodObject<{
3299
3578
  __mj_UpdatedAt?: Date;
3300
3579
  SubscriptionID?: string;
3301
3580
  Subscription?: string;
3581
+ EventType?: "Canceled" | "Paused" | "Activated" | "CancellationRequested" | "Created" | "Extended" | "Migrated" | "PaymentFailed" | "PaymentSucceeded" | "RenewalOrderSpawned" | "Resumed" | "TrialEnded" | "TrialStarted";
3582
+ OccurredAt?: Date;
3302
3583
  ProviderEventID?: string;
3303
3584
  RelatedPaymentID?: string;
3304
3585
  RelatedOrderHeaderID?: string;
3305
- OccurredAt?: Date;
3306
3586
  RelatedPayment?: string;
3307
3587
  RelatedOrderHeader?: string;
3308
- EventType?: "Canceled" | "Paused" | "Activated" | "CancellationRequested" | "Created" | "Extended" | "Migrated" | "PaymentFailed" | "PaymentSucceeded" | "RenewalOrderSpawned" | "Resumed" | "TrialEnded" | "TrialStarted";
3309
3588
  EventData?: string;
3310
3589
  }>;
3311
3590
  export type mjBizAppsOrdersSubscriptionEventEntityType = z.infer<typeof mjBizAppsOrdersSubscriptionEventSchema>;
@@ -3705,6 +3984,171 @@ export declare class mjBizAppsOrdersChargeTypeEntity extends BaseEntity<mjBizApp
3705
3984
  */
3706
3985
  get __mj_UpdatedAt(): Date;
3707
3986
  }
3987
+ /**
3988
+ * MJ_BizApps_Orders: Checkout Session Steps - strongly typed entity sub-class
3989
+ * * Schema: __mj_BizAppsOrders
3990
+ * * Base Table: CheckoutSessionStep
3991
+ * * Base View: vwCheckoutSessionSteps
3992
+ * * @description One post-payment step of one checkout session: whether it ran, how many times, and how the last attempt ended. Written outside the step's own transaction, so a rolled-back step still records its failure. A Failed row, or a Running row left unfinished, needs review; Orders.ReplayCheckoutStep re-drives it.
3993
+ * * Primary Key: ID
3994
+ * @extends {BaseEntity}
3995
+ * @class
3996
+ * @public
3997
+ */
3998
+ export declare class mjBizAppsOrdersCheckoutSessionStepEntity extends BaseEntity<mjBizAppsOrdersCheckoutSessionStepEntityType> {
3999
+ /**
4000
+ * Loads the MJ_BizApps_Orders: Checkout Session Steps record from the database
4001
+ * @param ID: string - primary key value to load the MJ_BizApps_Orders: Checkout Session Steps record.
4002
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
4003
+ * @returns {Promise<boolean>} - true if successful, false otherwise
4004
+ * @public
4005
+ * @async
4006
+ * @memberof mjBizAppsOrdersCheckoutSessionStepEntity
4007
+ * @method
4008
+ * @override
4009
+ */
4010
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
4011
+ /**
4012
+ * * Field Name: ID
4013
+ * * Display Name: ID
4014
+ * * SQL Data Type: uniqueidentifier
4015
+ * * Default Value: newsequentialid()
4016
+ */
4017
+ get ID(): string;
4018
+ set ID(value: string);
4019
+ /**
4020
+ * * Field Name: CheckoutSessionID
4021
+ * * Display Name: Checkout Session ID
4022
+ * * SQL Data Type: uniqueidentifier
4023
+ * * Related Entity/Foreign Key: MJ_BizApps_Orders: Checkout Sessions (vwCheckoutSessions.ID)
4024
+ * * Description: The checkout session this step belongs to.
4025
+ */
4026
+ get CheckoutSessionID(): string;
4027
+ set CheckoutSessionID(value: string);
4028
+ /**
4029
+ * * Field Name: StepName
4030
+ * * Display Name: Step Name
4031
+ * * SQL Data Type: nvarchar(50)
4032
+ * * Value List Type: List
4033
+ * * Possible Values
4034
+ * * Capture
4035
+ * * Confirm
4036
+ * * Description: Which post-payment step. Confirm: the order confirms, booking and creating entitlement grants in one transaction. Capture: the payment is booked against the order.
4037
+ */
4038
+ get StepName(): 'Capture' | 'Confirm';
4039
+ set StepName(value: 'Capture' | 'Confirm');
4040
+ /**
4041
+ * * Field Name: Status
4042
+ * * Display Name: Status
4043
+ * * SQL Data Type: nvarchar(20)
4044
+ * * Default Value: Running
4045
+ * * Value List Type: List
4046
+ * * Possible Values
4047
+ * * Failed
4048
+ * * Running
4049
+ * * Succeeded
4050
+ * * Description: Running: an attempt started and has not reported back; one left Running long after LastAttemptAt was interrupted. Succeeded: the step is done, and replaying it does nothing. Failed: the last attempt failed; LastError says why.
4051
+ */
4052
+ get Status(): 'Failed' | 'Running' | 'Succeeded';
4053
+ set Status(value: 'Failed' | 'Running' | 'Succeeded');
4054
+ /**
4055
+ * * Field Name: Attempts
4056
+ * * Display Name: Attempts
4057
+ * * SQL Data Type: int
4058
+ * * Default Value: 0
4059
+ * * Description: How many times the step has been attempted, from any source.
4060
+ */
4061
+ get Attempts(): number;
4062
+ set Attempts(value: number);
4063
+ /**
4064
+ * * Field Name: LastError
4065
+ * * Display Name: Last Error
4066
+ * * SQL Data Type: nvarchar(MAX)
4067
+ * * Description: The error from the last failed attempt. Cleared when the step succeeds.
4068
+ */
4069
+ get LastError(): string | null;
4070
+ set LastError(value: string | null);
4071
+ /**
4072
+ * * Field Name: Retryable
4073
+ * * Display Name: Retryable
4074
+ * * SQL Data Type: bit
4075
+ * * Description: Whether the last failure can succeed on a later attempt without anything changing (1), or needs a fix to the data first (0). NULL when the step has not failed or the step does not classify its failures.
4076
+ */
4077
+ get Retryable(): boolean | null;
4078
+ set Retryable(value: boolean | null);
4079
+ /**
4080
+ * * Field Name: LastAttemptSource
4081
+ * * Display Name: Last Attempt Source
4082
+ * * SQL Data Type: nvarchar(20)
4083
+ * * Value List Type: List
4084
+ * * Possible Values
4085
+ * * Checkout
4086
+ * * Replay
4087
+ * * Webhook
4088
+ * * Description: What started the last attempt. Checkout: the buyer's complete call. Webhook: a payment-provider event. Replay: an operator, through Orders.ReplayCheckoutStep.
4089
+ */
4090
+ get LastAttemptSource(): 'Checkout' | 'Replay' | 'Webhook';
4091
+ set LastAttemptSource(value: 'Checkout' | 'Replay' | 'Webhook');
4092
+ /**
4093
+ * * Field Name: LastReplayedByUserID
4094
+ * * Display Name: Last Replayed By User ID
4095
+ * * SQL Data Type: uniqueidentifier
4096
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
4097
+ * * Description: The operator who last replayed this step. NULL if it was never replayed.
4098
+ */
4099
+ get LastReplayedByUserID(): string | null;
4100
+ set LastReplayedByUserID(value: string | null);
4101
+ /**
4102
+ * * Field Name: FirstAttemptAt
4103
+ * * Display Name: First Attempt At
4104
+ * * SQL Data Type: datetimeoffset
4105
+ * * Description: When the step was first attempted.
4106
+ */
4107
+ get FirstAttemptAt(): Date;
4108
+ set FirstAttemptAt(value: Date);
4109
+ /**
4110
+ * * Field Name: LastAttemptAt
4111
+ * * Display Name: Last Attempt At
4112
+ * * SQL Data Type: datetimeoffset
4113
+ * * Description: When the most recent attempt started.
4114
+ */
4115
+ get LastAttemptAt(): Date;
4116
+ set LastAttemptAt(value: Date);
4117
+ /**
4118
+ * * Field Name: SucceededAt
4119
+ * * Display Name: Succeeded At
4120
+ * * SQL Data Type: datetimeoffset
4121
+ * * Description: When the step succeeded. NULL until it does.
4122
+ */
4123
+ get SucceededAt(): Date | null;
4124
+ set SucceededAt(value: Date | null);
4125
+ /**
4126
+ * * Field Name: __mj_CreatedAt
4127
+ * * Display Name: Created At
4128
+ * * SQL Data Type: datetimeoffset
4129
+ * * Default Value: getutcdate()
4130
+ */
4131
+ get __mj_CreatedAt(): Date;
4132
+ /**
4133
+ * * Field Name: __mj_UpdatedAt
4134
+ * * Display Name: Updated At
4135
+ * * SQL Data Type: datetimeoffset
4136
+ * * Default Value: getutcdate()
4137
+ */
4138
+ get __mj_UpdatedAt(): Date;
4139
+ /**
4140
+ * * Field Name: CheckoutSession
4141
+ * * Display Name: Checkout Session
4142
+ * * SQL Data Type: nvarchar(100)
4143
+ */
4144
+ get CheckoutSession(): string;
4145
+ /**
4146
+ * * Field Name: LastReplayedByUser
4147
+ * * Display Name: Last Replayed By User
4148
+ * * SQL Data Type: nvarchar(100)
4149
+ */
4150
+ get LastReplayedByUser(): string | null;
4151
+ }
3708
4152
  /**
3709
4153
  * MJ_BizApps_Orders: Checkout Sessions - strongly typed entity sub-class
3710
4154
  * * Schema: __mj_BizAppsOrders
@@ -4679,6 +5123,190 @@ export declare class mjBizAppsOrdersDimensionDefaultEntity extends BaseEntity<mj
4679
5123
  */
4680
5124
  get DimensionValue(): string;
4681
5125
  }
5126
+ /**
5127
+ * MJ_BizApps_Orders: Entitlement Access Overrides - strongly typed entity sub-class
5128
+ * * Schema: __mj_BizAppsOrders
5129
+ * * Base Table: EntitlementAccessOverride
5130
+ * * Base View: vwEntitlementAccessOverrides
5131
+ * * @description An approved exception to payment-gated access on one order: WaivePaymentHold lifts the hold on a new purchase awaiting its first payment, DeferCutoff lifts the past-due cutoff on a renewal. In force only once approved through Tasks, and only through EffectiveThrough.
5132
+ * * Primary Key: ID
5133
+ * @extends {BaseEntity}
5134
+ * @class
5135
+ * @public
5136
+ */
5137
+ export declare class mjBizAppsOrdersEntitlementAccessOverrideEntity extends BaseEntity<mjBizAppsOrdersEntitlementAccessOverrideEntityType> {
5138
+ /**
5139
+ * Loads the MJ_BizApps_Orders: Entitlement Access Overrides record from the database
5140
+ * @param ID: string - primary key value to load the MJ_BizApps_Orders: Entitlement Access Overrides record.
5141
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
5142
+ * @returns {Promise<boolean>} - true if successful, false otherwise
5143
+ * @public
5144
+ * @async
5145
+ * @memberof mjBizAppsOrdersEntitlementAccessOverrideEntity
5146
+ * @method
5147
+ * @override
5148
+ */
5149
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
5150
+ /**
5151
+ * * Field Name: ID
5152
+ * * Display Name: ID
5153
+ * * SQL Data Type: uniqueidentifier
5154
+ * * Default Value: newsequentialid()
5155
+ */
5156
+ get ID(): string;
5157
+ set ID(value: string);
5158
+ /**
5159
+ * * Field Name: OrderHeaderID
5160
+ * * Display Name: Order Header ID
5161
+ * * SQL Data Type: uniqueidentifier
5162
+ * * Related Entity/Foreign Key: MJ_BizApps_Orders: Order Headers (vwOrderHeaders.ID)
5163
+ * * Description: The order the override applies to. It does not carry to a later renewal or a revised order, which are different orders.
5164
+ */
5165
+ get OrderHeaderID(): string;
5166
+ set OrderHeaderID(value: string);
5167
+ /**
5168
+ * * Field Name: OverrideType
5169
+ * * Display Name: Override Type
5170
+ * * SQL Data Type: nvarchar(20)
5171
+ * * Value List Type: List
5172
+ * * Possible Values
5173
+ * * DeferCutoff
5174
+ * * WaivePaymentHold
5175
+ * * Description: WaivePaymentHold (lifts AwaitingPayment) or DeferCutoff (lifts PastDue).
5176
+ */
5177
+ get OverrideType(): 'DeferCutoff' | 'WaivePaymentHold';
5178
+ set OverrideType(value: 'DeferCutoff' | 'WaivePaymentHold');
5179
+ /**
5180
+ * * Field Name: Reason
5181
+ * * Display Name: Reason
5182
+ * * SQL Data Type: nvarchar(1000)
5183
+ * * Description: Why the exception is needed. Required.
5184
+ */
5185
+ get Reason(): string;
5186
+ set Reason(value: string);
5187
+ /**
5188
+ * * Field Name: EffectiveThrough
5189
+ * * Display Name: Effective Through
5190
+ * * SQL Data Type: date
5191
+ * * Description: The last day the override holds, inclusive. Required. After it the payment rule decides the grants again.
5192
+ */
5193
+ get EffectiveThrough(): Date;
5194
+ set EffectiveThrough(value: Date);
5195
+ /**
5196
+ * * Field Name: Status
5197
+ * * Display Name: Status
5198
+ * * SQL Data Type: nvarchar(20)
5199
+ * * Default Value: Requested
5200
+ * * Value List Type: List
5201
+ * * Possible Values
5202
+ * * Approved
5203
+ * * Expired
5204
+ * * Rejected
5205
+ * * Requested
5206
+ * * Withdrawn
5207
+ * * Description: Requested (awaiting approval), Approved (in force through EffectiveThrough), Rejected, Withdrawn (the approval task closed without a decision that could be applied), or Expired (EffectiveThrough has passed and the grants have been re-decided).
5208
+ */
5209
+ get Status(): 'Approved' | 'Expired' | 'Rejected' | 'Requested' | 'Withdrawn';
5210
+ set Status(value: 'Approved' | 'Expired' | 'Rejected' | 'Requested' | 'Withdrawn');
5211
+ /**
5212
+ * * Field Name: RequestedByUserID
5213
+ * * Display Name: Requested By User ID
5214
+ * * SQL Data Type: uniqueidentifier
5215
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
5216
+ * * Description: The user who requested the override.
5217
+ */
5218
+ get RequestedByUserID(): string;
5219
+ set RequestedByUserID(value: string);
5220
+ /**
5221
+ * * Field Name: RequestedAt
5222
+ * * Display Name: Requested At
5223
+ * * SQL Data Type: datetimeoffset
5224
+ * * Default Value: sysdatetimeoffset()
5225
+ * * Description: When the override was requested.
5226
+ */
5227
+ get RequestedAt(): Date;
5228
+ set RequestedAt(value: Date);
5229
+ /**
5230
+ * * Field Name: ApprovalTaskID
5231
+ * * Display Name: Approval Task ID
5232
+ * * SQL Data Type: uniqueidentifier
5233
+ * * Related Entity/Foreign Key: MJ_BizApps_Tasks: Tasks (vwTasks.ID)
5234
+ * * Description: The Tasks approval request for this override.
5235
+ */
5236
+ get ApprovalTaskID(): string | null;
5237
+ set ApprovalTaskID(value: string | null);
5238
+ /**
5239
+ * * Field Name: ApprovalTaskRaisedAt
5240
+ * * Display Name: Approval Task Raised At
5241
+ * * SQL Data Type: datetimeoffset
5242
+ * * Description: When the approval task was raised. Set together with ApprovalTaskID.
5243
+ */
5244
+ get ApprovalTaskRaisedAt(): Date | null;
5245
+ set ApprovalTaskRaisedAt(value: Date | null);
5246
+ /**
5247
+ * * Field Name: DecidedByUserID
5248
+ * * Display Name: Decided By User ID
5249
+ * * SQL Data Type: uniqueidentifier
5250
+ * * Related Entity/Foreign Key: MJ: Users (vwUsers.ID)
5251
+ * * Description: The user whose decision on the approval task approved or rejected the override.
5252
+ */
5253
+ get DecidedByUserID(): string | null;
5254
+ set DecidedByUserID(value: string | null);
5255
+ /**
5256
+ * * Field Name: DecidedAt
5257
+ * * Display Name: Decided At
5258
+ * * SQL Data Type: datetimeoffset
5259
+ * * Description: When the override was approved, rejected or withdrawn.
5260
+ */
5261
+ get DecidedAt(): Date | null;
5262
+ set DecidedAt(value: Date | null);
5263
+ /**
5264
+ * * Field Name: DecisionNotes
5265
+ * * Display Name: Decision Notes
5266
+ * * SQL Data Type: nvarchar(1000)
5267
+ * * Description: The notes recorded with the decision, or why a closed approval task was not applied.
5268
+ */
5269
+ get DecisionNotes(): string | null;
5270
+ set DecisionNotes(value: string | null);
5271
+ /**
5272
+ * * Field Name: __mj_CreatedAt
5273
+ * * Display Name: Created At
5274
+ * * SQL Data Type: datetimeoffset
5275
+ * * Default Value: getutcdate()
5276
+ */
5277
+ get __mj_CreatedAt(): Date;
5278
+ /**
5279
+ * * Field Name: __mj_UpdatedAt
5280
+ * * Display Name: Updated At
5281
+ * * SQL Data Type: datetimeoffset
5282
+ * * Default Value: getutcdate()
5283
+ */
5284
+ get __mj_UpdatedAt(): Date;
5285
+ /**
5286
+ * * Field Name: OrderHeader
5287
+ * * Display Name: Order Header
5288
+ * * SQL Data Type: nvarchar(40)
5289
+ */
5290
+ get OrderHeader(): string;
5291
+ /**
5292
+ * * Field Name: RequestedByUser
5293
+ * * Display Name: Requested By User
5294
+ * * SQL Data Type: nvarchar(100)
5295
+ */
5296
+ get RequestedByUser(): string;
5297
+ /**
5298
+ * * Field Name: ApprovalTask
5299
+ * * Display Name: Approval Task
5300
+ * * SQL Data Type: nvarchar(255)
5301
+ */
5302
+ get ApprovalTask(): string | null;
5303
+ /**
5304
+ * * Field Name: DecidedByUser
5305
+ * * Display Name: Decided By User
5306
+ * * SQL Data Type: nvarchar(100)
5307
+ */
5308
+ get DecidedByUser(): string | null;
5309
+ }
4682
5310
  /**
4683
5311
  * MJ_BizApps_Orders: Entitlement Grants - strongly typed entity sub-class
4684
5312
  * * Schema: __mj_BizAppsOrders
@@ -6690,26 +7318,126 @@ export declare class mjBizAppsOrdersOrderChargeEntity extends BaseEntity<mjBizAp
6690
7318
  get ComputedAmount(): number | null;
6691
7319
  set ComputedAmount(value: number | null);
6692
7320
  /**
6693
- * * Field Name: OverrideReason
6694
- * * Display Name: Override Reason
6695
- * * SQL Data Type: nvarchar(MAX)
7321
+ * * Field Name: OverrideReason
7322
+ * * Display Name: Override Reason
7323
+ * * SQL Data Type: nvarchar(MAX)
7324
+ */
7325
+ get OverrideReason(): string | null;
7326
+ set OverrideReason(value: string | null);
7327
+ /**
7328
+ * * Field Name: OverriddenByUserID
7329
+ * * Display Name: Overridden By
7330
+ * * SQL Data Type: uniqueidentifier
7331
+ */
7332
+ get OverriddenByUserID(): string | null;
7333
+ set OverriddenByUserID(value: string | null);
7334
+ /**
7335
+ * * Field Name: OverriddenAt
7336
+ * * Display Name: Overridden At
7337
+ * * SQL Data Type: datetimeoffset
7338
+ */
7339
+ get OverriddenAt(): Date | null;
7340
+ set OverriddenAt(value: Date | null);
7341
+ /**
7342
+ * * Field Name: __mj_CreatedAt
7343
+ * * Display Name: Created At
7344
+ * * SQL Data Type: datetimeoffset
7345
+ * * Default Value: getutcdate()
7346
+ */
7347
+ get __mj_CreatedAt(): Date;
7348
+ /**
7349
+ * * Field Name: __mj_UpdatedAt
7350
+ * * Display Name: Updated At
7351
+ * * SQL Data Type: datetimeoffset
7352
+ * * Default Value: getutcdate()
7353
+ */
7354
+ get __mj_UpdatedAt(): Date;
7355
+ /**
7356
+ * * Field Name: OrderHeader
7357
+ * * Display Name: Order Header
7358
+ * * SQL Data Type: nvarchar(40)
7359
+ */
7360
+ get OrderHeader(): string;
7361
+ /**
7362
+ * * Field Name: ChargeType
7363
+ * * Display Name: Charge Type Name
7364
+ * * SQL Data Type: nvarchar(200)
7365
+ */
7366
+ get ChargeType(): string;
7367
+ }
7368
+ /**
7369
+ * MJ_BizApps_Orders: Order Checkout Answers - strongly typed entity sub-class
7370
+ * * Schema: __mj_BizAppsOrders
7371
+ * * Base Table: OrderCheckoutAnswer
7372
+ * * Base View: vwOrderCheckoutAnswers
7373
+ * * @description The buyer's answer to one question a checkout widget asked before payment, recorded on the order the checkout confirmed. The questions are defined in the widget's Configuration.
7374
+ * * Primary Key: ID
7375
+ * @extends {BaseEntity}
7376
+ * @class
7377
+ * @public
7378
+ */
7379
+ export declare class mjBizAppsOrdersOrderCheckoutAnswerEntity extends BaseEntity<mjBizAppsOrdersOrderCheckoutAnswerEntityType> {
7380
+ /**
7381
+ * Loads the MJ_BizApps_Orders: Order Checkout Answers record from the database
7382
+ * @param ID: string - primary key value to load the MJ_BizApps_Orders: Order Checkout Answers record.
7383
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
7384
+ * @returns {Promise<boolean>} - true if successful, false otherwise
7385
+ * @public
7386
+ * @async
7387
+ * @memberof mjBizAppsOrdersOrderCheckoutAnswerEntity
7388
+ * @method
7389
+ * @override
7390
+ */
7391
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
7392
+ /**
7393
+ * * Field Name: ID
7394
+ * * Display Name: ID
7395
+ * * SQL Data Type: uniqueidentifier
7396
+ * * Default Value: newsequentialid()
7397
+ */
7398
+ get ID(): string;
7399
+ set ID(value: string);
7400
+ /**
7401
+ * * Field Name: OrderHeaderID
7402
+ * * Display Name: Order Header ID
7403
+ * * SQL Data Type: uniqueidentifier
7404
+ * * Related Entity/Foreign Key: MJ_BizApps_Orders: Order Headers (vwOrderHeaders.ID)
7405
+ * * Description: The order the checkout confirmed.
7406
+ */
7407
+ get OrderHeaderID(): string;
7408
+ set OrderHeaderID(value: string);
7409
+ /**
7410
+ * * Field Name: QuestionKey
7411
+ * * Display Name: Question Key
7412
+ * * SQL Data Type: nvarchar(100)
7413
+ * * Description: The question's key in the widget's Configuration. Stable across label edits, so answers to the same question can be reported together.
7414
+ */
7415
+ get QuestionKey(): string;
7416
+ set QuestionKey(value: string);
7417
+ /**
7418
+ * * Field Name: QuestionLabel
7419
+ * * Display Name: Question Label
7420
+ * * SQL Data Type: nvarchar(500)
7421
+ * * Description: The question as the buyer saw it, copied at order time.
6696
7422
  */
6697
- get OverrideReason(): string | null;
6698
- set OverrideReason(value: string | null);
7423
+ get QuestionLabel(): string;
7424
+ set QuestionLabel(value: string);
6699
7425
  /**
6700
- * * Field Name: OverriddenByUserID
6701
- * * Display Name: Overridden By
6702
- * * SQL Data Type: uniqueidentifier
7426
+ * * Field Name: Answer
7427
+ * * Display Name: Answer
7428
+ * * SQL Data Type: nvarchar(1000)
7429
+ * * Description: The answer. For a select question, the value of the option the buyer chose; for a text question, the text entered.
6703
7430
  */
6704
- get OverriddenByUserID(): string | null;
6705
- set OverriddenByUserID(value: string | null);
7431
+ get Answer(): string;
7432
+ set Answer(value: string);
6706
7433
  /**
6707
- * * Field Name: OverriddenAt
6708
- * * Display Name: Overridden At
6709
- * * SQL Data Type: datetimeoffset
7434
+ * * Field Name: OtherText
7435
+ * * Display Name: Other Text
7436
+ * * SQL Data Type: nvarchar(1000)
7437
+ * * Description: The free-text answer the buyer gave after choosing the question's "Other" option. NULL for any other answer.
6710
7438
  */
6711
- get OverriddenAt(): Date | null;
6712
- set OverriddenAt(value: Date | null);
7439
+ get OtherText(): string | null;
7440
+ set OtherText(value: string | null);
6713
7441
  /**
6714
7442
  * * Field Name: __mj_CreatedAt
6715
7443
  * * Display Name: Created At
@@ -6730,12 +7458,6 @@ export declare class mjBizAppsOrdersOrderChargeEntity extends BaseEntity<mjBizAp
6730
7458
  * * SQL Data Type: nvarchar(40)
6731
7459
  */
6732
7460
  get OrderHeader(): string;
6733
- /**
6734
- * * Field Name: ChargeType
6735
- * * Display Name: Charge Type Name
6736
- * * SQL Data Type: nvarchar(200)
6737
- */
6738
- get ChargeType(): string;
6739
7461
  }
6740
7462
  /**
6741
7463
  * MJ_BizApps_Orders: Order Company Policies - strongly typed entity sub-class
@@ -7097,6 +7819,15 @@ export declare class mjBizAppsOrdersOrderHeaderEntity extends BaseEntity<mjBizAp
7097
7819
  */
7098
7820
  readonly Charges: import("@memberjunction/core").RelatedRecordCollection<mjBizAppsOrdersOrderChargeEntity>;
7099
7821
  /**
7822
+ * Related records: MJ_BizApps_Orders: Order Checkout Answers
7823
+ *
7824
+ * Loads, validates and persists as one unit with this MJ_BizApps_Orders: Order Headers record — see
7825
+ * guides/TRANSACTIONS_AND_BATCHING_GUIDE.md. Declared by the RelatedRecordCollection metadata on
7826
+ * the 'MJ_BizApps_Orders: Order Headers → MJ_BizApps_Orders: Order Checkout Answers' relationship; edit that row, not this file.
7827
+ *
7828
+ */
7829
+ readonly CheckoutAnswers: import("@memberjunction/core").RelatedRecordCollection<mjBizAppsOrdersOrderCheckoutAnswerEntity>;
7830
+ /**
7100
7831
  * Embedded record: MJ_BizApps_Common: Addresses
7101
7832
  *
7102
7833
  * 1:1 peer joined by this record's BillToAddressID. Loaded and saved with this
@@ -7622,6 +8353,94 @@ export declare class mjBizAppsOrdersOrderHeaderEntity extends BaseEntity<mjBizAp
7622
8353
  */
7623
8354
  get IsOverdue(): number;
7624
8355
  }
8356
+ /**
8357
+ * MJ_BizApps_Orders: Order Line Choices - strongly typed entity sub-class
8358
+ * * Schema: __mj_BizAppsOrders
8359
+ * * Base Table: OrderLineChoice
8360
+ * * Base View: vwOrderLineChoices
8361
+ * * @description One option the buyer chose from a choice group at checkout, recorded on the order line it was chosen for. The choice groups are defined in the checkout widget's Configuration. A renewal copies the choices onto its line, so conditional entitlements follow them.
8362
+ * * Primary Key: ID
8363
+ * @extends {BaseEntity}
8364
+ * @class
8365
+ * @public
8366
+ */
8367
+ export declare class mjBizAppsOrdersOrderLineChoiceEntity extends BaseEntity<mjBizAppsOrdersOrderLineChoiceEntityType> {
8368
+ /**
8369
+ * Loads the MJ_BizApps_Orders: Order Line Choices record from the database
8370
+ * @param ID: string - primary key value to load the MJ_BizApps_Orders: Order Line Choices record.
8371
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
8372
+ * @returns {Promise<boolean>} - true if successful, false otherwise
8373
+ * @public
8374
+ * @async
8375
+ * @memberof mjBizAppsOrdersOrderLineChoiceEntity
8376
+ * @method
8377
+ * @override
8378
+ */
8379
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
8380
+ /**
8381
+ * * Field Name: ID
8382
+ * * Display Name: ID
8383
+ * * SQL Data Type: uniqueidentifier
8384
+ * * Default Value: newsequentialid()
8385
+ */
8386
+ get ID(): string;
8387
+ set ID(value: string);
8388
+ /**
8389
+ * * Field Name: OrderLineID
8390
+ * * Display Name: Order Line ID
8391
+ * * SQL Data Type: uniqueidentifier
8392
+ * * Related Entity/Foreign Key: MJ_BizApps_Orders: Order Lines (vwOrderLines.ID)
8393
+ * * Description: The order line the option was chosen for.
8394
+ */
8395
+ get OrderLineID(): string;
8396
+ set OrderLineID(value: string);
8397
+ /**
8398
+ * * Field Name: GroupKey
8399
+ * * Display Name: Group Key
8400
+ * * SQL Data Type: nvarchar(100)
8401
+ * * Description: The choice group's key in the widget's Configuration. Matched by ProductEntitlement.ChoiceGroupKey.
8402
+ */
8403
+ get GroupKey(): string;
8404
+ set GroupKey(value: string);
8405
+ /**
8406
+ * * Field Name: GroupLabel
8407
+ * * Display Name: Group Label
8408
+ * * SQL Data Type: nvarchar(500)
8409
+ * * Description: The choice group as the buyer saw it, copied at order time.
8410
+ */
8411
+ get GroupLabel(): string;
8412
+ set GroupLabel(value: string);
8413
+ /**
8414
+ * * Field Name: OptionValue
8415
+ * * Display Name: Option Value
8416
+ * * SQL Data Type: nvarchar(100)
8417
+ * * Description: The value of the option chosen. Matched by ProductEntitlement.ChoiceOptionValue.
8418
+ */
8419
+ get OptionValue(): string;
8420
+ set OptionValue(value: string);
8421
+ /**
8422
+ * * Field Name: OptionLabel
8423
+ * * Display Name: Option Label
8424
+ * * SQL Data Type: nvarchar(500)
8425
+ * * Description: The option as the buyer saw it, copied at order time.
8426
+ */
8427
+ get OptionLabel(): string;
8428
+ set OptionLabel(value: string);
8429
+ /**
8430
+ * * Field Name: __mj_CreatedAt
8431
+ * * Display Name: Created At
8432
+ * * SQL Data Type: datetimeoffset
8433
+ * * Default Value: getutcdate()
8434
+ */
8435
+ get __mj_CreatedAt(): Date;
8436
+ /**
8437
+ * * Field Name: __mj_UpdatedAt
8438
+ * * Display Name: Updated At
8439
+ * * SQL Data Type: datetimeoffset
8440
+ * * Default Value: getutcdate()
8441
+ */
8442
+ get __mj_UpdatedAt(): Date;
8443
+ }
7625
8444
  /**
7626
8445
  * MJ_BizApps_Orders: Order Line Dimensions - strongly typed entity sub-class
7627
8446
  * * Schema: __mj_BizAppsOrders
@@ -8257,6 +9076,7 @@ export declare class mjBizAppsOrdersOrderLineEntity extends BaseEntity<mjBizApps
8257
9076
  * * Field Name: ShipToAddressID
8258
9077
  * * Display Name: Ship To Address
8259
9078
  * * SQL Data Type: uniqueidentifier
9079
+ * * Related Entity/Foreign Key: MJ_BizApps_Common: Addresses (vwAddresses.ID)
8260
9080
  */
8261
9081
  get ShipToAddressID(): string | null;
8262
9082
  set ShipToAddressID(value: string | null);
@@ -8631,6 +9451,251 @@ export declare class mjBizAppsOrdersOrderSequenceEntity extends BaseEntity<mjBiz
8631
9451
  */
8632
9452
  get __mj_UpdatedAt(): Date;
8633
9453
  }
9454
+ /**
9455
+ * MJ_BizApps_Orders: Outbound Deliveries - strongly typed entity sub-class
9456
+ * * Schema: __mj_BizAppsOrders
9457
+ * * Base Table: OutboundDelivery
9458
+ * * Base View: vwOutboundDeliveries
9459
+ * * @description One outbound event to one registered consumer: whether it has been delivered, and when it will be tried next.
9460
+ * * Primary Key: ID
9461
+ * @extends {BaseEntity}
9462
+ * @class
9463
+ * @public
9464
+ */
9465
+ export declare class mjBizAppsOrdersOutboundDeliveryEntity extends BaseEntity<mjBizAppsOrdersOutboundDeliveryEntityType> {
9466
+ /**
9467
+ * Loads the MJ_BizApps_Orders: Outbound Deliveries record from the database
9468
+ * @param ID: string - primary key value to load the MJ_BizApps_Orders: Outbound Deliveries record.
9469
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
9470
+ * @returns {Promise<boolean>} - true if successful, false otherwise
9471
+ * @public
9472
+ * @async
9473
+ * @memberof mjBizAppsOrdersOutboundDeliveryEntity
9474
+ * @method
9475
+ * @override
9476
+ */
9477
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
9478
+ /**
9479
+ * * Field Name: ID
9480
+ * * Display Name: ID
9481
+ * * SQL Data Type: uniqueidentifier
9482
+ * * Default Value: newsequentialid()
9483
+ */
9484
+ get ID(): string;
9485
+ set ID(value: string);
9486
+ /**
9487
+ * * Field Name: OutboundEventID
9488
+ * * Display Name: Outbound Event ID
9489
+ * * SQL Data Type: uniqueidentifier
9490
+ * * Related Entity/Foreign Key: MJ_BizApps_Orders: Outbound Events (vwOutboundEvents.ID)
9491
+ * * Description: The event being delivered.
9492
+ */
9493
+ get OutboundEventID(): string;
9494
+ set OutboundEventID(value: string);
9495
+ /**
9496
+ * * Field Name: ConsumerKey
9497
+ * * Display Name: Consumer Key
9498
+ * * SQL Data Type: nvarchar(100)
9499
+ * * Description: The registration key of the consumer (an OrdersOutboundConsumer subclass).
9500
+ */
9501
+ get ConsumerKey(): string;
9502
+ set ConsumerKey(value: string);
9503
+ /**
9504
+ * * Field Name: GatesAccess
9505
+ * * Display Name: Gates Access
9506
+ * * SQL Data Type: bit
9507
+ * * Default Value: 0
9508
+ * * Description: True when this consumer's delivery decides whether the buyer's access is ready, as declared by the consumer when the event was recorded.
9509
+ */
9510
+ get GatesAccess(): boolean;
9511
+ set GatesAccess(value: boolean);
9512
+ /**
9513
+ * * Field Name: Status
9514
+ * * Display Name: Status
9515
+ * * SQL Data Type: nvarchar(20)
9516
+ * * Default Value: Pending
9517
+ * * Value List Type: List
9518
+ * * Possible Values
9519
+ * * DeadLettered
9520
+ * * Delivered
9521
+ * * Pending
9522
+ * * Description: Pending until the consumer accepts it (Delivered), or until DeadlineAt passes without success (DeadLettered). Setting a DeadLettered row back to Pending sends it again.
9523
+ */
9524
+ get Status(): 'DeadLettered' | 'Delivered' | 'Pending';
9525
+ set Status(value: 'DeadLettered' | 'Delivered' | 'Pending');
9526
+ /**
9527
+ * * Field Name: Attempts
9528
+ * * Display Name: Attempts
9529
+ * * SQL Data Type: int
9530
+ * * Default Value: 0
9531
+ * * Description: How many times delivery has been tried.
9532
+ */
9533
+ get Attempts(): number;
9534
+ set Attempts(value: number);
9535
+ /**
9536
+ * * Field Name: NextAttemptAt
9537
+ * * Display Name: Next Attempt At
9538
+ * * SQL Data Type: datetimeoffset
9539
+ * * Default Value: sysdatetimeoffset()
9540
+ * * Description: The earliest time the dispatcher tries this row again.
9541
+ */
9542
+ get NextAttemptAt(): Date;
9543
+ set NextAttemptAt(value: Date);
9544
+ /**
9545
+ * * Field Name: DeadlineAt
9546
+ * * Display Name: Deadline At
9547
+ * * SQL Data Type: datetimeoffset
9548
+ * * Description: After this time a failed attempt dead-letters the row instead of scheduling another.
9549
+ */
9550
+ get DeadlineAt(): Date;
9551
+ set DeadlineAt(value: Date);
9552
+ /**
9553
+ * * Field Name: LeaseUntil
9554
+ * * Display Name: Lease Until
9555
+ * * SQL Data Type: datetimeoffset
9556
+ * * Description: Set while a dispatcher pass holds the row, so another pass does not send it at the same time. A lease that runs out frees the row.
9557
+ */
9558
+ get LeaseUntil(): Date | null;
9559
+ set LeaseUntil(value: Date | null);
9560
+ /**
9561
+ * * Field Name: LastAttemptAt
9562
+ * * Display Name: Last Attempt At
9563
+ * * SQL Data Type: datetimeoffset
9564
+ * * Description: When delivery was last tried.
9565
+ */
9566
+ get LastAttemptAt(): Date | null;
9567
+ set LastAttemptAt(value: Date | null);
9568
+ /**
9569
+ * * Field Name: LastError
9570
+ * * Display Name: Last Error
9571
+ * * SQL Data Type: nvarchar(2000)
9572
+ * * Description: The consumer's error from the last failed attempt.
9573
+ */
9574
+ get LastError(): string | null;
9575
+ set LastError(value: string | null);
9576
+ /**
9577
+ * * Field Name: DeliveredAt
9578
+ * * Display Name: Delivered At
9579
+ * * SQL Data Type: datetimeoffset
9580
+ * * Description: When the consumer accepted the event.
9581
+ */
9582
+ get DeliveredAt(): Date | null;
9583
+ set DeliveredAt(value: Date | null);
9584
+ /**
9585
+ * * Field Name: __mj_CreatedAt
9586
+ * * Display Name: Created At
9587
+ * * SQL Data Type: datetimeoffset
9588
+ * * Default Value: getutcdate()
9589
+ */
9590
+ get __mj_CreatedAt(): Date;
9591
+ /**
9592
+ * * Field Name: __mj_UpdatedAt
9593
+ * * Display Name: Updated At
9594
+ * * SQL Data Type: datetimeoffset
9595
+ * * Default Value: getutcdate()
9596
+ */
9597
+ get __mj_UpdatedAt(): Date;
9598
+ }
9599
+ /**
9600
+ * MJ_BizApps_Orders: Outbound Events - strongly typed entity sub-class
9601
+ * * Schema: __mj_BizAppsOrders
9602
+ * * Base Table: OutboundEvent
9603
+ * * Base View: vwOutboundEvents
9604
+ * * @description An event Orders tells registered consumers about: an order confirmed, or an entitlement grant's status changed. Written in the same transaction as the change, so it exists exactly when the change committed. Its ID is the stable event id consumers dedupe on.
9605
+ * * Primary Key: ID
9606
+ * @extends {BaseEntity}
9607
+ * @class
9608
+ * @public
9609
+ */
9610
+ export declare class mjBizAppsOrdersOutboundEventEntity extends BaseEntity<mjBizAppsOrdersOutboundEventEntityType> {
9611
+ /**
9612
+ * Loads the MJ_BizApps_Orders: Outbound Events record from the database
9613
+ * @param ID: string - primary key value to load the MJ_BizApps_Orders: Outbound Events record.
9614
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
9615
+ * @returns {Promise<boolean>} - true if successful, false otherwise
9616
+ * @public
9617
+ * @async
9618
+ * @memberof mjBizAppsOrdersOutboundEventEntity
9619
+ * @method
9620
+ * @override
9621
+ */
9622
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
9623
+ /**
9624
+ * * Field Name: ID
9625
+ * * Display Name: ID
9626
+ * * SQL Data Type: uniqueidentifier
9627
+ * * Default Value: newsequentialid()
9628
+ */
9629
+ get ID(): string;
9630
+ set ID(value: string);
9631
+ /**
9632
+ * * Field Name: EventType
9633
+ * * Display Name: Event Type
9634
+ * * SQL Data Type: nvarchar(40)
9635
+ * * Value List Type: List
9636
+ * * Possible Values
9637
+ * * GrantStatusChanged
9638
+ * * OrderConfirmed
9639
+ * * Description: OrderConfirmed (first confirmation of an order, renewals included) or GrantStatusChanged (a grant created, or its Status changed).
9640
+ */
9641
+ get EventType(): 'GrantStatusChanged' | 'OrderConfirmed';
9642
+ set EventType(value: 'GrantStatusChanged' | 'OrderConfirmed');
9643
+ /**
9644
+ * * Field Name: OrderHeaderID
9645
+ * * Display Name: Order Header ID
9646
+ * * SQL Data Type: uniqueidentifier
9647
+ * * Related Entity/Foreign Key: MJ_BizApps_Orders: Order Headers (vwOrderHeaders.ID)
9648
+ * * Description: The order the event is about. Set on both event types, so deliveries can be read by order.
9649
+ */
9650
+ get OrderHeaderID(): string | null;
9651
+ set OrderHeaderID(value: string | null);
9652
+ /**
9653
+ * * Field Name: EntitlementGrantID
9654
+ * * Display Name: Entitlement Grant ID
9655
+ * * SQL Data Type: uniqueidentifier
9656
+ * * Related Entity/Foreign Key: MJ_BizApps_Orders: Entitlement Grants (vwEntitlementGrants.ID)
9657
+ * * Description: The grant a GrantStatusChanged event is about. NULL for OrderConfirmed.
9658
+ */
9659
+ get EntitlementGrantID(): string | null;
9660
+ set EntitlementGrantID(value: string | null);
9661
+ /**
9662
+ * * Field Name: PayloadJSON
9663
+ * * Display Name: Payload JSON
9664
+ * * SQL Data Type: nvarchar(MAX)
9665
+ * * Description: The event as consumers receive it, fixed when the event was recorded.
9666
+ */
9667
+ get PayloadJSON(): string;
9668
+ set PayloadJSON(value: string);
9669
+ /**
9670
+ * * Field Name: OccurredAt
9671
+ * * Display Name: Occurred At
9672
+ * * SQL Data Type: datetimeoffset
9673
+ * * Default Value: sysdatetimeoffset()
9674
+ * * Description: When the change that caused the event was saved.
9675
+ */
9676
+ get OccurredAt(): Date;
9677
+ set OccurredAt(value: Date);
9678
+ /**
9679
+ * * Field Name: __mj_CreatedAt
9680
+ * * Display Name: Created At
9681
+ * * SQL Data Type: datetimeoffset
9682
+ * * Default Value: getutcdate()
9683
+ */
9684
+ get __mj_CreatedAt(): Date;
9685
+ /**
9686
+ * * Field Name: __mj_UpdatedAt
9687
+ * * Display Name: Updated At
9688
+ * * SQL Data Type: datetimeoffset
9689
+ * * Default Value: getutcdate()
9690
+ */
9691
+ get __mj_UpdatedAt(): Date;
9692
+ /**
9693
+ * * Field Name: OrderHeader
9694
+ * * Display Name: Order Header
9695
+ * * SQL Data Type: nvarchar(40)
9696
+ */
9697
+ get OrderHeader(): string | null;
9698
+ }
8634
9699
  /**
8635
9700
  * MJ_BizApps_Orders: Payment Details - strongly typed entity sub-class
8636
9701
  * * Schema: __mj_BizAppsOrders
@@ -11036,6 +12101,22 @@ export declare class mjBizAppsOrdersProductEntitlementEntity extends BaseEntity<
11036
12101
  */
11037
12102
  get __mj_UpdatedAt(): Date;
11038
12103
  /**
12104
+ * * Field Name: ChoiceGroupKey
12105
+ * * Display Name: Choice Group Key
12106
+ * * SQL Data Type: nvarchar(100)
12107
+ * * Description: With ChoiceOptionValue, makes this entitlement conditional: it is granted only on an order line that carries this choice (an OrderLineChoice row with this GroupKey and OptionValue). NULL grants it on every line of the product.
12108
+ */
12109
+ get ChoiceGroupKey(): string | null;
12110
+ set ChoiceGroupKey(value: string | null);
12111
+ /**
12112
+ * * Field Name: ChoiceOptionValue
12113
+ * * Display Name: Choice Option Value
12114
+ * * SQL Data Type: nvarchar(100)
12115
+ * * Description: The option value, within ChoiceGroupKey, that the line must carry for this entitlement to be granted. Set together with ChoiceGroupKey or not at all.
12116
+ */
12117
+ get ChoiceOptionValue(): string | null;
12118
+ set ChoiceOptionValue(value: string | null);
12119
+ /**
11039
12120
  * * Field Name: Product
11040
12121
  * * Display Name: Product Name
11041
12122
  * * SQL Data Type: nvarchar(200)