@managespace/sdk 0.0.172 → 0.0.174
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.
- package/.turbo/turbo-build.log +2 -0
- package/dist/extensibility/functions/project/billing.d.ts +18 -1
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +15 -0
- package/dist/generated/apis/default-api.d.ts +33 -1
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +104 -0
- package/dist/generated/models/create-payment-method.d.ts +105 -0
- package/dist/generated/models/create-payment-method.d.ts.map +1 -0
- package/dist/generated/models/create-payment-method.js +77 -0
- package/dist/generated/models/document.d.ts +39 -0
- package/dist/generated/models/document.d.ts.map +1 -0
- package/dist/generated/models/document.js +55 -0
- package/dist/generated/models/get-payments1200-response.d.ts +41 -0
- package/dist/generated/models/get-payments1200-response.d.ts.map +1 -0
- package/dist/generated/models/get-payments1200-response.js +55 -0
- package/dist/generated/models/index.d.ts +3 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +3 -0
- package/dist/generated/models/payment-method.d.ts +111 -0
- package/dist/generated/models/payment-method.d.ts.map +1 -0
- package/dist/generated/models/payment-method.js +81 -0
- package/dist/generated/models/update-subscription-charge.d.ts +6 -6
- package/dist/generated/models/update-subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/update-subscription-charge.js +2 -2
- package/dist/generated/models/uploaded-documents.d.ts +45 -0
- package/dist/generated/models/uploaded-documents.d.ts.map +1 -0
- package/dist/generated/models/uploaded-documents.js +59 -0
- package/package.json +2 -3
- package/src/extensibility/functions/project/billing.ts +17 -0
- package/src/generated/.openapi-generator/FILES +3 -0
- package/src/generated/apis/default-api.ts +172 -0
- package/src/generated/models/create-payment-method.ts +163 -0
- package/src/generated/models/get-payments1200-response.ts +89 -0
- package/src/generated/models/index.ts +3 -0
- package/src/generated/models/payment-method.ts +172 -0
- package/src/generated/models/update-subscription-charge.ts +8 -8
- package/package.deploy.json +0 -34
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PageMeta } from './page-meta';
|
|
17
|
+
import {
|
|
18
|
+
PageMetaFromJSON,
|
|
19
|
+
PageMetaFromJSONTyped,
|
|
20
|
+
PageMetaToJSON,
|
|
21
|
+
PageMetaToJSONTyped,
|
|
22
|
+
} from './page-meta';
|
|
23
|
+
import type { PaymentMethod } from './payment-method';
|
|
24
|
+
import {
|
|
25
|
+
PaymentMethodFromJSON,
|
|
26
|
+
PaymentMethodFromJSONTyped,
|
|
27
|
+
PaymentMethodToJSON,
|
|
28
|
+
PaymentMethodToJSONTyped,
|
|
29
|
+
} from './payment-method';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetPayments1200Response
|
|
35
|
+
*/
|
|
36
|
+
export interface GetPayments1200Response {
|
|
37
|
+
/**
|
|
38
|
+
* The pagination metadata
|
|
39
|
+
* @type {PageMeta}
|
|
40
|
+
* @memberof GetPayments1200Response
|
|
41
|
+
*/
|
|
42
|
+
pageMeta: PageMeta;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<PaymentMethod>}
|
|
46
|
+
* @memberof GetPayments1200Response
|
|
47
|
+
*/
|
|
48
|
+
results?: Array<PaymentMethod>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the GetPayments1200Response interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfGetPayments1200Response(value: object): value is GetPayments1200Response {
|
|
55
|
+
if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GetPayments1200ResponseFromJSON(json: any): GetPayments1200Response {
|
|
60
|
+
return GetPayments1200ResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GetPayments1200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPayments1200Response {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'pageMeta': PageMetaFromJSON(json['pageMeta']),
|
|
70
|
+
'results': json['results'] == null ? undefined : ((json['results'] as Array<any>).map(PaymentMethodFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetPayments1200ResponseToJSON(json: any): GetPayments1200Response {
|
|
75
|
+
return GetPayments1200ResponseToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetPayments1200ResponseToJSONTyped(value?: GetPayments1200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'pageMeta': PageMetaToJSON(value['pageMeta']),
|
|
86
|
+
'results': value['results'] == null ? undefined : ((value['results'] as Array<any>).map(PaymentMethodToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -44,6 +44,7 @@ export * from './create-order';
|
|
|
44
44
|
export * from './create-org';
|
|
45
45
|
export * from './create-payment';
|
|
46
46
|
export * from './create-payment-invoice';
|
|
47
|
+
export * from './create-payment-method';
|
|
47
48
|
export * from './create-payment-refund';
|
|
48
49
|
export * from './create-payment-run';
|
|
49
50
|
export * from './create-plan-charge';
|
|
@@ -99,6 +100,7 @@ export * from './get-notes200-response';
|
|
|
99
100
|
export * from './get-notifications200-response';
|
|
100
101
|
export * from './get-orders200-response';
|
|
101
102
|
export * from './get-payment-runs200-response';
|
|
103
|
+
export * from './get-payments1200-response';
|
|
102
104
|
export * from './get-payments200-response';
|
|
103
105
|
export * from './get-plans200-response';
|
|
104
106
|
export * from './get-plugins200-response';
|
|
@@ -132,6 +134,7 @@ export * from './paginated';
|
|
|
132
134
|
export * from './password';
|
|
133
135
|
export * from './password-strength-check';
|
|
134
136
|
export * from './payment';
|
|
137
|
+
export * from './payment-method';
|
|
135
138
|
export * from './payment-run';
|
|
136
139
|
export * from './payment-run-filter-condition';
|
|
137
140
|
export * from './payment-run-filter-options';
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PaymentMethod
|
|
20
|
+
*/
|
|
21
|
+
export interface PaymentMethod {
|
|
22
|
+
/**
|
|
23
|
+
* Customer ID associated with electronic payment method
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PaymentMethod
|
|
26
|
+
*/
|
|
27
|
+
customerId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Customers payment gateway id
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PaymentMethod
|
|
32
|
+
*/
|
|
33
|
+
customerPaymentGatewayId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Payment type
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PaymentMethod
|
|
38
|
+
*/
|
|
39
|
+
paymentType: string;
|
|
40
|
+
/**
|
|
41
|
+
* Type of card
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PaymentMethod
|
|
44
|
+
*/
|
|
45
|
+
type?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Credit card or bank account number
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PaymentMethod
|
|
50
|
+
*/
|
|
51
|
+
accountNumber: string;
|
|
52
|
+
/**
|
|
53
|
+
* Routing number for bank accounts
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof PaymentMethod
|
|
56
|
+
*/
|
|
57
|
+
routingNumber?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Name on card or account
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof PaymentMethod
|
|
62
|
+
*/
|
|
63
|
+
accountHolderName?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Type of acccount owner
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof PaymentMethod
|
|
68
|
+
*/
|
|
69
|
+
accountHolderType?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Country of the account holder
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof PaymentMethod
|
|
74
|
+
*/
|
|
75
|
+
country?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Credit card expiration date
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof PaymentMethod
|
|
80
|
+
*/
|
|
81
|
+
expiry?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Account status for bank accounts
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof PaymentMethod
|
|
86
|
+
*/
|
|
87
|
+
status?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Enable defaule payment method
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof PaymentMethod
|
|
92
|
+
*/
|
|
93
|
+
_default?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* CVC, security code for payment method
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof PaymentMethod
|
|
98
|
+
*/
|
|
99
|
+
cvc?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Payment method ID
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof PaymentMethod
|
|
104
|
+
*/
|
|
105
|
+
paymentMethodId: string;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Check if a given object implements the PaymentMethod interface.
|
|
110
|
+
*/
|
|
111
|
+
export function instanceOfPaymentMethod(value: object): value is PaymentMethod {
|
|
112
|
+
if (!('paymentType' in value) || value['paymentType'] === undefined) return false;
|
|
113
|
+
if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
|
|
114
|
+
if (!('paymentMethodId' in value) || value['paymentMethodId'] === undefined) return false;
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function PaymentMethodFromJSON(json: any): PaymentMethod {
|
|
119
|
+
return PaymentMethodFromJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function PaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethod {
|
|
123
|
+
if (json == null) {
|
|
124
|
+
return json;
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
|
|
128
|
+
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
129
|
+
'customerPaymentGatewayId': json['customerPaymentGatewayId'] == null ? undefined : json['customerPaymentGatewayId'],
|
|
130
|
+
'paymentType': json['paymentType'],
|
|
131
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
132
|
+
'accountNumber': json['accountNumber'],
|
|
133
|
+
'routingNumber': json['routingNumber'] == null ? undefined : json['routingNumber'],
|
|
134
|
+
'accountHolderName': json['accountHolderName'] == null ? undefined : json['accountHolderName'],
|
|
135
|
+
'accountHolderType': json['accountHolderType'] == null ? undefined : json['accountHolderType'],
|
|
136
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
137
|
+
'expiry': json['expiry'] == null ? undefined : json['expiry'],
|
|
138
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
139
|
+
'_default': json['default'] == null ? undefined : json['default'],
|
|
140
|
+
'cvc': json['cvc'] == null ? undefined : json['cvc'],
|
|
141
|
+
'paymentMethodId': json['paymentMethodId'],
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function PaymentMethodToJSON(json: any): PaymentMethod {
|
|
146
|
+
return PaymentMethodToJSONTyped(json, false);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function PaymentMethodToJSONTyped(value?: PaymentMethod | null, ignoreDiscriminator: boolean = false): any {
|
|
150
|
+
if (value == null) {
|
|
151
|
+
return value;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return {
|
|
155
|
+
|
|
156
|
+
'customerId': value['customerId'],
|
|
157
|
+
'customerPaymentGatewayId': value['customerPaymentGatewayId'],
|
|
158
|
+
'paymentType': value['paymentType'],
|
|
159
|
+
'type': value['type'],
|
|
160
|
+
'accountNumber': value['accountNumber'],
|
|
161
|
+
'routingNumber': value['routingNumber'],
|
|
162
|
+
'accountHolderName': value['accountHolderName'],
|
|
163
|
+
'accountHolderType': value['accountHolderType'],
|
|
164
|
+
'country': value['country'],
|
|
165
|
+
'expiry': value['expiry'],
|
|
166
|
+
'status': value['status'],
|
|
167
|
+
'default': value['_default'],
|
|
168
|
+
'cvc': value['cvc'],
|
|
169
|
+
'paymentMethodId': value['paymentMethodId'],
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
@@ -262,12 +262,6 @@ export interface UpdateSubscriptionCharge {
|
|
|
262
262
|
* @memberof UpdateSubscriptionCharge
|
|
263
263
|
*/
|
|
264
264
|
customRecognitionEndDate?: string;
|
|
265
|
-
/**
|
|
266
|
-
* Transaction type
|
|
267
|
-
* @type {Array<TransactionPostingEntries>}
|
|
268
|
-
* @memberof UpdateSubscriptionCharge
|
|
269
|
-
*/
|
|
270
|
-
transactionPostingEntries?: Array<TransactionPostingEntries>;
|
|
271
265
|
/**
|
|
272
266
|
* Charge ID
|
|
273
267
|
* @type {string}
|
|
@@ -298,6 +292,12 @@ export interface UpdateSubscriptionCharge {
|
|
|
298
292
|
* @memberof UpdateSubscriptionCharge
|
|
299
293
|
*/
|
|
300
294
|
assetId?: string;
|
|
295
|
+
/**
|
|
296
|
+
* Transaction type
|
|
297
|
+
* @type {Array<TransactionPostingEntries>}
|
|
298
|
+
* @memberof UpdateSubscriptionCharge
|
|
299
|
+
*/
|
|
300
|
+
transactionPostingEntries?: Array<TransactionPostingEntries>;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
/**
|
|
@@ -361,12 +361,12 @@ export function UpdateSubscriptionChargeFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
361
361
|
'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
|
|
362
362
|
'customRecognitionStartDate': json['customRecognitionStartDate'] == null ? undefined : json['customRecognitionStartDate'],
|
|
363
363
|
'customRecognitionEndDate': json['customRecognitionEndDate'] == null ? undefined : json['customRecognitionEndDate'],
|
|
364
|
-
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
365
364
|
'chargeId': json['chargeId'] == null ? undefined : json['chargeId'],
|
|
366
365
|
'chargeType': json['chargeType'],
|
|
367
366
|
'billingPeriod': json['billingPeriod'],
|
|
368
367
|
'listPrice': json['listPrice'],
|
|
369
368
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
369
|
+
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
372
|
|
|
@@ -419,12 +419,12 @@ export function UpdateSubscriptionChargeToJSONTyped(value?: UpdateSubscriptionCh
|
|
|
419
419
|
'recognitionStartDate': value['recognitionStartDate'],
|
|
420
420
|
'customRecognitionStartDate': value['customRecognitionStartDate'],
|
|
421
421
|
'customRecognitionEndDate': value['customRecognitionEndDate'],
|
|
422
|
-
'transactionPostingEntries': value['transactionPostingEntries'] == null ? undefined : ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
|
|
423
422
|
'chargeId': value['chargeId'],
|
|
424
423
|
'chargeType': value['chargeType'],
|
|
425
424
|
'billingPeriod': value['billingPeriod'],
|
|
426
425
|
'listPrice': value['listPrice'],
|
|
427
426
|
'assetId': value['assetId'],
|
|
427
|
+
'transactionPostingEntries': value['transactionPostingEntries'] == null ? undefined : ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
|
|
428
428
|
};
|
|
429
429
|
}
|
|
430
430
|
|
package/package.deploy.json
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@managespace/sdk",
|
|
3
|
-
"version": "0.0.132",
|
|
4
|
-
"scripts": {
|
|
5
|
-
"dev": "tsc -w --preserveWatchOutput",
|
|
6
|
-
"build": "tsc",
|
|
7
|
-
"lint:check": "eslint .",
|
|
8
|
-
"lint:fix": "eslint --fix .",
|
|
9
|
-
"lint:fix:cache": "eslint --fix .",
|
|
10
|
-
"upload": "tsc && npm publish"
|
|
11
|
-
},
|
|
12
|
-
"main": "./dist/index.js",
|
|
13
|
-
"types": "./dist/index.d.ts",
|
|
14
|
-
"exports": {
|
|
15
|
-
".": {
|
|
16
|
-
"types": "./dist/index.d.ts",
|
|
17
|
-
"default": "./dist/index.js"
|
|
18
|
-
},
|
|
19
|
-
"./*": {
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
21
|
-
"default": "./dist/index.js"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"tslib": "^2.4.0",
|
|
26
|
-
"zod": "^3.23.8"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@types/node": "^12",
|
|
30
|
-
"typescript": "^4.0",
|
|
31
|
-
"@repo/eslint-config": "*",
|
|
32
|
-
"@repo/typescript-config": "*"
|
|
33
|
-
}
|
|
34
|
-
}
|