@managespace/sdk 0.0.164 → 0.0.165

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 (95) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +9 -4
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +5 -0
  4. package/dist/extensibility/functions/project/document.d.ts +1 -14
  5. package/dist/extensibility/functions/project/document.d.ts.map +1 -1
  6. package/dist/extensibility/functions/project/document.js +0 -10
  7. package/dist/extensibility/types/workflow-step.d.ts +4 -0
  8. package/dist/extensibility/types/workflow-step.d.ts.map +1 -1
  9. package/dist/extensibility/workflow/workflow-step.d.ts +1 -0
  10. package/dist/extensibility/workflow/workflow-step.d.ts.map +1 -1
  11. package/dist/extensibility/workflow/workflow-step.js +6 -5
  12. package/dist/extensibility/workflow/workflow.d.ts +2 -0
  13. package/dist/extensibility/workflow/workflow.d.ts.map +1 -1
  14. package/dist/extensibility/workflow/workflow.js +1 -4
  15. package/dist/generated/apis/default-api.d.ts +42 -31
  16. package/dist/generated/apis/default-api.d.ts.map +1 -1
  17. package/dist/generated/apis/default-api.js +122 -85
  18. package/dist/generated/models/charge.d.ts +5 -5
  19. package/dist/generated/models/charge.d.ts.map +1 -1
  20. package/dist/generated/models/charge.js +5 -15
  21. package/dist/generated/models/contact.d.ts +7 -0
  22. package/dist/generated/models/contact.d.ts.map +1 -1
  23. package/dist/generated/models/contact.js +3 -0
  24. package/dist/generated/models/create-charge.d.ts +5 -5
  25. package/dist/generated/models/create-charge.d.ts.map +1 -1
  26. package/dist/generated/models/create-charge.js +5 -15
  27. package/dist/generated/models/create-document.d.ts +6 -12
  28. package/dist/generated/models/create-document.d.ts.map +1 -1
  29. package/dist/generated/models/create-document.js +2 -4
  30. package/dist/generated/models/create-plan-charge.d.ts +181 -5
  31. package/dist/generated/models/create-plan-charge.d.ts.map +1 -1
  32. package/dist/generated/models/create-plan-charge.js +62 -6
  33. package/dist/generated/models/customer.d.ts +7 -0
  34. package/dist/generated/models/customer.d.ts.map +1 -1
  35. package/dist/generated/models/customer.js +3 -0
  36. package/dist/generated/models/document-hierarchy.d.ts +45 -0
  37. package/dist/generated/models/document-hierarchy.d.ts.map +1 -0
  38. package/dist/generated/models/document-hierarchy.js +59 -0
  39. package/dist/generated/models/document-signed.d.ts +18 -0
  40. package/dist/generated/models/document-signed.d.ts.map +1 -1
  41. package/dist/generated/models/document-signed.js +6 -0
  42. package/dist/generated/models/document-url.d.ts +0 -6
  43. package/dist/generated/models/document-url.d.ts.map +1 -1
  44. package/dist/generated/models/document-url.js +0 -4
  45. package/dist/generated/models/extensibility-function-metadata.d.ts +3 -3
  46. package/dist/generated/models/extensibility-function-metadata.d.ts.map +1 -1
  47. package/dist/generated/models/extensibility-function-metadata.js +3 -3
  48. package/dist/generated/models/get-documents200-response.d.ts +3 -3
  49. package/dist/generated/models/get-documents200-response.d.ts.map +1 -1
  50. package/dist/generated/models/get-documents200-response.js +3 -3
  51. package/dist/generated/models/index.d.ts +7 -1
  52. package/dist/generated/models/index.d.ts.map +1 -1
  53. package/dist/generated/models/index.js +7 -1
  54. package/dist/generated/models/org.d.ts +10 -3
  55. package/dist/generated/models/org.d.ts.map +1 -1
  56. package/dist/generated/models/org.js +6 -3
  57. package/dist/generated/models/project-version1.d.ts +109 -0
  58. package/dist/generated/models/project-version1.d.ts.map +1 -0
  59. package/dist/generated/models/project-version1.js +95 -0
  60. package/dist/generated/models/project2.d.ts +70 -0
  61. package/dist/generated/models/project2.d.ts.map +1 -0
  62. package/dist/generated/models/project2.js +74 -0
  63. package/dist/generated/models/role3.d.ts +59 -0
  64. package/dist/generated/models/role3.d.ts.map +1 -0
  65. package/dist/generated/models/role3.js +67 -0
  66. package/dist/generated/models/roles4.d.ts +32 -0
  67. package/dist/generated/models/roles4.d.ts.map +1 -0
  68. package/dist/generated/models/roles4.js +57 -0
  69. package/dist/generated/models/site-type4.d.ts +46 -0
  70. package/dist/generated/models/site-type4.d.ts.map +1 -0
  71. package/dist/generated/models/site-type4.js +58 -0
  72. package/dist/generated/models/site.d.ts +10 -3
  73. package/dist/generated/models/site.d.ts.map +1 -1
  74. package/dist/generated/models/site.js +6 -3
  75. package/dist/generated/models/update-plan.d.ts +58 -0
  76. package/dist/generated/models/update-plan.d.ts.map +1 -0
  77. package/dist/generated/models/update-plan.js +62 -0
  78. package/dist/generated/models/upload-document.d.ts +30 -6
  79. package/dist/generated/models/upload-document.d.ts.map +1 -1
  80. package/dist/generated/models/upload-document.js +14 -4
  81. package/dist/generated/models/uploaded-document.d.ts +85 -2
  82. package/dist/generated/models/uploaded-document.d.ts.map +1 -1
  83. package/dist/generated/models/uploaded-document.js +50 -3
  84. package/dist/generated/models/user.d.ts +10 -3
  85. package/dist/generated/models/user.d.ts.map +1 -1
  86. package/dist/generated/models/user.js +6 -3
  87. package/dist/generated/models/workflow-instance.d.ts +6 -0
  88. package/dist/generated/models/workflow-instance.d.ts.map +1 -1
  89. package/dist/generated/models/workflow-instance.js +4 -0
  90. package/dist/generated/models/workflow-step-metadata.d.ts +3 -3
  91. package/dist/generated/models/workflow-step-metadata.d.ts.map +1 -1
  92. package/dist/generated/models/workflow-step-metadata.js +3 -3
  93. package/package.json +1 -1
  94. package/src/extensibility/functions/project/billing.ts +2 -1
  95. package/src/generated/apis/default-api.ts +1 -1
@@ -24,16 +24,6 @@ function instanceOfCharge(value) {
24
24
  return false;
25
25
  if (!('name' in value) || value['name'] === undefined)
26
26
  return false;
27
- if (!('type' in value) || value['type'] === undefined)
28
- return false;
29
- if (!('pricingModel' in value) || value['pricingModel'] === undefined)
30
- return false;
31
- if (!('listPrice' in value) || value['listPrice'] === undefined)
32
- return false;
33
- if (!('includedUnits' in value) || value['includedUnits'] === undefined)
34
- return false;
35
- if (!('defaultFromProduct' in value) || value['defaultFromProduct'] === undefined)
36
- return false;
37
27
  if (!('id' in value) || value['id'] === undefined)
38
28
  return false;
39
29
  if (!('chargeBillingDate' in value) || value['chargeBillingDate'] === undefined)
@@ -53,13 +43,13 @@ function ChargeFromJSONTyped(json, ignoreDiscriminator) {
53
43
  'productId': json['productId'],
54
44
  'name': json['name'],
55
45
  'description': json['description'] == null ? undefined : json['description'],
56
- 'type': json['type'],
46
+ 'type': json['type'] == null ? undefined : json['type'],
57
47
  'timing': json['timing'] == null ? undefined : json['timing'],
58
48
  'effectiveDate': json['effectiveDate'] == null ? undefined : json['effectiveDate'],
59
49
  'billingDate': json['billingDate'] == null ? undefined : json['billingDate'],
60
50
  'completionDate': json['completionDate'] == null ? undefined : json['completionDate'],
61
- 'pricingModel': json['pricingModel'],
62
- 'listPrice': json['listPrice'],
51
+ 'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
52
+ 'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
63
53
  'chargeTiming': json['chargeTiming'] == null ? undefined : json['chargeTiming'],
64
54
  'listPriceBase': json['listPriceBase'] == null ? undefined : json['listPriceBase'],
65
55
  'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
@@ -69,7 +59,7 @@ function ChargeFromJSONTyped(json, ignoreDiscriminator) {
69
59
  'prepaymentPeriods': json['prepaymentPeriods'] == null ? undefined : json['prepaymentPeriods'],
70
60
  'prepaymentAmount': json['prepaymentAmount'] == null ? undefined : json['prepaymentAmount'],
71
61
  'unitOfMeasure': json['unitOfMeasure'] == null ? undefined : json['unitOfMeasure'],
72
- 'includedUnits': json['includedUnits'],
62
+ 'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
73
63
  'unusedPrepaymentUnits': json['unusedPrepaymentUnits'] == null ? undefined : json['unusedPrepaymentUnits'],
74
64
  'tiers': json['tiers'] == null ? undefined : (json['tiers'].map(charge_tier_1.ChargeTierFromJSON)),
75
65
  'backchargeCurrentPeriod': json['backchargeCurrentPeriod'] == null ? undefined : json['backchargeCurrentPeriod'],
@@ -80,7 +70,7 @@ function ChargeFromJSONTyped(json, ignoreDiscriminator) {
80
70
  'refillPrepaidUnitsFor': json['refillPrepaidUnitsFor'] == null ? undefined : json['refillPrepaidUnitsFor'],
81
71
  'prepaidUnitsExpiry': json['prepaidUnitsExpiry'] == null ? undefined : json['prepaidUnitsExpiry'],
82
72
  'refundUnitsOnCancel': json['refundUnitsOnCancel'] == null ? undefined : json['refundUnitsOnCancel'],
83
- 'defaultFromProduct': json['defaultFromProduct'],
73
+ 'defaultFromProduct': json['defaultFromProduct'] == null ? undefined : json['defaultFromProduct'],
84
74
  'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
85
75
  'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
86
76
  'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Address } from './address';
13
+ import type { UploadedDocument } from './uploaded-document';
13
14
  import type { Customer } from './customer';
14
15
  import type { Org } from './org';
15
16
  import type { Communication } from './communication';
@@ -127,6 +128,12 @@ export interface Contact {
127
128
  * @memberof Contact
128
129
  */
129
130
  communications?: Array<Communication>;
131
+ /**
132
+ *
133
+ * @type {Array<UploadedDocument>}
134
+ * @memberof Contact
135
+ */
136
+ documents?: Array<UploadedDocument>;
130
137
  }
131
138
  /**
132
139
  * Check if a given object implements the Contact interface.
@@ -1 +1 @@
1
- {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../src/generated/models/contact.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;A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C;IACpB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACtC;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CACvC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAgBjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CA0BrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA2BpG"}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ContactToJSONTyped = exports.ContactToJSON = exports.ContactFromJSONTyped = exports.ContactFromJSON = exports.instanceOfContact = void 0;
17
17
  const address_1 = require("./address");
18
+ const uploaded_document_1 = require("./uploaded-document");
18
19
  const customer_1 = require("./customer");
19
20
  const org_1 = require("./org");
20
21
  const communication_1 = require("./communication");
@@ -80,6 +81,7 @@ function ContactFromJSONTyped(json, ignoreDiscriminator) {
80
81
  'address': json['address'] == null ? undefined : (0, address_1.AddressFromJSON)(json['address']),
81
82
  'addressId': json['addressId'],
82
83
  'communications': json['communications'] == null ? undefined : (json['communications'].map(communication_1.CommunicationFromJSON)),
84
+ 'documents': json['documents'] == null ? undefined : (json['documents'].map(uploaded_document_1.UploadedDocumentFromJSON)),
83
85
  };
84
86
  }
85
87
  exports.ContactFromJSONTyped = ContactFromJSONTyped;
@@ -110,6 +112,7 @@ function ContactToJSONTyped(value, ignoreDiscriminator = false) {
110
112
  'address': (0, address_1.AddressToJSON)(value['address']),
111
113
  'addressId': value['addressId'],
112
114
  'communications': value['communications'] == null ? undefined : (value['communications'].map(communication_1.CommunicationToJSON)),
115
+ 'documents': value['documents'] == null ? undefined : (value['documents'].map(uploaded_document_1.UploadedDocumentToJSON)),
113
116
  };
114
117
  }
115
118
  exports.ContactToJSONTyped = ContactToJSONTyped;
@@ -40,7 +40,7 @@ export interface CreateCharge {
40
40
  * @type {string}
41
41
  * @memberof CreateCharge
42
42
  */
43
- type: string;
43
+ type?: string;
44
44
  /**
45
45
  * timing of one-time charge, to process at start of contract or termination
46
46
  * @type {string}
@@ -70,13 +70,13 @@ export interface CreateCharge {
70
70
  * @type {string}
71
71
  * @memberof CreateCharge
72
72
  */
73
- pricingModel: string;
73
+ pricingModel?: string;
74
74
  /**
75
75
  * Original unit price of charge
76
76
  * @type {string}
77
77
  * @memberof CreateCharge
78
78
  */
79
- listPrice: string;
79
+ listPrice?: string;
80
80
  /**
81
81
  * For recurring charges, time of charges
82
82
  * @type {string}
@@ -136,7 +136,7 @@ export interface CreateCharge {
136
136
  * @type {number}
137
137
  * @memberof CreateCharge
138
138
  */
139
- includedUnits: number;
139
+ includedUnits?: number;
140
140
  /**
141
141
  * Unused prepayment units remaining for charge
142
142
  * @type {number}
@@ -202,7 +202,7 @@ export interface CreateCharge {
202
202
  * @type {boolean}
203
203
  * @memberof CreateCharge
204
204
  */
205
- defaultFromProduct: boolean;
205
+ defaultFromProduct?: boolean;
206
206
  /**
207
207
  * Revenue Rule ID
208
208
  * @type {string}
@@ -1 +1 @@
1
- {"version":3,"file":"create-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-charge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BA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IG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CAChE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAI3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAyC/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA0C9G"}
@@ -24,16 +24,6 @@ function instanceOfCreateCharge(value) {
24
24
  return false;
25
25
  if (!('name' in value) || value['name'] === undefined)
26
26
  return false;
27
- if (!('type' in value) || value['type'] === undefined)
28
- return false;
29
- if (!('pricingModel' in value) || value['pricingModel'] === undefined)
30
- return false;
31
- if (!('listPrice' in value) || value['listPrice'] === undefined)
32
- return false;
33
- if (!('includedUnits' in value) || value['includedUnits'] === undefined)
34
- return false;
35
- if (!('defaultFromProduct' in value) || value['defaultFromProduct'] === undefined)
36
- return false;
37
27
  return true;
38
28
  }
39
29
  exports.instanceOfCreateCharge = instanceOfCreateCharge;
@@ -49,13 +39,13 @@ function CreateChargeFromJSONTyped(json, ignoreDiscriminator) {
49
39
  'productId': json['productId'],
50
40
  'name': json['name'],
51
41
  'description': json['description'] == null ? undefined : json['description'],
52
- 'type': json['type'],
42
+ 'type': json['type'] == null ? undefined : json['type'],
53
43
  'timing': json['timing'] == null ? undefined : json['timing'],
54
44
  'effectiveDate': json['effectiveDate'] == null ? undefined : json['effectiveDate'],
55
45
  'billingDate': json['billingDate'] == null ? undefined : json['billingDate'],
56
46
  'completionDate': json['completionDate'] == null ? undefined : json['completionDate'],
57
- 'pricingModel': json['pricingModel'],
58
- 'listPrice': json['listPrice'],
47
+ 'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
48
+ 'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
59
49
  'chargeTiming': json['chargeTiming'] == null ? undefined : json['chargeTiming'],
60
50
  'listPriceBase': json['listPriceBase'] == null ? undefined : json['listPriceBase'],
61
51
  'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
@@ -65,7 +55,7 @@ function CreateChargeFromJSONTyped(json, ignoreDiscriminator) {
65
55
  'prepaymentPeriods': json['prepaymentPeriods'] == null ? undefined : json['prepaymentPeriods'],
66
56
  'prepaymentAmount': json['prepaymentAmount'] == null ? undefined : json['prepaymentAmount'],
67
57
  'unitOfMeasure': json['unitOfMeasure'] == null ? undefined : json['unitOfMeasure'],
68
- 'includedUnits': json['includedUnits'],
58
+ 'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
69
59
  'unusedPrepaymentUnits': json['unusedPrepaymentUnits'] == null ? undefined : json['unusedPrepaymentUnits'],
70
60
  'tiers': json['tiers'] == null ? undefined : (json['tiers'].map(charge_tier_1.ChargeTierFromJSON)),
71
61
  'backchargeCurrentPeriod': json['backchargeCurrentPeriod'] == null ? undefined : json['backchargeCurrentPeriod'],
@@ -76,7 +66,7 @@ function CreateChargeFromJSONTyped(json, ignoreDiscriminator) {
76
66
  'refillPrepaidUnitsFor': json['refillPrepaidUnitsFor'] == null ? undefined : json['refillPrepaidUnitsFor'],
77
67
  'prepaidUnitsExpiry': json['prepaidUnitsExpiry'] == null ? undefined : json['prepaidUnitsExpiry'],
78
68
  'refundUnitsOnCancel': json['refundUnitsOnCancel'] == null ? undefined : json['refundUnitsOnCancel'],
79
- 'defaultFromProduct': json['defaultFromProduct'],
69
+ 'defaultFromProduct': json['defaultFromProduct'] == null ? undefined : json['defaultFromProduct'],
80
70
  'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
81
71
  'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
82
72
  'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
@@ -23,18 +23,6 @@ export interface CreateDocument {
23
23
  * @memberof CreateDocument
24
24
  */
25
25
  templateId: string;
26
- /**
27
- * The ID of the workflow that created the document.
28
- * @type {string}
29
- * @memberof CreateDocument
30
- */
31
- workflowId?: string;
32
- /**
33
- * The ID of the workflow step that created the document.
34
- * @type {string}
35
- * @memberof CreateDocument
36
- */
37
- workflowStepId?: string;
38
26
  /**
39
27
  * The signers of the template
40
28
  * @type {Array<DocumentSigner>}
@@ -47,6 +35,12 @@ export interface CreateDocument {
47
35
  * @memberof CreateDocument
48
36
  */
49
37
  fields?: Array<DocumentField>;
38
+ /**
39
+ * Metadata for the document
40
+ * @type {object}
41
+ * @memberof CreateDocument
42
+ */
43
+ metadata?: object;
50
44
  }
51
45
  /**
52
46
  * Check if a given object implements the CreateDocument interface.
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAYnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAalH"}
1
+ {"version":3,"file":"create-document.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAWnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYlH"}
@@ -35,10 +35,9 @@ function CreateDocumentFromJSONTyped(json, ignoreDiscriminator) {
35
35
  }
36
36
  return {
37
37
  'templateId': json['templateId'],
38
- 'workflowId': json['workflowId'] == null ? undefined : json['workflowId'],
39
- 'workflowStepId': json['workflowStepId'] == null ? undefined : json['workflowStepId'],
40
38
  'signers': json['signers'] == null ? undefined : (json['signers'].map(document_signer_1.DocumentSignerFromJSON)),
41
39
  'fields': json['fields'] == null ? undefined : (json['fields'].map(document_field_1.DocumentFieldFromJSON)),
40
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
42
41
  };
43
42
  }
44
43
  exports.CreateDocumentFromJSONTyped = CreateDocumentFromJSONTyped;
@@ -52,10 +51,9 @@ function CreateDocumentToJSONTyped(value, ignoreDiscriminator = false) {
52
51
  }
53
52
  return {
54
53
  'templateId': value['templateId'],
55
- 'workflowId': value['workflowId'],
56
- 'workflowStepId': value['workflowStepId'],
57
54
  'signers': value['signers'] == null ? undefined : (value['signers'].map(document_signer_1.DocumentSignerToJSON)),
58
55
  'fields': value['fields'] == null ? undefined : (value['fields'].map(document_field_1.DocumentFieldToJSON)),
56
+ 'metadata': value['metadata'],
59
57
  };
60
58
  }
61
59
  exports.CreateDocumentToJSONTyped = CreateDocumentToJSONTyped;
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TransactionPostingEntries } from './transaction-posting-entries';
13
+ import type { ChargeTier } from './charge-tier';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -22,29 +24,203 @@ export interface CreatePlanCharge {
22
24
  */
23
25
  productId: string;
24
26
  /**
25
- * Charge name
27
+ * Name of charge
26
28
  * @type {string}
27
29
  * @memberof CreatePlanCharge
28
30
  */
29
31
  name: string;
32
+ /**
33
+ * Description of charge
34
+ * @type {string}
35
+ * @memberof CreatePlanCharge
36
+ */
37
+ description?: string;
30
38
  /**
31
39
  * Type of charge
32
40
  * @type {string}
33
41
  * @memberof CreatePlanCharge
34
42
  */
35
- type: string;
43
+ type?: string;
44
+ /**
45
+ * timing of one-time charge, to process at start of contract or termination
46
+ * @type {string}
47
+ * @memberof CreatePlanCharge
48
+ */
49
+ timing?: string;
50
+ /**
51
+ * For one-time charges, date charge goes into effect; for custom billing period, provide Billing Period Name
52
+ * @type {string}
53
+ * @memberof CreatePlanCharge
54
+ */
55
+ effectiveDate?: string;
56
+ /**
57
+ * Defines trigger date after which the one-time charges should be processed
58
+ * @type {string}
59
+ * @memberof CreatePlanCharge
60
+ */
61
+ billingDate?: string;
62
+ /**
63
+ * Date can drive bililng and/or revenue recognition upon completion of task
64
+ * @type {string}
65
+ * @memberof CreatePlanCharge
66
+ */
67
+ completionDate?: string;
36
68
  /**
37
- * Original unit price of Charge
69
+ * How charge is priced
70
+ * @type {string}
71
+ * @memberof CreatePlanCharge
72
+ */
73
+ pricingModel?: string;
74
+ /**
75
+ * Original unit price of charge
38
76
  * @type {string}
39
77
  * @memberof CreatePlanCharge
40
78
  */
41
79
  listPrice?: string;
42
80
  /**
43
- * Billing period for recurring and usage based Charges
81
+ * For recurring charges, time of charges
82
+ * @type {string}
83
+ * @memberof CreatePlanCharge
84
+ */
85
+ chargeTiming?: string;
86
+ /**
87
+ * List price base of charge
88
+ * @type {string}
89
+ * @memberof CreatePlanCharge
90
+ */
91
+ listPriceBase?: string;
92
+ /**
93
+ * Billing period
94
+ * @type {string}
95
+ * @memberof CreatePlanCharge
96
+ */
97
+ billingPeriod?: string;
98
+ /**
99
+ * Which day of the month or week Charge is invoiced
100
+ * @type {string}
101
+ * @memberof CreatePlanCharge
102
+ */
103
+ billingDay?: string;
104
+ /**
105
+ * Determine boundary of Charge period
106
+ * @type {string}
107
+ * @memberof CreatePlanCharge
108
+ */
109
+ billingPeriodStartAlignment?: string;
110
+ /**
111
+ * Charge for partial periods
112
+ * @type {boolean}
113
+ * @memberof CreatePlanCharge
114
+ */
115
+ proratePartialPeriods?: boolean;
116
+ /**
117
+ * Number of periods/units to charge
118
+ * @type {number}
119
+ * @memberof CreatePlanCharge
120
+ */
121
+ prepaymentPeriods?: number;
122
+ /**
123
+ * If there is a number of prepayment units you request
124
+ * @type {number}
125
+ * @memberof CreatePlanCharge
126
+ */
127
+ prepaymentAmount?: number;
128
+ /**
129
+ * For usage charges, unit of measure for charge
44
130
  * @type {string}
45
131
  * @memberof CreatePlanCharge
46
132
  */
47
- billingPeriod: string;
133
+ unitOfMeasure?: string;
134
+ /**
135
+ * Number of units included in plan for usage based charges (can be float)
136
+ * @type {number}
137
+ * @memberof CreatePlanCharge
138
+ */
139
+ includedUnits?: number;
140
+ /**
141
+ * Unused prepayment units remaining for charge
142
+ * @type {number}
143
+ * @memberof CreatePlanCharge
144
+ */
145
+ unusedPrepaymentUnits?: number;
146
+ /**
147
+ * For tiered/volume pricing, each tier will represent price of specific units in given range
148
+ * @type {Array<ChargeTier>}
149
+ * @memberof CreatePlanCharge
150
+ */
151
+ tiers?: Array<ChargeTier>;
152
+ /**
153
+ * Determines proration logic
154
+ * @type {boolean}
155
+ * @memberof CreatePlanCharge
156
+ */
157
+ backchargeCurrentPeriod?: boolean;
158
+ /**
159
+ * Custom fields on the invoice
160
+ * @type {object}
161
+ * @memberof CreatePlanCharge
162
+ */
163
+ customFields?: object;
164
+ /**
165
+ * Ability to bill your customers for a present number of units
166
+ * @type {boolean}
167
+ * @memberof CreatePlanCharge
168
+ */
169
+ prepaidUnitsEnable?: boolean;
170
+ /**
171
+ * Ability to automatically refill number of prepaid units
172
+ * @type {boolean}
173
+ * @memberof CreatePlanCharge
174
+ */
175
+ autoRefillPrepaymentUnits?: boolean;
176
+ /**
177
+ * Refill quantity
178
+ * @type {number}
179
+ * @memberof CreatePlanCharge
180
+ */
181
+ refillQty?: number;
182
+ /**
183
+ * Prepayment refill period
184
+ * @type {string}
185
+ * @memberof CreatePlanCharge
186
+ */
187
+ refillPrepaidUnitsFor?: string;
188
+ /**
189
+ * Remaining balance of prepaid units
190
+ * @type {string}
191
+ * @memberof CreatePlanCharge
192
+ */
193
+ prepaidUnitsExpiry?: string;
194
+ /**
195
+ * Remaining balance of prepaid units to be refunded
196
+ * @type {boolean}
197
+ * @memberof CreatePlanCharge
198
+ */
199
+ refundUnitsOnCancel?: boolean;
200
+ /**
201
+ *
202
+ * @type {boolean}
203
+ * @memberof CreatePlanCharge
204
+ */
205
+ defaultFromProduct?: boolean;
206
+ /**
207
+ * Revenue Rule ID
208
+ * @type {string}
209
+ * @memberof CreatePlanCharge
210
+ */
211
+ revenueRuleId?: string;
212
+ /**
213
+ * Date when revenue recognition will begin
214
+ * @type {string}
215
+ * @memberof CreatePlanCharge
216
+ */
217
+ recognitionStartDate?: string;
218
+ /**
219
+ * Transaction type
220
+ * @type {Array<TransactionPostingEntries>}
221
+ * @memberof CreatePlanCharge
222
+ */
223
+ transactionPostingEntries?: Array<TransactionPostingEntries>;
48
224
  }
49
225
  /**
50
226
  * Check if a given object implements the CreatePlanCharge interface.
@@ -1 +1 @@
1
- {"version":3,"file":"create-plan-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-plan-charge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAMnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAYvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAatH"}
1
+ {"version":3,"file":"create-plan-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-plan-charge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQhD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,CAA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;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CAChE;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAInF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAyCvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA0CtH"}
@@ -14,6 +14,8 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CreatePlanChargeToJSONTyped = exports.CreatePlanChargeToJSON = exports.CreatePlanChargeFromJSONTyped = exports.CreatePlanChargeFromJSON = exports.instanceOfCreatePlanCharge = void 0;
17
+ const transaction_posting_entries_1 = require("./transaction-posting-entries");
18
+ const charge_tier_1 = require("./charge-tier");
17
19
  /**
18
20
  * Check if a given object implements the CreatePlanCharge interface.
19
21
  */
@@ -22,10 +24,6 @@ function instanceOfCreatePlanCharge(value) {
22
24
  return false;
23
25
  if (!('name' in value) || value['name'] === undefined)
24
26
  return false;
25
- if (!('type' in value) || value['type'] === undefined)
26
- return false;
27
- if (!('billingPeriod' in value) || value['billingPeriod'] === undefined)
28
- return false;
29
27
  return true;
30
28
  }
31
29
  exports.instanceOfCreatePlanCharge = instanceOfCreatePlanCharge;
@@ -40,9 +38,38 @@ function CreatePlanChargeFromJSONTyped(json, ignoreDiscriminator) {
40
38
  return {
41
39
  'productId': json['productId'],
42
40
  'name': json['name'],
43
- 'type': json['type'],
41
+ 'description': json['description'] == null ? undefined : json['description'],
42
+ 'type': json['type'] == null ? undefined : json['type'],
43
+ 'timing': json['timing'] == null ? undefined : json['timing'],
44
+ 'effectiveDate': json['effectiveDate'] == null ? undefined : json['effectiveDate'],
45
+ 'billingDate': json['billingDate'] == null ? undefined : json['billingDate'],
46
+ 'completionDate': json['completionDate'] == null ? undefined : json['completionDate'],
47
+ 'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
44
48
  'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
45
- 'billingPeriod': json['billingPeriod'],
49
+ 'chargeTiming': json['chargeTiming'] == null ? undefined : json['chargeTiming'],
50
+ 'listPriceBase': json['listPriceBase'] == null ? undefined : json['listPriceBase'],
51
+ 'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
52
+ 'billingDay': json['billingDay'] == null ? undefined : json['billingDay'],
53
+ 'billingPeriodStartAlignment': json['billingPeriodStartAlignment'] == null ? undefined : json['billingPeriodStartAlignment'],
54
+ 'proratePartialPeriods': json['proratePartialPeriods'] == null ? undefined : json['proratePartialPeriods'],
55
+ 'prepaymentPeriods': json['prepaymentPeriods'] == null ? undefined : json['prepaymentPeriods'],
56
+ 'prepaymentAmount': json['prepaymentAmount'] == null ? undefined : json['prepaymentAmount'],
57
+ 'unitOfMeasure': json['unitOfMeasure'] == null ? undefined : json['unitOfMeasure'],
58
+ 'includedUnits': json['includedUnits'] == null ? undefined : json['includedUnits'],
59
+ 'unusedPrepaymentUnits': json['unusedPrepaymentUnits'] == null ? undefined : json['unusedPrepaymentUnits'],
60
+ 'tiers': json['tiers'] == null ? undefined : (json['tiers'].map(charge_tier_1.ChargeTierFromJSON)),
61
+ 'backchargeCurrentPeriod': json['backchargeCurrentPeriod'] == null ? undefined : json['backchargeCurrentPeriod'],
62
+ 'customFields': json['customFields'] == null ? undefined : json['customFields'],
63
+ 'prepaidUnitsEnable': json['prepaidUnitsEnable'] == null ? undefined : json['prepaidUnitsEnable'],
64
+ 'autoRefillPrepaymentUnits': json['autoRefillPrepaymentUnits'] == null ? undefined : json['autoRefillPrepaymentUnits'],
65
+ 'refillQty': json['refillQty'] == null ? undefined : json['refillQty'],
66
+ 'refillPrepaidUnitsFor': json['refillPrepaidUnitsFor'] == null ? undefined : json['refillPrepaidUnitsFor'],
67
+ 'prepaidUnitsExpiry': json['prepaidUnitsExpiry'] == null ? undefined : json['prepaidUnitsExpiry'],
68
+ 'refundUnitsOnCancel': json['refundUnitsOnCancel'] == null ? undefined : json['refundUnitsOnCancel'],
69
+ 'defaultFromProduct': json['defaultFromProduct'] == null ? undefined : json['defaultFromProduct'],
70
+ 'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
71
+ 'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
72
+ 'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
46
73
  };
47
74
  }
48
75
  exports.CreatePlanChargeFromJSONTyped = CreatePlanChargeFromJSONTyped;
@@ -57,9 +84,38 @@ function CreatePlanChargeToJSONTyped(value, ignoreDiscriminator = false) {
57
84
  return {
58
85
  'productId': value['productId'],
59
86
  'name': value['name'],
87
+ 'description': value['description'],
60
88
  'type': value['type'],
89
+ 'timing': value['timing'],
90
+ 'effectiveDate': value['effectiveDate'],
91
+ 'billingDate': value['billingDate'],
92
+ 'completionDate': value['completionDate'],
93
+ 'pricingModel': value['pricingModel'],
61
94
  'listPrice': value['listPrice'],
95
+ 'chargeTiming': value['chargeTiming'],
96
+ 'listPriceBase': value['listPriceBase'],
62
97
  'billingPeriod': value['billingPeriod'],
98
+ 'billingDay': value['billingDay'],
99
+ 'billingPeriodStartAlignment': value['billingPeriodStartAlignment'],
100
+ 'proratePartialPeriods': value['proratePartialPeriods'],
101
+ 'prepaymentPeriods': value['prepaymentPeriods'],
102
+ 'prepaymentAmount': value['prepaymentAmount'],
103
+ 'unitOfMeasure': value['unitOfMeasure'],
104
+ 'includedUnits': value['includedUnits'],
105
+ 'unusedPrepaymentUnits': value['unusedPrepaymentUnits'],
106
+ 'tiers': value['tiers'] == null ? undefined : (value['tiers'].map(charge_tier_1.ChargeTierToJSON)),
107
+ 'backchargeCurrentPeriod': value['backchargeCurrentPeriod'],
108
+ 'customFields': value['customFields'],
109
+ 'prepaidUnitsEnable': value['prepaidUnitsEnable'],
110
+ 'autoRefillPrepaymentUnits': value['autoRefillPrepaymentUnits'],
111
+ 'refillQty': value['refillQty'],
112
+ 'refillPrepaidUnitsFor': value['refillPrepaidUnitsFor'],
113
+ 'prepaidUnitsExpiry': value['prepaidUnitsExpiry'],
114
+ 'refundUnitsOnCancel': value['refundUnitsOnCancel'],
115
+ 'defaultFromProduct': value['defaultFromProduct'],
116
+ 'revenueRuleId': value['revenueRuleId'],
117
+ 'recognitionStartDate': value['recognitionStartDate'],
118
+ 'transactionPostingEntries': value['transactionPostingEntries'] == null ? undefined : (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
63
119
  };
64
120
  }
65
121
  exports.CreatePlanChargeToJSONTyped = CreatePlanChargeToJSONTyped;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { UploadedDocument } from './uploaded-document';
12
13
  import type { Org } from './org';
13
14
  import type { Note } from './note';
14
15
  import type { Communication } from './communication';
@@ -103,6 +104,12 @@ export interface Customer {
103
104
  * @memberof Customer
104
105
  */
105
106
  communications?: Array<Communication>;
107
+ /**
108
+ *
109
+ * @type {Array<UploadedDocument>}
110
+ * @memberof Customer
111
+ */
112
+ documents?: Array<UploadedDocument>;
106
113
  }
107
114
  /**
108
115
  * Check if a given object implements the Customer interface.
@@ -1 +1 @@
1
- {"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../src/generated/models/customer.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;IACV;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IAC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