@managespace/sdk 0.0.173 → 0.0.175
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/dist/extensibility/functions/project/billing.d.ts +1 -16
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +0 -15
- package/dist/generated/apis/default-api.d.ts +1 -34
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +1 -108
- package/dist/generated/models/index.d.ts +0 -3
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +0 -3
- package/package.deploy.json +34 -0
- package/package.json +3 -2
- package/src/extensibility/functions/project/billing.ts +0 -17
- package/src/generated/.openapi-generator/FILES +0 -3
- package/src/generated/apis/default-api.ts +1 -181
- package/src/generated/models/index.ts +0 -3
- package/.turbo/turbo-build.log +0 -2
- package/dist/generated/models/create-payment-method.d.ts +0 -105
- package/dist/generated/models/create-payment-method.d.ts.map +0 -1
- package/dist/generated/models/create-payment-method.js +0 -77
- package/dist/generated/models/document.d.ts +0 -39
- package/dist/generated/models/document.d.ts.map +0 -1
- package/dist/generated/models/document.js +0 -55
- package/dist/generated/models/get-payments1200-response.d.ts +0 -41
- package/dist/generated/models/get-payments1200-response.d.ts.map +0 -1
- package/dist/generated/models/get-payments1200-response.js +0 -55
- package/dist/generated/models/payment-method.d.ts +0 -111
- package/dist/generated/models/payment-method.d.ts.map +0 -1
- package/dist/generated/models/payment-method.js +0 -81
- package/dist/generated/models/uploaded-documents.d.ts +0 -45
- package/dist/generated/models/uploaded-documents.d.ts.map +0 -1
- package/dist/generated/models/uploaded-documents.js +0 -59
- package/src/generated/models/create-payment-method.ts +0 -163
- package/src/generated/models/get-payments1200-response.ts +0 -89
- package/src/generated/models/payment-method.ts +0 -172
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/models/index.ts"],"names":[],"mapp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AC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC"}
|
|
@@ -60,7 +60,6 @@ __exportStar(require("./create-order"), exports);
|
|
|
60
60
|
__exportStar(require("./create-org"), exports);
|
|
61
61
|
__exportStar(require("./create-payment"), exports);
|
|
62
62
|
__exportStar(require("./create-payment-invoice"), exports);
|
|
63
|
-
__exportStar(require("./create-payment-method"), exports);
|
|
64
63
|
__exportStar(require("./create-payment-refund"), exports);
|
|
65
64
|
__exportStar(require("./create-payment-run"), exports);
|
|
66
65
|
__exportStar(require("./create-plan-charge"), exports);
|
|
@@ -116,7 +115,6 @@ __exportStar(require("./get-notes200-response"), exports);
|
|
|
116
115
|
__exportStar(require("./get-notifications200-response"), exports);
|
|
117
116
|
__exportStar(require("./get-orders200-response"), exports);
|
|
118
117
|
__exportStar(require("./get-payment-runs200-response"), exports);
|
|
119
|
-
__exportStar(require("./get-payments1200-response"), exports);
|
|
120
118
|
__exportStar(require("./get-payments200-response"), exports);
|
|
121
119
|
__exportStar(require("./get-plans200-response"), exports);
|
|
122
120
|
__exportStar(require("./get-plugins200-response"), exports);
|
|
@@ -150,7 +148,6 @@ __exportStar(require("./paginated"), exports);
|
|
|
150
148
|
__exportStar(require("./password"), exports);
|
|
151
149
|
__exportStar(require("./password-strength-check"), exports);
|
|
152
150
|
__exportStar(require("./payment"), exports);
|
|
153
|
-
__exportStar(require("./payment-method"), exports);
|
|
154
151
|
__exportStar(require("./payment-run"), exports);
|
|
155
152
|
__exportStar(require("./payment-run-filter-condition"), exports);
|
|
156
153
|
__exportStar(require("./payment-run-filter-options"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managespace/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.175",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "tsc -w --preserveWatchOutput",
|
|
6
6
|
"build": "tsc",
|
|
7
7
|
"lint:check": "eslint .",
|
|
8
8
|
"lint:fix": "eslint --fix .",
|
|
9
|
+
"lint:fix:cache": "eslint --fix .",
|
|
9
10
|
"upload": "tsc && npm publish"
|
|
10
11
|
},
|
|
11
12
|
"main": "./dist/index.js",
|
|
@@ -30,4 +31,4 @@
|
|
|
30
31
|
"@repo/eslint-config": "*",
|
|
31
32
|
"@repo/typescript-config": "*"
|
|
32
33
|
}
|
|
33
|
-
}
|
|
34
|
+
}
|
|
@@ -30,8 +30,6 @@ import {
|
|
|
30
30
|
SubscriptionPreview,
|
|
31
31
|
UpdateSubscription as _UpdateSubscription,
|
|
32
32
|
UpdatePlan as _UpdatePlan,
|
|
33
|
-
PaymentMethod,
|
|
34
|
-
CreatePaymentMethod as _CreatePaymentMethod,
|
|
35
33
|
} from '../../../generated';
|
|
36
34
|
import { CustomCreateContact } from '../../../generated/models/custom-create-contact';
|
|
37
35
|
import { CustomUpdateCustomer } from '../../../generated/models/custom-update-customer';
|
|
@@ -334,19 +332,4 @@ export namespace Billing {
|
|
|
334
332
|
updatePlanPayload: _UpdatePlan;
|
|
335
333
|
};
|
|
336
334
|
}
|
|
337
|
-
|
|
338
|
-
export class CreatePaymentMethod implements ExtPlugin {
|
|
339
|
-
responseType!: PaymentMethod;
|
|
340
|
-
payload!: _CreatePaymentMethod;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
export class GetPaymentMethods implements ExtPlugin {
|
|
344
|
-
responseType!: PaymentMethod[];
|
|
345
|
-
payload!: BasePaginationQuery;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
export class GetPaymentMethod implements ExtPlugin {
|
|
349
|
-
responseType!: PaymentMethod;
|
|
350
|
-
payload!: { customerId: string; paymentMethodId: string };
|
|
351
|
-
}
|
|
352
335
|
}
|
|
@@ -44,7 +44,6 @@ models/create-notification.ts
|
|
|
44
44
|
models/create-order.ts
|
|
45
45
|
models/create-org.ts
|
|
46
46
|
models/create-payment-invoice.ts
|
|
47
|
-
models/create-payment-method.ts
|
|
48
47
|
models/create-payment-refund.ts
|
|
49
48
|
models/create-payment-run.ts
|
|
50
49
|
models/create-payment.ts
|
|
@@ -101,7 +100,6 @@ models/get-notes200-response.ts
|
|
|
101
100
|
models/get-notifications200-response.ts
|
|
102
101
|
models/get-orders200-response.ts
|
|
103
102
|
models/get-payment-runs200-response.ts
|
|
104
|
-
models/get-payments1200-response.ts
|
|
105
103
|
models/get-payments200-response.ts
|
|
106
104
|
models/get-plans200-response.ts
|
|
107
105
|
models/get-plugins200-response.ts
|
|
@@ -135,7 +133,6 @@ models/page-meta.ts
|
|
|
135
133
|
models/paginated.ts
|
|
136
134
|
models/password-strength-check.ts
|
|
137
135
|
models/password.ts
|
|
138
|
-
models/payment-method.ts
|
|
139
136
|
models/payment-run-filter-condition.ts
|
|
140
137
|
models/payment-run-filter-options.ts
|
|
141
138
|
models/payment-run.ts
|
|
@@ -48,7 +48,6 @@ import type {
|
|
|
48
48
|
CreateOrder,
|
|
49
49
|
CreateOrg,
|
|
50
50
|
CreatePayment,
|
|
51
|
-
CreatePaymentMethod,
|
|
52
51
|
CreatePaymentRun,
|
|
53
52
|
CreateProductCustom,
|
|
54
53
|
CreateRevenueRule,
|
|
@@ -92,7 +91,6 @@ import type {
|
|
|
92
91
|
GetNotifications200Response,
|
|
93
92
|
GetOrders200Response,
|
|
94
93
|
GetPaymentRuns200Response,
|
|
95
|
-
GetPayments1200Response,
|
|
96
94
|
GetPayments200Response,
|
|
97
95
|
GetPlans200Response,
|
|
98
96
|
GetPlugins200Response,
|
|
@@ -121,7 +119,6 @@ import type {
|
|
|
121
119
|
Password,
|
|
122
120
|
PasswordStrengthCheck,
|
|
123
121
|
Payment,
|
|
124
|
-
PaymentMethod,
|
|
125
122
|
PaymentRun,
|
|
126
123
|
PlanCustom,
|
|
127
124
|
Plugin,
|
|
@@ -232,8 +229,6 @@ import {
|
|
|
232
229
|
CreateOrgToJSON,
|
|
233
230
|
CreatePaymentFromJSON,
|
|
234
231
|
CreatePaymentToJSON,
|
|
235
|
-
CreatePaymentMethodFromJSON,
|
|
236
|
-
CreatePaymentMethodToJSON,
|
|
237
232
|
CreatePaymentRunFromJSON,
|
|
238
233
|
CreatePaymentRunToJSON,
|
|
239
234
|
CreateProductCustomFromJSON,
|
|
@@ -320,8 +315,6 @@ import {
|
|
|
320
315
|
GetOrders200ResponseToJSON,
|
|
321
316
|
GetPaymentRuns200ResponseFromJSON,
|
|
322
317
|
GetPaymentRuns200ResponseToJSON,
|
|
323
|
-
GetPayments1200ResponseFromJSON,
|
|
324
|
-
GetPayments1200ResponseToJSON,
|
|
325
318
|
GetPayments200ResponseFromJSON,
|
|
326
319
|
GetPayments200ResponseToJSON,
|
|
327
320
|
GetPlans200ResponseFromJSON,
|
|
@@ -378,8 +371,6 @@ import {
|
|
|
378
371
|
PasswordStrengthCheckToJSON,
|
|
379
372
|
PaymentFromJSON,
|
|
380
373
|
PaymentToJSON,
|
|
381
|
-
PaymentMethodFromJSON,
|
|
382
|
-
PaymentMethodToJSON,
|
|
383
374
|
PaymentRunFromJSON,
|
|
384
375
|
PaymentRunToJSON,
|
|
385
376
|
PlanCustomFromJSON,
|
|
@@ -580,11 +571,6 @@ export interface CreatePaymentRequest {
|
|
|
580
571
|
createPayment: CreatePayment;
|
|
581
572
|
}
|
|
582
573
|
|
|
583
|
-
export interface CreatePaymentMethodRequest {
|
|
584
|
-
customerId: string;
|
|
585
|
-
createPaymentMethod: CreatePaymentMethod;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
574
|
export interface CreatePaymentRunRequest {
|
|
589
575
|
siteId: string;
|
|
590
576
|
createPaymentRun: CreatePaymentRun;
|
|
@@ -832,7 +818,6 @@ export interface GetDocumentsRequest {
|
|
|
832
818
|
}
|
|
833
819
|
|
|
834
820
|
export interface GetInvoiceRequest {
|
|
835
|
-
siteId: string;
|
|
836
821
|
invoiceId: string;
|
|
837
822
|
}
|
|
838
823
|
|
|
@@ -890,11 +875,6 @@ export interface GetPaymentRequest {
|
|
|
890
875
|
paymentId: string;
|
|
891
876
|
}
|
|
892
877
|
|
|
893
|
-
export interface GetPayment1Request {
|
|
894
|
-
customerId: string;
|
|
895
|
-
paymentMethodId: string;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
878
|
export interface GetPaymentRunRequest {
|
|
899
879
|
siteId: string;
|
|
900
880
|
paymentRunId: string;
|
|
@@ -914,13 +894,6 @@ export interface GetPaymentsRequest {
|
|
|
914
894
|
status?: string;
|
|
915
895
|
}
|
|
916
896
|
|
|
917
|
-
export interface GetPayments1Request {
|
|
918
|
-
customerId: string;
|
|
919
|
-
offset?: number;
|
|
920
|
-
limit?: number;
|
|
921
|
-
paymentType?: string;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
897
|
export interface GetPlanRequest {
|
|
925
898
|
siteId: string;
|
|
926
899
|
planId: string;
|
|
@@ -2379,55 +2352,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2379
2352
|
return await response.value();
|
|
2380
2353
|
}
|
|
2381
2354
|
|
|
2382
|
-
/**
|
|
2383
|
-
*/
|
|
2384
|
-
async createPaymentMethodRaw(requestParameters: CreatePaymentMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentMethod>> {
|
|
2385
|
-
if (requestParameters['customerId'] == null) {
|
|
2386
|
-
throw new runtime.RequiredError(
|
|
2387
|
-
'customerId',
|
|
2388
|
-
'Required parameter "customerId" was null or undefined when calling createPaymentMethod().'
|
|
2389
|
-
);
|
|
2390
|
-
}
|
|
2391
|
-
|
|
2392
|
-
if (requestParameters['createPaymentMethod'] == null) {
|
|
2393
|
-
throw new runtime.RequiredError(
|
|
2394
|
-
'createPaymentMethod',
|
|
2395
|
-
'Required parameter "createPaymentMethod" was null or undefined when calling createPaymentMethod().'
|
|
2396
|
-
);
|
|
2397
|
-
}
|
|
2398
|
-
|
|
2399
|
-
const queryParameters: any = {};
|
|
2400
|
-
|
|
2401
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
2402
|
-
|
|
2403
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2404
|
-
|
|
2405
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
2406
|
-
const token = this.configuration.accessToken;
|
|
2407
|
-
const tokenString = await token("bearer", []);
|
|
2408
|
-
|
|
2409
|
-
if (tokenString) {
|
|
2410
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2411
|
-
}
|
|
2412
|
-
}
|
|
2413
|
-
const response = await this.request({
|
|
2414
|
-
path: `/api/customers/{customerId}/payment-methods`.replace(`{${"customerId"}}`, encodeURIComponent(String(requestParameters['customerId']))),
|
|
2415
|
-
method: 'POST',
|
|
2416
|
-
headers: headerParameters,
|
|
2417
|
-
query: queryParameters,
|
|
2418
|
-
body: CreatePaymentMethodToJSON(requestParameters['createPaymentMethod']),
|
|
2419
|
-
}, initOverrides);
|
|
2420
|
-
|
|
2421
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaymentMethodFromJSON(jsonValue));
|
|
2422
|
-
}
|
|
2423
|
-
|
|
2424
|
-
/**
|
|
2425
|
-
*/
|
|
2426
|
-
async createPaymentMethod(requestParameters: CreatePaymentMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentMethod> {
|
|
2427
|
-
const response = await this.createPaymentMethodRaw(requestParameters, initOverrides);
|
|
2428
|
-
return await response.value();
|
|
2429
|
-
}
|
|
2430
|
-
|
|
2431
2355
|
/**
|
|
2432
2356
|
*/
|
|
2433
2357
|
async createPaymentRunRaw(requestParameters: CreatePaymentRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentRun>> {
|
|
@@ -4612,13 +4536,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4612
4536
|
/**
|
|
4613
4537
|
*/
|
|
4614
4538
|
async getInvoiceRaw(requestParameters: GetInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Invoice>> {
|
|
4615
|
-
if (requestParameters['siteId'] == null) {
|
|
4616
|
-
throw new runtime.RequiredError(
|
|
4617
|
-
'siteId',
|
|
4618
|
-
'Required parameter "siteId" was null or undefined when calling getInvoice().'
|
|
4619
|
-
);
|
|
4620
|
-
}
|
|
4621
|
-
|
|
4622
4539
|
if (requestParameters['invoiceId'] == null) {
|
|
4623
4540
|
throw new runtime.RequiredError(
|
|
4624
4541
|
'invoiceId',
|
|
@@ -4639,7 +4556,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4639
4556
|
}
|
|
4640
4557
|
}
|
|
4641
4558
|
const response = await this.request({
|
|
4642
|
-
path: `/api/
|
|
4559
|
+
path: `/api/invoices/{invoiceId}`.replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
4643
4560
|
method: 'GET',
|
|
4644
4561
|
headers: headerParameters,
|
|
4645
4562
|
query: queryParameters,
|
|
@@ -5078,52 +4995,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5078
4995
|
return await response.value();
|
|
5079
4996
|
}
|
|
5080
4997
|
|
|
5081
|
-
/**
|
|
5082
|
-
*/
|
|
5083
|
-
async getPayment1Raw(requestParameters: GetPayment1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentMethod>> {
|
|
5084
|
-
if (requestParameters['customerId'] == null) {
|
|
5085
|
-
throw new runtime.RequiredError(
|
|
5086
|
-
'customerId',
|
|
5087
|
-
'Required parameter "customerId" was null or undefined when calling getPayment1().'
|
|
5088
|
-
);
|
|
5089
|
-
}
|
|
5090
|
-
|
|
5091
|
-
if (requestParameters['paymentMethodId'] == null) {
|
|
5092
|
-
throw new runtime.RequiredError(
|
|
5093
|
-
'paymentMethodId',
|
|
5094
|
-
'Required parameter "paymentMethodId" was null or undefined when calling getPayment1().'
|
|
5095
|
-
);
|
|
5096
|
-
}
|
|
5097
|
-
|
|
5098
|
-
const queryParameters: any = {};
|
|
5099
|
-
|
|
5100
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
5101
|
-
|
|
5102
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
5103
|
-
const token = this.configuration.accessToken;
|
|
5104
|
-
const tokenString = await token("bearer", []);
|
|
5105
|
-
|
|
5106
|
-
if (tokenString) {
|
|
5107
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5108
|
-
}
|
|
5109
|
-
}
|
|
5110
|
-
const response = await this.request({
|
|
5111
|
-
path: `/api/customers/{customerId}/payment-methods/{paymentMethodId}`.replace(`{${"customerId"}}`, encodeURIComponent(String(requestParameters['customerId']))).replace(`{${"paymentMethodId"}}`, encodeURIComponent(String(requestParameters['paymentMethodId']))),
|
|
5112
|
-
method: 'GET',
|
|
5113
|
-
headers: headerParameters,
|
|
5114
|
-
query: queryParameters,
|
|
5115
|
-
}, initOverrides);
|
|
5116
|
-
|
|
5117
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaymentMethodFromJSON(jsonValue));
|
|
5118
|
-
}
|
|
5119
|
-
|
|
5120
|
-
/**
|
|
5121
|
-
*/
|
|
5122
|
-
async getPayment1(requestParameters: GetPayment1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentMethod> {
|
|
5123
|
-
const response = await this.getPayment1Raw(requestParameters, initOverrides);
|
|
5124
|
-
return await response.value();
|
|
5125
|
-
}
|
|
5126
|
-
|
|
5127
4998
|
/**
|
|
5128
4999
|
*/
|
|
5129
5000
|
async getPaymentRunRaw(requestParameters: GetPaymentRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentRun>> {
|
|
@@ -5272,57 +5143,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5272
5143
|
return await response.value();
|
|
5273
5144
|
}
|
|
5274
5145
|
|
|
5275
|
-
/**
|
|
5276
|
-
*/
|
|
5277
|
-
async getPayments1Raw(requestParameters: GetPayments1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPayments1200Response>> {
|
|
5278
|
-
if (requestParameters['customerId'] == null) {
|
|
5279
|
-
throw new runtime.RequiredError(
|
|
5280
|
-
'customerId',
|
|
5281
|
-
'Required parameter "customerId" was null or undefined when calling getPayments1().'
|
|
5282
|
-
);
|
|
5283
|
-
}
|
|
5284
|
-
|
|
5285
|
-
const queryParameters: any = {};
|
|
5286
|
-
|
|
5287
|
-
if (requestParameters['offset'] != null) {
|
|
5288
|
-
queryParameters['offset'] = requestParameters['offset'];
|
|
5289
|
-
}
|
|
5290
|
-
|
|
5291
|
-
if (requestParameters['limit'] != null) {
|
|
5292
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
5293
|
-
}
|
|
5294
|
-
|
|
5295
|
-
if (requestParameters['paymentType'] != null) {
|
|
5296
|
-
queryParameters['paymentType'] = requestParameters['paymentType'];
|
|
5297
|
-
}
|
|
5298
|
-
|
|
5299
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
5300
|
-
|
|
5301
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
5302
|
-
const token = this.configuration.accessToken;
|
|
5303
|
-
const tokenString = await token("bearer", []);
|
|
5304
|
-
|
|
5305
|
-
if (tokenString) {
|
|
5306
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5307
|
-
}
|
|
5308
|
-
}
|
|
5309
|
-
const response = await this.request({
|
|
5310
|
-
path: `/api/customers/{customerId}/payment-methods`.replace(`{${"customerId"}}`, encodeURIComponent(String(requestParameters['customerId']))),
|
|
5311
|
-
method: 'GET',
|
|
5312
|
-
headers: headerParameters,
|
|
5313
|
-
query: queryParameters,
|
|
5314
|
-
}, initOverrides);
|
|
5315
|
-
|
|
5316
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GetPayments1200ResponseFromJSON(jsonValue));
|
|
5317
|
-
}
|
|
5318
|
-
|
|
5319
|
-
/**
|
|
5320
|
-
*/
|
|
5321
|
-
async getPayments1(requestParameters: GetPayments1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPayments1200Response> {
|
|
5322
|
-
const response = await this.getPayments1Raw(requestParameters, initOverrides);
|
|
5323
|
-
return await response.value();
|
|
5324
|
-
}
|
|
5325
|
-
|
|
5326
5146
|
/**
|
|
5327
5147
|
*/
|
|
5328
5148
|
async getPlanRaw(requestParameters: GetPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlanCustom>> {
|
|
@@ -44,7 +44,6 @@ 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';
|
|
48
47
|
export * from './create-payment-refund';
|
|
49
48
|
export * from './create-payment-run';
|
|
50
49
|
export * from './create-plan-charge';
|
|
@@ -100,7 +99,6 @@ export * from './get-notes200-response';
|
|
|
100
99
|
export * from './get-notifications200-response';
|
|
101
100
|
export * from './get-orders200-response';
|
|
102
101
|
export * from './get-payment-runs200-response';
|
|
103
|
-
export * from './get-payments1200-response';
|
|
104
102
|
export * from './get-payments200-response';
|
|
105
103
|
export * from './get-plans200-response';
|
|
106
104
|
export * from './get-plugins200-response';
|
|
@@ -134,7 +132,6 @@ export * from './paginated';
|
|
|
134
132
|
export * from './password';
|
|
135
133
|
export * from './password-strength-check';
|
|
136
134
|
export * from './payment';
|
|
137
|
-
export * from './payment-method';
|
|
138
135
|
export * from './payment-run';
|
|
139
136
|
export * from './payment-run-filter-condition';
|
|
140
137
|
export * from './payment-run-filter-options';
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,105 +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 CreatePaymentMethod
|
|
16
|
-
*/
|
|
17
|
-
export interface CreatePaymentMethod {
|
|
18
|
-
/**
|
|
19
|
-
* Customer ID associated with electronic payment method
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreatePaymentMethod
|
|
22
|
-
*/
|
|
23
|
-
customerId?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Customers payment gateway id
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreatePaymentMethod
|
|
28
|
-
*/
|
|
29
|
-
customerPaymentGatewayId?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Payment type
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CreatePaymentMethod
|
|
34
|
-
*/
|
|
35
|
-
paymentType: string;
|
|
36
|
-
/**
|
|
37
|
-
* Type of card
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof CreatePaymentMethod
|
|
40
|
-
*/
|
|
41
|
-
type?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Credit card or bank account number
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CreatePaymentMethod
|
|
46
|
-
*/
|
|
47
|
-
accountNumber: string;
|
|
48
|
-
/**
|
|
49
|
-
* Routing number for bank accounts
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof CreatePaymentMethod
|
|
52
|
-
*/
|
|
53
|
-
routingNumber?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Name on card or account
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof CreatePaymentMethod
|
|
58
|
-
*/
|
|
59
|
-
accountHolderName?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Type of acccount owner
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof CreatePaymentMethod
|
|
64
|
-
*/
|
|
65
|
-
accountHolderType?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Country of the account holder
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof CreatePaymentMethod
|
|
70
|
-
*/
|
|
71
|
-
country?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Credit card expiration date
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof CreatePaymentMethod
|
|
76
|
-
*/
|
|
77
|
-
expiry?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Account status for bank accounts
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof CreatePaymentMethod
|
|
82
|
-
*/
|
|
83
|
-
status?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Enable defaule payment method
|
|
86
|
-
* @type {boolean}
|
|
87
|
-
* @memberof CreatePaymentMethod
|
|
88
|
-
*/
|
|
89
|
-
_default?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* CVC, security code for payment method
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof CreatePaymentMethod
|
|
94
|
-
*/
|
|
95
|
-
cvc?: string;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Check if a given object implements the CreatePaymentMethod interface.
|
|
99
|
-
*/
|
|
100
|
-
export declare function instanceOfCreatePaymentMethod(value: object): value is CreatePaymentMethod;
|
|
101
|
-
export declare function CreatePaymentMethodFromJSON(json: any): CreatePaymentMethod;
|
|
102
|
-
export declare function CreatePaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePaymentMethod;
|
|
103
|
-
export declare function CreatePaymentMethodToJSON(json: any): CreatePaymentMethod;
|
|
104
|
-
export declare function CreatePaymentMethodToJSONTyped(value?: CreatePaymentMethod | null, ignoreDiscriminator?: boolean): any;
|
|
105
|
-
//# sourceMappingURL=create-payment-method.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-payment-method.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-payment-method.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAIzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAoB7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAqB5H"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* ManageSpace API
|
|
6
|
-
* ManageSpace 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.CreatePaymentMethodToJSONTyped = exports.CreatePaymentMethodToJSON = exports.CreatePaymentMethodFromJSONTyped = exports.CreatePaymentMethodFromJSON = exports.instanceOfCreatePaymentMethod = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the CreatePaymentMethod interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfCreatePaymentMethod(value) {
|
|
21
|
-
if (!('paymentType' in value) || value['paymentType'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('accountNumber' in value) || value['accountNumber'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfCreatePaymentMethod = instanceOfCreatePaymentMethod;
|
|
28
|
-
function CreatePaymentMethodFromJSON(json) {
|
|
29
|
-
return CreatePaymentMethodFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.CreatePaymentMethodFromJSON = CreatePaymentMethodFromJSON;
|
|
32
|
-
function CreatePaymentMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
38
|
-
'customerPaymentGatewayId': json['customerPaymentGatewayId'] == null ? undefined : json['customerPaymentGatewayId'],
|
|
39
|
-
'paymentType': json['paymentType'],
|
|
40
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
41
|
-
'accountNumber': json['accountNumber'],
|
|
42
|
-
'routingNumber': json['routingNumber'] == null ? undefined : json['routingNumber'],
|
|
43
|
-
'accountHolderName': json['accountHolderName'] == null ? undefined : json['accountHolderName'],
|
|
44
|
-
'accountHolderType': json['accountHolderType'] == null ? undefined : json['accountHolderType'],
|
|
45
|
-
'country': json['country'] == null ? undefined : json['country'],
|
|
46
|
-
'expiry': json['expiry'] == null ? undefined : json['expiry'],
|
|
47
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
48
|
-
'_default': json['default'] == null ? undefined : json['default'],
|
|
49
|
-
'cvc': json['cvc'] == null ? undefined : json['cvc'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
exports.CreatePaymentMethodFromJSONTyped = CreatePaymentMethodFromJSONTyped;
|
|
53
|
-
function CreatePaymentMethodToJSON(json) {
|
|
54
|
-
return CreatePaymentMethodToJSONTyped(json, false);
|
|
55
|
-
}
|
|
56
|
-
exports.CreatePaymentMethodToJSON = CreatePaymentMethodToJSON;
|
|
57
|
-
function CreatePaymentMethodToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
-
if (value == null) {
|
|
59
|
-
return value;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
'customerId': value['customerId'],
|
|
63
|
-
'customerPaymentGatewayId': value['customerPaymentGatewayId'],
|
|
64
|
-
'paymentType': value['paymentType'],
|
|
65
|
-
'type': value['type'],
|
|
66
|
-
'accountNumber': value['accountNumber'],
|
|
67
|
-
'routingNumber': value['routingNumber'],
|
|
68
|
-
'accountHolderName': value['accountHolderName'],
|
|
69
|
-
'accountHolderType': value['accountHolderType'],
|
|
70
|
-
'country': value['country'],
|
|
71
|
-
'expiry': value['expiry'],
|
|
72
|
-
'status': value['status'],
|
|
73
|
-
'default': value['_default'],
|
|
74
|
-
'cvc': value['cvc'],
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
exports.CreatePaymentMethodToJSONTyped = CreatePaymentMethodToJSONTyped;
|