@managespace/sdk 0.0.174 → 0.0.176
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 -19
- 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 +2 -36
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +3 -113
- 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 -18
- package/src/generated/.openapi-generator/FILES +0 -3
- package/src/generated/apis/default-api.ts +3 -191
- 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
|
@@ -839,40 +839,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
839
839
|
const response = await this.createPaymentRaw(requestParameters, initOverrides);
|
|
840
840
|
return await response.value();
|
|
841
841
|
}
|
|
842
|
-
/**
|
|
843
|
-
*/
|
|
844
|
-
async createPaymentMethodRaw(requestParameters, initOverrides) {
|
|
845
|
-
if (requestParameters['customerId'] == null) {
|
|
846
|
-
throw new runtime.RequiredError('customerId', 'Required parameter "customerId" was null or undefined when calling createPaymentMethod().');
|
|
847
|
-
}
|
|
848
|
-
if (requestParameters['createPaymentMethod'] == null) {
|
|
849
|
-
throw new runtime.RequiredError('createPaymentMethod', 'Required parameter "createPaymentMethod" was null or undefined when calling createPaymentMethod().');
|
|
850
|
-
}
|
|
851
|
-
const queryParameters = {};
|
|
852
|
-
const headerParameters = {};
|
|
853
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
854
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
855
|
-
const token = this.configuration.accessToken;
|
|
856
|
-
const tokenString = await token("bearer", []);
|
|
857
|
-
if (tokenString) {
|
|
858
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
const response = await this.request({
|
|
862
|
-
path: `/api/customers/{customerId}/payment-methods`.replace(`{${"customerId"}}`, encodeURIComponent(String(requestParameters['customerId']))),
|
|
863
|
-
method: 'POST',
|
|
864
|
-
headers: headerParameters,
|
|
865
|
-
query: queryParameters,
|
|
866
|
-
body: (0, index_1.CreatePaymentMethodToJSON)(requestParameters['createPaymentMethod']),
|
|
867
|
-
}, initOverrides);
|
|
868
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaymentMethodFromJSON)(jsonValue));
|
|
869
|
-
}
|
|
870
|
-
/**
|
|
871
|
-
*/
|
|
872
|
-
async createPaymentMethod(requestParameters, initOverrides) {
|
|
873
|
-
const response = await this.createPaymentMethodRaw(requestParameters, initOverrides);
|
|
874
|
-
return await response.value();
|
|
875
|
-
}
|
|
876
842
|
/**
|
|
877
843
|
*/
|
|
878
844
|
async createPaymentRunRaw(requestParameters, initOverrides) {
|
|
@@ -2472,9 +2438,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
2472
2438
|
/**
|
|
2473
2439
|
*/
|
|
2474
2440
|
async getInvoiceRaw(requestParameters, initOverrides) {
|
|
2475
|
-
if (requestParameters['siteId'] == null) {
|
|
2476
|
-
throw new runtime.RequiredError('siteId', 'Required parameter "siteId" was null or undefined when calling getInvoice().');
|
|
2477
|
-
}
|
|
2478
2441
|
if (requestParameters['invoiceId'] == null) {
|
|
2479
2442
|
throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling getInvoice().');
|
|
2480
2443
|
}
|
|
@@ -2488,7 +2451,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
2488
2451
|
}
|
|
2489
2452
|
}
|
|
2490
2453
|
const response = await this.request({
|
|
2491
|
-
path: `/api/
|
|
2454
|
+
path: `/api/invoices/{invoiceId}`.replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
2492
2455
|
method: 'GET',
|
|
2493
2456
|
headers: headerParameters,
|
|
2494
2457
|
query: queryParameters,
|
|
@@ -2816,38 +2779,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
2816
2779
|
const response = await this.getPaymentRaw(requestParameters, initOverrides);
|
|
2817
2780
|
return await response.value();
|
|
2818
2781
|
}
|
|
2819
|
-
/**
|
|
2820
|
-
*/
|
|
2821
|
-
async getPayment1Raw(requestParameters, initOverrides) {
|
|
2822
|
-
if (requestParameters['customerId'] == null) {
|
|
2823
|
-
throw new runtime.RequiredError('customerId', 'Required parameter "customerId" was null or undefined when calling getPayment1().');
|
|
2824
|
-
}
|
|
2825
|
-
if (requestParameters['paymentMethodId'] == null) {
|
|
2826
|
-
throw new runtime.RequiredError('paymentMethodId', 'Required parameter "paymentMethodId" was null or undefined when calling getPayment1().');
|
|
2827
|
-
}
|
|
2828
|
-
const queryParameters = {};
|
|
2829
|
-
const headerParameters = {};
|
|
2830
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
2831
|
-
const token = this.configuration.accessToken;
|
|
2832
|
-
const tokenString = await token("bearer", []);
|
|
2833
|
-
if (tokenString) {
|
|
2834
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2835
|
-
}
|
|
2836
|
-
}
|
|
2837
|
-
const response = await this.request({
|
|
2838
|
-
path: `/api/customers/{customerId}/payment-methods/{paymentMethodId}`.replace(`{${"customerId"}}`, encodeURIComponent(String(requestParameters['customerId']))).replace(`{${"paymentMethodId"}}`, encodeURIComponent(String(requestParameters['paymentMethodId']))),
|
|
2839
|
-
method: 'GET',
|
|
2840
|
-
headers: headerParameters,
|
|
2841
|
-
query: queryParameters,
|
|
2842
|
-
}, initOverrides);
|
|
2843
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaymentMethodFromJSON)(jsonValue));
|
|
2844
|
-
}
|
|
2845
|
-
/**
|
|
2846
|
-
*/
|
|
2847
|
-
async getPayment1(requestParameters, initOverrides) {
|
|
2848
|
-
const response = await this.getPayment1Raw(requestParameters, initOverrides);
|
|
2849
|
-
return await response.value();
|
|
2850
|
-
}
|
|
2851
2782
|
/**
|
|
2852
2783
|
*/
|
|
2853
2784
|
async getPaymentRunRaw(requestParameters, initOverrides) {
|
|
@@ -2956,44 +2887,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
2956
2887
|
const response = await this.getPaymentsRaw(requestParameters, initOverrides);
|
|
2957
2888
|
return await response.value();
|
|
2958
2889
|
}
|
|
2959
|
-
/**
|
|
2960
|
-
*/
|
|
2961
|
-
async getPayments1Raw(requestParameters, initOverrides) {
|
|
2962
|
-
if (requestParameters['customerId'] == null) {
|
|
2963
|
-
throw new runtime.RequiredError('customerId', 'Required parameter "customerId" was null or undefined when calling getPayments1().');
|
|
2964
|
-
}
|
|
2965
|
-
const queryParameters = {};
|
|
2966
|
-
if (requestParameters['offset'] != null) {
|
|
2967
|
-
queryParameters['offset'] = requestParameters['offset'];
|
|
2968
|
-
}
|
|
2969
|
-
if (requestParameters['limit'] != null) {
|
|
2970
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
2971
|
-
}
|
|
2972
|
-
if (requestParameters['paymentType'] != null) {
|
|
2973
|
-
queryParameters['paymentType'] = requestParameters['paymentType'];
|
|
2974
|
-
}
|
|
2975
|
-
const headerParameters = {};
|
|
2976
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
2977
|
-
const token = this.configuration.accessToken;
|
|
2978
|
-
const tokenString = await token("bearer", []);
|
|
2979
|
-
if (tokenString) {
|
|
2980
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2981
|
-
}
|
|
2982
|
-
}
|
|
2983
|
-
const response = await this.request({
|
|
2984
|
-
path: `/api/customers/{customerId}/payment-methods`.replace(`{${"customerId"}}`, encodeURIComponent(String(requestParameters['customerId']))),
|
|
2985
|
-
method: 'GET',
|
|
2986
|
-
headers: headerParameters,
|
|
2987
|
-
query: queryParameters,
|
|
2988
|
-
}, initOverrides);
|
|
2989
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPayments1200ResponseFromJSON)(jsonValue));
|
|
2990
|
-
}
|
|
2991
|
-
/**
|
|
2992
|
-
*/
|
|
2993
|
-
async getPayments1(requestParameters, initOverrides) {
|
|
2994
|
-
const response = await this.getPayments1Raw(requestParameters, initOverrides);
|
|
2995
|
-
return await response.value();
|
|
2996
|
-
}
|
|
2997
2890
|
/**
|
|
2998
2891
|
*/
|
|
2999
2892
|
async getPlanRaw(requestParameters, initOverrides) {
|
|
@@ -3507,9 +3400,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3507
3400
|
/**
|
|
3508
3401
|
*/
|
|
3509
3402
|
async getSubscriptionsRaw(requestParameters, initOverrides) {
|
|
3510
|
-
if (requestParameters['siteId'] == null) {
|
|
3511
|
-
throw new runtime.RequiredError('siteId', 'Required parameter "siteId" was null or undefined when calling getSubscriptions().');
|
|
3512
|
-
}
|
|
3513
3403
|
const queryParameters = {};
|
|
3514
3404
|
if (requestParameters['offset'] != null) {
|
|
3515
3405
|
queryParameters['offset'] = requestParameters['offset'];
|
|
@@ -3532,7 +3422,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3532
3422
|
}
|
|
3533
3423
|
}
|
|
3534
3424
|
const response = await this.request({
|
|
3535
|
-
path: `/api/
|
|
3425
|
+
path: `/api/subscriptions`,
|
|
3536
3426
|
method: 'GET',
|
|
3537
3427
|
headers: headerParameters,
|
|
3538
3428
|
query: queryParameters,
|
|
@@ -3541,7 +3431,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3541
3431
|
}
|
|
3542
3432
|
/**
|
|
3543
3433
|
*/
|
|
3544
|
-
async getSubscriptions(requestParameters, initOverrides) {
|
|
3434
|
+
async getSubscriptions(requestParameters = {}, initOverrides) {
|
|
3545
3435
|
const response = await this.getSubscriptionsRaw(requestParameters, initOverrides);
|
|
3546
3436
|
return await response.value();
|
|
3547
3437
|
}
|
|
@@ -42,7 +42,6 @@ export * from './create-order';
|
|
|
42
42
|
export * from './create-org';
|
|
43
43
|
export * from './create-payment';
|
|
44
44
|
export * from './create-payment-invoice';
|
|
45
|
-
export * from './create-payment-method';
|
|
46
45
|
export * from './create-payment-refund';
|
|
47
46
|
export * from './create-payment-run';
|
|
48
47
|
export * from './create-plan-charge';
|
|
@@ -98,7 +97,6 @@ export * from './get-notes200-response';
|
|
|
98
97
|
export * from './get-notifications200-response';
|
|
99
98
|
export * from './get-orders200-response';
|
|
100
99
|
export * from './get-payment-runs200-response';
|
|
101
|
-
export * from './get-payments1200-response';
|
|
102
100
|
export * from './get-payments200-response';
|
|
103
101
|
export * from './get-plans200-response';
|
|
104
102
|
export * from './get-plugins200-response';
|
|
@@ -132,7 +130,6 @@ export * from './paginated';
|
|
|
132
130
|
export * from './password';
|
|
133
131
|
export * from './password-strength-check';
|
|
134
132
|
export * from './payment';
|
|
135
|
-
export * from './payment-method';
|
|
136
133
|
export * from './payment-run';
|
|
137
134
|
export * from './payment-run-filter-condition';
|
|
138
135
|
export * from './payment-run-filter-options';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,C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B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC;AAC/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.176",
|
|
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';
|
|
@@ -201,7 +199,6 @@ export namespace Billing {
|
|
|
201
199
|
export class GetSubscriptions implements ExtPlugin {
|
|
202
200
|
responseType!: Subscription[];
|
|
203
201
|
payload!: BasePaginationQuery & {
|
|
204
|
-
siteId: string;
|
|
205
202
|
status?: string;
|
|
206
203
|
assetId?: string;
|
|
207
204
|
};
|
|
@@ -334,19 +331,4 @@ export namespace Billing {
|
|
|
334
331
|
updatePlanPayload: _UpdatePlan;
|
|
335
332
|
};
|
|
336
333
|
}
|
|
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 & { customerId: string };
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
export class GetPaymentMethod implements ExtPlugin {
|
|
349
|
-
responseType!: PaymentMethod;
|
|
350
|
-
payload!: { customerId: string; paymentMethodId: string };
|
|
351
|
-
}
|
|
352
334
|
}
|
|
@@ -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
|