@managespace/sdk 0.0.32 → 0.0.34

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 (108) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +31 -29
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +8 -11
  4. package/dist/extensibility/functions/project/communication.d.ts +12 -0
  5. package/dist/extensibility/functions/project/communication.d.ts.map +1 -0
  6. package/dist/extensibility/functions/project/communication.js +18 -0
  7. package/dist/extensibility/functions/project/index.d.ts +2 -1
  8. package/dist/extensibility/functions/project/index.d.ts.map +1 -1
  9. package/dist/extensibility/functions/project/index.js +2 -1
  10. package/dist/extensibility/functions/project/managespace.d.ts +1 -15
  11. package/dist/extensibility/functions/project/managespace.d.ts.map +1 -1
  12. package/dist/extensibility/functions/project/managespace.js +0 -15
  13. package/dist/generated/apis/default-api.d.ts +17 -58
  14. package/dist/generated/apis/default-api.d.ts.map +1 -1
  15. package/dist/generated/apis/default-api.js +48 -185
  16. package/dist/generated/models/custom-create-contact.d.ts +0 -12
  17. package/dist/generated/models/custom-create-contact.d.ts.map +1 -1
  18. package/dist/generated/models/custom-create-contact.js +0 -6
  19. package/dist/generated/models/custom-create-customer.d.ts +12 -18
  20. package/dist/generated/models/custom-create-customer.d.ts.map +1 -1
  21. package/dist/generated/models/custom-create-customer.js +5 -7
  22. package/dist/generated/models/custom-update-customer.d.ts +75 -10
  23. package/dist/generated/models/custom-update-customer.d.ts.map +1 -1
  24. package/dist/generated/models/custom-update-customer.js +26 -5
  25. package/dist/generated/models/customer-response.d.ts +0 -84
  26. package/dist/generated/models/customer-response.d.ts.map +1 -1
  27. package/dist/generated/models/customer-response.js +0 -56
  28. package/dist/generated/models/get-invoice-billing200-response.d.ts +41 -0
  29. package/dist/generated/models/get-invoice-billing200-response.d.ts.map +1 -0
  30. package/dist/generated/models/get-invoice-billing200-response.js +55 -0
  31. package/dist/generated/models/index.d.ts +2 -11
  32. package/dist/generated/models/index.d.ts.map +1 -1
  33. package/dist/generated/models/index.js +2 -11
  34. package/dist/generated/models/payment-response.d.ts +2 -2
  35. package/package.json +1 -1
  36. package/src/extensibility/functions/project/billing.ts +34 -35
  37. package/src/extensibility/functions/project/communication.ts +16 -0
  38. package/src/extensibility/functions/project/index.ts +2 -1
  39. package/src/extensibility/functions/project/managespace.ts +0 -16
  40. package/src/generated/.openapi-generator/FILES +2 -11
  41. package/src/generated/apis/default-api.ts +83 -313
  42. package/src/generated/models/custom-create-contact.ts +0 -17
  43. package/src/generated/models/custom-create-customer.ts +21 -29
  44. package/src/generated/models/custom-update-customer.ts +101 -21
  45. package/src/generated/models/customer-response.ts +0 -126
  46. package/src/generated/models/get-invoice-billing200-response.ts +89 -0
  47. package/src/generated/models/index.ts +2 -11
  48. package/src/generated/models/payment-response.ts +2 -2
  49. package/dist/generated/models/create-contact.d.ts +0 -87
  50. package/dist/generated/models/create-contact.d.ts.map +0 -1
  51. package/dist/generated/models/create-contact.js +0 -81
  52. package/dist/generated/models/create-payment.d.ts +0 -155
  53. package/dist/generated/models/create-payment.d.ts.map +0 -1
  54. package/dist/generated/models/create-payment.js +0 -123
  55. package/dist/generated/models/create-plan-billing.d.ts +0 -58
  56. package/dist/generated/models/create-plan-billing.d.ts.map +0 -1
  57. package/dist/generated/models/create-plan-billing.js +0 -68
  58. package/dist/generated/models/create-product-billing.d.ts +0 -82
  59. package/dist/generated/models/create-product-billing.d.ts.map +0 -1
  60. package/dist/generated/models/create-product-billing.js +0 -84
  61. package/dist/generated/models/custom-add-customer-contact.d.ts +0 -34
  62. package/dist/generated/models/custom-add-customer-contact.d.ts.map +0 -1
  63. package/dist/generated/models/custom-add-customer-contact.js +0 -52
  64. package/dist/generated/models/custom-create-contact-with-customer.d.ts +0 -82
  65. package/dist/generated/models/custom-create-contact-with-customer.d.ts.map +0 -1
  66. package/dist/generated/models/custom-create-contact-with-customer.js +0 -78
  67. package/dist/generated/models/customer-delivery-preferences.d.ts +0 -39
  68. package/dist/generated/models/customer-delivery-preferences.d.ts.map +0 -1
  69. package/dist/generated/models/customer-delivery-preferences.js +0 -55
  70. package/dist/generated/models/customer-id.d.ts +0 -33
  71. package/dist/generated/models/customer-id.d.ts.map +0 -1
  72. package/dist/generated/models/customer-id.js +0 -51
  73. package/dist/generated/models/customer-payment-options.d.ts +0 -39
  74. package/dist/generated/models/customer-payment-options.d.ts.map +0 -1
  75. package/dist/generated/models/customer-payment-options.js +0 -55
  76. package/dist/generated/models/get-customer-response.d.ts +0 -276
  77. package/dist/generated/models/get-customer-response.d.ts.map +0 -1
  78. package/dist/generated/models/get-customer-response.js +0 -214
  79. package/dist/generated/models/get-customers-billing200-response.d.ts +0 -41
  80. package/dist/generated/models/get-customers-billing200-response.d.ts.map +0 -1
  81. package/dist/generated/models/get-customers-billing200-response.js +0 -55
  82. package/dist/generated/models/product-billing-response.d.ts +0 -142
  83. package/dist/generated/models/product-billing-response.d.ts.map +0 -1
  84. package/dist/generated/models/product-billing-response.js +0 -124
  85. package/dist/generated/models/product-transaction-posting-entries.d.ts +0 -45
  86. package/dist/generated/models/product-transaction-posting-entries.d.ts.map +0 -1
  87. package/dist/generated/models/product-transaction-posting-entries.js +0 -59
  88. package/dist/generated/models/update-customer.d.ts +0 -57
  89. package/dist/generated/models/update-customer.d.ts.map +0 -1
  90. package/dist/generated/models/update-customer.js +0 -57
  91. package/dist/generated/models/update-product.d.ts +0 -52
  92. package/dist/generated/models/update-product.d.ts.map +0 -1
  93. package/dist/generated/models/update-product.js +0 -60
  94. package/src/generated/models/create-contact.ts +0 -144
  95. package/src/generated/models/create-payment.ts +0 -256
  96. package/src/generated/models/create-plan-billing.ts +0 -110
  97. package/src/generated/models/create-product-billing.ts +0 -146
  98. package/src/generated/models/custom-add-customer-contact.ts +0 -74
  99. package/src/generated/models/custom-create-contact-with-customer.ts +0 -143
  100. package/src/generated/models/customer-delivery-preferences.ts +0 -75
  101. package/src/generated/models/customer-id.ts +0 -66
  102. package/src/generated/models/customer-payment-options.ts +0 -75
  103. package/src/generated/models/get-customer-response.ts +0 -448
  104. package/src/generated/models/get-customers-billing200-response.ts +0 -89
  105. package/src/generated/models/product-billing-response.ts +0 -236
  106. package/src/generated/models/product-transaction-posting-entries.ts +0 -84
  107. package/src/generated/models/update-customer.ts +0 -97
  108. package/src/generated/models/update-product.ts +0 -101
@@ -1,87 +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 CreateContact
16
- */
17
- export interface CreateContact {
18
- /**
19
- * External ID
20
- * @type {string}
21
- * @memberof CreateContact
22
- */
23
- externalId?: string | null;
24
- /**
25
- * First name
26
- * @type {string}
27
- * @memberof CreateContact
28
- */
29
- firstName: string;
30
- /**
31
- * Initial of middle name
32
- * @type {string}
33
- * @memberof CreateContact
34
- */
35
- middleInitial?: string | null;
36
- /**
37
- * Last name
38
- * @type {string}
39
- * @memberof CreateContact
40
- */
41
- lastName: string;
42
- /**
43
- * Display name
44
- * @type {string}
45
- * @memberof CreateContact
46
- */
47
- displayName: string;
48
- /**
49
- * Contact email address
50
- * @type {string}
51
- * @memberof CreateContact
52
- */
53
- email: string;
54
- /**
55
- * Phone number
56
- * @type {string}
57
- * @memberof CreateContact
58
- */
59
- phoneNumber?: string | null;
60
- /**
61
- * Contact mobile number
62
- * @type {string}
63
- * @memberof CreateContact
64
- */
65
- mobileNumber: string;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof CreateContact
70
- */
71
- customerId: string;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof CreateContact
76
- */
77
- addressId: string;
78
- }
79
- /**
80
- * Check if a given object implements the CreateContact interface.
81
- */
82
- export declare function instanceOfCreateContact(value: object): value is CreateContact;
83
- export declare function CreateContactFromJSON(json: any): CreateContact;
84
- export declare function CreateContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateContact;
85
- export declare function CreateContactToJSON(json: any): CreateContact;
86
- export declare function CreateContactToJSONTyped(value?: CreateContact | null, ignoreDiscriminator?: boolean): any;
87
- //# sourceMappingURL=create-contact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-contact.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-contact.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAS7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAiBjG;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,CAkBhH"}
@@ -1,81 +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.CreateContactToJSONTyped = exports.CreateContactToJSON = exports.CreateContactFromJSONTyped = exports.CreateContactFromJSON = exports.instanceOfCreateContact = void 0;
17
- /**
18
- * Check if a given object implements the CreateContact interface.
19
- */
20
- function instanceOfCreateContact(value) {
21
- if (!('firstName' in value) || value['firstName'] === undefined)
22
- return false;
23
- if (!('lastName' in value) || value['lastName'] === undefined)
24
- return false;
25
- if (!('displayName' in value) || value['displayName'] === undefined)
26
- return false;
27
- if (!('email' in value) || value['email'] === undefined)
28
- return false;
29
- if (!('mobileNumber' in value) || value['mobileNumber'] === undefined)
30
- return false;
31
- if (!('customerId' in value) || value['customerId'] === undefined)
32
- return false;
33
- if (!('addressId' in value) || value['addressId'] === undefined)
34
- return false;
35
- return true;
36
- }
37
- exports.instanceOfCreateContact = instanceOfCreateContact;
38
- function CreateContactFromJSON(json) {
39
- return CreateContactFromJSONTyped(json, false);
40
- }
41
- exports.CreateContactFromJSON = CreateContactFromJSON;
42
- function CreateContactFromJSONTyped(json, ignoreDiscriminator) {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
- 'externalId': json['externalId'] == null ? undefined : json['externalId'],
48
- 'firstName': json['firstName'],
49
- 'middleInitial': json['middleInitial'] == null ? undefined : json['middleInitial'],
50
- 'lastName': json['lastName'],
51
- 'displayName': json['displayName'],
52
- 'email': json['email'],
53
- 'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
54
- 'mobileNumber': json['mobileNumber'],
55
- 'customerId': json['customerId'],
56
- 'addressId': json['addressId'],
57
- };
58
- }
59
- exports.CreateContactFromJSONTyped = CreateContactFromJSONTyped;
60
- function CreateContactToJSON(json) {
61
- return CreateContactToJSONTyped(json, false);
62
- }
63
- exports.CreateContactToJSON = CreateContactToJSON;
64
- function CreateContactToJSONTyped(value, ignoreDiscriminator = false) {
65
- if (value == null) {
66
- return value;
67
- }
68
- return {
69
- 'externalId': value['externalId'],
70
- 'firstName': value['firstName'],
71
- 'middleInitial': value['middleInitial'],
72
- 'lastName': value['lastName'],
73
- 'displayName': value['displayName'],
74
- 'email': value['email'],
75
- 'phoneNumber': value['phoneNumber'],
76
- 'mobileNumber': value['mobileNumber'],
77
- 'customerId': value['customerId'],
78
- 'addressId': value['addressId'],
79
- };
80
- }
81
- exports.CreateContactToJSONTyped = CreateContactToJSONTyped;
@@ -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 CreatePayment
18
- */
19
- export interface CreatePayment {
20
- /**
21
- * Customer Id
22
- * @type {string}
23
- * @memberof CreatePayment
24
- */
25
- customerId: string;
26
- /**
27
- * Date of payment transaction
28
- * @type {string}
29
- * @memberof CreatePayment
30
- */
31
- paymentDate: string;
32
- /**
33
- * Status of payment
34
- * @type {string}
35
- * @memberof CreatePayment
36
- */
37
- status: string;
38
- /**
39
- * Total amount of payment
40
- * @type {string}
41
- * @memberof CreatePayment
42
- */
43
- paymentAmount: string;
44
- /**
45
- * Transaction Fee
46
- * @type {string}
47
- * @memberof CreatePayment
48
- */
49
- feeAmount: string;
50
- /**
51
- * Amount of payment applied to invoices
52
- * @type {string}
53
- * @memberof CreatePayment
54
- */
55
- appliedAmount: string;
56
- /**
57
- * Amount of payment not yet applied to invoices
58
- * @type {string}
59
- * @memberof CreatePayment
60
- */
61
- unappliedAmount: string;
62
- /**
63
- * External or Electronic payments
64
- * @type {string}
65
- * @memberof CreatePayment
66
- */
67
- paymentType: string;
68
- /**
69
- * Method of payment
70
- * @type {string}
71
- * @memberof CreatePayment
72
- */
73
- paymentMethod: string;
74
- /**
75
- * Payment method saved and used for future billing
76
- * @type {boolean}
77
- * @memberof CreatePayment
78
- */
79
- saveForLater: boolean;
80
- /**
81
- * Currency
82
- * @type {string}
83
- * @memberof CreatePayment
84
- */
85
- currency: string;
86
- /**
87
- * Automatically apply unapplied amount to next invoice
88
- * @type {boolean}
89
- * @memberof CreatePayment
90
- */
91
- autoApply: boolean;
92
- /**
93
- * General Ledger account
94
- * @type {string}
95
- * @memberof CreatePayment
96
- */
97
- glAccount: string;
98
- /**
99
- * Generate email
100
- * @type {boolean}
101
- * @memberof CreatePayment
102
- */
103
- emailStatus: boolean;
104
- /**
105
- * Custom fields on the invoice
106
- * @type {object}
107
- * @memberof CreatePayment
108
- */
109
- customFields: object;
110
- /**
111
- * Miscellaneous notes
112
- * @type {string}
113
- * @memberof CreatePayment
114
- */
115
- notes?: string;
116
- /**
117
- * Payment token
118
- * @type {string}
119
- * @memberof CreatePayment
120
- */
121
- paymentToken?: string;
122
- /**
123
- * Reference number for payment transaction
124
- * @type {string}
125
- * @memberof CreatePayment
126
- */
127
- referenceNumber?: string;
128
- /**
129
- * Gateway Name for electronic payment
130
- * @type {string}
131
- * @memberof CreatePayment
132
- */
133
- gatewayName?: string;
134
- /**
135
- * List of invoices paid by payment
136
- * @type {Array<CreatePaymentInvoice>}
137
- * @memberof CreatePayment
138
- */
139
- invoices: Array<CreatePaymentInvoice>;
140
- /**
141
- * List of refunds associated with payment
142
- * @type {Array<CreatePaymentRefund>}
143
- * @memberof CreatePayment
144
- */
145
- refunds?: Array<CreatePaymentRefund>;
146
- }
147
- /**
148
- * Check if a given object implements the CreatePayment interface.
149
- */
150
- export declare function instanceOfCreatePayment(value: object): value is CreatePayment;
151
- export declare function CreatePaymentFromJSON(json: any): CreatePayment;
152
- export declare function CreatePaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePayment;
153
- export declare function CreatePaymentToJSON(json: any): CreatePayment;
154
- export declare function CreatePaymentToJSONTyped(value?: CreatePayment | null, ignoreDiscriminator?: boolean): any;
155
- //# sourceMappingURL=create-payment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-payment.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-payment.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,aAAa;IAC1B;;;;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,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACtC;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;CACxC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAkB7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CA4BjG;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,CA6BhH"}
@@ -1,123 +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.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;
@@ -1,58 +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 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
@@ -1 +0,0 @@
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"}
@@ -1,68 +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.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;
@@ -1,82 +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 { 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
@@ -1 +0,0 @@
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"}