@managespace/sdk 0.0.95 → 0.0.97

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 (78) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +10 -7
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/generated/apis/default-api.d.ts +0 -2
  4. package/dist/generated/apis/default-api.d.ts.map +1 -1
  5. package/dist/generated/apis/default-api.js +1 -7
  6. package/dist/generated/models/create-order.d.ts +6 -6
  7. package/dist/generated/models/create-order.d.ts.map +1 -1
  8. package/dist/generated/models/create-order.js +4 -2
  9. package/dist/generated/models/order-response.d.ts +6 -12
  10. package/dist/generated/models/order-response.d.ts.map +1 -1
  11. package/dist/generated/models/order-response.js +4 -6
  12. package/dist/generated/models/subscription-response.d.ts +6 -0
  13. package/dist/generated/models/subscription-response.d.ts.map +1 -1
  14. package/dist/generated/models/subscription-response.js +4 -0
  15. package/package.json +2 -2
  16. package/src/extensibility/functions/project/billing.ts +8 -7
  17. package/src/generated/apis/default-api.ts +1 -14
  18. package/src/generated/models/create-order.ts +9 -8
  19. package/src/generated/models/order-response.ts +9 -17
  20. package/src/generated/models/subscription-response.ts +9 -0
  21. package/.turbo/turbo-build.log +0 -2
  22. package/dist/generated/models/cancel-subscription-billing.d.ts +0 -39
  23. package/dist/generated/models/cancel-subscription-billing.d.ts.map +0 -1
  24. package/dist/generated/models/cancel-subscription-billing.js +0 -55
  25. package/dist/generated/models/chart-of-account-response.d.ts +0 -99
  26. package/dist/generated/models/chart-of-account-response.d.ts.map +0 -1
  27. package/dist/generated/models/chart-of-account-response.js +0 -95
  28. package/dist/generated/models/configuration-response.d.ts +0 -77
  29. package/dist/generated/models/configuration-response.d.ts.map +0 -1
  30. package/dist/generated/models/configuration-response.js +0 -77
  31. package/dist/generated/models/contact-id.d.ts +0 -33
  32. package/dist/generated/models/contact-id.d.ts.map +0 -1
  33. package/dist/generated/models/contact-id.js +0 -51
  34. package/dist/generated/models/create-payment-billing.d.ts +0 -155
  35. package/dist/generated/models/create-payment-billing.d.ts.map +0 -1
  36. package/dist/generated/models/create-payment-billing.js +0 -133
  37. package/dist/generated/models/create-plan.d.ts +0 -52
  38. package/dist/generated/models/create-plan.d.ts.map +0 -1
  39. package/dist/generated/models/create-plan.js +0 -64
  40. package/dist/generated/models/create-product.d.ts +0 -45
  41. package/dist/generated/models/create-product.d.ts.map +0 -1
  42. package/dist/generated/models/create-product.js +0 -57
  43. package/dist/generated/models/create-stock-status.d.ts +0 -39
  44. package/dist/generated/models/create-stock-status.d.ts.map +0 -1
  45. package/dist/generated/models/create-stock-status.js +0 -55
  46. package/dist/generated/models/create-subscription-billing.d.ts +0 -166
  47. package/dist/generated/models/create-subscription-billing.d.ts.map +0 -1
  48. package/dist/generated/models/create-subscription-billing.js +0 -140
  49. package/dist/generated/models/custom-chart-of-account.d.ts +0 -57
  50. package/dist/generated/models/custom-chart-of-account.d.ts.map +0 -1
  51. package/dist/generated/models/custom-chart-of-account.js +0 -67
  52. package/dist/generated/models/custom-chart-of-accounts.d.ts +0 -34
  53. package/dist/generated/models/custom-chart-of-accounts.d.ts.map +0 -1
  54. package/dist/generated/models/custom-chart-of-accounts.js +0 -52
  55. package/dist/generated/models/document-urls-response.d.ts +0 -33
  56. package/dist/generated/models/document-urls-response.d.ts.map +0 -1
  57. package/dist/generated/models/document-urls-response.js +0 -51
  58. package/dist/generated/models/get-contact-response.d.ts +0 -159
  59. package/dist/generated/models/get-contact-response.d.ts.map +0 -1
  60. package/dist/generated/models/get-contact-response.js +0 -135
  61. package/dist/generated/models/get-invoice-billing200-response.d.ts +0 -41
  62. package/dist/generated/models/get-invoice-billing200-response.d.ts.map +0 -1
  63. package/dist/generated/models/get-invoice-billing200-response.js +0 -55
  64. package/dist/generated/models/plan-charge-response.d.ts +0 -166
  65. package/dist/generated/models/plan-charge-response.d.ts.map +0 -1
  66. package/dist/generated/models/plan-charge-response.js +0 -140
  67. package/dist/generated/models/plan-response.d.ts +0 -128
  68. package/dist/generated/models/plan-response.d.ts.map +0 -1
  69. package/dist/generated/models/plan-response.js +0 -106
  70. package/dist/generated/models/product-response.d.ts +0 -97
  71. package/dist/generated/models/product-response.d.ts.map +0 -1
  72. package/dist/generated/models/product-response.js +0 -87
  73. package/dist/generated/models/stock-status-response.d.ts +0 -59
  74. package/dist/generated/models/stock-status-response.d.ts.map +0 -1
  75. package/dist/generated/models/stock-status-response.js +0 -65
  76. package/dist/generated/models/update-extensibility-repo.d.ts +0 -57
  77. package/dist/generated/models/update-extensibility-repo.d.ts.map +0 -1
  78. package/dist/generated/models/update-extensibility-repo.js +0 -67
@@ -1 +0,0 @@
1
- {"version":3,"file":"configuration-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/configuration-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAOlD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAQpD;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,GAAG,CAAC,EAAE,WAAW,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAQ7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAejH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgBhI"}
@@ -1,77 +0,0 @@
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.ConfigurationResponseToJSONTyped = exports.ConfigurationResponseToJSON = exports.ConfigurationResponseFromJSONTyped = exports.ConfigurationResponseFromJSON = exports.instanceOfConfigurationResponse = void 0;
17
- const org_response_1 = require("./org-response");
18
- const site_response_1 = require("./site-response");
19
- /**
20
- * Check if a given object implements the ConfigurationResponse interface.
21
- */
22
- function instanceOfConfigurationResponse(value) {
23
- if (!('id' in value) || value['id'] === undefined)
24
- return false;
25
- if (!('orgId' in value) || value['orgId'] === undefined)
26
- return false;
27
- if (!('siteId' in value) || value['siteId'] === undefined)
28
- return false;
29
- if (!('name' in value) || value['name'] === undefined)
30
- return false;
31
- if (!('description' in value) || value['description'] === undefined)
32
- return false;
33
- if (!('type' in value) || value['type'] === undefined)
34
- return false;
35
- return true;
36
- }
37
- exports.instanceOfConfigurationResponse = instanceOfConfigurationResponse;
38
- function ConfigurationResponseFromJSON(json) {
39
- return ConfigurationResponseFromJSONTyped(json, false);
40
- }
41
- exports.ConfigurationResponseFromJSON = ConfigurationResponseFromJSON;
42
- function ConfigurationResponseFromJSONTyped(json, ignoreDiscriminator) {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
- 'id': json['id'],
48
- 'org': json['org'] == null ? undefined : (0, org_response_1.OrgResponseFromJSON)(json['org']),
49
- 'orgId': json['orgId'],
50
- 'site': json['site'] == null ? undefined : (0, site_response_1.SiteResponseFromJSON)(json['site']),
51
- 'siteId': json['siteId'],
52
- 'name': json['name'],
53
- 'description': json['description'],
54
- 'type': json['type'],
55
- };
56
- }
57
- exports.ConfigurationResponseFromJSONTyped = ConfigurationResponseFromJSONTyped;
58
- function ConfigurationResponseToJSON(json) {
59
- return ConfigurationResponseToJSONTyped(json, false);
60
- }
61
- exports.ConfigurationResponseToJSON = ConfigurationResponseToJSON;
62
- function ConfigurationResponseToJSONTyped(value, ignoreDiscriminator = false) {
63
- if (value == null) {
64
- return value;
65
- }
66
- return {
67
- 'id': value['id'],
68
- 'org': (0, org_response_1.OrgResponseToJSON)(value['org']),
69
- 'orgId': value['orgId'],
70
- 'site': (0, site_response_1.SiteResponseToJSON)(value['site']),
71
- 'siteId': value['siteId'],
72
- 'name': value['name'],
73
- 'description': value['description'],
74
- 'type': value['type'],
75
- };
76
- }
77
- exports.ConfigurationResponseToJSONTyped = ConfigurationResponseToJSONTyped;
@@ -1,33 +0,0 @@
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
- /**
13
- *
14
- * @export
15
- * @interface ContactId
16
- */
17
- export interface ContactId {
18
- /**
19
- * The contact Id
20
- * @type {string}
21
- * @memberof ContactId
22
- */
23
- contactId: string;
24
- }
25
- /**
26
- * Check if a given object implements the ContactId interface.
27
- */
28
- export declare function instanceOfContactId(value: object): value is ContactId;
29
- export declare function ContactIdFromJSON(json: any): ContactId;
30
- export declare function ContactIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactId;
31
- export declare function ContactIdToJSON(json: any): ContactId;
32
- export declare function ContactIdToJSONTyped(value?: ContactId | null, ignoreDiscriminator?: boolean): any;
33
- //# sourceMappingURL=contact-id.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contact-id.d.ts","sourceRoot":"","sources":["../../../src/generated/models/contact-id.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAGrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAQzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxG"}
@@ -1,51 +0,0 @@
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.ContactIdToJSONTyped = exports.ContactIdToJSON = exports.ContactIdFromJSONTyped = exports.ContactIdFromJSON = exports.instanceOfContactId = void 0;
17
- /**
18
- * Check if a given object implements the ContactId interface.
19
- */
20
- function instanceOfContactId(value) {
21
- if (!('contactId' in value) || value['contactId'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- exports.instanceOfContactId = instanceOfContactId;
26
- function ContactIdFromJSON(json) {
27
- return ContactIdFromJSONTyped(json, false);
28
- }
29
- exports.ContactIdFromJSON = ContactIdFromJSON;
30
- function ContactIdFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'contactId': json['contactId'],
36
- };
37
- }
38
- exports.ContactIdFromJSONTyped = ContactIdFromJSONTyped;
39
- function ContactIdToJSON(json) {
40
- return ContactIdToJSONTyped(json, false);
41
- }
42
- exports.ContactIdToJSON = ContactIdToJSON;
43
- function ContactIdToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'contactId': value['contactId'],
49
- };
50
- }
51
- exports.ContactIdToJSONTyped = ContactIdToJSONTyped;
@@ -1,155 +0,0 @@
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 { CreatePaymentInvoice } from './create-payment-invoice';
13
- import type { CreatePaymentRefund } from './create-payment-refund';
14
- /**
15
- *
16
- * @export
17
- * @interface CreatePaymentBilling
18
- */
19
- export interface CreatePaymentBilling {
20
- /**
21
- * Customer Id
22
- * @type {string}
23
- * @memberof CreatePaymentBilling
24
- */
25
- customerId: string;
26
- /**
27
- * Date of payment transaction
28
- * @type {string}
29
- * @memberof CreatePaymentBilling
30
- */
31
- paymentDate: string;
32
- /**
33
- * Status of payment
34
- * @type {string}
35
- * @memberof CreatePaymentBilling
36
- */
37
- status: string;
38
- /**
39
- * Total amount of payment
40
- * @type {string}
41
- * @memberof CreatePaymentBilling
42
- */
43
- paymentAmount: string;
44
- /**
45
- * Transaction Fee
46
- * @type {string}
47
- * @memberof CreatePaymentBilling
48
- */
49
- feeAmount: string;
50
- /**
51
- * Amount of payment applied to invoices
52
- * @type {string}
53
- * @memberof CreatePaymentBilling
54
- */
55
- appliedAmount: string;
56
- /**
57
- * Amount of payment not yet applied to invoices
58
- * @type {string}
59
- * @memberof CreatePaymentBilling
60
- */
61
- unappliedAmount: string;
62
- /**
63
- * External or Electronic payments
64
- * @type {string}
65
- * @memberof CreatePaymentBilling
66
- */
67
- paymentType: string;
68
- /**
69
- * Method of payment
70
- * @type {string}
71
- * @memberof CreatePaymentBilling
72
- */
73
- paymentMethod: string;
74
- /**
75
- * Payment method saved and used for future billing
76
- * @type {boolean}
77
- * @memberof CreatePaymentBilling
78
- */
79
- saveForLater: boolean;
80
- /**
81
- * Currency
82
- * @type {string}
83
- * @memberof CreatePaymentBilling
84
- */
85
- currency: string;
86
- /**
87
- * Automatically apply unapplied amount to next invoice
88
- * @type {boolean}
89
- * @memberof CreatePaymentBilling
90
- */
91
- autoApply: boolean;
92
- /**
93
- * General Ledger account
94
- * @type {string}
95
- * @memberof CreatePaymentBilling
96
- */
97
- glAccount: string;
98
- /**
99
- * Generate email
100
- * @type {boolean}
101
- * @memberof CreatePaymentBilling
102
- */
103
- emailStatus: boolean;
104
- /**
105
- * Custom fields on the invoice
106
- * @type {object}
107
- * @memberof CreatePaymentBilling
108
- */
109
- customFields: object;
110
- /**
111
- * Miscellaneous notes
112
- * @type {string}
113
- * @memberof CreatePaymentBilling
114
- */
115
- notes: string;
116
- /**
117
- * Payment token
118
- * @type {string}
119
- * @memberof CreatePaymentBilling
120
- */
121
- paymentToken: string;
122
- /**
123
- * Reference number for payment transaction
124
- * @type {string}
125
- * @memberof CreatePaymentBilling
126
- */
127
- referenceNumber: string;
128
- /**
129
- * Gateway Name for electronic payment
130
- * @type {string}
131
- * @memberof CreatePaymentBilling
132
- */
133
- gatewayName: string;
134
- /**
135
- * List of invoices paid by payment
136
- * @type {Array<CreatePaymentInvoice>}
137
- * @memberof CreatePaymentBilling
138
- */
139
- invoices: Array<CreatePaymentInvoice>;
140
- /**
141
- * List of refunds associated with payment
142
- * @type {Array<CreatePaymentRefund>}
143
- * @memberof CreatePaymentBilling
144
- */
145
- refunds: Array<CreatePaymentRefund>;
146
- }
147
- /**
148
- * Check if a given object implements the CreatePaymentBilling interface.
149
- */
150
- export declare function instanceOfCreatePaymentBilling(value: object): value is CreatePaymentBilling;
151
- export declare function CreatePaymentBillingFromJSON(json: any): CreatePaymentBilling;
152
- export declare function CreatePaymentBillingFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePaymentBilling;
153
- export declare function CreatePaymentBillingToJSON(json: any): CreatePaymentBilling;
154
- export declare function CreatePaymentBillingToJSONTyped(value?: CreatePaymentBilling | null, ignoreDiscriminator?: boolean): any;
155
- //# sourceMappingURL=create-payment-billing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-payment-billing.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-payment-billing.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAOrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAQnE;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACtC;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACvC;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAuB3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CA4B/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,CA6B9H"}
@@ -1,133 +0,0 @@
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.CreatePaymentBillingToJSONTyped = exports.CreatePaymentBillingToJSON = exports.CreatePaymentBillingFromJSONTyped = exports.CreatePaymentBillingFromJSON = exports.instanceOfCreatePaymentBilling = 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 CreatePaymentBilling interface.
21
- */
22
- function instanceOfCreatePaymentBilling(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 (!('notes' in value) || value['notes'] === undefined)
54
- return false;
55
- if (!('paymentToken' in value) || value['paymentToken'] === undefined)
56
- return false;
57
- if (!('referenceNumber' in value) || value['referenceNumber'] === undefined)
58
- return false;
59
- if (!('gatewayName' in value) || value['gatewayName'] === undefined)
60
- return false;
61
- if (!('invoices' in value) || value['invoices'] === undefined)
62
- return false;
63
- if (!('refunds' in value) || value['refunds'] === undefined)
64
- return false;
65
- return true;
66
- }
67
- exports.instanceOfCreatePaymentBilling = instanceOfCreatePaymentBilling;
68
- function CreatePaymentBillingFromJSON(json) {
69
- return CreatePaymentBillingFromJSONTyped(json, false);
70
- }
71
- exports.CreatePaymentBillingFromJSON = CreatePaymentBillingFromJSON;
72
- function CreatePaymentBillingFromJSONTyped(json, ignoreDiscriminator) {
73
- if (json == null) {
74
- return json;
75
- }
76
- return {
77
- 'customerId': json['customerId'],
78
- 'paymentDate': json['paymentDate'],
79
- 'status': json['status'],
80
- 'paymentAmount': json['paymentAmount'],
81
- 'feeAmount': json['feeAmount'],
82
- 'appliedAmount': json['appliedAmount'],
83
- 'unappliedAmount': json['unappliedAmount'],
84
- 'paymentType': json['paymentType'],
85
- 'paymentMethod': json['paymentMethod'],
86
- 'saveForLater': json['saveForLater'],
87
- 'currency': json['currency'],
88
- 'autoApply': json['autoApply'],
89
- 'glAccount': json['glAccount'],
90
- 'emailStatus': json['emailStatus'],
91
- 'customFields': json['customFields'],
92
- 'notes': json['notes'],
93
- 'paymentToken': json['paymentToken'],
94
- 'referenceNumber': json['referenceNumber'],
95
- 'gatewayName': json['gatewayName'],
96
- 'invoices': (json['invoices'].map(create_payment_invoice_1.CreatePaymentInvoiceFromJSON)),
97
- 'refunds': (json['refunds'].map(create_payment_refund_1.CreatePaymentRefundFromJSON)),
98
- };
99
- }
100
- exports.CreatePaymentBillingFromJSONTyped = CreatePaymentBillingFromJSONTyped;
101
- function CreatePaymentBillingToJSON(json) {
102
- return CreatePaymentBillingToJSONTyped(json, false);
103
- }
104
- exports.CreatePaymentBillingToJSON = CreatePaymentBillingToJSON;
105
- function CreatePaymentBillingToJSONTyped(value, ignoreDiscriminator = false) {
106
- if (value == null) {
107
- return value;
108
- }
109
- return {
110
- 'customerId': value['customerId'],
111
- 'paymentDate': value['paymentDate'],
112
- 'status': value['status'],
113
- 'paymentAmount': value['paymentAmount'],
114
- 'feeAmount': value['feeAmount'],
115
- 'appliedAmount': value['appliedAmount'],
116
- 'unappliedAmount': value['unappliedAmount'],
117
- 'paymentType': value['paymentType'],
118
- 'paymentMethod': value['paymentMethod'],
119
- 'saveForLater': value['saveForLater'],
120
- 'currency': value['currency'],
121
- 'autoApply': value['autoApply'],
122
- 'glAccount': value['glAccount'],
123
- 'emailStatus': value['emailStatus'],
124
- 'customFields': value['customFields'],
125
- 'notes': value['notes'],
126
- 'paymentToken': value['paymentToken'],
127
- 'referenceNumber': value['referenceNumber'],
128
- 'gatewayName': value['gatewayName'],
129
- 'invoices': (value['invoices'].map(create_payment_invoice_1.CreatePaymentInvoiceToJSON)),
130
- 'refunds': (value['refunds'].map(create_payment_refund_1.CreatePaymentRefundToJSON)),
131
- };
132
- }
133
- exports.CreatePaymentBillingToJSONTyped = CreatePaymentBillingToJSONTyped;
@@ -1,52 +0,0 @@
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 CreatePlan
17
- */
18
- export interface CreatePlan {
19
- /**
20
- * Name of plan
21
- * @type {string}
22
- * @memberof CreatePlan
23
- */
24
- name: string;
25
- /**
26
- * Product ID
27
- * @type {string}
28
- * @memberof CreatePlan
29
- */
30
- productId: string;
31
- /**
32
- * Product name
33
- * @type {string}
34
- * @memberof CreatePlan
35
- */
36
- productName: string;
37
- /**
38
- * Charges associated with plan
39
- * @type {Array<CreatePlanCharge>}
40
- * @memberof CreatePlan
41
- */
42
- charges: Array<CreatePlanCharge>;
43
- }
44
- /**
45
- * Check if a given object implements the CreatePlan interface.
46
- */
47
- export declare function instanceOfCreatePlan(value: object): value is CreatePlan;
48
- export declare function CreatePlanFromJSON(json: any): CreatePlan;
49
- export declare function CreatePlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePlan;
50
- export declare function CreatePlanToJSON(json: any): CreatePlan;
51
- export declare function CreatePlanToJSONTyped(value?: CreatePlan | null, ignoreDiscriminator?: boolean): any;
52
- //# sourceMappingURL=create-plan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-plan.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-plan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAQ7D;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAMvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAW3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY1G"}
@@ -1,64 +0,0 @@
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.CreatePlanToJSONTyped = exports.CreatePlanToJSON = exports.CreatePlanFromJSONTyped = exports.CreatePlanFromJSON = exports.instanceOfCreatePlan = void 0;
17
- const create_plan_charge_1 = require("./create-plan-charge");
18
- /**
19
- * Check if a given object implements the CreatePlan interface.
20
- */
21
- function instanceOfCreatePlan(value) {
22
- if (!('name' in value) || value['name'] === undefined)
23
- return false;
24
- if (!('productId' in value) || value['productId'] === undefined)
25
- return false;
26
- if (!('productName' in value) || value['productName'] === undefined)
27
- return false;
28
- if (!('charges' in value) || value['charges'] === undefined)
29
- return false;
30
- return true;
31
- }
32
- exports.instanceOfCreatePlan = instanceOfCreatePlan;
33
- function CreatePlanFromJSON(json) {
34
- return CreatePlanFromJSONTyped(json, false);
35
- }
36
- exports.CreatePlanFromJSON = CreatePlanFromJSON;
37
- function CreatePlanFromJSONTyped(json, ignoreDiscriminator) {
38
- if (json == null) {
39
- return json;
40
- }
41
- return {
42
- 'name': json['name'],
43
- 'productId': json['productId'],
44
- 'productName': json['productName'],
45
- 'charges': (json['charges'].map(create_plan_charge_1.CreatePlanChargeFromJSON)),
46
- };
47
- }
48
- exports.CreatePlanFromJSONTyped = CreatePlanFromJSONTyped;
49
- function CreatePlanToJSON(json) {
50
- return CreatePlanToJSONTyped(json, false);
51
- }
52
- exports.CreatePlanToJSON = CreatePlanToJSON;
53
- function CreatePlanToJSONTyped(value, ignoreDiscriminator = false) {
54
- if (value == null) {
55
- return value;
56
- }
57
- return {
58
- 'name': value['name'],
59
- 'productId': value['productId'],
60
- 'productName': value['productName'],
61
- 'charges': (value['charges'].map(create_plan_charge_1.CreatePlanChargeToJSON)),
62
- };
63
- }
64
- exports.CreatePlanToJSONTyped = CreatePlanToJSONTyped;
@@ -1,45 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace 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
- /**
13
- *
14
- * @export
15
- * @interface CreateProduct
16
- */
17
- export interface CreateProduct {
18
- /**
19
- * The product name
20
- * @type {string}
21
- * @memberof CreateProduct
22
- */
23
- name: string;
24
- /**
25
- * The price of the product in the lowest denomination of the currency
26
- * @type {number}
27
- * @memberof CreateProduct
28
- */
29
- price: number;
30
- /**
31
- * Tax exempt
32
- * @type {boolean}
33
- * @memberof CreateProduct
34
- */
35
- taxable?: boolean;
36
- }
37
- /**
38
- * Check if a given object implements the CreateProduct interface.
39
- */
40
- export declare function instanceOfCreateProduct(value: object): value is CreateProduct;
41
- export declare function CreateProductFromJSON(json: any): CreateProduct;
42
- export declare function CreateProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProduct;
43
- export declare function CreateProductToJSON(json: any): CreateProduct;
44
- export declare function CreateProductToJSONTyped(value?: CreateProduct | null, ignoreDiscriminator?: boolean): any;
45
- //# sourceMappingURL=create-product.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-product.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-product.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAI7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAUjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhH"}