@randock/nameshift-api-client 0.0.486 → 0.0.488
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/.openapi-generator/FILES +10 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +38 -3
- package/dist/apis/AdminApi.js +132 -2
- package/dist/apis/BuyersApi.d.ts +33 -1
- package/dist/apis/BuyersApi.js +121 -0
- package/dist/apis/DomainAppraisalRequestsApi.d.ts +50 -0
- package/dist/apis/DomainAppraisalRequestsApi.js +217 -0
- package/dist/apis/DomainAppraisalRequestsPublicApi.d.ts +86 -0
- package/dist/apis/DomainAppraisalRequestsPublicApi.js +321 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountAliasDto.d.ts +18 -3
- package/dist/models/AccountAliasDto.js +13 -0
- package/dist/models/AccountSettingsAliasDto.d.ts +18 -3
- package/dist/models/AccountSettingsAliasDto.js +13 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.d.ts +118 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.js +109 -0
- package/dist/models/AdminListAccountDto.d.ts +16 -1
- package/dist/models/AdminListAccountDto.js +13 -1
- package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.d.ts +268 -0
- package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.js +237 -0
- package/dist/models/BuyerInvoiceDto.d.ts +2 -2
- package/dist/models/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- package/dist/models/BuyerSessionDto.d.ts +6 -0
- package/dist/models/BuyerSessionDto.js +4 -0
- package/dist/models/CreateAccountPaymentInput.d.ts +1 -0
- package/dist/models/CreateAccountPaymentInput.js +2 -1
- package/dist/models/CreateBuyerDomainAppraisalRequestInput.d.ts +44 -0
- package/dist/models/CreateBuyerDomainAppraisalRequestInput.js +59 -0
- package/dist/models/CustomerSuccessListAccountDto.d.ts +16 -1
- package/dist/models/CustomerSuccessListAccountDto.js +13 -1
- package/dist/models/DomainAppraisalRequestListItemDto.d.ts +82 -0
- package/dist/models/DomainAppraisalRequestListItemDto.js +85 -0
- package/dist/models/DomainAppraisalRequestStatus.d.ts +27 -0
- package/dist/models/DomainAppraisalRequestStatus.js +53 -0
- package/dist/models/DomainAppraisalRequester.d.ts +25 -0
- package/dist/models/DomainAppraisalRequester.js +51 -0
- package/dist/models/DomainSalesInformationDto.d.ts +6 -0
- package/dist/models/DomainSalesInformationDto.js +4 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/GetAdminDomainAppraisalRequests200Response.d.ts +47 -0
- package/dist/models/GetAdminDomainAppraisalRequests200Response.js +62 -0
- package/dist/models/GetBuyerDomainAppraisalRequests200Response.d.ts +47 -0
- package/dist/models/GetBuyerDomainAppraisalRequests200Response.js +62 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/InvoiceDto.d.ts +2 -2
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +130 -2
- package/src/apis/BuyersApi.ts +113 -0
- package/src/apis/DomainAppraisalRequestsApi.ts +157 -0
- package/src/apis/DomainAppraisalRequestsPublicApi.ts +271 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AccountAliasDto.ts +24 -3
- package/src/models/AccountSettingsAliasDto.ts +24 -3
- package/src/models/AdminDomainAppraisalRequestListItemDto.ts +209 -0
- package/src/models/AdminListAccountDto.ts +20 -1
- package/src/models/BuyerDomainAppraisalRequestCheckoutDto.ts +411 -0
- package/src/models/BuyerInvoiceDto.ts +2 -2
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/BuyerSessionDto.ts +9 -0
- package/src/models/CreateAccountPaymentInput.ts +2 -1
- package/src/models/CreateBuyerDomainAppraisalRequestInput.ts +84 -0
- package/src/models/CustomerSuccessListAccountDto.ts +20 -1
- package/src/models/DomainAppraisalRequestListItemDto.ts +155 -0
- package/src/models/DomainAppraisalRequestStatus.ts +55 -0
- package/src/models/DomainAppraisalRequester.ts +53 -0
- package/src/models/DomainSalesInformationDto.ts +9 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/GetAdminDomainAppraisalRequests200Response.ts +106 -0
- package/src/models/GetBuyerDomainAppraisalRequests200Response.ts +106 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/InvoiceDto.ts +2 -2
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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 { DomainAppraisalRequester } from './DomainAppraisalRequester';
|
|
17
|
+
import {
|
|
18
|
+
DomainAppraisalRequesterFromJSON,
|
|
19
|
+
DomainAppraisalRequesterFromJSONTyped,
|
|
20
|
+
DomainAppraisalRequesterToJSON,
|
|
21
|
+
DomainAppraisalRequesterToJSONTyped,
|
|
22
|
+
} from './DomainAppraisalRequester';
|
|
23
|
+
import type { DomainAppraisalRequestStatus } from './DomainAppraisalRequestStatus';
|
|
24
|
+
import {
|
|
25
|
+
DomainAppraisalRequestStatusFromJSON,
|
|
26
|
+
DomainAppraisalRequestStatusFromJSONTyped,
|
|
27
|
+
DomainAppraisalRequestStatusToJSON,
|
|
28
|
+
DomainAppraisalRequestStatusToJSONTyped,
|
|
29
|
+
} from './DomainAppraisalRequestStatus';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface AdminDomainAppraisalRequestListItemDto
|
|
35
|
+
*/
|
|
36
|
+
export interface AdminDomainAppraisalRequestListItemDto {
|
|
37
|
+
/**
|
|
38
|
+
* Domain appraisal request identifier.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Appraised domain identifier.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
47
|
+
*/
|
|
48
|
+
domainId: string;
|
|
49
|
+
/**
|
|
50
|
+
* Appraised domain name (Unicode).
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
53
|
+
*/
|
|
54
|
+
domainName: string;
|
|
55
|
+
/**
|
|
56
|
+
* Whether a buyer or the seller of the domain requested it.
|
|
57
|
+
* @type {DomainAppraisalRequester}
|
|
58
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
59
|
+
*/
|
|
60
|
+
requester: DomainAppraisalRequester;
|
|
61
|
+
/**
|
|
62
|
+
* Domain appraisal request status.
|
|
63
|
+
* @type {DomainAppraisalRequestStatus}
|
|
64
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
65
|
+
*/
|
|
66
|
+
status: DomainAppraisalRequestStatus;
|
|
67
|
+
/**
|
|
68
|
+
* Appraised amount in EUR, once appraised.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
71
|
+
*/
|
|
72
|
+
appraisedAmountEur: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* When it was appraised.
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
77
|
+
*/
|
|
78
|
+
appraisedAt: Date | null;
|
|
79
|
+
/**
|
|
80
|
+
* When it was sent to be appraised, after payment.
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
83
|
+
*/
|
|
84
|
+
requestedAt: Date | null;
|
|
85
|
+
/**
|
|
86
|
+
* When it was created.
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
89
|
+
*/
|
|
90
|
+
createdAt: Date;
|
|
91
|
+
/**
|
|
92
|
+
* Buyer that requested it, if a buyer did.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
95
|
+
*/
|
|
96
|
+
buyerId: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* Email of the buyer that requested it, if a buyer did.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
101
|
+
*/
|
|
102
|
+
buyerEmail: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Account of the seller that requested it, if a seller did.
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
107
|
+
*/
|
|
108
|
+
accountId: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* Identifier of the account of the seller that requested it, if a seller did.
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
113
|
+
*/
|
|
114
|
+
accountIdentifier: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Billing name of the account of the seller that requested it, if a seller did and it has billing information.
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
119
|
+
*/
|
|
120
|
+
accountName: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Identifier of the domain appraisal request in the domain appraisals API.
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof AdminDomainAppraisalRequestListItemDto
|
|
125
|
+
*/
|
|
126
|
+
externalId: string | null;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Check if a given object implements the AdminDomainAppraisalRequestListItemDto interface.
|
|
133
|
+
*/
|
|
134
|
+
export function instanceOfAdminDomainAppraisalRequestListItemDto(value: object): value is AdminDomainAppraisalRequestListItemDto {
|
|
135
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
136
|
+
if (!('domainId' in value) || value['domainId'] === undefined) return false;
|
|
137
|
+
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
138
|
+
if (!('requester' in value) || value['requester'] === undefined) return false;
|
|
139
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
140
|
+
if (!('appraisedAmountEur' in value) || value['appraisedAmountEur'] === undefined) return false;
|
|
141
|
+
if (!('appraisedAt' in value) || value['appraisedAt'] === undefined) return false;
|
|
142
|
+
if (!('requestedAt' in value) || value['requestedAt'] === undefined) return false;
|
|
143
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
144
|
+
if (!('buyerId' in value) || value['buyerId'] === undefined) return false;
|
|
145
|
+
if (!('buyerEmail' in value) || value['buyerEmail'] === undefined) return false;
|
|
146
|
+
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
147
|
+
if (!('accountIdentifier' in value) || value['accountIdentifier'] === undefined) return false;
|
|
148
|
+
if (!('accountName' in value) || value['accountName'] === undefined) return false;
|
|
149
|
+
if (!('externalId' in value) || value['externalId'] === undefined) return false;
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function AdminDomainAppraisalRequestListItemDtoFromJSON(json: any): AdminDomainAppraisalRequestListItemDto {
|
|
154
|
+
return AdminDomainAppraisalRequestListItemDtoFromJSONTyped(json, false);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function AdminDomainAppraisalRequestListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminDomainAppraisalRequestListItemDto {
|
|
158
|
+
if (json == null) {
|
|
159
|
+
return json;
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
|
|
163
|
+
'id': json['id'],
|
|
164
|
+
'domainId': json['domainId'],
|
|
165
|
+
'domainName': json['domainName'],
|
|
166
|
+
'requester': DomainAppraisalRequesterFromJSON(json['requester']),
|
|
167
|
+
'status': DomainAppraisalRequestStatusFromJSON(json['status']),
|
|
168
|
+
'appraisedAmountEur': json['appraisedAmountEur'],
|
|
169
|
+
'appraisedAt': (json['appraisedAt'] == null ? null : new Date(json['appraisedAt'])),
|
|
170
|
+
'requestedAt': (json['requestedAt'] == null ? null : new Date(json['requestedAt'])),
|
|
171
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
172
|
+
'buyerId': json['buyerId'],
|
|
173
|
+
'buyerEmail': json['buyerEmail'],
|
|
174
|
+
'accountId': json['accountId'],
|
|
175
|
+
'accountIdentifier': json['accountIdentifier'],
|
|
176
|
+
'accountName': json['accountName'],
|
|
177
|
+
'externalId': json['externalId'],
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function AdminDomainAppraisalRequestListItemDtoToJSON(json: any): AdminDomainAppraisalRequestListItemDto {
|
|
182
|
+
return AdminDomainAppraisalRequestListItemDtoToJSONTyped(json, false);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export function AdminDomainAppraisalRequestListItemDtoToJSONTyped(value?: AdminDomainAppraisalRequestListItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
186
|
+
if (value == null) {
|
|
187
|
+
return value;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return {
|
|
191
|
+
|
|
192
|
+
'id': value['id'],
|
|
193
|
+
'domainId': value['domainId'],
|
|
194
|
+
'domainName': value['domainName'],
|
|
195
|
+
'requester': DomainAppraisalRequesterToJSON(value['requester']),
|
|
196
|
+
'status': DomainAppraisalRequestStatusToJSON(value['status']),
|
|
197
|
+
'appraisedAmountEur': value['appraisedAmountEur'],
|
|
198
|
+
'appraisedAt': (value['appraisedAt'] == null ? null : (value['appraisedAt'] as any).toISOString()),
|
|
199
|
+
'requestedAt': (value['requestedAt'] == null ? null : (value['requestedAt'] as any).toISOString()),
|
|
200
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
201
|
+
'buyerId': value['buyerId'],
|
|
202
|
+
'buyerEmail': value['buyerEmail'],
|
|
203
|
+
'accountId': value['accountId'],
|
|
204
|
+
'accountIdentifier': value['accountIdentifier'],
|
|
205
|
+
'accountName': value['accountName'],
|
|
206
|
+
'externalId': value['externalId'],
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
|
@@ -110,11 +110,17 @@ export interface AdminListAccountDto {
|
|
|
110
110
|
*/
|
|
111
111
|
alias: string | null;
|
|
112
112
|
/**
|
|
113
|
-
* Whether the alias is verified.
|
|
113
|
+
* Deprecated, use aliasStatus. Whether the alias is verified.
|
|
114
114
|
* @type {boolean}
|
|
115
115
|
* @memberof AdminListAccountDto
|
|
116
116
|
*/
|
|
117
117
|
aliasVerified: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Review status of the alias: pending review, verified or rejected. Null when no alias is set.
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof AdminListAccountDto
|
|
122
|
+
*/
|
|
123
|
+
aliasStatus: AdminListAccountDtoAliasStatusEnum | null;
|
|
118
124
|
/**
|
|
119
125
|
* Account metrics.
|
|
120
126
|
* @type {ListAccountMetricsDto}
|
|
@@ -184,6 +190,16 @@ export interface AdminListAccountDto {
|
|
|
184
190
|
}
|
|
185
191
|
|
|
186
192
|
|
|
193
|
+
/**
|
|
194
|
+
* @export
|
|
195
|
+
*/
|
|
196
|
+
export const AdminListAccountDtoAliasStatusEnum = {
|
|
197
|
+
PENDING: 'pending',
|
|
198
|
+
VERIFIED: 'verified',
|
|
199
|
+
REJECTED: 'rejected'
|
|
200
|
+
} as const;
|
|
201
|
+
export type AdminListAccountDtoAliasStatusEnum = typeof AdminListAccountDtoAliasStatusEnum[keyof typeof AdminListAccountDtoAliasStatusEnum];
|
|
202
|
+
|
|
187
203
|
/**
|
|
188
204
|
* @export
|
|
189
205
|
*/
|
|
@@ -227,6 +243,7 @@ export function instanceOfAdminListAccountDto(value: object): value is AdminList
|
|
|
227
243
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
228
244
|
if (!('alias' in value) || value['alias'] === undefined) return false;
|
|
229
245
|
if (!('aliasVerified' in value) || value['aliasVerified'] === undefined) return false;
|
|
246
|
+
if (!('aliasStatus' in value) || value['aliasStatus'] === undefined) return false;
|
|
230
247
|
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
231
248
|
if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
|
|
232
249
|
if (!('users' in value) || value['users'] === undefined) return false;
|
|
@@ -261,6 +278,7 @@ export function AdminListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
261
278
|
'type': json['type'],
|
|
262
279
|
'alias': json['alias'],
|
|
263
280
|
'aliasVerified': json['aliasVerified'],
|
|
281
|
+
'aliasStatus': json['aliasStatus'],
|
|
264
282
|
'metrics': ListAccountMetricsDtoFromJSON(json['metrics']),
|
|
265
283
|
'lastOnline': (new Date(json['lastOnline'])),
|
|
266
284
|
'users': ((json['users'] as Array<any>).map(ListAccountUserDtoFromJSON)),
|
|
@@ -296,6 +314,7 @@ export function AdminListAccountDtoToJSONTyped(value?: AdminListAccountDto | nul
|
|
|
296
314
|
'type': value['type'],
|
|
297
315
|
'alias': value['alias'],
|
|
298
316
|
'aliasVerified': value['aliasVerified'],
|
|
317
|
+
'aliasStatus': value['aliasStatus'],
|
|
299
318
|
'metrics': ListAccountMetricsDtoToJSON(value['metrics']),
|
|
300
319
|
'lastOnline': ((value['lastOnline']).toISOString()),
|
|
301
320
|
'users': ((value['users'] as Array<any>).map(ListAccountUserDtoToJSON)),
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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 { InvoiceItemDto } from './InvoiceItemDto';
|
|
17
|
+
import {
|
|
18
|
+
InvoiceItemDtoFromJSON,
|
|
19
|
+
InvoiceItemDtoFromJSONTyped,
|
|
20
|
+
InvoiceItemDtoToJSON,
|
|
21
|
+
InvoiceItemDtoToJSONTyped,
|
|
22
|
+
} from './InvoiceItemDto';
|
|
23
|
+
import type { InvoiceTransactionDto } from './InvoiceTransactionDto';
|
|
24
|
+
import {
|
|
25
|
+
InvoiceTransactionDtoFromJSON,
|
|
26
|
+
InvoiceTransactionDtoFromJSONTyped,
|
|
27
|
+
InvoiceTransactionDtoToJSON,
|
|
28
|
+
InvoiceTransactionDtoToJSONTyped,
|
|
29
|
+
} from './InvoiceTransactionDto';
|
|
30
|
+
import type { MoneyDto } from './MoneyDto';
|
|
31
|
+
import {
|
|
32
|
+
MoneyDtoFromJSON,
|
|
33
|
+
MoneyDtoFromJSONTyped,
|
|
34
|
+
MoneyDtoToJSON,
|
|
35
|
+
MoneyDtoToJSONTyped,
|
|
36
|
+
} from './MoneyDto';
|
|
37
|
+
import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
|
|
38
|
+
import {
|
|
39
|
+
OrderCompanyInfoDtoFromJSON,
|
|
40
|
+
OrderCompanyInfoDtoFromJSONTyped,
|
|
41
|
+
OrderCompanyInfoDtoToJSON,
|
|
42
|
+
OrderCompanyInfoDtoToJSONTyped,
|
|
43
|
+
} from './OrderCompanyInfoDto';
|
|
44
|
+
import type { AddressDto } from './AddressDto';
|
|
45
|
+
import {
|
|
46
|
+
AddressDtoFromJSON,
|
|
47
|
+
AddressDtoFromJSONTyped,
|
|
48
|
+
AddressDtoToJSON,
|
|
49
|
+
AddressDtoToJSONTyped,
|
|
50
|
+
} from './AddressDto';
|
|
51
|
+
import type { DomainAppraisalRequestStatus } from './DomainAppraisalRequestStatus';
|
|
52
|
+
import {
|
|
53
|
+
DomainAppraisalRequestStatusFromJSON,
|
|
54
|
+
DomainAppraisalRequestStatusFromJSONTyped,
|
|
55
|
+
DomainAppraisalRequestStatusToJSON,
|
|
56
|
+
DomainAppraisalRequestStatusToJSONTyped,
|
|
57
|
+
} from './DomainAppraisalRequestStatus';
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @export
|
|
62
|
+
* @interface BuyerDomainAppraisalRequestCheckoutDto
|
|
63
|
+
*/
|
|
64
|
+
export interface BuyerDomainAppraisalRequestCheckoutDto {
|
|
65
|
+
/**
|
|
66
|
+
* Domain appraisal request identifier.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
69
|
+
*/
|
|
70
|
+
id: string;
|
|
71
|
+
/**
|
|
72
|
+
* Domain appraisal request status.
|
|
73
|
+
* @type {DomainAppraisalRequestStatus}
|
|
74
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
75
|
+
*/
|
|
76
|
+
domainAppraisalRequestStatus: DomainAppraisalRequestStatus;
|
|
77
|
+
/**
|
|
78
|
+
* Appraised domain name (Unicode).
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
81
|
+
*/
|
|
82
|
+
domainName: string;
|
|
83
|
+
/**
|
|
84
|
+
* Buyer invoice status.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
87
|
+
*/
|
|
88
|
+
status: BuyerDomainAppraisalRequestCheckoutDtoStatusEnum;
|
|
89
|
+
/**
|
|
90
|
+
* Domain appraisal base price.
|
|
91
|
+
* @type {MoneyDto}
|
|
92
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
93
|
+
*/
|
|
94
|
+
basePrice: MoneyDto;
|
|
95
|
+
/**
|
|
96
|
+
* Domain appraisal total price including tax.
|
|
97
|
+
* @type {MoneyDto}
|
|
98
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
99
|
+
*/
|
|
100
|
+
totalPrice: MoneyDto;
|
|
101
|
+
/**
|
|
102
|
+
* Total tax amount.
|
|
103
|
+
* @type {MoneyDto}
|
|
104
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
105
|
+
*/
|
|
106
|
+
totalTaxPrice: MoneyDto;
|
|
107
|
+
/**
|
|
108
|
+
* Invoice line items.
|
|
109
|
+
* @type {Array<InvoiceItemDto>}
|
|
110
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
111
|
+
*/
|
|
112
|
+
items: Array<InvoiceItemDto>;
|
|
113
|
+
/**
|
|
114
|
+
* Buyer first name.
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
117
|
+
*/
|
|
118
|
+
firstName: string | null;
|
|
119
|
+
/**
|
|
120
|
+
* Buyer last name.
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
123
|
+
*/
|
|
124
|
+
lastName: string | null;
|
|
125
|
+
/**
|
|
126
|
+
* Buyer email address.
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
129
|
+
*/
|
|
130
|
+
email: string;
|
|
131
|
+
/**
|
|
132
|
+
* Buyer phone number.
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
135
|
+
*/
|
|
136
|
+
phone: string | null;
|
|
137
|
+
/**
|
|
138
|
+
* Buyer address.
|
|
139
|
+
* @type {AddressDto}
|
|
140
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
141
|
+
*/
|
|
142
|
+
address: AddressDto | null;
|
|
143
|
+
/**
|
|
144
|
+
* Buyer locale (e.g. en, nl).
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
147
|
+
*/
|
|
148
|
+
locale: string;
|
|
149
|
+
/**
|
|
150
|
+
* Buyer company information.
|
|
151
|
+
* @type {OrderCompanyInfoDto}
|
|
152
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
153
|
+
*/
|
|
154
|
+
companyInfo: OrderCompanyInfoDto | null;
|
|
155
|
+
/**
|
|
156
|
+
* Self-declared tax country code (ISO 3166-1 alpha-2).
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
159
|
+
*/
|
|
160
|
+
selfDeclaredTaxCountry: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* Decided tax country code (ISO 3166-1 alpha-2).
|
|
163
|
+
* @type {string}
|
|
164
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
165
|
+
*/
|
|
166
|
+
decidedCountry: string;
|
|
167
|
+
/**
|
|
168
|
+
* Active invoice transaction, if any.
|
|
169
|
+
* @type {InvoiceTransactionDto}
|
|
170
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
171
|
+
*/
|
|
172
|
+
transaction: InvoiceTransactionDto | null;
|
|
173
|
+
/**
|
|
174
|
+
* Whether the buyer invoice has a pending transaction.
|
|
175
|
+
* @type {boolean}
|
|
176
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
177
|
+
*/
|
|
178
|
+
hasPendingTransaction: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Enabled payment modes for this domain appraisal request.
|
|
181
|
+
* @type {Array<string>}
|
|
182
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
183
|
+
*/
|
|
184
|
+
enabledPaymentMethods: Array<BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum>;
|
|
185
|
+
/**
|
|
186
|
+
* Available payment methods per gateway (canonical ids), keyed by PaymentGateway. Empty when the cache is missing or expired.
|
|
187
|
+
* @type {{ [key: string]: any; }}
|
|
188
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
189
|
+
*/
|
|
190
|
+
availablePaymentMethods: { [key: string]: any; };
|
|
191
|
+
/**
|
|
192
|
+
* Selected payment method on the active transaction (canonical)
|
|
193
|
+
* @type {string}
|
|
194
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
195
|
+
*/
|
|
196
|
+
selectedPaymentMethod: BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum | null;
|
|
197
|
+
/**
|
|
198
|
+
* When the cached availablePaymentMethods expire. After this time, PATCH with forceUpdatePaymentMethods=true then GET again to refresh them.
|
|
199
|
+
* @type {Date}
|
|
200
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
201
|
+
*/
|
|
202
|
+
availablePaymentMethodsExpiresAt: Date | null;
|
|
203
|
+
/**
|
|
204
|
+
* Whether the buyer invoice can be issued as proforma.
|
|
205
|
+
* @type {boolean}
|
|
206
|
+
* @memberof BuyerDomainAppraisalRequestCheckoutDto
|
|
207
|
+
*/
|
|
208
|
+
canBeProforma: boolean;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @export
|
|
214
|
+
*/
|
|
215
|
+
export const BuyerDomainAppraisalRequestCheckoutDtoStatusEnum = {
|
|
216
|
+
DRAFT: 'draft',
|
|
217
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
218
|
+
PAID: 'paid',
|
|
219
|
+
CANCELLED: 'cancelled'
|
|
220
|
+
} as const;
|
|
221
|
+
export type BuyerDomainAppraisalRequestCheckoutDtoStatusEnum = typeof BuyerDomainAppraisalRequestCheckoutDtoStatusEnum[keyof typeof BuyerDomainAppraisalRequestCheckoutDtoStatusEnum];
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @export
|
|
225
|
+
*/
|
|
226
|
+
export const BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum = {
|
|
227
|
+
COMMON: 'common',
|
|
228
|
+
CRYPTO: 'crypto'
|
|
229
|
+
} as const;
|
|
230
|
+
export type BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum = typeof BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum[keyof typeof BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum];
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @export
|
|
234
|
+
*/
|
|
235
|
+
export const BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum = {
|
|
236
|
+
ACSS_DEBIT: 'acss_debit',
|
|
237
|
+
AFFIRM: 'affirm',
|
|
238
|
+
AFTERPAY_CLEARPAY: 'afterpay_clearpay',
|
|
239
|
+
ALIPAY: 'alipay',
|
|
240
|
+
ALMA: 'alma',
|
|
241
|
+
AMAZON_PAY: 'amazon_pay',
|
|
242
|
+
APPLE_PAY: 'apple_pay',
|
|
243
|
+
AU_BECS_DEBIT: 'au_becs_debit',
|
|
244
|
+
BACS_DEBIT: 'bacs_debit',
|
|
245
|
+
BANCOMAT_PAY: 'bancomat_pay',
|
|
246
|
+
BANCONTACT: 'bancontact',
|
|
247
|
+
BELFIUS: 'belfius',
|
|
248
|
+
BILLIE: 'billie',
|
|
249
|
+
BLIK: 'blik',
|
|
250
|
+
BOLETO: 'boleto',
|
|
251
|
+
BANK_TRANSFER: 'bank_transfer',
|
|
252
|
+
CARD: 'card',
|
|
253
|
+
CARD_PRESENT: 'card_present',
|
|
254
|
+
CASHAPP: 'cashapp',
|
|
255
|
+
CUSTOMER_BALANCE: 'customer_balance',
|
|
256
|
+
EPS: 'eps',
|
|
257
|
+
FPX: 'fpx',
|
|
258
|
+
GIFTCARD: 'giftcard',
|
|
259
|
+
GIROPAY: 'giropay',
|
|
260
|
+
GOOGLE_PAY: 'google_pay',
|
|
261
|
+
GOPAY: 'gopay',
|
|
262
|
+
GRABPAY: 'grabpay',
|
|
263
|
+
ID_BANK_TRANSFER: 'id_bank_transfer',
|
|
264
|
+
IDEAL: 'ideal',
|
|
265
|
+
IN3: 'in3',
|
|
266
|
+
INTERAC_PRESENT: 'interac_present',
|
|
267
|
+
KAKAO_PAY: 'kakao_pay',
|
|
268
|
+
KBC: 'kbc',
|
|
269
|
+
KLARNA: 'klarna',
|
|
270
|
+
KONBINI: 'konbini',
|
|
271
|
+
KR_CARD: 'kr_card',
|
|
272
|
+
LINK: 'link',
|
|
273
|
+
MB_WAY: 'mb_way',
|
|
274
|
+
MOBILEPAY: 'mobilepay',
|
|
275
|
+
MULTIBANCO: 'multibanco',
|
|
276
|
+
NAVER_PAY: 'naver_pay',
|
|
277
|
+
NZ_BANK_ACCOUNT: 'nz_bank_account',
|
|
278
|
+
OXXO: 'oxxo',
|
|
279
|
+
PAY_BY_BANK: 'pay_by_bank',
|
|
280
|
+
PAYCO: 'payco',
|
|
281
|
+
PAYNOW: 'paynow',
|
|
282
|
+
PAYPAL: 'paypal',
|
|
283
|
+
PAYTO: 'payto',
|
|
284
|
+
PIX: 'pix',
|
|
285
|
+
PROMPTPAY: 'promptpay',
|
|
286
|
+
PRZELEWY24: 'przelewy24',
|
|
287
|
+
QRIS: 'qris',
|
|
288
|
+
RECHNUNG: 'rechnung',
|
|
289
|
+
REVOLUT_PAY: 'revolut_pay',
|
|
290
|
+
SAMSUNG_PAY: 'samsung_pay',
|
|
291
|
+
SATISPAY: 'satispay',
|
|
292
|
+
SEPA_DEBIT: 'sepa_debit',
|
|
293
|
+
SHOPEEPAY: 'shopeepay',
|
|
294
|
+
SOFORT: 'sofort',
|
|
295
|
+
STRIPE_BALANCE: 'stripe_balance',
|
|
296
|
+
SWISH: 'swish',
|
|
297
|
+
TWINT: 'twint',
|
|
298
|
+
US_BANK_ACCOUNT: 'us_bank_account',
|
|
299
|
+
VOUCHER: 'voucher',
|
|
300
|
+
WECHAT_PAY: 'wechat_pay',
|
|
301
|
+
ZIP: 'zip'
|
|
302
|
+
} as const;
|
|
303
|
+
export type BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum = typeof BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum[keyof typeof BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum];
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Check if a given object implements the BuyerDomainAppraisalRequestCheckoutDto interface.
|
|
308
|
+
*/
|
|
309
|
+
export function instanceOfBuyerDomainAppraisalRequestCheckoutDto(value: object): value is BuyerDomainAppraisalRequestCheckoutDto {
|
|
310
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
311
|
+
if (!('domainAppraisalRequestStatus' in value) || value['domainAppraisalRequestStatus'] === undefined) return false;
|
|
312
|
+
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
313
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
314
|
+
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
315
|
+
if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
|
|
316
|
+
if (!('totalTaxPrice' in value) || value['totalTaxPrice'] === undefined) return false;
|
|
317
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
318
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
319
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
320
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
321
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
322
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
323
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
324
|
+
if (!('companyInfo' in value) || value['companyInfo'] === undefined) return false;
|
|
325
|
+
if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined) return false;
|
|
326
|
+
if (!('decidedCountry' in value) || value['decidedCountry'] === undefined) return false;
|
|
327
|
+
if (!('transaction' in value) || value['transaction'] === undefined) return false;
|
|
328
|
+
if (!('hasPendingTransaction' in value) || value['hasPendingTransaction'] === undefined) return false;
|
|
329
|
+
if (!('enabledPaymentMethods' in value) || value['enabledPaymentMethods'] === undefined) return false;
|
|
330
|
+
if (!('availablePaymentMethods' in value) || value['availablePaymentMethods'] === undefined) return false;
|
|
331
|
+
if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined) return false;
|
|
332
|
+
if (!('availablePaymentMethodsExpiresAt' in value) || value['availablePaymentMethodsExpiresAt'] === undefined) return false;
|
|
333
|
+
if (!('canBeProforma' in value) || value['canBeProforma'] === undefined) return false;
|
|
334
|
+
return true;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export function BuyerDomainAppraisalRequestCheckoutDtoFromJSON(json: any): BuyerDomainAppraisalRequestCheckoutDto {
|
|
338
|
+
return BuyerDomainAppraisalRequestCheckoutDtoFromJSONTyped(json, false);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export function BuyerDomainAppraisalRequestCheckoutDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainAppraisalRequestCheckoutDto {
|
|
342
|
+
if (json == null) {
|
|
343
|
+
return json;
|
|
344
|
+
}
|
|
345
|
+
return {
|
|
346
|
+
|
|
347
|
+
'id': json['id'],
|
|
348
|
+
'domainAppraisalRequestStatus': DomainAppraisalRequestStatusFromJSON(json['domainAppraisalRequestStatus']),
|
|
349
|
+
'domainName': json['domainName'],
|
|
350
|
+
'status': json['status'],
|
|
351
|
+
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
352
|
+
'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
|
|
353
|
+
'totalTaxPrice': MoneyDtoFromJSON(json['totalTaxPrice']),
|
|
354
|
+
'items': ((json['items'] as Array<any>).map(InvoiceItemDtoFromJSON)),
|
|
355
|
+
'firstName': json['firstName'],
|
|
356
|
+
'lastName': json['lastName'],
|
|
357
|
+
'email': json['email'],
|
|
358
|
+
'phone': json['phone'],
|
|
359
|
+
'address': AddressDtoFromJSON(json['address']),
|
|
360
|
+
'locale': json['locale'],
|
|
361
|
+
'companyInfo': OrderCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
362
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
|
|
363
|
+
'decidedCountry': json['decidedCountry'],
|
|
364
|
+
'transaction': InvoiceTransactionDtoFromJSON(json['transaction']),
|
|
365
|
+
'hasPendingTransaction': json['hasPendingTransaction'],
|
|
366
|
+
'enabledPaymentMethods': json['enabledPaymentMethods'],
|
|
367
|
+
'availablePaymentMethods': json['availablePaymentMethods'],
|
|
368
|
+
'selectedPaymentMethod': json['selectedPaymentMethod'],
|
|
369
|
+
'availablePaymentMethodsExpiresAt': (json['availablePaymentMethodsExpiresAt'] == null ? null : new Date(json['availablePaymentMethodsExpiresAt'])),
|
|
370
|
+
'canBeProforma': json['canBeProforma'],
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export function BuyerDomainAppraisalRequestCheckoutDtoToJSON(json: any): BuyerDomainAppraisalRequestCheckoutDto {
|
|
375
|
+
return BuyerDomainAppraisalRequestCheckoutDtoToJSONTyped(json, false);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export function BuyerDomainAppraisalRequestCheckoutDtoToJSONTyped(value?: BuyerDomainAppraisalRequestCheckoutDto | null, ignoreDiscriminator: boolean = false): any {
|
|
379
|
+
if (value == null) {
|
|
380
|
+
return value;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
return {
|
|
384
|
+
|
|
385
|
+
'id': value['id'],
|
|
386
|
+
'domainAppraisalRequestStatus': DomainAppraisalRequestStatusToJSON(value['domainAppraisalRequestStatus']),
|
|
387
|
+
'domainName': value['domainName'],
|
|
388
|
+
'status': value['status'],
|
|
389
|
+
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
390
|
+
'totalPrice': MoneyDtoToJSON(value['totalPrice']),
|
|
391
|
+
'totalTaxPrice': MoneyDtoToJSON(value['totalTaxPrice']),
|
|
392
|
+
'items': ((value['items'] as Array<any>).map(InvoiceItemDtoToJSON)),
|
|
393
|
+
'firstName': value['firstName'],
|
|
394
|
+
'lastName': value['lastName'],
|
|
395
|
+
'email': value['email'],
|
|
396
|
+
'phone': value['phone'],
|
|
397
|
+
'address': AddressDtoToJSON(value['address']),
|
|
398
|
+
'locale': value['locale'],
|
|
399
|
+
'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
|
|
400
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
401
|
+
'decidedCountry': value['decidedCountry'],
|
|
402
|
+
'transaction': InvoiceTransactionDtoToJSON(value['transaction']),
|
|
403
|
+
'hasPendingTransaction': value['hasPendingTransaction'],
|
|
404
|
+
'enabledPaymentMethods': value['enabledPaymentMethods'],
|
|
405
|
+
'availablePaymentMethods': value['availablePaymentMethods'],
|
|
406
|
+
'selectedPaymentMethod': value['selectedPaymentMethod'],
|
|
407
|
+
'availablePaymentMethodsExpiresAt': (value['availablePaymentMethodsExpiresAt'] == null ? null : (value['availablePaymentMethodsExpiresAt'] as any).toISOString()),
|
|
408
|
+
'canBeProforma': value['canBeProforma'],
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
|