@managespace/sdk 0.0.39 → 0.0.41

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 (106) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +7 -12
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/generated/apis/default-api.d.ts +43 -8
  4. package/dist/generated/apis/default-api.d.ts.map +1 -1
  5. package/dist/generated/apis/default-api.js +131 -16
  6. package/dist/generated/models/chart-of-accounts-response.d.ts +27 -4
  7. package/dist/generated/models/chart-of-accounts-response.d.ts.map +1 -1
  8. package/dist/generated/models/chart-of-accounts-response.js +19 -4
  9. package/dist/generated/models/configuration-setting-response.d.ts +84 -0
  10. package/dist/generated/models/configuration-setting-response.d.ts.map +1 -0
  11. package/dist/generated/models/configuration-setting-response.js +82 -0
  12. package/dist/generated/models/configuration-setting-type.d.ts +28 -0
  13. package/dist/generated/models/configuration-setting-type.d.ts.map +1 -0
  14. package/dist/generated/models/configuration-setting-type.js +53 -0
  15. package/dist/generated/models/create-billing-run.d.ts +1 -1
  16. package/dist/generated/models/create-billing-run.d.ts.map +1 -1
  17. package/dist/generated/models/create-billing-run.js +1 -3
  18. package/dist/generated/models/create-chart-of-accounts.d.ts +57 -0
  19. package/dist/generated/models/create-chart-of-accounts.d.ts.map +1 -0
  20. package/dist/generated/models/create-chart-of-accounts.js +65 -0
  21. package/dist/generated/models/create-configuration-setting.d.ts +52 -0
  22. package/dist/generated/models/create-configuration-setting.d.ts.map +1 -0
  23. package/dist/generated/models/create-configuration-setting.js +64 -0
  24. package/dist/generated/models/create-contact.d.ts +87 -0
  25. package/dist/generated/models/create-contact.d.ts.map +1 -0
  26. package/dist/generated/models/create-contact.js +81 -0
  27. package/dist/generated/models/create-payment.d.ts +155 -0
  28. package/dist/generated/models/create-payment.d.ts.map +1 -0
  29. package/dist/generated/models/create-payment.js +123 -0
  30. package/dist/generated/models/create-plan-billing.d.ts +58 -0
  31. package/dist/generated/models/create-plan-billing.d.ts.map +1 -0
  32. package/dist/generated/models/create-plan-billing.js +68 -0
  33. package/dist/generated/models/create-product-billing.d.ts +82 -0
  34. package/dist/generated/models/create-product-billing.d.ts.map +1 -0
  35. package/dist/generated/models/create-product-billing.js +84 -0
  36. package/dist/generated/models/create-subscription.d.ts +2 -15
  37. package/dist/generated/models/create-subscription.d.ts.map +1 -1
  38. package/dist/generated/models/create-subscription.js +3 -12
  39. package/dist/generated/models/custom-add-customer-contact.d.ts +34 -0
  40. package/dist/generated/models/custom-add-customer-contact.d.ts.map +1 -0
  41. package/dist/generated/models/custom-add-customer-contact.js +52 -0
  42. package/dist/generated/models/custom-create-contact-with-customer.d.ts +82 -0
  43. package/dist/generated/models/custom-create-contact-with-customer.d.ts.map +1 -0
  44. package/dist/generated/models/custom-create-contact-with-customer.js +78 -0
  45. package/dist/generated/models/customer-delivery-preferences.d.ts +39 -0
  46. package/dist/generated/models/customer-delivery-preferences.d.ts.map +1 -0
  47. package/dist/generated/models/customer-delivery-preferences.js +55 -0
  48. package/dist/generated/models/customer-id.d.ts +33 -0
  49. package/dist/generated/models/customer-id.d.ts.map +1 -0
  50. package/dist/generated/models/customer-id.js +51 -0
  51. package/dist/generated/models/customer-payment-options.d.ts +39 -0
  52. package/dist/generated/models/customer-payment-options.d.ts.map +1 -0
  53. package/dist/generated/models/customer-payment-options.js +55 -0
  54. package/dist/generated/models/get-chart-of-accounts200-response.d.ts +3 -3
  55. package/dist/generated/models/get-chart-of-accounts200-response.d.ts.map +1 -1
  56. package/dist/generated/models/get-chart-of-accounts200-response.js +3 -3
  57. package/dist/generated/models/get-configuration-settings200-response.d.ts +41 -0
  58. package/dist/generated/models/get-configuration-settings200-response.d.ts.map +1 -0
  59. package/dist/generated/models/get-configuration-settings200-response.js +55 -0
  60. package/dist/generated/models/get-customer-response.d.ts +276 -0
  61. package/dist/generated/models/get-customer-response.d.ts.map +1 -0
  62. package/dist/generated/models/get-customer-response.js +214 -0
  63. package/dist/generated/models/get-customers-billing200-response.d.ts +41 -0
  64. package/dist/generated/models/get-customers-billing200-response.d.ts.map +1 -0
  65. package/dist/generated/models/get-customers-billing200-response.js +55 -0
  66. package/dist/generated/models/index.d.ts +6 -5
  67. package/dist/generated/models/index.d.ts.map +1 -1
  68. package/dist/generated/models/index.js +6 -5
  69. package/dist/generated/models/org-response.d.ts +4 -4
  70. package/dist/generated/models/org-response.d.ts.map +1 -1
  71. package/dist/generated/models/org-response.js +5 -5
  72. package/dist/generated/models/product-billing-response.d.ts +142 -0
  73. package/dist/generated/models/product-billing-response.d.ts.map +1 -0
  74. package/dist/generated/models/product-billing-response.js +124 -0
  75. package/dist/generated/models/product-transaction-posting-entries.d.ts +45 -0
  76. package/dist/generated/models/product-transaction-posting-entries.d.ts.map +1 -0
  77. package/dist/generated/models/product-transaction-posting-entries.js +59 -0
  78. package/dist/generated/models/site-response.d.ts +4 -4
  79. package/dist/generated/models/site-response.d.ts.map +1 -1
  80. package/dist/generated/models/site-response.js +5 -5
  81. package/dist/generated/models/update-configuration-setting.d.ts +52 -0
  82. package/dist/generated/models/update-configuration-setting.d.ts.map +1 -0
  83. package/dist/generated/models/update-configuration-setting.js +56 -0
  84. package/dist/generated/models/update-customer.d.ts +57 -0
  85. package/dist/generated/models/update-customer.d.ts.map +1 -0
  86. package/dist/generated/models/update-customer.js +57 -0
  87. package/dist/generated/models/update-product.d.ts +52 -0
  88. package/dist/generated/models/update-product.d.ts.map +1 -0
  89. package/dist/generated/models/update-product.js +60 -0
  90. package/package.json +3 -3
  91. package/src/extensibility/functions/project/billing.ts +9 -13
  92. package/src/generated/.openapi-generator/FILES +6 -5
  93. package/src/generated/apis/default-api.ts +225 -29
  94. package/src/generated/models/chart-of-accounts-response.ts +42 -14
  95. package/src/generated/models/configuration-setting-response.ts +160 -0
  96. package/src/generated/models/configuration-setting-type.ts +55 -0
  97. package/src/generated/models/create-billing-run.ts +2 -3
  98. package/src/generated/models/create-chart-of-accounts.ts +101 -0
  99. package/src/generated/models/create-configuration-setting.ts +103 -0
  100. package/src/generated/models/create-subscription.ts +5 -31
  101. package/src/generated/models/get-chart-of-accounts200-response.ts +10 -10
  102. package/src/generated/models/get-configuration-settings200-response.ts +89 -0
  103. package/src/generated/models/index.ts +6 -5
  104. package/src/generated/models/org-response.ts +13 -13
  105. package/src/generated/models/site-response.ts +13 -13
  106. package/src/generated/models/update-configuration-setting.ts +99 -0
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ManageSpace V2 Auth API
6
+ * ManageSpace Auth API Documentation
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreatePaymentToJSONTyped = exports.CreatePaymentToJSON = exports.CreatePaymentFromJSONTyped = exports.CreatePaymentFromJSON = exports.instanceOfCreatePayment = void 0;
17
+ const create_payment_invoice_1 = require("./create-payment-invoice");
18
+ const create_payment_refund_1 = require("./create-payment-refund");
19
+ /**
20
+ * Check if a given object implements the CreatePayment interface.
21
+ */
22
+ function instanceOfCreatePayment(value) {
23
+ if (!('customerId' in value) || value['customerId'] === undefined)
24
+ return false;
25
+ if (!('paymentDate' in value) || value['paymentDate'] === undefined)
26
+ return false;
27
+ if (!('status' in value) || value['status'] === undefined)
28
+ return false;
29
+ if (!('paymentAmount' in value) || value['paymentAmount'] === undefined)
30
+ return false;
31
+ if (!('feeAmount' in value) || value['feeAmount'] === undefined)
32
+ return false;
33
+ if (!('appliedAmount' in value) || value['appliedAmount'] === undefined)
34
+ return false;
35
+ if (!('unappliedAmount' in value) || value['unappliedAmount'] === undefined)
36
+ return false;
37
+ if (!('paymentType' in value) || value['paymentType'] === undefined)
38
+ return false;
39
+ if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
40
+ return false;
41
+ if (!('saveForLater' in value) || value['saveForLater'] === undefined)
42
+ return false;
43
+ if (!('currency' in value) || value['currency'] === undefined)
44
+ return false;
45
+ if (!('autoApply' in value) || value['autoApply'] === undefined)
46
+ return false;
47
+ if (!('glAccount' in value) || value['glAccount'] === undefined)
48
+ return false;
49
+ if (!('emailStatus' in value) || value['emailStatus'] === undefined)
50
+ return false;
51
+ if (!('customFields' in value) || value['customFields'] === undefined)
52
+ return false;
53
+ if (!('invoices' in value) || value['invoices'] === undefined)
54
+ return false;
55
+ return true;
56
+ }
57
+ exports.instanceOfCreatePayment = instanceOfCreatePayment;
58
+ function CreatePaymentFromJSON(json) {
59
+ return CreatePaymentFromJSONTyped(json, false);
60
+ }
61
+ exports.CreatePaymentFromJSON = CreatePaymentFromJSON;
62
+ function CreatePaymentFromJSONTyped(json, ignoreDiscriminator) {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+ 'customerId': json['customerId'],
68
+ 'paymentDate': json['paymentDate'],
69
+ 'status': json['status'],
70
+ 'paymentAmount': json['paymentAmount'],
71
+ 'feeAmount': json['feeAmount'],
72
+ 'appliedAmount': json['appliedAmount'],
73
+ 'unappliedAmount': json['unappliedAmount'],
74
+ 'paymentType': json['paymentType'],
75
+ 'paymentMethod': json['paymentMethod'],
76
+ 'saveForLater': json['saveForLater'],
77
+ 'currency': json['currency'],
78
+ 'autoApply': json['autoApply'],
79
+ 'glAccount': json['glAccount'],
80
+ 'emailStatus': json['emailStatus'],
81
+ 'customFields': json['customFields'],
82
+ 'notes': json['notes'] == null ? undefined : json['notes'],
83
+ 'paymentToken': json['paymentToken'] == null ? undefined : json['paymentToken'],
84
+ 'referenceNumber': json['referenceNumber'] == null ? undefined : json['referenceNumber'],
85
+ 'gatewayName': json['gatewayName'] == null ? undefined : json['gatewayName'],
86
+ 'invoices': (json['invoices'].map(create_payment_invoice_1.CreatePaymentInvoiceFromJSON)),
87
+ 'refunds': json['refunds'] == null ? undefined : (json['refunds'].map(create_payment_refund_1.CreatePaymentRefundFromJSON)),
88
+ };
89
+ }
90
+ exports.CreatePaymentFromJSONTyped = CreatePaymentFromJSONTyped;
91
+ function CreatePaymentToJSON(json) {
92
+ return CreatePaymentToJSONTyped(json, false);
93
+ }
94
+ exports.CreatePaymentToJSON = CreatePaymentToJSON;
95
+ function CreatePaymentToJSONTyped(value, ignoreDiscriminator = false) {
96
+ if (value == null) {
97
+ return value;
98
+ }
99
+ return {
100
+ 'customerId': value['customerId'],
101
+ 'paymentDate': value['paymentDate'],
102
+ 'status': value['status'],
103
+ 'paymentAmount': value['paymentAmount'],
104
+ 'feeAmount': value['feeAmount'],
105
+ 'appliedAmount': value['appliedAmount'],
106
+ 'unappliedAmount': value['unappliedAmount'],
107
+ 'paymentType': value['paymentType'],
108
+ 'paymentMethod': value['paymentMethod'],
109
+ 'saveForLater': value['saveForLater'],
110
+ 'currency': value['currency'],
111
+ 'autoApply': value['autoApply'],
112
+ 'glAccount': value['glAccount'],
113
+ 'emailStatus': value['emailStatus'],
114
+ 'customFields': value['customFields'],
115
+ 'notes': value['notes'],
116
+ 'paymentToken': value['paymentToken'],
117
+ 'referenceNumber': value['referenceNumber'],
118
+ 'gatewayName': value['gatewayName'],
119
+ 'invoices': (value['invoices'].map(create_payment_invoice_1.CreatePaymentInvoiceToJSON)),
120
+ 'refunds': value['refunds'] == null ? undefined : (value['refunds'].map(create_payment_refund_1.CreatePaymentRefundToJSON)),
121
+ };
122
+ }
123
+ exports.CreatePaymentToJSONTyped = CreatePaymentToJSONTyped;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * ManageSpace V2 Auth API
3
+ * ManageSpace Auth API Documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CreatePlanCharge } from './create-plan-charge';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreatePlanBilling
17
+ */
18
+ export interface CreatePlanBilling {
19
+ /**
20
+ * Name of plan
21
+ * @type {string}
22
+ * @memberof CreatePlanBilling
23
+ */
24
+ name: string;
25
+ /**
26
+ * Plan status
27
+ * @type {string}
28
+ * @memberof CreatePlanBilling
29
+ */
30
+ status: string;
31
+ /**
32
+ * Description of plan
33
+ * @type {string}
34
+ * @memberof CreatePlanBilling
35
+ */
36
+ description: string;
37
+ /**
38
+ * URL used for self sign up
39
+ * @type {string}
40
+ * @memberof CreatePlanBilling
41
+ */
42
+ publicUrl: string;
43
+ /**
44
+ * Charges associated with plan
45
+ * @type {Array<CreatePlanCharge>}
46
+ * @memberof CreatePlanBilling
47
+ */
48
+ charges: Array<CreatePlanCharge>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the CreatePlanBilling interface.
52
+ */
53
+ export declare function instanceOfCreatePlanBilling(value: object): value is CreatePlanBilling;
54
+ export declare function CreatePlanBillingFromJSON(json: any): CreatePlanBilling;
55
+ export declare function CreatePlanBillingFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePlanBilling;
56
+ export declare function CreatePlanBillingToJSON(json: any): CreatePlanBilling;
57
+ export declare function CreatePlanBillingToJSONTyped(value?: CreatePlanBilling | null, ignoreDiscriminator?: boolean): any;
58
+ //# sourceMappingURL=create-plan-billing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-plan-billing.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-plan-billing.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAQ7D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAOrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAYzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAaxH"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ManageSpace V2 Auth API
6
+ * ManageSpace Auth API Documentation
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreatePlanBillingToJSONTyped = exports.CreatePlanBillingToJSON = exports.CreatePlanBillingFromJSONTyped = exports.CreatePlanBillingFromJSON = exports.instanceOfCreatePlanBilling = void 0;
17
+ const create_plan_charge_1 = require("./create-plan-charge");
18
+ /**
19
+ * Check if a given object implements the CreatePlanBilling interface.
20
+ */
21
+ function instanceOfCreatePlanBilling(value) {
22
+ if (!('name' in value) || value['name'] === undefined)
23
+ return false;
24
+ if (!('status' in value) || value['status'] === undefined)
25
+ return false;
26
+ if (!('description' in value) || value['description'] === undefined)
27
+ return false;
28
+ if (!('publicUrl' in value) || value['publicUrl'] === undefined)
29
+ return false;
30
+ if (!('charges' in value) || value['charges'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ exports.instanceOfCreatePlanBilling = instanceOfCreatePlanBilling;
35
+ function CreatePlanBillingFromJSON(json) {
36
+ return CreatePlanBillingFromJSONTyped(json, false);
37
+ }
38
+ exports.CreatePlanBillingFromJSON = CreatePlanBillingFromJSON;
39
+ function CreatePlanBillingFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'name': json['name'],
45
+ 'status': json['status'],
46
+ 'description': json['description'],
47
+ 'publicUrl': json['publicUrl'],
48
+ 'charges': (json['charges'].map(create_plan_charge_1.CreatePlanChargeFromJSON)),
49
+ };
50
+ }
51
+ exports.CreatePlanBillingFromJSONTyped = CreatePlanBillingFromJSONTyped;
52
+ function CreatePlanBillingToJSON(json) {
53
+ return CreatePlanBillingToJSONTyped(json, false);
54
+ }
55
+ exports.CreatePlanBillingToJSON = CreatePlanBillingToJSON;
56
+ function CreatePlanBillingToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'name': value['name'],
62
+ 'status': value['status'],
63
+ 'description': value['description'],
64
+ 'publicUrl': value['publicUrl'],
65
+ 'charges': (value['charges'].map(create_plan_charge_1.CreatePlanChargeToJSON)),
66
+ };
67
+ }
68
+ exports.CreatePlanBillingToJSONTyped = CreatePlanBillingToJSONTyped;
@@ -0,0 +1,82 @@
1
+ /**
2
+ * ManageSpace V2 Auth API
3
+ * ManageSpace Auth API Documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ProductTransactionPostingEntries } from './product-transaction-posting-entries';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateProductBilling
17
+ */
18
+ export interface CreateProductBilling {
19
+ /**
20
+ * Name of product
21
+ * @type {string}
22
+ * @memberof CreateProductBilling
23
+ */
24
+ name: string;
25
+ /**
26
+ * Stock keeping unit
27
+ * @type {string}
28
+ * @memberof CreateProductBilling
29
+ */
30
+ sku: string;
31
+ /**
32
+ * Product status
33
+ * @type {string}
34
+ * @memberof CreateProductBilling
35
+ */
36
+ status: string;
37
+ /**
38
+ * Describes whether product is taxable or not
39
+ * @type {boolean}
40
+ * @memberof CreateProductBilling
41
+ */
42
+ taxable: boolean;
43
+ /**
44
+ * Description of product
45
+ * @type {string}
46
+ * @memberof CreateProductBilling
47
+ */
48
+ description: string;
49
+ /**
50
+ * Product price
51
+ * @type {string}
52
+ * @memberof CreateProductBilling
53
+ */
54
+ price: string;
55
+ /**
56
+ * ID of revenue
57
+ * @type {string}
58
+ * @memberof CreateProductBilling
59
+ */
60
+ revenueRuleId: string;
61
+ /**
62
+ * Date revenue will begin to be recognized
63
+ * @type {string}
64
+ * @memberof CreateProductBilling
65
+ */
66
+ recognitionStartDate: string;
67
+ /**
68
+ * Product ID
69
+ * @type {Array<ProductTransactionPostingEntries>}
70
+ * @memberof CreateProductBilling
71
+ */
72
+ transactionPostingEntries: Array<ProductTransactionPostingEntries>;
73
+ }
74
+ /**
75
+ * Check if a given object implements the CreateProductBilling interface.
76
+ */
77
+ export declare function instanceOfCreateProductBilling(value: object): value is CreateProductBilling;
78
+ export declare function CreateProductBillingFromJSON(json: any): CreateProductBilling;
79
+ export declare function CreateProductBillingFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductBilling;
80
+ export declare function CreateProductBillingToJSON(json: any): CreateProductBilling;
81
+ export declare function CreateProductBillingToJSONTyped(value?: CreateProductBilling | null, ignoreDiscriminator?: boolean): any;
82
+ //# sourceMappingURL=create-product-billing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-product-billing.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-product-billing.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAQ9F;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,yBAAyB,EAAE,KAAK,CAAC,gCAAgC,CAAC,CAAC;CACtE;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAW3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAgB/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiB9H"}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ManageSpace V2 Auth API
6
+ * ManageSpace Auth API Documentation
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateProductBillingToJSONTyped = exports.CreateProductBillingToJSON = exports.CreateProductBillingFromJSONTyped = exports.CreateProductBillingFromJSON = exports.instanceOfCreateProductBilling = void 0;
17
+ const product_transaction_posting_entries_1 = require("./product-transaction-posting-entries");
18
+ /**
19
+ * Check if a given object implements the CreateProductBilling interface.
20
+ */
21
+ function instanceOfCreateProductBilling(value) {
22
+ if (!('name' in value) || value['name'] === undefined)
23
+ return false;
24
+ if (!('sku' in value) || value['sku'] === undefined)
25
+ return false;
26
+ if (!('status' in value) || value['status'] === undefined)
27
+ return false;
28
+ if (!('taxable' in value) || value['taxable'] === undefined)
29
+ return false;
30
+ if (!('description' in value) || value['description'] === undefined)
31
+ return false;
32
+ if (!('price' in value) || value['price'] === undefined)
33
+ return false;
34
+ if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined)
35
+ return false;
36
+ if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined)
37
+ return false;
38
+ if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ exports.instanceOfCreateProductBilling = instanceOfCreateProductBilling;
43
+ function CreateProductBillingFromJSON(json) {
44
+ return CreateProductBillingFromJSONTyped(json, false);
45
+ }
46
+ exports.CreateProductBillingFromJSON = CreateProductBillingFromJSON;
47
+ function CreateProductBillingFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'name': json['name'],
53
+ 'sku': json['sku'],
54
+ 'status': json['status'],
55
+ 'taxable': json['taxable'],
56
+ 'description': json['description'],
57
+ 'price': json['price'],
58
+ 'revenueRuleId': json['revenueRuleId'],
59
+ 'recognitionStartDate': json['recognitionStartDate'],
60
+ 'transactionPostingEntries': (json['transactionPostingEntries'].map(product_transaction_posting_entries_1.ProductTransactionPostingEntriesFromJSON)),
61
+ };
62
+ }
63
+ exports.CreateProductBillingFromJSONTyped = CreateProductBillingFromJSONTyped;
64
+ function CreateProductBillingToJSON(json) {
65
+ return CreateProductBillingToJSONTyped(json, false);
66
+ }
67
+ exports.CreateProductBillingToJSON = CreateProductBillingToJSON;
68
+ function CreateProductBillingToJSONTyped(value, ignoreDiscriminator = false) {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+ 'name': value['name'],
74
+ 'sku': value['sku'],
75
+ 'status': value['status'],
76
+ 'taxable': value['taxable'],
77
+ 'description': value['description'],
78
+ 'price': value['price'],
79
+ 'revenueRuleId': value['revenueRuleId'],
80
+ 'recognitionStartDate': value['recognitionStartDate'],
81
+ 'transactionPostingEntries': (value['transactionPostingEntries'].map(product_transaction_posting_entries_1.ProductTransactionPostingEntriesToJSON)),
82
+ };
83
+ }
84
+ exports.CreateProductBillingToJSONTyped = CreateProductBillingToJSONTyped;
@@ -9,19 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { CreateSubscriptionPlan } from './create-subscription-plan';
13
12
  /**
14
13
  *
15
14
  * @export
16
15
  * @interface CreateSubscription
17
16
  */
18
17
  export interface CreateSubscription {
19
- /**
20
- * Asset id associated with subscription
21
- * @type {string}
22
- * @memberof CreateSubscription
23
- */
24
- assetId: string;
25
18
  /**
26
19
  * Status of subscription contract
27
20
  * @type {string}
@@ -46,18 +39,12 @@ export interface CreateSubscription {
46
39
  * @memberof CreateSubscription
47
40
  */
48
41
  billingStartDate: string;
49
- /**
50
- * separate invoice generated
51
- * @type {boolean}
52
- * @memberof CreateSubscription
53
- */
54
- separateInvoice: boolean;
55
42
  /**
56
43
  * Subscription plan details
57
- * @type {Array<CreateSubscriptionPlan>}
44
+ * @type {Array<string>}
58
45
  * @memberof CreateSubscription
59
46
  */
60
- plans: Array<CreateSubscriptionPlan>;
47
+ planIds: Array<string>;
61
48
  }
62
49
  /**
63
50
  * Check if a given object implements the CreateSubscription interface.
@@ -1 +1 @@
1
- {"version":3,"file":"create-subscription.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-subscription.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAQzE;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CACxC;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CASvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAc3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAe1H"}
1
+ {"version":3,"file":"create-subscription.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-subscription.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAOvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAY3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa1H"}
@@ -14,13 +14,10 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CreateSubscriptionToJSONTyped = exports.CreateSubscriptionToJSON = exports.CreateSubscriptionFromJSONTyped = exports.CreateSubscriptionFromJSON = exports.instanceOfCreateSubscription = void 0;
17
- const create_subscription_plan_1 = require("./create-subscription-plan");
18
17
  /**
19
18
  * Check if a given object implements the CreateSubscription interface.
20
19
  */
21
20
  function instanceOfCreateSubscription(value) {
22
- if (!('assetId' in value) || value['assetId'] === undefined)
23
- return false;
24
21
  if (!('status' in value) || value['status'] === undefined)
25
22
  return false;
26
23
  if (!('serviceStartDate' in value) || value['serviceStartDate'] === undefined)
@@ -29,9 +26,7 @@ function instanceOfCreateSubscription(value) {
29
26
  return false;
30
27
  if (!('billingStartDate' in value) || value['billingStartDate'] === undefined)
31
28
  return false;
32
- if (!('separateInvoice' in value) || value['separateInvoice'] === undefined)
33
- return false;
34
- if (!('plans' in value) || value['plans'] === undefined)
29
+ if (!('planIds' in value) || value['planIds'] === undefined)
35
30
  return false;
36
31
  return true;
37
32
  }
@@ -45,13 +40,11 @@ function CreateSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
45
40
  return json;
46
41
  }
47
42
  return {
48
- 'assetId': json['assetId'],
49
43
  'status': json['status'],
50
44
  'serviceStartDate': json['serviceStartDate'],
51
45
  'contractEffectiveDate': json['contractEffectiveDate'],
52
46
  'billingStartDate': json['billingStartDate'],
53
- 'separateInvoice': json['separateInvoice'],
54
- 'plans': (json['plans'].map(create_subscription_plan_1.CreateSubscriptionPlanFromJSON)),
47
+ 'planIds': json['planIds'],
55
48
  };
56
49
  }
57
50
  exports.CreateSubscriptionFromJSONTyped = CreateSubscriptionFromJSONTyped;
@@ -64,13 +57,11 @@ function CreateSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
64
57
  return value;
65
58
  }
66
59
  return {
67
- 'assetId': value['assetId'],
68
60
  'status': value['status'],
69
61
  'serviceStartDate': value['serviceStartDate'],
70
62
  'contractEffectiveDate': value['contractEffectiveDate'],
71
63
  'billingStartDate': value['billingStartDate'],
72
- 'separateInvoice': value['separateInvoice'],
73
- 'plans': (value['plans'].map(create_subscription_plan_1.CreateSubscriptionPlanToJSON)),
64
+ 'planIds': value['planIds'],
74
65
  };
75
66
  }
76
67
  exports.CreateSubscriptionToJSONTyped = CreateSubscriptionToJSONTyped;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * ManageSpace V2 Auth API
3
+ * ManageSpace Auth API Documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CustomCreateContactWithCustomer } from './custom-create-contact-with-customer';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CustomAddCustomerContact
17
+ */
18
+ export interface CustomAddCustomerContact {
19
+ /**
20
+ * Contact information.
21
+ * @type {Array<CustomCreateContactWithCustomer>}
22
+ * @memberof CustomAddCustomerContact
23
+ */
24
+ contacts: Array<CustomCreateContactWithCustomer>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CustomAddCustomerContact interface.
28
+ */
29
+ export declare function instanceOfCustomAddCustomerContact(value: object): value is CustomAddCustomerContact;
30
+ export declare function CustomAddCustomerContactFromJSON(json: any): CustomAddCustomerContact;
31
+ export declare function CustomAddCustomerContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomAddCustomerContact;
32
+ export declare function CustomAddCustomerContactToJSON(json: any): CustomAddCustomerContact;
33
+ export declare function CustomAddCustomerContactToJSONTyped(value?: CustomAddCustomerContact | null, ignoreDiscriminator?: boolean): any;
34
+ //# sourceMappingURL=custom-add-customer-contact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-add-customer-contact.d.ts","sourceRoot":"","sources":["../../../src/generated/models/custom-add-customer-contact.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAQ7F;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,+BAA+B,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wBAAwB,CAGnG;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAQvH;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAElF;AAED,wBAAgB,mCAAmC,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAStI"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ManageSpace V2 Auth API
6
+ * ManageSpace Auth API Documentation
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CustomAddCustomerContactToJSONTyped = exports.CustomAddCustomerContactToJSON = exports.CustomAddCustomerContactFromJSONTyped = exports.CustomAddCustomerContactFromJSON = exports.instanceOfCustomAddCustomerContact = void 0;
17
+ const custom_create_contact_with_customer_1 = require("./custom-create-contact-with-customer");
18
+ /**
19
+ * Check if a given object implements the CustomAddCustomerContact interface.
20
+ */
21
+ function instanceOfCustomAddCustomerContact(value) {
22
+ if (!('contacts' in value) || value['contacts'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ exports.instanceOfCustomAddCustomerContact = instanceOfCustomAddCustomerContact;
27
+ function CustomAddCustomerContactFromJSON(json) {
28
+ return CustomAddCustomerContactFromJSONTyped(json, false);
29
+ }
30
+ exports.CustomAddCustomerContactFromJSON = CustomAddCustomerContactFromJSON;
31
+ function CustomAddCustomerContactFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'contacts': (json['contacts'].map(custom_create_contact_with_customer_1.CustomCreateContactWithCustomerFromJSON)),
37
+ };
38
+ }
39
+ exports.CustomAddCustomerContactFromJSONTyped = CustomAddCustomerContactFromJSONTyped;
40
+ function CustomAddCustomerContactToJSON(json) {
41
+ return CustomAddCustomerContactToJSONTyped(json, false);
42
+ }
43
+ exports.CustomAddCustomerContactToJSON = CustomAddCustomerContactToJSON;
44
+ function CustomAddCustomerContactToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'contacts': (value['contacts'].map(custom_create_contact_with_customer_1.CustomCreateContactWithCustomerToJSON)),
50
+ };
51
+ }
52
+ exports.CustomAddCustomerContactToJSONTyped = CustomAddCustomerContactToJSONTyped;