@d19n/youfibre-odin-sdk 1.0.230 → 1.0.232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/actions-v2/ChangeBillingModeDto.d.ts +81 -0
  2. package/dist/actions-v2/ChangeBillingModeDto.js +58 -0
  3. package/dist/actions-v2/CreateRecontractOrderDto.d.ts +58 -13
  4. package/dist/entities-v2/Account.d.ts +10 -3
  5. package/dist/entities-v2/Account.js +4 -2
  6. package/dist/entities-v2/BusinessAccount.d.ts +7 -0
  7. package/dist/entities-v2/BusinessAccount.js +2 -0
  8. package/dist/entities-v2/CreditNote.d.ts +19 -19
  9. package/dist/entities-v2/CreditNote.js +6 -6
  10. package/dist/entities-v2/Invoice.d.ts +15 -8
  11. package/dist/entities-v2/Invoice.js +4 -2
  12. package/dist/entities-v2/InvoiceItem.d.ts +14 -0
  13. package/dist/entities-v2/InvoiceItem.js +4 -0
  14. package/dist/entities-v2/MultipleAccount.d.ts +7 -0
  15. package/dist/entities-v2/MultipleAccount.js +2 -0
  16. package/dist/entities-v2/Order.d.ts +66 -73
  17. package/dist/entities-v2/Order.js +37 -37
  18. package/dist/entities-v2/OutcomeFormOverlayRealA55.d.ts +132 -132
  19. package/dist/entities-v2/OutcomeFormOverlayRealA55.js +84 -84
  20. package/dist/entities-v2/OutcomeFormRemediationRequiredReason.d.ts +158 -158
  21. package/dist/entities-v2/OutcomeFormRemediationRequiredReason.js +138 -138
  22. package/dist/entities-v2/PrimaryAccount.d.ts +7 -0
  23. package/dist/entities-v2/PrimaryAccount.js +2 -0
  24. package/dist/entities-v2/RemediationRequiredReason.d.ts +158 -158
  25. package/dist/entities-v2/RemediationRequiredReason.js +138 -138
  26. package/dist/entities-v2/ResellerAccount.d.ts +7 -0
  27. package/dist/entities-v2/ResellerAccount.js +2 -0
  28. package/dist/entities-v2/ServiceAccount.d.ts +274 -0
  29. package/dist/entities-v2/ServiceAccount.js +174 -0
  30. package/dist/entities-v2/Visit.d.ts +173 -173
  31. package/dist/entities-v2/Visit.js +109 -109
  32. package/dist/records-v2/AccountRecord.d.ts +31 -7
  33. package/dist/records-v2/AccountRecord.js +42 -6
  34. package/dist/records-v2/OrderRecord.d.ts +1 -1
  35. package/dist/records-v2/index.d.ts +1 -1
  36. package/dist/records-v2/index.js +4 -4
  37. package/package.json +1 -1
  38. package/src/README.md +15 -13
  39. package/src/actions-v2/ChangeBillingModeDto.ts +102 -0
  40. package/src/actions-v2/CreateRecontractOrderDto.ts +58 -13
  41. package/src/entities-v2/Account.ts +9 -2
  42. package/src/entities-v2/BusinessAccount.ts +7 -0
  43. package/src/entities-v2/CreditNote.ts +19 -19
  44. package/src/entities-v2/Invoice.ts +15 -8
  45. package/src/entities-v2/InvoiceItem.ts +14 -0
  46. package/src/entities-v2/MultipleAccount.ts +7 -0
  47. package/src/entities-v2/Order.ts +66 -73
  48. package/src/entities-v2/OutcomeFormOverlayRealA55.ts +132 -132
  49. package/src/entities-v2/OutcomeFormRemediationRequiredReason.ts +157 -157
  50. package/src/entities-v2/PrimaryAccount.ts +7 -0
  51. package/src/entities-v2/RemediationRequiredReason.ts +157 -157
  52. package/src/entities-v2/ResellerAccount.ts +7 -0
  53. package/src/entities-v2/ServiceAccount.ts +295 -0
  54. package/src/entities-v2/Visit.ts +173 -173
  55. package/src/records-v2/AccountRecord.ts +58 -8
  56. package/src/records-v2/OrderRecord.ts +1 -1
  57. package/src/records-v2/index.ts +1 -1
@@ -0,0 +1,81 @@
1
+ /**
2
+ * ChangeBillingMode Action DTO
3
+ *
4
+ * Change the account billing mode between ORDER and ACCOUNT
5
+ *
6
+ * @module CrmModule
7
+ * @entity Account
8
+ * @actionKey ChangeBillingMode
9
+ * @event AccountBillingModelChanged
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * Properties for ChangeBillingMode action
16
+ *
17
+ * @property Required fields: 0
18
+ * @property Optional fields: 2
19
+ */
20
+ export interface ChangeBillingModeProperties {
21
+ /**
22
+ * BillingMode
23
+ *
24
+ * Controls how invoices are generated for this account. ORDER (default): each order generates its own invoice on its own billing cycle. ACCOUNT: all orders are consolidated into a single invoice on the account billing day.
25
+ * @type {ENUM}
26
+ */
27
+ BillingMode?: string;
28
+ /**
29
+ * BillingDay
30
+ *
31
+ * Day of month when consolidated invoices are generated. Required when BillingMode is ACCOUNT. Must be 1-28 to avoid end-of-month date issues.
32
+ * @type {NUMBER}
33
+ */
34
+ BillingDay?: number;
35
+ }
36
+ /**
37
+ * ChangeBillingMode
38
+ *
39
+ * Change the account billing mode between ORDER and ACCOUNT
40
+ *
41
+ * @actionType UPDATE - Updates an existing Account record
42
+ * @module CrmModule
43
+ * @entity Account
44
+ * @event AccountBillingModelChanged
45
+ * @permission schema.action.changebillingmode.trigger
46
+ * @benchmark This action is tracked for performance benchmarks
47
+ */
48
+ export declare class ChangeBillingModeDto extends OdinRecordUpdateDto<ChangeBillingModeProperties> {
49
+ /** Used by SDK generators to identify action type */
50
+ static readonly ACTION_TYPE = "UPDATE";
51
+ static readonly ACTION_KEY = "ChangeBillingMode";
52
+ static readonly MODULE_NAME = "CrmModule";
53
+ static readonly ENTITIES: string[];
54
+ static readonly EVENT_NAME = "AccountBillingModelChanged";
55
+ static readonly PERMISSION = "schema.action.changebillingmode.trigger";
56
+ readonly actionName: string;
57
+ readonly schemaActionId: string;
58
+ readonly entity: string;
59
+ constructor(record: OdinRecord<any> | {
60
+ id: string;
61
+ entity: string;
62
+ type?: string;
63
+ }, properties: ChangeBillingModeProperties, options?: {
64
+ journeyId?: string;
65
+ stageKey?: string;
66
+ });
67
+ }
68
+ /**
69
+ * RabbitMQ message payload for ChangeBillingMode updated events
70
+ *
71
+ * @event AccountBillingModelChanged
72
+ */
73
+ export interface ChangeBillingModeMessage extends OdinRecordUpdatedEvent<ChangeBillingModeDto, ChangeBillingModeProperties> {
74
+ }
75
+ /**
76
+ * RabbitMQ routing key for ChangeBillingMode events
77
+ *
78
+ * Subscribe to this key to receive notifications when this action completes.
79
+ * @event AccountBillingModelChanged
80
+ */
81
+ export declare const ROUTING_KEY_ACCOUNT_BILLING_MODEL_CHANGED = "AccountBillingModelChanged";
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /**
3
+ * ChangeBillingMode Action DTO
4
+ *
5
+ * Change the account billing mode between ORDER and ACCOUNT
6
+ *
7
+ * @module CrmModule
8
+ * @entity Account
9
+ * @actionKey ChangeBillingMode
10
+ * @event AccountBillingModelChanged
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ROUTING_KEY_ACCOUNT_BILLING_MODEL_CHANGED = exports.ChangeBillingModeDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * ChangeBillingMode
19
+ *
20
+ * Change the account billing mode between ORDER and ACCOUNT
21
+ *
22
+ * @actionType UPDATE - Updates an existing Account record
23
+ * @module CrmModule
24
+ * @entity Account
25
+ * @event AccountBillingModelChanged
26
+ * @permission schema.action.changebillingmode.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class ChangeBillingModeDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'ChangeBillingMode';
40
+ this.schemaActionId = '805e0261-bc3b-41e3-8a69-79d4152613ab';
41
+ this.entity = 'CrmModule:Account';
42
+ }
43
+ }
44
+ exports.ChangeBillingModeDto = ChangeBillingModeDto;
45
+ /** Used by SDK generators to identify action type */
46
+ ChangeBillingModeDto.ACTION_TYPE = 'UPDATE';
47
+ ChangeBillingModeDto.ACTION_KEY = 'ChangeBillingMode';
48
+ ChangeBillingModeDto.MODULE_NAME = 'CrmModule';
49
+ ChangeBillingModeDto.ENTITIES = ['Account'];
50
+ ChangeBillingModeDto.EVENT_NAME = 'AccountBillingModelChanged';
51
+ ChangeBillingModeDto.PERMISSION = 'schema.action.changebillingmode.trigger';
52
+ /**
53
+ * RabbitMQ routing key for ChangeBillingMode events
54
+ *
55
+ * Subscribe to this key to receive notifications when this action completes.
56
+ * @event AccountBillingModelChanged
57
+ */
58
+ exports.ROUTING_KEY_ACCOUNT_BILLING_MODEL_CHANGED = 'AccountBillingModelChanged';
@@ -14,8 +14,8 @@ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/di
14
14
  /**
15
15
  * Properties for CreateRecontractOrder action
16
16
  *
17
- * @property Required fields: 0
18
- * @property Optional fields: 8
17
+ * @property Required fields: 10
18
+ * @property Optional fields: 3
19
19
  */
20
20
  export interface CreateRecontractOrderProperties {
21
21
  /**
@@ -23,46 +23,85 @@ export interface CreateRecontractOrderProperties {
23
23
  *
24
24
  * the subscriber id is used as the identifier when provisioning on the network
25
25
  * @type {TEXT}
26
+ * @required
26
27
  */
27
- SubscriberId?: string;
28
+ SubscriberId: string;
28
29
  /**
29
30
  * Active Date
30
31
  *
31
32
  * active date
32
33
  * @type {DATE}
34
+ * @required
33
35
  * @format DD/MM/YYYY
34
36
  */
35
- ActiveDate?: string;
37
+ ActiveDate: string;
36
38
  /**
37
39
  * Billing Start Date
38
40
  *
39
41
  * Billing start date
40
42
  * @type {DATE}
43
+ * @required
41
44
  * @format DD/MM/YYYY
42
45
  */
43
- BillingStartDate?: string;
46
+ BillingStartDate: string;
44
47
  /**
45
48
  * Contract Start Date
46
49
  *
47
50
  * the date the contract start
48
51
  * @type {DATE}
52
+ * @required
49
53
  * @format DD/MM/YYYY
50
54
  */
51
- ContractStartDate?: string;
55
+ ContractStartDate: string;
52
56
  /**
53
57
  * Billing Day
54
58
  *
55
59
  * Billing day in the month
56
60
  * @type {NUMBER}
61
+ * @required
57
62
  */
58
- BillingDay?: number;
63
+ BillingDay: number;
59
64
  /**
60
65
  * Previous Order ID
61
66
  *
62
67
  * the previous order prior to an amendment or recontract
63
68
  * @type {LOOKUP}
69
+ * @required
64
70
  */
65
- PreviousOrderId?: string;
71
+ PreviousOrderId: string;
72
+ /**
73
+ * Amendment Date
74
+ *
75
+ * the datetime when the amendment was performed
76
+ * @type {DATE}
77
+ * @required
78
+ * @format DD/MM/YYYY
79
+ */
80
+ AmendmentDate: string;
81
+ /**
82
+ * BillingTerms
83
+ *
84
+ * Billing terms i.e NET 15,30
85
+ * @type {ENUM}
86
+ * @required
87
+ */
88
+ BillingTerms: string;
89
+ /**
90
+ * UDPRN
91
+ *
92
+ * unique delivery point reference number
93
+ * @type {NUMBER}
94
+ * @required
95
+ */
96
+ Udprn: number;
97
+ /**
98
+ * UMPRN
99
+ *
100
+ * unique multiple point reference number
101
+ * @type {NUMBER}
102
+ * @required
103
+ */
104
+ Umprn: number;
66
105
  /**
67
106
  * Source
68
107
  *
@@ -71,13 +110,19 @@ export interface CreateRecontractOrderProperties {
71
110
  */
72
111
  Source?: string;
73
112
  /**
74
- * Amendment Date
113
+ * ReferralEmail
75
114
  *
76
- * the datetime when the amendment was performed
77
- * @type {DATE}
78
- * @format DD/MM/YYYY
115
+ * referral email
116
+ * @type {TEXT}
117
+ */
118
+ ReferralEmail?: string;
119
+ /**
120
+ * Provider
121
+ *
122
+ * network provider
123
+ * @type {ENUM}
79
124
  */
80
- AmendmentDate?: string;
125
+ Provider?: string;
81
126
  }
82
127
  /**
83
128
  * CreateRecontractOrder
@@ -29,14 +29,14 @@ import { FileProperties } from './File';
29
29
  export declare enum AccountEntityTypes {
30
30
  /** Business accounts */
31
31
  BUSINESS = "BUSINESS",
32
- /** This is the default record type */
33
- DEFAULT = "DEFAULT",
34
32
  /** Multiple accounts are for customers who want to purchase multiple services at many addresses */
35
33
  MULTIPLE = "MULTIPLE",
36
34
  /** Primary account */
37
35
  PRIMARY = "PRIMARY",
38
36
  /** Reseller */
39
- RESELLER = "RESELLER"
37
+ RESELLER = "RESELLER",
38
+ /** This is the account where service is being delivered */
39
+ SERVICE = "SERVICE"
40
40
  }
41
41
  /**
42
42
  * Valid values for Account.Status
@@ -142,6 +142,8 @@ export declare enum AccountPropertyKeys {
142
142
  BillingDay = "BillingDay",
143
143
  /** VerificationCode */
144
144
  VerificationCode = "VerificationCode",
145
+ /** For SERVICE under RESELLER/TENANT */
146
+ ParentAccountRef = "ParentAccountRef",
145
147
  /** the billing address */
146
148
  AddressId = "AddressId"
147
149
  }
@@ -208,6 +210,11 @@ export interface AccountProperties {
208
210
  * @type {TEXT}
209
211
  */
210
212
  VerificationCode?: string;
213
+ /** For SERVICE under RESELLER/TENANT
214
+ *
215
+ * @type {UUID}
216
+ */
217
+ ParentAccountRef?: string;
211
218
  /** the billing address
212
219
  *
213
220
  * @type {LOOKUP}
@@ -21,14 +21,14 @@ var AccountEntityTypes;
21
21
  (function (AccountEntityTypes) {
22
22
  /** Business accounts */
23
23
  AccountEntityTypes["BUSINESS"] = "BUSINESS";
24
- /** This is the default record type */
25
- AccountEntityTypes["DEFAULT"] = "DEFAULT";
26
24
  /** Multiple accounts are for customers who want to purchase multiple services at many addresses */
27
25
  AccountEntityTypes["MULTIPLE"] = "MULTIPLE";
28
26
  /** Primary account */
29
27
  AccountEntityTypes["PRIMARY"] = "PRIMARY";
30
28
  /** Reseller */
31
29
  AccountEntityTypes["RESELLER"] = "RESELLER";
30
+ /** This is the account where service is being delivered */
31
+ AccountEntityTypes["SERVICE"] = "SERVICE";
32
32
  })(AccountEntityTypes = exports.AccountEntityTypes || (exports.AccountEntityTypes = {}));
33
33
  /**
34
34
  * Valid values for Account.Status
@@ -140,6 +140,8 @@ var AccountPropertyKeys;
140
140
  AccountPropertyKeys["BillingDay"] = "BillingDay";
141
141
  /** VerificationCode */
142
142
  AccountPropertyKeys["VerificationCode"] = "VerificationCode";
143
+ /** For SERVICE under RESELLER/TENANT */
144
+ AccountPropertyKeys["ParentAccountRef"] = "ParentAccountRef";
143
145
  /** the billing address */
144
146
  AccountPropertyKeys["AddressId"] = "AddressId";
145
147
  })(AccountPropertyKeys = exports.AccountPropertyKeys || (exports.AccountPropertyKeys = {}));
@@ -128,6 +128,8 @@ export declare enum BusinessAccountPropertyKeys {
128
128
  BillingDay = "BillingDay",
129
129
  /** VerificationCode */
130
130
  VerificationCode = "VerificationCode",
131
+ /** For SERVICE under RESELLER/TENANT */
132
+ ParentAccountRef = "ParentAccountRef",
131
133
  /** the billing address */
132
134
  AddressId = "AddressId"
133
135
  }
@@ -189,6 +191,11 @@ export interface BusinessAccountProperties {
189
191
  * @type {TEXT}
190
192
  */
191
193
  VerificationCode?: string;
194
+ /** For SERVICE under RESELLER/TENANT
195
+ *
196
+ * @type {UUID}
197
+ */
198
+ ParentAccountRef?: string;
192
199
  /** the billing address
193
200
  *
194
201
  * @type {LOOKUP}
@@ -124,6 +124,8 @@ var BusinessAccountPropertyKeys;
124
124
  BusinessAccountPropertyKeys["BillingDay"] = "BillingDay";
125
125
  /** VerificationCode */
126
126
  BusinessAccountPropertyKeys["VerificationCode"] = "VerificationCode";
127
+ /** For SERVICE under RESELLER/TENANT */
128
+ BusinessAccountPropertyKeys["ParentAccountRef"] = "ParentAccountRef";
127
129
  /** the billing address */
128
130
  BusinessAccountPropertyKeys["AddressId"] = "AddressId";
129
131
  })(BusinessAccountPropertyKeys = exports.BusinessAccountPropertyKeys || (exports.BusinessAccountPropertyKeys = {}));
@@ -71,18 +71,18 @@ export declare enum CreditNoteReason {
71
71
  * Use these constants instead of string literals for type safety
72
72
  */
73
73
  export declare enum CreditNotePropertyKeys {
74
- /** description of the credit note */
75
- Description = "Description",
76
74
  /** amount of the credit note */
77
75
  Amount = "Amount",
78
- /** credit note status */
79
- Status = "Status",
76
+ /** description of the credit note */
77
+ Description = "Description",
80
78
  /** the record # of the invoice */
81
79
  InvoiceRef = "InvoiceRef",
80
+ /** credit note reason */
81
+ Reason = "Reason",
82
82
  /** reason code */
83
83
  ReasonCode = "ReasonCode",
84
- /** credit note reason */
85
- Reason = "Reason"
84
+ /** credit note status */
85
+ Status = "Status"
86
86
  }
87
87
  /**
88
88
  * Properties for CreditNote records
@@ -90,40 +90,40 @@ export declare enum CreditNotePropertyKeys {
90
90
  * @see BillingModule:CreditNote
91
91
  */
92
92
  export interface CreditNoteProperties {
93
- /** description of the credit note
94
- *
95
- * @type {TEXT_LONG}
96
- */
97
- Description?: string;
98
93
  /** amount of the credit note
99
94
  *
100
95
  * @type {CURRENCY}
101
96
  * @default 0
102
97
  */
103
98
  Amount?: string;
104
- /** credit note status
99
+ /** description of the credit note
105
100
  *
106
- * @type {TEXT}
107
- * @hidden This field is hidden in the UI
101
+ * @type {TEXT_LONG}
108
102
  */
109
- Status?: string;
103
+ Description?: string;
110
104
  /** the record # of the invoice
111
105
  *
112
106
  * @type {TEXT}
113
107
  */
114
108
  InvoiceRef?: string;
109
+ /** credit note reason
110
+ *
111
+ * @type {ENUM}
112
+ * @enum {CreditNoteReason}
113
+ */
114
+ Reason?: CreditNoteReason;
115
115
  /** reason code
116
116
  *
117
117
  * @type {TEXT}
118
118
  * @hidden This field is hidden in the UI
119
119
  */
120
120
  ReasonCode?: string;
121
- /** credit note reason
121
+ /** credit note status
122
122
  *
123
- * @type {ENUM}
124
- * @enum {CreditNoteReason}
123
+ * @type {TEXT}
124
+ * @hidden This field is hidden in the UI
125
125
  */
126
- Reason?: CreditNoteReason;
126
+ Status?: string;
127
127
  }
128
128
  /**
129
129
  * CreditNote entity from BillingModule
@@ -73,18 +73,18 @@ var CreditNoteReason;
73
73
  */
74
74
  var CreditNotePropertyKeys;
75
75
  (function (CreditNotePropertyKeys) {
76
- /** description of the credit note */
77
- CreditNotePropertyKeys["Description"] = "Description";
78
76
  /** amount of the credit note */
79
77
  CreditNotePropertyKeys["Amount"] = "Amount";
80
- /** credit note status */
81
- CreditNotePropertyKeys["Status"] = "Status";
78
+ /** description of the credit note */
79
+ CreditNotePropertyKeys["Description"] = "Description";
82
80
  /** the record # of the invoice */
83
81
  CreditNotePropertyKeys["InvoiceRef"] = "InvoiceRef";
84
- /** reason code */
85
- CreditNotePropertyKeys["ReasonCode"] = "ReasonCode";
86
82
  /** credit note reason */
87
83
  CreditNotePropertyKeys["Reason"] = "Reason";
84
+ /** reason code */
85
+ CreditNotePropertyKeys["ReasonCode"] = "ReasonCode";
86
+ /** credit note status */
87
+ CreditNotePropertyKeys["Status"] = "Status";
88
88
  })(CreditNotePropertyKeys = exports.CreditNotePropertyKeys || (exports.CreditNotePropertyKeys = {}));
89
89
  /**
90
90
  * CreditNote entity from BillingModule
@@ -247,8 +247,6 @@ export declare enum InvoicePropertyKeys {
247
247
  DiscountValue = "DiscountValue",
248
248
  /** the type of discount */
249
249
  DiscountType = "DiscountType",
250
- /** order reference */
251
- OrderRef = "OrderRef",
252
250
  /** invoice name */
253
251
  Name = "Name",
254
252
  /** timestamp indicating when the DunningStatus changed */
@@ -293,8 +291,12 @@ export declare enum InvoicePropertyKeys {
293
291
  BillingMode = "BillingMode",
294
292
  /** JSON array of order IDs included in this invoice. Only populated for account-based invoices (BillingMode=ACCOUNT). Example: ["uuid-1","uuid-2"]. Used to track which orders contributed to a consolidated invoice. */
295
293
  OrderRefs = "OrderRefs",
294
+ /** order reference */
295
+ OrderRef = "OrderRef",
296
296
  /** Used to identify what billing period this invoice includes */
297
297
  BillingPeriodType = "BillingPeriodType",
298
+ /** JSON array of sub-account IDs */
299
+ SubAccountRefs = "SubAccountRefs",
298
300
  /** status of the invoice */
299
301
  Status = "Status",
300
302
  /** will attempt payment retries if failed */
@@ -425,12 +427,6 @@ export interface InvoiceProperties {
425
427
  * @hidden This field is hidden in the UI
426
428
  */
427
429
  DiscountType?: InvoiceDiscountType;
428
- /** order reference
429
- *
430
- * @type {UUID}
431
- * @hidden This field is hidden in the UI
432
- */
433
- OrderRef?: string;
434
430
  /** invoice name
435
431
  *
436
432
  * @type {TEXT}
@@ -577,6 +573,12 @@ export interface InvoiceProperties {
577
573
  * @type {JSON}
578
574
  */
579
575
  OrderRefs?: string;
576
+ /** order reference
577
+ *
578
+ * @type {TEXT}
579
+ * @hidden This field is hidden in the UI
580
+ */
581
+ OrderRef?: string;
580
582
  /** Used to identify what billing period this invoice includes
581
583
  *
582
584
  * @type {ENUM}
@@ -584,6 +586,11 @@ export interface InvoiceProperties {
584
586
  * @enum {InvoiceBillingPeriodType}
585
587
  */
586
588
  BillingPeriodType?: InvoiceBillingPeriodType;
589
+ /** JSON array of sub-account IDs
590
+ *
591
+ * @type {JSON}
592
+ */
593
+ SubAccountRefs?: string;
587
594
  /** status of the invoice
588
595
  *
589
596
  * @type {ENUM}
@@ -244,8 +244,6 @@ var InvoicePropertyKeys;
244
244
  InvoicePropertyKeys["DiscountValue"] = "DiscountValue";
245
245
  /** the type of discount */
246
246
  InvoicePropertyKeys["DiscountType"] = "DiscountType";
247
- /** order reference */
248
- InvoicePropertyKeys["OrderRef"] = "OrderRef";
249
247
  /** invoice name */
250
248
  InvoicePropertyKeys["Name"] = "Name";
251
249
  /** timestamp indicating when the DunningStatus changed */
@@ -290,8 +288,12 @@ var InvoicePropertyKeys;
290
288
  InvoicePropertyKeys["BillingMode"] = "BillingMode";
291
289
  /** JSON array of order IDs included in this invoice. Only populated for account-based invoices (BillingMode=ACCOUNT). Example: ["uuid-1","uuid-2"]. Used to track which orders contributed to a consolidated invoice. */
292
290
  InvoicePropertyKeys["OrderRefs"] = "OrderRefs";
291
+ /** order reference */
292
+ InvoicePropertyKeys["OrderRef"] = "OrderRef";
293
293
  /** Used to identify what billing period this invoice includes */
294
294
  InvoicePropertyKeys["BillingPeriodType"] = "BillingPeriodType";
295
+ /** JSON array of sub-account IDs */
296
+ InvoicePropertyKeys["SubAccountRefs"] = "SubAccountRefs";
295
297
  /** status of the invoice */
296
298
  InvoicePropertyKeys["Status"] = "Status";
297
299
  /** will attempt payment retries if failed */
@@ -145,6 +145,10 @@ export declare enum InvoiceItemPropertyKeys {
145
145
  OrderTitle = "OrderTitle",
146
146
  /** Source order ID that this line item originated from. Used in account-based invoices to group and filter items by their source order. Enables per-order subtotals on consolidated invoices. */
147
147
  OrderRef = "OrderRef",
148
+ /** Source sub-account of a (RESELLER/TENANT) account */
149
+ SubAccountRef = "SubAccountRef",
150
+ /** The title of the sub-account */
151
+ SubAccountTitle = "SubAccountTitle",
148
152
  /** Billing period start date */
149
153
  BillingPeriodStart = "BillingPeriodStart",
150
154
  /** Billing period end date */
@@ -321,6 +325,16 @@ export interface InvoiceItemProperties {
321
325
  * @type {UUID}
322
326
  */
323
327
  OrderRef?: string;
328
+ /** Source sub-account of a (RESELLER/TENANT) account
329
+ *
330
+ * @type {UUID}
331
+ */
332
+ SubAccountRef?: string;
333
+ /** The title of the sub-account
334
+ *
335
+ * @type {TEXT}
336
+ */
337
+ SubAccountTitle?: string;
324
338
  /** Billing period start date
325
339
  *
326
340
  * @type {DATE}
@@ -154,6 +154,10 @@ var InvoiceItemPropertyKeys;
154
154
  InvoiceItemPropertyKeys["OrderTitle"] = "OrderTitle";
155
155
  /** Source order ID that this line item originated from. Used in account-based invoices to group and filter items by their source order. Enables per-order subtotals on consolidated invoices. */
156
156
  InvoiceItemPropertyKeys["OrderRef"] = "OrderRef";
157
+ /** Source sub-account of a (RESELLER/TENANT) account */
158
+ InvoiceItemPropertyKeys["SubAccountRef"] = "SubAccountRef";
159
+ /** The title of the sub-account */
160
+ InvoiceItemPropertyKeys["SubAccountTitle"] = "SubAccountTitle";
157
161
  /** Billing period start date */
158
162
  InvoiceItemPropertyKeys["BillingPeriodStart"] = "BillingPeriodStart";
159
163
  /** Billing period end date */
@@ -128,6 +128,8 @@ export declare enum MultipleAccountPropertyKeys {
128
128
  BillingDay = "BillingDay",
129
129
  /** VerificationCode */
130
130
  VerificationCode = "VerificationCode",
131
+ /** For SERVICE under RESELLER/TENANT */
132
+ ParentAccountRef = "ParentAccountRef",
131
133
  /** the billing address */
132
134
  AddressId = "AddressId"
133
135
  }
@@ -189,6 +191,11 @@ export interface MultipleAccountProperties {
189
191
  * @type {TEXT}
190
192
  */
191
193
  VerificationCode?: string;
194
+ /** For SERVICE under RESELLER/TENANT
195
+ *
196
+ * @type {UUID}
197
+ */
198
+ ParentAccountRef?: string;
192
199
  /** the billing address
193
200
  *
194
201
  * @type {LOOKUP}
@@ -124,6 +124,8 @@ var MultipleAccountPropertyKeys;
124
124
  MultipleAccountPropertyKeys["BillingDay"] = "BillingDay";
125
125
  /** VerificationCode */
126
126
  MultipleAccountPropertyKeys["VerificationCode"] = "VerificationCode";
127
+ /** For SERVICE under RESELLER/TENANT */
128
+ MultipleAccountPropertyKeys["ParentAccountRef"] = "ParentAccountRef";
127
129
  /** the billing address */
128
130
  MultipleAccountPropertyKeys["AddressId"] = "AddressId";
129
131
  })(MultipleAccountPropertyKeys = exports.MultipleAccountPropertyKeys || (exports.MultipleAccountPropertyKeys = {}));