@managespace/sdk 0.0.179 → 0.0.180
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 +1 -35
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +2 -112
- 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 +1 -18
- package/src/generated/.openapi-generator/FILES +0 -3
- package/src/generated/apis/default-api.ts +2 -190
- 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 -155
- package/src/generated/models/get-payment-methods200-response.ts +0 -89
- package/src/generated/models/get-payments1200-response.ts +0 -89
- package/src/generated/models/payment-method.ts +0 -164
|
@@ -1,155 +0,0 @@
|
|
|
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 CreatePaymentMethod
|
|
20
|
-
*/
|
|
21
|
-
export interface CreatePaymentMethod {
|
|
22
|
-
/**
|
|
23
|
-
* Customers payment gateway id
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof CreatePaymentMethod
|
|
26
|
-
*/
|
|
27
|
-
customerPaymentGatewayId?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Payment type
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof CreatePaymentMethod
|
|
32
|
-
*/
|
|
33
|
-
paymentType: string;
|
|
34
|
-
/**
|
|
35
|
-
* Type of card
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof CreatePaymentMethod
|
|
38
|
-
*/
|
|
39
|
-
type?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Credit card or bank account number
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof CreatePaymentMethod
|
|
44
|
-
*/
|
|
45
|
-
accountNumber: string;
|
|
46
|
-
/**
|
|
47
|
-
* Routing number for bank accounts
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof CreatePaymentMethod
|
|
50
|
-
*/
|
|
51
|
-
routingNumber?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Name on card or account
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof CreatePaymentMethod
|
|
56
|
-
*/
|
|
57
|
-
accountHolderName?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Type of acccount owner
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof CreatePaymentMethod
|
|
62
|
-
*/
|
|
63
|
-
accountHolderType?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Country of the account holder
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof CreatePaymentMethod
|
|
68
|
-
*/
|
|
69
|
-
country?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Credit card expiration date
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof CreatePaymentMethod
|
|
74
|
-
*/
|
|
75
|
-
expiry?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Account status for bank accounts
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof CreatePaymentMethod
|
|
80
|
-
*/
|
|
81
|
-
status?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Enable defaule payment method
|
|
84
|
-
* @type {boolean}
|
|
85
|
-
* @memberof CreatePaymentMethod
|
|
86
|
-
*/
|
|
87
|
-
_default?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* CVC, security code for payment method
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof CreatePaymentMethod
|
|
92
|
-
*/
|
|
93
|
-
cvc?: string;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Check if a given object implements the CreatePaymentMethod interface.
|
|
98
|
-
*/
|
|
99
|
-
export function instanceOfCreatePaymentMethod(value: object): value is CreatePaymentMethod {
|
|
100
|
-
if (!('paymentType' in value) || value['paymentType'] === undefined) return false;
|
|
101
|
-
if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export function CreatePaymentMethodFromJSON(json: any): CreatePaymentMethod {
|
|
106
|
-
return CreatePaymentMethodFromJSONTyped(json, false);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export function CreatePaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePaymentMethod {
|
|
110
|
-
if (json == null) {
|
|
111
|
-
return json;
|
|
112
|
-
}
|
|
113
|
-
return {
|
|
114
|
-
|
|
115
|
-
'customerPaymentGatewayId': json['customerPaymentGatewayId'] == null ? undefined : json['customerPaymentGatewayId'],
|
|
116
|
-
'paymentType': json['paymentType'],
|
|
117
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
118
|
-
'accountNumber': json['accountNumber'],
|
|
119
|
-
'routingNumber': json['routingNumber'] == null ? undefined : json['routingNumber'],
|
|
120
|
-
'accountHolderName': json['accountHolderName'] == null ? undefined : json['accountHolderName'],
|
|
121
|
-
'accountHolderType': json['accountHolderType'] == null ? undefined : json['accountHolderType'],
|
|
122
|
-
'country': json['country'] == null ? undefined : json['country'],
|
|
123
|
-
'expiry': json['expiry'] == null ? undefined : json['expiry'],
|
|
124
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
125
|
-
'_default': json['default'] == null ? undefined : json['default'],
|
|
126
|
-
'cvc': json['cvc'] == null ? undefined : json['cvc'],
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export function CreatePaymentMethodToJSON(json: any): CreatePaymentMethod {
|
|
131
|
-
return CreatePaymentMethodToJSONTyped(json, false);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export function CreatePaymentMethodToJSONTyped(value?: CreatePaymentMethod | null, ignoreDiscriminator: boolean = false): any {
|
|
135
|
-
if (value == null) {
|
|
136
|
-
return value;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
return {
|
|
140
|
-
|
|
141
|
-
'customerPaymentGatewayId': value['customerPaymentGatewayId'],
|
|
142
|
-
'paymentType': value['paymentType'],
|
|
143
|
-
'type': value['type'],
|
|
144
|
-
'accountNumber': value['accountNumber'],
|
|
145
|
-
'routingNumber': value['routingNumber'],
|
|
146
|
-
'accountHolderName': value['accountHolderName'],
|
|
147
|
-
'accountHolderType': value['accountHolderType'],
|
|
148
|
-
'country': value['country'],
|
|
149
|
-
'expiry': value['expiry'],
|
|
150
|
-
'status': value['status'],
|
|
151
|
-
'default': value['_default'],
|
|
152
|
-
'cvc': value['cvc'],
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
|
|
@@ -1,89 +0,0 @@
|
|
|
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 GetPaymentMethods200Response
|
|
35
|
-
*/
|
|
36
|
-
export interface GetPaymentMethods200Response {
|
|
37
|
-
/**
|
|
38
|
-
* The pagination metadata
|
|
39
|
-
* @type {PageMeta}
|
|
40
|
-
* @memberof GetPaymentMethods200Response
|
|
41
|
-
*/
|
|
42
|
-
pageMeta: PageMeta;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {Array<PaymentMethod>}
|
|
46
|
-
* @memberof GetPaymentMethods200Response
|
|
47
|
-
*/
|
|
48
|
-
results?: Array<PaymentMethod>;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the GetPaymentMethods200Response interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfGetPaymentMethods200Response(value: object): value is GetPaymentMethods200Response {
|
|
55
|
-
if (!('pageMeta' in value) || value['pageMeta'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function GetPaymentMethods200ResponseFromJSON(json: any): GetPaymentMethods200Response {
|
|
60
|
-
return GetPaymentMethods200ResponseFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function GetPaymentMethods200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPaymentMethods200Response {
|
|
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 GetPaymentMethods200ResponseToJSON(json: any): GetPaymentMethods200Response {
|
|
75
|
-
return GetPaymentMethods200ResponseToJSONTyped(json, false);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function GetPaymentMethods200ResponseToJSONTyped(value?: GetPaymentMethods200Response | 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
|
-
|
|
@@ -1,89 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,164 +0,0 @@
|
|
|
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
|
-
* Customers payment gateway id
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof PaymentMethod
|
|
26
|
-
*/
|
|
27
|
-
customerPaymentGatewayId?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Payment type
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof PaymentMethod
|
|
32
|
-
*/
|
|
33
|
-
paymentType: string;
|
|
34
|
-
/**
|
|
35
|
-
* Type of card
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof PaymentMethod
|
|
38
|
-
*/
|
|
39
|
-
type?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Credit card or bank account number
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof PaymentMethod
|
|
44
|
-
*/
|
|
45
|
-
accountNumber: string;
|
|
46
|
-
/**
|
|
47
|
-
* Routing number for bank accounts
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof PaymentMethod
|
|
50
|
-
*/
|
|
51
|
-
routingNumber?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Name on card or account
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof PaymentMethod
|
|
56
|
-
*/
|
|
57
|
-
accountHolderName?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Type of acccount owner
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof PaymentMethod
|
|
62
|
-
*/
|
|
63
|
-
accountHolderType?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Country of the account holder
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof PaymentMethod
|
|
68
|
-
*/
|
|
69
|
-
country?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Credit card expiration date
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof PaymentMethod
|
|
74
|
-
*/
|
|
75
|
-
expiry?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Account status for bank accounts
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof PaymentMethod
|
|
80
|
-
*/
|
|
81
|
-
status?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Enable defaule payment method
|
|
84
|
-
* @type {boolean}
|
|
85
|
-
* @memberof PaymentMethod
|
|
86
|
-
*/
|
|
87
|
-
_default?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* CVC, security code for payment method
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof PaymentMethod
|
|
92
|
-
*/
|
|
93
|
-
cvc?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Payment method ID
|
|
96
|
-
* @type {string}
|
|
97
|
-
* @memberof PaymentMethod
|
|
98
|
-
*/
|
|
99
|
-
paymentMethodId: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Check if a given object implements the PaymentMethod interface.
|
|
104
|
-
*/
|
|
105
|
-
export function instanceOfPaymentMethod(value: object): value is PaymentMethod {
|
|
106
|
-
if (!('paymentType' in value) || value['paymentType'] === undefined) return false;
|
|
107
|
-
if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
|
|
108
|
-
if (!('paymentMethodId' in value) || value['paymentMethodId'] === undefined) return false;
|
|
109
|
-
return true;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export function PaymentMethodFromJSON(json: any): PaymentMethod {
|
|
113
|
-
return PaymentMethodFromJSONTyped(json, false);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function PaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethod {
|
|
117
|
-
if (json == null) {
|
|
118
|
-
return json;
|
|
119
|
-
}
|
|
120
|
-
return {
|
|
121
|
-
|
|
122
|
-
'customerPaymentGatewayId': json['customerPaymentGatewayId'] == null ? undefined : json['customerPaymentGatewayId'],
|
|
123
|
-
'paymentType': json['paymentType'],
|
|
124
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
125
|
-
'accountNumber': json['accountNumber'],
|
|
126
|
-
'routingNumber': json['routingNumber'] == null ? undefined : json['routingNumber'],
|
|
127
|
-
'accountHolderName': json['accountHolderName'] == null ? undefined : json['accountHolderName'],
|
|
128
|
-
'accountHolderType': json['accountHolderType'] == null ? undefined : json['accountHolderType'],
|
|
129
|
-
'country': json['country'] == null ? undefined : json['country'],
|
|
130
|
-
'expiry': json['expiry'] == null ? undefined : json['expiry'],
|
|
131
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
132
|
-
'_default': json['default'] == null ? undefined : json['default'],
|
|
133
|
-
'cvc': json['cvc'] == null ? undefined : json['cvc'],
|
|
134
|
-
'paymentMethodId': json['paymentMethodId'],
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export function PaymentMethodToJSON(json: any): PaymentMethod {
|
|
139
|
-
return PaymentMethodToJSONTyped(json, false);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export function PaymentMethodToJSONTyped(value?: PaymentMethod | null, ignoreDiscriminator: boolean = false): any {
|
|
143
|
-
if (value == null) {
|
|
144
|
-
return value;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return {
|
|
148
|
-
|
|
149
|
-
'customerPaymentGatewayId': value['customerPaymentGatewayId'],
|
|
150
|
-
'paymentType': value['paymentType'],
|
|
151
|
-
'type': value['type'],
|
|
152
|
-
'accountNumber': value['accountNumber'],
|
|
153
|
-
'routingNumber': value['routingNumber'],
|
|
154
|
-
'accountHolderName': value['accountHolderName'],
|
|
155
|
-
'accountHolderType': value['accountHolderType'],
|
|
156
|
-
'country': value['country'],
|
|
157
|
-
'expiry': value['expiry'],
|
|
158
|
-
'status': value['status'],
|
|
159
|
-
'default': value['_default'],
|
|
160
|
-
'cvc': value['cvc'],
|
|
161
|
-
'paymentMethodId': value['paymentMethodId'],
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
|