@randock/nameshift-api-client 0.0.487 → 0.0.489

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.
Files changed (76) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +23 -1
  4. package/dist/apis/AdminApi.js +77 -0
  5. package/dist/apis/BuyersApi.d.ts +33 -1
  6. package/dist/apis/BuyersApi.js +121 -0
  7. package/dist/apis/DomainAppraisalRequestsApi.d.ts +50 -0
  8. package/dist/apis/DomainAppraisalRequestsApi.js +217 -0
  9. package/dist/apis/DomainAppraisalRequestsPublicApi.d.ts +86 -0
  10. package/dist/apis/DomainAppraisalRequestsPublicApi.js +321 -0
  11. package/dist/apis/index.d.ts +2 -0
  12. package/dist/apis/index.js +2 -0
  13. package/dist/models/AccountBankAccountDto.d.ts +17 -0
  14. package/dist/models/AccountBankAccountDto.js +15 -1
  15. package/dist/models/AdminBankAccountDto.d.ts +7 -0
  16. package/dist/models/AdminBankAccountDto.js +5 -0
  17. package/dist/models/AdminBankAccountNameCheckDto.d.ts +119 -0
  18. package/dist/models/AdminBankAccountNameCheckDto.js +119 -0
  19. package/dist/models/AdminDomainAppraisalRequestListItemDto.d.ts +118 -0
  20. package/dist/models/AdminDomainAppraisalRequestListItemDto.js +109 -0
  21. package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.d.ts +268 -0
  22. package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.js +237 -0
  23. package/dist/models/BuyerInvoiceDto.d.ts +2 -2
  24. package/dist/models/BuyerSessionDto.d.ts +6 -0
  25. package/dist/models/BuyerSessionDto.js +4 -0
  26. package/dist/models/CreateAccountPaymentInput.d.ts +1 -0
  27. package/dist/models/CreateAccountPaymentInput.js +2 -1
  28. package/dist/models/CreateBuyerDomainAppraisalRequestInput.d.ts +44 -0
  29. package/dist/models/CreateBuyerDomainAppraisalRequestInput.js +59 -0
  30. package/dist/models/DomainAppraisalRequestListItemDto.d.ts +82 -0
  31. package/dist/models/DomainAppraisalRequestListItemDto.js +85 -0
  32. package/dist/models/DomainAppraisalRequestStatus.d.ts +27 -0
  33. package/dist/models/DomainAppraisalRequestStatus.js +53 -0
  34. package/dist/models/DomainAppraisalRequester.d.ts +25 -0
  35. package/dist/models/DomainAppraisalRequester.js +51 -0
  36. package/dist/models/DomainSalesInformationDto.d.ts +6 -0
  37. package/dist/models/DomainSalesInformationDto.js +4 -0
  38. package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
  39. package/dist/models/FeatureFlagListItemDto.js +3 -1
  40. package/dist/models/GetAdminDomainAppraisalRequests200Response.d.ts +47 -0
  41. package/dist/models/GetAdminDomainAppraisalRequests200Response.js +62 -0
  42. package/dist/models/GetBuyerDomainAppraisalRequests200Response.d.ts +47 -0
  43. package/dist/models/GetBuyerDomainAppraisalRequests200Response.js +62 -0
  44. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
  45. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
  46. package/dist/models/InvoiceDto.d.ts +2 -2
  47. package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
  48. package/dist/models/PrivateAccountGetMeResponse.js +3 -1
  49. package/dist/models/index.d.ts +9 -0
  50. package/dist/models/index.js +9 -0
  51. package/package.json +1 -1
  52. package/src/apis/AdminApi.ts +82 -0
  53. package/src/apis/BuyersApi.ts +113 -0
  54. package/src/apis/DomainAppraisalRequestsApi.ts +157 -0
  55. package/src/apis/DomainAppraisalRequestsPublicApi.ts +271 -0
  56. package/src/apis/index.ts +2 -0
  57. package/src/models/AccountBankAccountDto.ts +21 -0
  58. package/src/models/AdminBankAccountDto.ts +16 -0
  59. package/src/models/AdminBankAccountNameCheckDto.ts +183 -0
  60. package/src/models/AdminDomainAppraisalRequestListItemDto.ts +209 -0
  61. package/src/models/BuyerDomainAppraisalRequestCheckoutDto.ts +411 -0
  62. package/src/models/BuyerInvoiceDto.ts +2 -2
  63. package/src/models/BuyerSessionDto.ts +9 -0
  64. package/src/models/CreateAccountPaymentInput.ts +2 -1
  65. package/src/models/CreateBuyerDomainAppraisalRequestInput.ts +84 -0
  66. package/src/models/DomainAppraisalRequestListItemDto.ts +155 -0
  67. package/src/models/DomainAppraisalRequestStatus.ts +55 -0
  68. package/src/models/DomainAppraisalRequester.ts +53 -0
  69. package/src/models/DomainSalesInformationDto.ts +9 -0
  70. package/src/models/FeatureFlagListItemDto.ts +3 -1
  71. package/src/models/GetAdminDomainAppraisalRequests200Response.ts +106 -0
  72. package/src/models/GetBuyerDomainAppraisalRequests200Response.ts +106 -0
  73. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
  74. package/src/models/InvoiceDto.ts +2 -2
  75. package/src/models/PrivateAccountGetMeResponse.ts +3 -1
  76. package/src/models/index.ts +9 -0
@@ -0,0 +1,268 @@
1
+ /**
2
+ * Nameshift
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.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
+ import type { InvoiceItemDto } from './InvoiceItemDto';
13
+ import type { InvoiceTransactionDto } from './InvoiceTransactionDto';
14
+ import type { MoneyDto } from './MoneyDto';
15
+ import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
16
+ import type { AddressDto } from './AddressDto';
17
+ import type { DomainAppraisalRequestStatus } from './DomainAppraisalRequestStatus';
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface BuyerDomainAppraisalRequestCheckoutDto
22
+ */
23
+ export interface BuyerDomainAppraisalRequestCheckoutDto {
24
+ /**
25
+ * Domain appraisal request identifier.
26
+ * @type {string}
27
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
28
+ */
29
+ id: string;
30
+ /**
31
+ * Domain appraisal request status.
32
+ * @type {DomainAppraisalRequestStatus}
33
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
34
+ */
35
+ domainAppraisalRequestStatus: DomainAppraisalRequestStatus;
36
+ /**
37
+ * Appraised domain name (Unicode).
38
+ * @type {string}
39
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
40
+ */
41
+ domainName: string;
42
+ /**
43
+ * Buyer invoice status.
44
+ * @type {string}
45
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
46
+ */
47
+ status: BuyerDomainAppraisalRequestCheckoutDtoStatusEnum;
48
+ /**
49
+ * Domain appraisal base price.
50
+ * @type {MoneyDto}
51
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
52
+ */
53
+ basePrice: MoneyDto;
54
+ /**
55
+ * Domain appraisal total price including tax.
56
+ * @type {MoneyDto}
57
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
58
+ */
59
+ totalPrice: MoneyDto;
60
+ /**
61
+ * Total tax amount.
62
+ * @type {MoneyDto}
63
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
64
+ */
65
+ totalTaxPrice: MoneyDto;
66
+ /**
67
+ * Invoice line items.
68
+ * @type {Array<InvoiceItemDto>}
69
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
70
+ */
71
+ items: Array<InvoiceItemDto>;
72
+ /**
73
+ * Buyer first name.
74
+ * @type {string}
75
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
76
+ */
77
+ firstName: string | null;
78
+ /**
79
+ * Buyer last name.
80
+ * @type {string}
81
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
82
+ */
83
+ lastName: string | null;
84
+ /**
85
+ * Buyer email address.
86
+ * @type {string}
87
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
88
+ */
89
+ email: string;
90
+ /**
91
+ * Buyer phone number.
92
+ * @type {string}
93
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
94
+ */
95
+ phone: string | null;
96
+ /**
97
+ * Buyer address.
98
+ * @type {AddressDto}
99
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
100
+ */
101
+ address: AddressDto | null;
102
+ /**
103
+ * Buyer locale (e.g. en, nl).
104
+ * @type {string}
105
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
106
+ */
107
+ locale: string;
108
+ /**
109
+ * Buyer company information.
110
+ * @type {OrderCompanyInfoDto}
111
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
112
+ */
113
+ companyInfo: OrderCompanyInfoDto | null;
114
+ /**
115
+ * Self-declared tax country code (ISO 3166-1 alpha-2).
116
+ * @type {string}
117
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
118
+ */
119
+ selfDeclaredTaxCountry: string | null;
120
+ /**
121
+ * Decided tax country code (ISO 3166-1 alpha-2).
122
+ * @type {string}
123
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
124
+ */
125
+ decidedCountry: string;
126
+ /**
127
+ * Active invoice transaction, if any.
128
+ * @type {InvoiceTransactionDto}
129
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
130
+ */
131
+ transaction: InvoiceTransactionDto | null;
132
+ /**
133
+ * Whether the buyer invoice has a pending transaction.
134
+ * @type {boolean}
135
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
136
+ */
137
+ hasPendingTransaction: boolean;
138
+ /**
139
+ * Enabled payment modes for this domain appraisal request.
140
+ * @type {Array<string>}
141
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
142
+ */
143
+ enabledPaymentMethods: Array<BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum>;
144
+ /**
145
+ * Available payment methods per gateway (canonical ids), keyed by PaymentGateway. Empty when the cache is missing or expired.
146
+ * @type {{ [key: string]: any; }}
147
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
148
+ */
149
+ availablePaymentMethods: {
150
+ [key: string]: any;
151
+ };
152
+ /**
153
+ * Selected payment method on the active transaction (canonical)
154
+ * @type {string}
155
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
156
+ */
157
+ selectedPaymentMethod: BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum | null;
158
+ /**
159
+ * When the cached availablePaymentMethods expire. After this time, PATCH with forceUpdatePaymentMethods=true then GET again to refresh them.
160
+ * @type {Date}
161
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
162
+ */
163
+ availablePaymentMethodsExpiresAt: Date | null;
164
+ /**
165
+ * Whether the buyer invoice can be issued as proforma.
166
+ * @type {boolean}
167
+ * @memberof BuyerDomainAppraisalRequestCheckoutDto
168
+ */
169
+ canBeProforma: boolean;
170
+ }
171
+ /**
172
+ * @export
173
+ */
174
+ export declare const BuyerDomainAppraisalRequestCheckoutDtoStatusEnum: {
175
+ readonly DRAFT: "draft";
176
+ readonly PENDING_PAYMENT: "pending_payment";
177
+ readonly PAID: "paid";
178
+ readonly CANCELLED: "cancelled";
179
+ };
180
+ export type BuyerDomainAppraisalRequestCheckoutDtoStatusEnum = typeof BuyerDomainAppraisalRequestCheckoutDtoStatusEnum[keyof typeof BuyerDomainAppraisalRequestCheckoutDtoStatusEnum];
181
+ /**
182
+ * @export
183
+ */
184
+ export declare const BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum: {
185
+ readonly COMMON: "common";
186
+ readonly CRYPTO: "crypto";
187
+ };
188
+ export type BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum = typeof BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum[keyof typeof BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum];
189
+ /**
190
+ * @export
191
+ */
192
+ export declare const BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum: {
193
+ readonly ACSS_DEBIT: "acss_debit";
194
+ readonly AFFIRM: "affirm";
195
+ readonly AFTERPAY_CLEARPAY: "afterpay_clearpay";
196
+ readonly ALIPAY: "alipay";
197
+ readonly ALMA: "alma";
198
+ readonly AMAZON_PAY: "amazon_pay";
199
+ readonly APPLE_PAY: "apple_pay";
200
+ readonly AU_BECS_DEBIT: "au_becs_debit";
201
+ readonly BACS_DEBIT: "bacs_debit";
202
+ readonly BANCOMAT_PAY: "bancomat_pay";
203
+ readonly BANCONTACT: "bancontact";
204
+ readonly BELFIUS: "belfius";
205
+ readonly BILLIE: "billie";
206
+ readonly BLIK: "blik";
207
+ readonly BOLETO: "boleto";
208
+ readonly BANK_TRANSFER: "bank_transfer";
209
+ readonly CARD: "card";
210
+ readonly CARD_PRESENT: "card_present";
211
+ readonly CASHAPP: "cashapp";
212
+ readonly CUSTOMER_BALANCE: "customer_balance";
213
+ readonly EPS: "eps";
214
+ readonly FPX: "fpx";
215
+ readonly GIFTCARD: "giftcard";
216
+ readonly GIROPAY: "giropay";
217
+ readonly GOOGLE_PAY: "google_pay";
218
+ readonly GOPAY: "gopay";
219
+ readonly GRABPAY: "grabpay";
220
+ readonly ID_BANK_TRANSFER: "id_bank_transfer";
221
+ readonly IDEAL: "ideal";
222
+ readonly IN3: "in3";
223
+ readonly INTERAC_PRESENT: "interac_present";
224
+ readonly KAKAO_PAY: "kakao_pay";
225
+ readonly KBC: "kbc";
226
+ readonly KLARNA: "klarna";
227
+ readonly KONBINI: "konbini";
228
+ readonly KR_CARD: "kr_card";
229
+ readonly LINK: "link";
230
+ readonly MB_WAY: "mb_way";
231
+ readonly MOBILEPAY: "mobilepay";
232
+ readonly MULTIBANCO: "multibanco";
233
+ readonly NAVER_PAY: "naver_pay";
234
+ readonly NZ_BANK_ACCOUNT: "nz_bank_account";
235
+ readonly OXXO: "oxxo";
236
+ readonly PAY_BY_BANK: "pay_by_bank";
237
+ readonly PAYCO: "payco";
238
+ readonly PAYNOW: "paynow";
239
+ readonly PAYPAL: "paypal";
240
+ readonly PAYTO: "payto";
241
+ readonly PIX: "pix";
242
+ readonly PROMPTPAY: "promptpay";
243
+ readonly PRZELEWY24: "przelewy24";
244
+ readonly QRIS: "qris";
245
+ readonly RECHNUNG: "rechnung";
246
+ readonly REVOLUT_PAY: "revolut_pay";
247
+ readonly SAMSUNG_PAY: "samsung_pay";
248
+ readonly SATISPAY: "satispay";
249
+ readonly SEPA_DEBIT: "sepa_debit";
250
+ readonly SHOPEEPAY: "shopeepay";
251
+ readonly SOFORT: "sofort";
252
+ readonly STRIPE_BALANCE: "stripe_balance";
253
+ readonly SWISH: "swish";
254
+ readonly TWINT: "twint";
255
+ readonly US_BANK_ACCOUNT: "us_bank_account";
256
+ readonly VOUCHER: "voucher";
257
+ readonly WECHAT_PAY: "wechat_pay";
258
+ readonly ZIP: "zip";
259
+ };
260
+ export type BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum = typeof BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum[keyof typeof BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum];
261
+ /**
262
+ * Check if a given object implements the BuyerDomainAppraisalRequestCheckoutDto interface.
263
+ */
264
+ export declare function instanceOfBuyerDomainAppraisalRequestCheckoutDto(value: object): value is BuyerDomainAppraisalRequestCheckoutDto;
265
+ export declare function BuyerDomainAppraisalRequestCheckoutDtoFromJSON(json: any): BuyerDomainAppraisalRequestCheckoutDto;
266
+ export declare function BuyerDomainAppraisalRequestCheckoutDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDomainAppraisalRequestCheckoutDto;
267
+ export declare function BuyerDomainAppraisalRequestCheckoutDtoToJSON(json: any): BuyerDomainAppraisalRequestCheckoutDto;
268
+ export declare function BuyerDomainAppraisalRequestCheckoutDtoToJSONTyped(value?: BuyerDomainAppraisalRequestCheckoutDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,237 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum = exports.BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum = exports.BuyerDomainAppraisalRequestCheckoutDtoStatusEnum = void 0;
17
+ exports.instanceOfBuyerDomainAppraisalRequestCheckoutDto = instanceOfBuyerDomainAppraisalRequestCheckoutDto;
18
+ exports.BuyerDomainAppraisalRequestCheckoutDtoFromJSON = BuyerDomainAppraisalRequestCheckoutDtoFromJSON;
19
+ exports.BuyerDomainAppraisalRequestCheckoutDtoFromJSONTyped = BuyerDomainAppraisalRequestCheckoutDtoFromJSONTyped;
20
+ exports.BuyerDomainAppraisalRequestCheckoutDtoToJSON = BuyerDomainAppraisalRequestCheckoutDtoToJSON;
21
+ exports.BuyerDomainAppraisalRequestCheckoutDtoToJSONTyped = BuyerDomainAppraisalRequestCheckoutDtoToJSONTyped;
22
+ var InvoiceItemDto_1 = require("./InvoiceItemDto");
23
+ var InvoiceTransactionDto_1 = require("./InvoiceTransactionDto");
24
+ var MoneyDto_1 = require("./MoneyDto");
25
+ var OrderCompanyInfoDto_1 = require("./OrderCompanyInfoDto");
26
+ var AddressDto_1 = require("./AddressDto");
27
+ var DomainAppraisalRequestStatus_1 = require("./DomainAppraisalRequestStatus");
28
+ /**
29
+ * @export
30
+ */
31
+ exports.BuyerDomainAppraisalRequestCheckoutDtoStatusEnum = {
32
+ DRAFT: 'draft',
33
+ PENDING_PAYMENT: 'pending_payment',
34
+ PAID: 'paid',
35
+ CANCELLED: 'cancelled'
36
+ };
37
+ /**
38
+ * @export
39
+ */
40
+ exports.BuyerDomainAppraisalRequestCheckoutDtoEnabledPaymentMethodsEnum = {
41
+ COMMON: 'common',
42
+ CRYPTO: 'crypto'
43
+ };
44
+ /**
45
+ * @export
46
+ */
47
+ exports.BuyerDomainAppraisalRequestCheckoutDtoSelectedPaymentMethodEnum = {
48
+ ACSS_DEBIT: 'acss_debit',
49
+ AFFIRM: 'affirm',
50
+ AFTERPAY_CLEARPAY: 'afterpay_clearpay',
51
+ ALIPAY: 'alipay',
52
+ ALMA: 'alma',
53
+ AMAZON_PAY: 'amazon_pay',
54
+ APPLE_PAY: 'apple_pay',
55
+ AU_BECS_DEBIT: 'au_becs_debit',
56
+ BACS_DEBIT: 'bacs_debit',
57
+ BANCOMAT_PAY: 'bancomat_pay',
58
+ BANCONTACT: 'bancontact',
59
+ BELFIUS: 'belfius',
60
+ BILLIE: 'billie',
61
+ BLIK: 'blik',
62
+ BOLETO: 'boleto',
63
+ BANK_TRANSFER: 'bank_transfer',
64
+ CARD: 'card',
65
+ CARD_PRESENT: 'card_present',
66
+ CASHAPP: 'cashapp',
67
+ CUSTOMER_BALANCE: 'customer_balance',
68
+ EPS: 'eps',
69
+ FPX: 'fpx',
70
+ GIFTCARD: 'giftcard',
71
+ GIROPAY: 'giropay',
72
+ GOOGLE_PAY: 'google_pay',
73
+ GOPAY: 'gopay',
74
+ GRABPAY: 'grabpay',
75
+ ID_BANK_TRANSFER: 'id_bank_transfer',
76
+ IDEAL: 'ideal',
77
+ IN3: 'in3',
78
+ INTERAC_PRESENT: 'interac_present',
79
+ KAKAO_PAY: 'kakao_pay',
80
+ KBC: 'kbc',
81
+ KLARNA: 'klarna',
82
+ KONBINI: 'konbini',
83
+ KR_CARD: 'kr_card',
84
+ LINK: 'link',
85
+ MB_WAY: 'mb_way',
86
+ MOBILEPAY: 'mobilepay',
87
+ MULTIBANCO: 'multibanco',
88
+ NAVER_PAY: 'naver_pay',
89
+ NZ_BANK_ACCOUNT: 'nz_bank_account',
90
+ OXXO: 'oxxo',
91
+ PAY_BY_BANK: 'pay_by_bank',
92
+ PAYCO: 'payco',
93
+ PAYNOW: 'paynow',
94
+ PAYPAL: 'paypal',
95
+ PAYTO: 'payto',
96
+ PIX: 'pix',
97
+ PROMPTPAY: 'promptpay',
98
+ PRZELEWY24: 'przelewy24',
99
+ QRIS: 'qris',
100
+ RECHNUNG: 'rechnung',
101
+ REVOLUT_PAY: 'revolut_pay',
102
+ SAMSUNG_PAY: 'samsung_pay',
103
+ SATISPAY: 'satispay',
104
+ SEPA_DEBIT: 'sepa_debit',
105
+ SHOPEEPAY: 'shopeepay',
106
+ SOFORT: 'sofort',
107
+ STRIPE_BALANCE: 'stripe_balance',
108
+ SWISH: 'swish',
109
+ TWINT: 'twint',
110
+ US_BANK_ACCOUNT: 'us_bank_account',
111
+ VOUCHER: 'voucher',
112
+ WECHAT_PAY: 'wechat_pay',
113
+ ZIP: 'zip'
114
+ };
115
+ /**
116
+ * Check if a given object implements the BuyerDomainAppraisalRequestCheckoutDto interface.
117
+ */
118
+ function instanceOfBuyerDomainAppraisalRequestCheckoutDto(value) {
119
+ if (!('id' in value) || value['id'] === undefined)
120
+ return false;
121
+ if (!('domainAppraisalRequestStatus' in value) || value['domainAppraisalRequestStatus'] === undefined)
122
+ return false;
123
+ if (!('domainName' in value) || value['domainName'] === undefined)
124
+ return false;
125
+ if (!('status' in value) || value['status'] === undefined)
126
+ return false;
127
+ if (!('basePrice' in value) || value['basePrice'] === undefined)
128
+ return false;
129
+ if (!('totalPrice' in value) || value['totalPrice'] === undefined)
130
+ return false;
131
+ if (!('totalTaxPrice' in value) || value['totalTaxPrice'] === undefined)
132
+ return false;
133
+ if (!('items' in value) || value['items'] === undefined)
134
+ return false;
135
+ if (!('firstName' in value) || value['firstName'] === undefined)
136
+ return false;
137
+ if (!('lastName' in value) || value['lastName'] === undefined)
138
+ return false;
139
+ if (!('email' in value) || value['email'] === undefined)
140
+ return false;
141
+ if (!('phone' in value) || value['phone'] === undefined)
142
+ return false;
143
+ if (!('address' in value) || value['address'] === undefined)
144
+ return false;
145
+ if (!('locale' in value) || value['locale'] === undefined)
146
+ return false;
147
+ if (!('companyInfo' in value) || value['companyInfo'] === undefined)
148
+ return false;
149
+ if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined)
150
+ return false;
151
+ if (!('decidedCountry' in value) || value['decidedCountry'] === undefined)
152
+ return false;
153
+ if (!('transaction' in value) || value['transaction'] === undefined)
154
+ return false;
155
+ if (!('hasPendingTransaction' in value) || value['hasPendingTransaction'] === undefined)
156
+ return false;
157
+ if (!('enabledPaymentMethods' in value) || value['enabledPaymentMethods'] === undefined)
158
+ return false;
159
+ if (!('availablePaymentMethods' in value) || value['availablePaymentMethods'] === undefined)
160
+ return false;
161
+ if (!('selectedPaymentMethod' in value) || value['selectedPaymentMethod'] === undefined)
162
+ return false;
163
+ if (!('availablePaymentMethodsExpiresAt' in value) || value['availablePaymentMethodsExpiresAt'] === undefined)
164
+ return false;
165
+ if (!('canBeProforma' in value) || value['canBeProforma'] === undefined)
166
+ return false;
167
+ return true;
168
+ }
169
+ function BuyerDomainAppraisalRequestCheckoutDtoFromJSON(json) {
170
+ return BuyerDomainAppraisalRequestCheckoutDtoFromJSONTyped(json, false);
171
+ }
172
+ function BuyerDomainAppraisalRequestCheckoutDtoFromJSONTyped(json, ignoreDiscriminator) {
173
+ if (json == null) {
174
+ return json;
175
+ }
176
+ return {
177
+ 'id': json['id'],
178
+ 'domainAppraisalRequestStatus': (0, DomainAppraisalRequestStatus_1.DomainAppraisalRequestStatusFromJSON)(json['domainAppraisalRequestStatus']),
179
+ 'domainName': json['domainName'],
180
+ 'status': json['status'],
181
+ 'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
182
+ 'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
183
+ 'totalTaxPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalTaxPrice']),
184
+ 'items': (json['items'].map(InvoiceItemDto_1.InvoiceItemDtoFromJSON)),
185
+ 'firstName': json['firstName'],
186
+ 'lastName': json['lastName'],
187
+ 'email': json['email'],
188
+ 'phone': json['phone'],
189
+ 'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
190
+ 'locale': json['locale'],
191
+ 'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
192
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
193
+ 'decidedCountry': json['decidedCountry'],
194
+ 'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoFromJSON)(json['transaction']),
195
+ 'hasPendingTransaction': json['hasPendingTransaction'],
196
+ 'enabledPaymentMethods': json['enabledPaymentMethods'],
197
+ 'availablePaymentMethods': json['availablePaymentMethods'],
198
+ 'selectedPaymentMethod': json['selectedPaymentMethod'],
199
+ 'availablePaymentMethodsExpiresAt': (json['availablePaymentMethodsExpiresAt'] == null ? null : new Date(json['availablePaymentMethodsExpiresAt'])),
200
+ 'canBeProforma': json['canBeProforma'],
201
+ };
202
+ }
203
+ function BuyerDomainAppraisalRequestCheckoutDtoToJSON(json) {
204
+ return BuyerDomainAppraisalRequestCheckoutDtoToJSONTyped(json, false);
205
+ }
206
+ function BuyerDomainAppraisalRequestCheckoutDtoToJSONTyped(value, ignoreDiscriminator) {
207
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
208
+ if (value == null) {
209
+ return value;
210
+ }
211
+ return {
212
+ 'id': value['id'],
213
+ 'domainAppraisalRequestStatus': (0, DomainAppraisalRequestStatus_1.DomainAppraisalRequestStatusToJSON)(value['domainAppraisalRequestStatus']),
214
+ 'domainName': value['domainName'],
215
+ 'status': value['status'],
216
+ 'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
217
+ 'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
218
+ 'totalTaxPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalTaxPrice']),
219
+ 'items': (value['items'].map(InvoiceItemDto_1.InvoiceItemDtoToJSON)),
220
+ 'firstName': value['firstName'],
221
+ 'lastName': value['lastName'],
222
+ 'email': value['email'],
223
+ 'phone': value['phone'],
224
+ 'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
225
+ 'locale': value['locale'],
226
+ 'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
227
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
228
+ 'decidedCountry': value['decidedCountry'],
229
+ 'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoToJSON)(value['transaction']),
230
+ 'hasPendingTransaction': value['hasPendingTransaction'],
231
+ 'enabledPaymentMethods': value['enabledPaymentMethods'],
232
+ 'availablePaymentMethods': value['availablePaymentMethods'],
233
+ 'selectedPaymentMethod': value['selectedPaymentMethod'],
234
+ 'availablePaymentMethodsExpiresAt': (value['availablePaymentMethodsExpiresAt'] == null ? null : value['availablePaymentMethodsExpiresAt'].toISOString()),
235
+ 'canBeProforma': value['canBeProforma'],
236
+ };
237
+ }
@@ -61,11 +61,11 @@ export interface BuyerInvoiceDto {
61
61
  */
62
62
  target: BuyerInvoiceDtoTargetEnum;
63
63
  /**
64
- * Seller account information.
64
+ * Seller account information; null only for the invoice of a buyer's domain appraisal, which Nameshift sells.
65
65
  * @type {BuyerInvoiceSellerAccountDto}
66
66
  * @memberof BuyerInvoiceDto
67
67
  */
68
- sellerAccount: BuyerInvoiceSellerAccountDto;
68
+ sellerAccount: BuyerInvoiceSellerAccountDto | null;
69
69
  /**
70
70
  * Parent invoice ID, if this is a child invoice.
71
71
  * @type {string}
@@ -69,6 +69,12 @@ export interface BuyerSessionDto {
69
69
  * @memberof BuyerSessionDto
70
70
  */
71
71
  hasAuctions: boolean;
72
+ /**
73
+ * Whether the buyer has requested any domain appraisal
74
+ * @type {boolean}
75
+ * @memberof BuyerSessionDto
76
+ */
77
+ hasDomainAppraisalRequests: boolean;
72
78
  }
73
79
  /**
74
80
  * @export
@@ -48,6 +48,8 @@ function instanceOfBuyerSessionDto(value) {
48
48
  return false;
49
49
  if (!('hasAuctions' in value) || value['hasAuctions'] === undefined)
50
50
  return false;
51
+ if (!('hasDomainAppraisalRequests' in value) || value['hasDomainAppraisalRequests'] === undefined)
52
+ return false;
51
53
  return true;
52
54
  }
53
55
  function BuyerSessionDtoFromJSON(json) {
@@ -67,6 +69,7 @@ function BuyerSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
67
69
  'hasSubscriptions': json['hasSubscriptions'],
68
70
  'unreadNotificationsNumber': json['unreadNotificationsNumber'],
69
71
  'hasAuctions': json['hasAuctions'],
72
+ 'hasDomainAppraisalRequests': json['hasDomainAppraisalRequests'],
70
73
  };
71
74
  }
72
75
  function BuyerSessionDtoToJSON(json) {
@@ -87,5 +90,6 @@ function BuyerSessionDtoToJSONTyped(value, ignoreDiscriminator) {
87
90
  'hasSubscriptions': value['hasSubscriptions'],
88
91
  'unreadNotificationsNumber': value['unreadNotificationsNumber'],
89
92
  'hasAuctions': value['hasAuctions'],
93
+ 'hasDomainAppraisalRequests': value['hasDomainAppraisalRequests'],
90
94
  };
91
95
  }
@@ -41,6 +41,7 @@ export interface CreateAccountPaymentInput {
41
41
  */
42
42
  export declare const CreateAccountPaymentInputTypeEnum: {
43
43
  readonly PAID_AUCTION: "PAID_AUCTION";
44
+ readonly DOMAIN_APPRAISAL: "DOMAIN_APPRAISAL";
44
45
  };
45
46
  export type CreateAccountPaymentInputTypeEnum = typeof CreateAccountPaymentInputTypeEnum[keyof typeof CreateAccountPaymentInputTypeEnum];
46
47
  /**
@@ -23,7 +23,8 @@ exports.CreateAccountPaymentInputToJSONTyped = CreateAccountPaymentInputToJSONTy
23
23
  * @export
24
24
  */
25
25
  exports.CreateAccountPaymentInputTypeEnum = {
26
- PAID_AUCTION: 'PAID_AUCTION'
26
+ PAID_AUCTION: 'PAID_AUCTION',
27
+ DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
27
28
  };
28
29
  /**
29
30
  * Check if a given object implements the CreateAccountPaymentInput interface.
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Nameshift
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: 1.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 CreateBuyerDomainAppraisalRequestInput
16
+ */
17
+ export interface CreateBuyerDomainAppraisalRequestInput {
18
+ /**
19
+ * Email of the buyer requesting the domain appraisal
20
+ * @type {string}
21
+ * @memberof CreateBuyerDomainAppraisalRequestInput
22
+ */
23
+ email: string;
24
+ /**
25
+ * Locale for the domain appraisal request and invoice communications
26
+ * @type {string}
27
+ * @memberof CreateBuyerDomainAppraisalRequestInput
28
+ */
29
+ locale: string;
30
+ /**
31
+ * Full name of the domain to appraise
32
+ * @type {string}
33
+ * @memberof CreateBuyerDomainAppraisalRequestInput
34
+ */
35
+ domainName: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the CreateBuyerDomainAppraisalRequestInput interface.
39
+ */
40
+ export declare function instanceOfCreateBuyerDomainAppraisalRequestInput(value: object): value is CreateBuyerDomainAppraisalRequestInput;
41
+ export declare function CreateBuyerDomainAppraisalRequestInputFromJSON(json: any): CreateBuyerDomainAppraisalRequestInput;
42
+ export declare function CreateBuyerDomainAppraisalRequestInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBuyerDomainAppraisalRequestInput;
43
+ export declare function CreateBuyerDomainAppraisalRequestInputToJSON(json: any): CreateBuyerDomainAppraisalRequestInput;
44
+ export declare function CreateBuyerDomainAppraisalRequestInputToJSONTyped(value?: CreateBuyerDomainAppraisalRequestInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateBuyerDomainAppraisalRequestInput = instanceOfCreateBuyerDomainAppraisalRequestInput;
17
+ exports.CreateBuyerDomainAppraisalRequestInputFromJSON = CreateBuyerDomainAppraisalRequestInputFromJSON;
18
+ exports.CreateBuyerDomainAppraisalRequestInputFromJSONTyped = CreateBuyerDomainAppraisalRequestInputFromJSONTyped;
19
+ exports.CreateBuyerDomainAppraisalRequestInputToJSON = CreateBuyerDomainAppraisalRequestInputToJSON;
20
+ exports.CreateBuyerDomainAppraisalRequestInputToJSONTyped = CreateBuyerDomainAppraisalRequestInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateBuyerDomainAppraisalRequestInput interface.
23
+ */
24
+ function instanceOfCreateBuyerDomainAppraisalRequestInput(value) {
25
+ if (!('email' in value) || value['email'] === undefined)
26
+ return false;
27
+ if (!('locale' in value) || value['locale'] === undefined)
28
+ return false;
29
+ if (!('domainName' in value) || value['domainName'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function CreateBuyerDomainAppraisalRequestInputFromJSON(json) {
34
+ return CreateBuyerDomainAppraisalRequestInputFromJSONTyped(json, false);
35
+ }
36
+ function CreateBuyerDomainAppraisalRequestInputFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'email': json['email'],
42
+ 'locale': json['locale'],
43
+ 'domainName': json['domainName'],
44
+ };
45
+ }
46
+ function CreateBuyerDomainAppraisalRequestInputToJSON(json) {
47
+ return CreateBuyerDomainAppraisalRequestInputToJSONTyped(json, false);
48
+ }
49
+ function CreateBuyerDomainAppraisalRequestInputToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'email': value['email'],
56
+ 'locale': value['locale'],
57
+ 'domainName': value['domainName'],
58
+ };
59
+ }