@managespace/sdk 0.1.157 → 0.1.158-extensions
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/README.md +723 -2
- package/dist/extensibility/functions/project/billing.d.ts +12 -19
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +0 -5
- package/dist/extensibility/types/control.d.ts +1 -1
- package/dist/extensibility/types/control.d.ts.map +1 -1
- package/dist/extensions/host-bridge.d.ts +166 -0
- package/dist/extensions/host-bridge.d.ts.map +1 -0
- package/dist/extensions/host-bridge.js +259 -0
- package/dist/extensions/index.d.ts +40 -0
- package/dist/extensions/index.d.ts.map +1 -0
- package/dist/extensions/index.js +55 -0
- package/dist/extensions/types.d.ts +111 -0
- package/dist/extensions/types.d.ts.map +1 -0
- package/dist/extensions/types.js +2 -0
- package/dist/generated/apis/default-api.d.ts +1 -9
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +0 -28
- package/dist/generated/apis/extensions-api.d.ts +98 -0
- package/dist/generated/apis/extensions-api.d.ts.map +1 -0
- package/dist/generated/apis/extensions-api.js +295 -0
- package/dist/generated/apis/index.d.ts +1 -0
- package/dist/generated/apis/index.d.ts.map +1 -1
- package/dist/generated/apis/index.js +1 -0
- package/dist/generated/models/contact.d.ts +1 -1
- package/dist/generated/models/contact.d.ts.map +1 -1
- package/dist/generated/models/contact.js +3 -3
- package/dist/generated/models/customer.d.ts +1 -1
- package/dist/generated/models/customer.d.ts.map +1 -1
- package/dist/generated/models/customer.js +3 -3
- package/dist/generated/models/extension-org.d.ts +64 -0
- package/dist/generated/models/extension-org.d.ts.map +1 -0
- package/dist/generated/models/extension-org.js +70 -0
- package/dist/generated/models/extension.d.ts +106 -0
- package/dist/generated/models/extension.d.ts.map +1 -0
- package/dist/generated/models/extension.js +98 -0
- package/dist/generated/models/index.d.ts +2 -1
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +2 -1
- package/dist/generated/models/subscription-preview.d.ts +1 -1
- package/dist/generated/models/subscription-preview.d.ts.map +1 -1
- package/dist/generated/models/subscription-preview.js +3 -3
- package/dist/generated/models/subscription.d.ts +1 -1
- package/dist/generated/models/subscription.d.ts.map +1 -1
- package/dist/generated/models/subscription.js +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +7 -3
- package/src/extensibility/functions/project/billing.ts +12 -18
- package/src/extensibility/types/control.ts +0 -1
- package/src/extensions/host-bridge.ts +272 -0
- package/src/extensions/index.ts +40 -0
- package/src/extensions/types.ts +120 -0
- package/src/generated/.openapi-generator/FILES +3 -1
- package/src/generated/apis/default-api.ts +0 -37
- package/src/generated/apis/extensions-api.ts +362 -0
- package/src/generated/apis/index.ts +1 -0
- package/src/generated/models/contact.ts +4 -4
- package/src/generated/models/customer.ts +4 -4
- package/src/generated/models/extension-org.ts +119 -0
- package/src/generated/models/extension.ts +182 -0
- package/src/generated/models/index.ts +2 -1
- package/src/generated/models/subscription-preview.ts +4 -4
- package/src/generated/models/subscription.ts +4 -4
- package/src/index.ts +1 -0
- package/dist/generated/models/payment-gateway-client-token-response.d.ts +0 -47
- package/dist/generated/models/payment-gateway-client-token-response.d.ts.map +0 -1
- package/dist/generated/models/payment-gateway-client-token-response.js +0 -63
- package/src/generated/models/payment-gateway-client-token-response.ts +0 -87
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
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
|
+
|
|
16
|
+
import { mapValues } from '../runtime';
|
|
17
|
+
import type { ExtensionOrg } from './extension-org';
|
|
18
|
+
import {
|
|
19
|
+
ExtensionOrgFromJSON,
|
|
20
|
+
ExtensionOrgFromJSONTyped,
|
|
21
|
+
ExtensionOrgToJSON,
|
|
22
|
+
ExtensionOrgToJSONTyped,
|
|
23
|
+
} from './extension-org';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface Extension
|
|
29
|
+
*/
|
|
30
|
+
export interface Extension {
|
|
31
|
+
/**
|
|
32
|
+
* Extension ID
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Extension
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
* Extension name
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Extension
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* Extension description
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Extension
|
|
47
|
+
*/
|
|
48
|
+
description: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Extension author
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Extension
|
|
53
|
+
*/
|
|
54
|
+
author: string;
|
|
55
|
+
/**
|
|
56
|
+
* Extension version
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof Extension
|
|
59
|
+
*/
|
|
60
|
+
version: string;
|
|
61
|
+
/**
|
|
62
|
+
* S3 key for the extension bundle
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof Extension
|
|
65
|
+
*/
|
|
66
|
+
bundlePath: string;
|
|
67
|
+
/**
|
|
68
|
+
* Full extension manifest as JSON
|
|
69
|
+
* @type {object}
|
|
70
|
+
* @memberof Extension
|
|
71
|
+
*/
|
|
72
|
+
manifest: object;
|
|
73
|
+
/**
|
|
74
|
+
* Navigation label
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof Extension
|
|
77
|
+
*/
|
|
78
|
+
navLabel: string;
|
|
79
|
+
/**
|
|
80
|
+
* Navigation icon name
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof Extension
|
|
83
|
+
*/
|
|
84
|
+
navIcon: string;
|
|
85
|
+
/**
|
|
86
|
+
* Navigation route
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof Extension
|
|
89
|
+
*/
|
|
90
|
+
navRoute: string;
|
|
91
|
+
/**
|
|
92
|
+
* When the record was created
|
|
93
|
+
* @type {Date}
|
|
94
|
+
* @memberof Extension
|
|
95
|
+
*/
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
/**
|
|
98
|
+
* When the record was last updated
|
|
99
|
+
* @type {Date}
|
|
100
|
+
* @memberof Extension
|
|
101
|
+
*/
|
|
102
|
+
updatedAt: Date | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {Array<ExtensionOrg>}
|
|
106
|
+
* @memberof Extension
|
|
107
|
+
*/
|
|
108
|
+
orgs?: Array<ExtensionOrg>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Check if a given object implements the Extension interface.
|
|
113
|
+
*/
|
|
114
|
+
export function instanceOfExtension(value: object): value is Extension {
|
|
115
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
116
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
117
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
118
|
+
if (!('author' in value) || value['author'] === undefined) return false;
|
|
119
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
120
|
+
if (!('bundlePath' in value) || value['bundlePath'] === undefined) return false;
|
|
121
|
+
if (!('manifest' in value) || value['manifest'] === undefined) return false;
|
|
122
|
+
if (!('navLabel' in value) || value['navLabel'] === undefined) return false;
|
|
123
|
+
if (!('navIcon' in value) || value['navIcon'] === undefined) return false;
|
|
124
|
+
if (!('navRoute' in value) || value['navRoute'] === undefined) return false;
|
|
125
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
126
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function ExtensionFromJSON(json: any): Extension {
|
|
131
|
+
return ExtensionFromJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function ExtensionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Extension {
|
|
135
|
+
if (json == null) {
|
|
136
|
+
return json;
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
|
|
140
|
+
'id': json['id'],
|
|
141
|
+
'name': json['name'],
|
|
142
|
+
'description': json['description'],
|
|
143
|
+
'author': json['author'],
|
|
144
|
+
'version': json['version'],
|
|
145
|
+
'bundlePath': json['bundlePath'],
|
|
146
|
+
'manifest': json['manifest'],
|
|
147
|
+
'navLabel': json['navLabel'],
|
|
148
|
+
'navIcon': json['navIcon'],
|
|
149
|
+
'navRoute': json['navRoute'],
|
|
150
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
151
|
+
'updatedAt': (json['updatedAt'] == null ? null : new Date(json['updatedAt'])),
|
|
152
|
+
'orgs': json['orgs'] == null ? undefined : ((json['orgs'] as Array<any>).map(ExtensionOrgFromJSON)),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function ExtensionToJSON(json: any): Extension {
|
|
157
|
+
return ExtensionToJSONTyped(json, false);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function ExtensionToJSONTyped(value?: Extension | null, ignoreDiscriminator: boolean = false): any {
|
|
161
|
+
if (value == null) {
|
|
162
|
+
return value;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return {
|
|
166
|
+
|
|
167
|
+
'id': value['id'],
|
|
168
|
+
'name': value['name'],
|
|
169
|
+
'description': value['description'],
|
|
170
|
+
'author': value['author'],
|
|
171
|
+
'version': value['version'],
|
|
172
|
+
'bundlePath': value['bundlePath'],
|
|
173
|
+
'manifest': value['manifest'],
|
|
174
|
+
'navLabel': value['navLabel'],
|
|
175
|
+
'navIcon': value['navIcon'],
|
|
176
|
+
'navRoute': value['navRoute'],
|
|
177
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
178
|
+
'updatedAt': (value['updatedAt'] == null ? null : (value['updatedAt'] as any).toISOString()),
|
|
179
|
+
'orgs': value['orgs'] == null ? undefined : ((value['orgs'] as Array<any>).map(ExtensionOrgToJSON)),
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
@@ -103,6 +103,8 @@ export * from './extensibility-function-instance';
|
|
|
103
103
|
export * from './extensibility-function-metadata';
|
|
104
104
|
export * from './extensibility-repo';
|
|
105
105
|
export * from './extensibility-status';
|
|
106
|
+
export * from './extension';
|
|
107
|
+
export * from './extension-org';
|
|
106
108
|
export * from './field-area';
|
|
107
109
|
export * from './field-preferences';
|
|
108
110
|
export * from './field-type';
|
|
@@ -180,7 +182,6 @@ export * from './page-meta';
|
|
|
180
182
|
export * from './paginated';
|
|
181
183
|
export * from './past-due-balances-report-filters';
|
|
182
184
|
export * from './payment';
|
|
183
|
-
export * from './payment-gateway-client-token-response';
|
|
184
185
|
export * from './payment-method';
|
|
185
186
|
export * from './payment-run';
|
|
186
187
|
export * from './payment-run-filter-condition';
|
|
@@ -280,7 +280,7 @@ export interface SubscriptionPreview {
|
|
|
280
280
|
* @type {string}
|
|
281
281
|
* @memberof SubscriptionPreview
|
|
282
282
|
*/
|
|
283
|
-
|
|
283
|
+
msExternalId: string;
|
|
284
284
|
/**
|
|
285
285
|
* Charges associated the subscription
|
|
286
286
|
* @type {Array<SubscriptionCharge>}
|
|
@@ -361,7 +361,7 @@ export function instanceOfSubscriptionPreview(value: object): value is Subscript
|
|
|
361
361
|
if (!('billContactSfId' in value) || value['billContactSfId'] === undefined) return false;
|
|
362
362
|
if (!('shippingContactSfId' in value) || value['shippingContactSfId'] === undefined) return false;
|
|
363
363
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
364
|
-
if (!('
|
|
364
|
+
if (!('msExternalId' in value) || value['msExternalId'] === undefined) return false;
|
|
365
365
|
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
366
366
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
367
367
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
@@ -418,7 +418,7 @@ export function SubscriptionPreviewFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
418
418
|
'billContactSfId': json['billContactSfId'],
|
|
419
419
|
'shippingContactSfId': json['shippingContactSfId'],
|
|
420
420
|
'siteId': json['siteId'],
|
|
421
|
-
'
|
|
421
|
+
'msExternalId': json['msExternalId'],
|
|
422
422
|
'charges': ((json['charges'] as Array<any>).map(SubscriptionChargeFromJSON)),
|
|
423
423
|
'createdAt': json['createdAt'],
|
|
424
424
|
'createdBy': json['createdBy'],
|
|
@@ -483,7 +483,7 @@ export function SubscriptionPreviewToJSONTyped(value?: SubscriptionPreview | nul
|
|
|
483
483
|
'billContactSfId': value['billContactSfId'],
|
|
484
484
|
'shippingContactSfId': value['shippingContactSfId'],
|
|
485
485
|
'siteId': value['siteId'],
|
|
486
|
-
'
|
|
486
|
+
'msExternalId': value['msExternalId'],
|
|
487
487
|
'charges': ((value['charges'] as Array<any>).map(SubscriptionChargeToJSON)),
|
|
488
488
|
'createdAt': value['createdAt'],
|
|
489
489
|
'createdBy': value['createdBy'],
|
|
@@ -273,7 +273,7 @@ export interface Subscription {
|
|
|
273
273
|
* @type {string}
|
|
274
274
|
* @memberof Subscription
|
|
275
275
|
*/
|
|
276
|
-
|
|
276
|
+
msExternalId: string;
|
|
277
277
|
/**
|
|
278
278
|
* Charges associated the subscription
|
|
279
279
|
* @type {Array<SubscriptionCharge>}
|
|
@@ -330,7 +330,7 @@ export function instanceOfSubscription(value: object): value is Subscription {
|
|
|
330
330
|
if (!('billContactSfId' in value) || value['billContactSfId'] === undefined) return false;
|
|
331
331
|
if (!('shippingContactSfId' in value) || value['shippingContactSfId'] === undefined) return false;
|
|
332
332
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
333
|
-
if (!('
|
|
333
|
+
if (!('msExternalId' in value) || value['msExternalId'] === undefined) return false;
|
|
334
334
|
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
335
335
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
336
336
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
@@ -387,7 +387,7 @@ export function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
387
387
|
'billContactSfId': json['billContactSfId'],
|
|
388
388
|
'shippingContactSfId': json['shippingContactSfId'],
|
|
389
389
|
'siteId': json['siteId'],
|
|
390
|
-
'
|
|
390
|
+
'msExternalId': json['msExternalId'],
|
|
391
391
|
'charges': ((json['charges'] as Array<any>).map(SubscriptionChargeFromJSON)),
|
|
392
392
|
'createdAt': json['createdAt'],
|
|
393
393
|
'createdBy': json['createdBy'],
|
|
@@ -448,7 +448,7 @@ export function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscr
|
|
|
448
448
|
'billContactSfId': value['billContactSfId'],
|
|
449
449
|
'shippingContactSfId': value['shippingContactSfId'],
|
|
450
450
|
'siteId': value['siteId'],
|
|
451
|
-
'
|
|
451
|
+
'msExternalId': value['msExternalId'],
|
|
452
452
|
'charges': ((value['charges'] as Array<any>).map(SubscriptionChargeToJSON)),
|
|
453
453
|
'createdAt': value['createdAt'],
|
|
454
454
|
'createdBy': value['createdBy'],
|
package/src/index.ts
CHANGED
|
@@ -1,47 +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 PaymentGatewayClientTokenResponse
|
|
16
|
-
*/
|
|
17
|
-
export interface PaymentGatewayClientTokenResponse {
|
|
18
|
-
/**
|
|
19
|
-
* Payment gateway type
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof PaymentGatewayClientTokenResponse
|
|
22
|
-
*/
|
|
23
|
-
gateway: PaymentGatewayClientTokenResponseGateway;
|
|
24
|
-
/**
|
|
25
|
-
* Client token for SDK initialisation
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof PaymentGatewayClientTokenResponse
|
|
28
|
-
*/
|
|
29
|
-
clientToken: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
export declare const PaymentGatewayClientTokenResponseGateway: {
|
|
35
|
-
readonly braintree: "braintree";
|
|
36
|
-
readonly stripe: "stripe";
|
|
37
|
-
};
|
|
38
|
-
export type PaymentGatewayClientTokenResponseGateway = typeof PaymentGatewayClientTokenResponseGateway[keyof typeof PaymentGatewayClientTokenResponseGateway];
|
|
39
|
-
/**
|
|
40
|
-
* Check if a given object implements the PaymentGatewayClientTokenResponse interface.
|
|
41
|
-
*/
|
|
42
|
-
export declare function instanceOfPaymentGatewayClientTokenResponse(value: object): value is PaymentGatewayClientTokenResponse;
|
|
43
|
-
export declare function PaymentGatewayClientTokenResponseFromJSON(json: any): PaymentGatewayClientTokenResponse;
|
|
44
|
-
export declare function PaymentGatewayClientTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentGatewayClientTokenResponse;
|
|
45
|
-
export declare function PaymentGatewayClientTokenResponseToJSON(json: any): PaymentGatewayClientTokenResponse;
|
|
46
|
-
export declare function PaymentGatewayClientTokenResponseToJSONTyped(value?: PaymentGatewayClientTokenResponse | null, ignoreDiscriminator?: boolean): any;
|
|
47
|
-
//# sourceMappingURL=payment-gateway-client-token-response.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-gateway-client-token-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/payment-gateway-client-token-response.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;;;OAIG;IACH,OAAO,EAAE,wCAAwC,CAAC;IAClD;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAGD;;GAEG;AACH,eAAO,MAAM,wCAAwC;;;CAG3C,CAAC;AACX,MAAM,MAAM,wCAAwC,GAAG,OAAO,wCAAwC,CAAC,MAAM,OAAO,wCAAwC,CAAC,CAAC;AAG9J;;GAEG;AACH,wBAAgB,2CAA2C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iCAAiC,CAIrH;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEtG;AAED,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iCAAiC,CASzI;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEpG;AAED,wBAAgB,4CAA4C,CAAC,KAAK,CAAC,EAAE,iCAAiC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxJ"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
/**
|
|
6
|
-
* ManageSpace API
|
|
7
|
-
* ManageSpace API Documentation
|
|
8
|
-
*
|
|
9
|
-
* The version of the OpenAPI document: 1.0.0
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
-
* https://openapi-generator.tech
|
|
14
|
-
* Do not edit the class manually.
|
|
15
|
-
*/
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.PaymentGatewayClientTokenResponseGateway = void 0;
|
|
18
|
-
exports.instanceOfPaymentGatewayClientTokenResponse = instanceOfPaymentGatewayClientTokenResponse;
|
|
19
|
-
exports.PaymentGatewayClientTokenResponseFromJSON = PaymentGatewayClientTokenResponseFromJSON;
|
|
20
|
-
exports.PaymentGatewayClientTokenResponseFromJSONTyped = PaymentGatewayClientTokenResponseFromJSONTyped;
|
|
21
|
-
exports.PaymentGatewayClientTokenResponseToJSON = PaymentGatewayClientTokenResponseToJSON;
|
|
22
|
-
exports.PaymentGatewayClientTokenResponseToJSONTyped = PaymentGatewayClientTokenResponseToJSONTyped;
|
|
23
|
-
/**
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.PaymentGatewayClientTokenResponseGateway = {
|
|
27
|
-
braintree: 'braintree',
|
|
28
|
-
stripe: 'stripe'
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the PaymentGatewayClientTokenResponse interface.
|
|
32
|
-
*/
|
|
33
|
-
function instanceOfPaymentGatewayClientTokenResponse(value) {
|
|
34
|
-
if (!('gateway' in value) || value['gateway'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('clientToken' in value) || value['clientToken'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
function PaymentGatewayClientTokenResponseFromJSON(json) {
|
|
41
|
-
return PaymentGatewayClientTokenResponseFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function PaymentGatewayClientTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
-
if (json == null) {
|
|
45
|
-
return json;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'gateway': json['gateway'],
|
|
49
|
-
'clientToken': json['clientToken'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function PaymentGatewayClientTokenResponseToJSON(json) {
|
|
53
|
-
return PaymentGatewayClientTokenResponseToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
function PaymentGatewayClientTokenResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
-
if (value == null) {
|
|
57
|
-
return value;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
'gateway': value['gateway'],
|
|
61
|
-
'clientToken': value['clientToken'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
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
|
-
|
|
16
|
-
import { mapValues } from '../runtime';
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface PaymentGatewayClientTokenResponse
|
|
21
|
-
*/
|
|
22
|
-
export interface PaymentGatewayClientTokenResponse {
|
|
23
|
-
/**
|
|
24
|
-
* Payment gateway type
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof PaymentGatewayClientTokenResponse
|
|
27
|
-
*/
|
|
28
|
-
gateway: PaymentGatewayClientTokenResponseGateway;
|
|
29
|
-
/**
|
|
30
|
-
* Client token for SDK initialisation
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof PaymentGatewayClientTokenResponse
|
|
33
|
-
*/
|
|
34
|
-
clientToken: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @export
|
|
40
|
-
*/
|
|
41
|
-
export const PaymentGatewayClientTokenResponseGateway = {
|
|
42
|
-
braintree: 'braintree',
|
|
43
|
-
stripe: 'stripe'
|
|
44
|
-
} as const;
|
|
45
|
-
export type PaymentGatewayClientTokenResponseGateway = typeof PaymentGatewayClientTokenResponseGateway[keyof typeof PaymentGatewayClientTokenResponseGateway];
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the PaymentGatewayClientTokenResponse interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfPaymentGatewayClientTokenResponse(value: object): value is PaymentGatewayClientTokenResponse {
|
|
52
|
-
if (!('gateway' in value) || value['gateway'] === undefined) return false;
|
|
53
|
-
if (!('clientToken' in value) || value['clientToken'] === undefined) return false;
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function PaymentGatewayClientTokenResponseFromJSON(json: any): PaymentGatewayClientTokenResponse {
|
|
58
|
-
return PaymentGatewayClientTokenResponseFromJSONTyped(json, false);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function PaymentGatewayClientTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentGatewayClientTokenResponse {
|
|
62
|
-
if (json == null) {
|
|
63
|
-
return json;
|
|
64
|
-
}
|
|
65
|
-
return {
|
|
66
|
-
|
|
67
|
-
'gateway': json['gateway'],
|
|
68
|
-
'clientToken': json['clientToken'],
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function PaymentGatewayClientTokenResponseToJSON(json: any): PaymentGatewayClientTokenResponse {
|
|
73
|
-
return PaymentGatewayClientTokenResponseToJSONTyped(json, false);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function PaymentGatewayClientTokenResponseToJSONTyped(value?: PaymentGatewayClientTokenResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
-
if (value == null) {
|
|
78
|
-
return value;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return {
|
|
82
|
-
|
|
83
|
-
'gateway': value['gateway'],
|
|
84
|
-
'clientToken': value['clientToken'],
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
|