@randock/nameshift-api-client 0.0.498 → 0.0.500
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 +7 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +15 -1
- package/dist/apis/AccountsApi.js +66 -0
- package/dist/apis/AdminApi.d.ts +27 -15
- package/dist/apis/AdminApi.js +78 -22
- package/dist/models/AccountBankAccountDto.d.ts +21 -0
- package/dist/models/AccountBankAccountDto.js +17 -1
- package/dist/models/AccountPayoutDto.d.ts +13 -0
- package/dist/models/AccountPayoutDto.js +9 -0
- package/dist/models/ApiKeyDto.d.ts +1 -0
- package/dist/models/ApiKeyDto.js +1 -0
- package/dist/models/ApiKeyScopeDto.d.ts +1 -0
- package/dist/models/ApiKeyScopeDto.js +1 -0
- package/dist/models/BankAccountFormatCountryDto.d.ts +7 -1
- package/dist/models/BankAccountFormatCountryDto.js +4 -0
- package/dist/models/BankAccountFormatDto.d.ts +14 -0
- package/dist/models/BankAccountFormatDto.js +10 -0
- package/dist/models/BankAccountTransferMethod.d.ts +25 -0
- package/dist/models/BankAccountTransferMethod.js +51 -0
- package/dist/models/CreateApiKeyInput.d.ts +1 -0
- package/dist/models/CreateApiKeyInput.js +1 -0
- package/dist/models/CreatedApiKeyDto.d.ts +1 -0
- package/dist/models/CreatedApiKeyDto.js +1 -0
- package/dist/models/InvoiceDto.d.ts +13 -0
- package/dist/models/InvoiceDto.js +9 -0
- package/dist/models/InvoicePayoutDto.d.ts +71 -0
- package/dist/models/InvoicePayoutDto.js +78 -0
- package/dist/models/InvoiceSellerAccountDto.d.ts +13 -0
- package/dist/models/InvoiceSellerAccountDto.js +9 -0
- package/dist/models/PaySellerInvoicesInput.d.ts +32 -0
- package/dist/models/PaySellerInvoicesInput.js +51 -0
- package/dist/models/PayoutFrequency.d.ts +28 -0
- package/dist/models/PayoutFrequency.js +54 -0
- package/dist/models/SellerInvoiceDto.d.ts +13 -0
- package/dist/models/SellerInvoiceDto.js +9 -0
- package/dist/models/SellerPayoutPreviewDto.d.ts +60 -0
- package/dist/models/SellerPayoutPreviewDto.js +73 -0
- package/dist/models/SellerPayoutStatus.d.ts +26 -0
- package/dist/models/SellerPayoutStatus.js +52 -0
- package/dist/models/SetPayoutFrequencyInput.d.ts +39 -0
- package/dist/models/SetPayoutFrequencyInput.js +54 -0
- package/dist/models/UpdateApiKeyInput.d.ts +1 -0
- package/dist/models/UpdateApiKeyInput.js +1 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +64 -0
- package/src/apis/AdminApi.ts +82 -31
- package/src/models/AccountBankAccountDto.ts +34 -0
- package/src/models/AccountPayoutDto.ts +26 -0
- package/src/models/ApiKeyDto.ts +1 -0
- package/src/models/ApiKeyScopeDto.ts +1 -0
- package/src/models/BankAccountFormatCountryDto.ts +10 -1
- package/src/models/BankAccountFormatDto.ts +34 -0
- package/src/models/BankAccountTransferMethod.ts +53 -0
- package/src/models/CreateApiKeyInput.ts +1 -0
- package/src/models/CreatedApiKeyDto.ts +1 -0
- package/src/models/InvoiceDto.ts +25 -0
- package/src/models/InvoicePayoutDto.ts +144 -0
- package/src/models/InvoiceSellerAccountDto.ts +26 -0
- package/src/models/PaySellerInvoicesInput.ts +66 -0
- package/src/models/PayoutFrequency.ts +56 -0
- package/src/models/SellerInvoiceDto.ts +25 -0
- package/src/models/SellerPayoutPreviewDto.ts +119 -0
- package/src/models/SellerPayoutStatus.ts +54 -0
- package/src/models/SetPayoutFrequencyInput.ts +84 -0
- package/src/models/UpdateApiKeyInput.ts +1 -0
- package/src/models/index.ts +7 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -146,6 +146,7 @@ src/models/BankAccountFormatFieldDto.ts
|
|
|
146
146
|
src/models/BankAccountFormatFieldOptionDto.ts
|
|
147
147
|
src/models/BankAccountFormatFieldType.ts
|
|
148
148
|
src/models/BankAccountFormatsDto.ts
|
|
149
|
+
src/models/BankAccountTransferMethod.ts
|
|
149
150
|
src/models/BatchDeleteBuyerLeadsInput.ts
|
|
150
151
|
src/models/BatchImportPreviewDto.ts
|
|
151
152
|
src/models/BatchReadBuyerLeadMessageInput.ts
|
|
@@ -346,6 +347,7 @@ src/models/InvoiceDto.ts
|
|
|
346
347
|
src/models/InvoiceDtoTransaction.ts
|
|
347
348
|
src/models/InvoiceItemDto.ts
|
|
348
349
|
src/models/InvoiceItemTaxDto.ts
|
|
350
|
+
src/models/InvoicePayoutDto.ts
|
|
349
351
|
src/models/InvoiceSellerAccountDto.ts
|
|
350
352
|
src/models/InvoiceTransactionDto.ts
|
|
351
353
|
src/models/JobDto.ts
|
|
@@ -466,7 +468,9 @@ src/models/ParsedDomainDto.ts
|
|
|
466
468
|
src/models/PartnerAuctionDto.ts
|
|
467
469
|
src/models/PartnerDomainFindDto.ts
|
|
468
470
|
src/models/PayAccountPaymentInput.ts
|
|
471
|
+
src/models/PaySellerInvoicesInput.ts
|
|
469
472
|
src/models/PaymentMethodsStatsDto.ts
|
|
473
|
+
src/models/PayoutFrequency.ts
|
|
470
474
|
src/models/PopularCategoryDto.ts
|
|
471
475
|
src/models/PreviewDomainEditInput.ts
|
|
472
476
|
src/models/PrivateAccountGetMeResponse.ts
|
|
@@ -524,6 +528,8 @@ src/models/SellerInvoiceDomainDto.ts
|
|
|
524
528
|
src/models/SellerInvoiceDto.ts
|
|
525
529
|
src/models/SellerInvoiceSellerAccountDto.ts
|
|
526
530
|
src/models/SellerLeadDetails.ts
|
|
531
|
+
src/models/SellerPayoutPreviewDto.ts
|
|
532
|
+
src/models/SellerPayoutStatus.ts
|
|
527
533
|
src/models/SellerPendingPayoutsByCurrencyStatsItemDto.ts
|
|
528
534
|
src/models/SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto.ts
|
|
529
535
|
src/models/SellerSalesByTldStatsItemDto.ts
|
|
@@ -543,6 +549,7 @@ src/models/SeoMetricsDto.ts
|
|
|
543
549
|
src/models/SetAccountMarketplaceInput.ts
|
|
544
550
|
src/models/SetDomainTransferConfirmationInput.ts
|
|
545
551
|
src/models/SetNewPasswordInput.ts
|
|
552
|
+
src/models/SetPayoutFrequencyInput.ts
|
|
546
553
|
src/models/SetPayoutProviderInput.ts
|
|
547
554
|
src/models/SimulateCommissionInput.ts
|
|
548
555
|
src/models/StartAuctionInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.500
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.500 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
64d469cc6279b780c61f755597c97e879b82107e65c9616b33f59a33a1d1e5436c14f289130b1ff82294bf8e6439bbf3
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountOnboardingSessionDto, AccountPaymentDto, AccountPaymentMethodDto, AccountSettingsDto, AccountSettingsInput, CreateAccountPaymentInput, CreateAccountPaymentManualTransactionInput, GetAccountNameshiftCommissionsResponseDto, GetAllAffiliateCommissions200Response, GetAllReferrals200Response, MoneyDto, ObjectId, PayAccountPaymentInput, PrivateAccountGetMeResponse, SetPayoutProviderInput, UpdateAccountBillingInformationInput } from '../models/index';
|
|
13
|
+
import type { AccountOnboardingSessionDto, AccountPaymentDto, AccountPaymentMethodDto, AccountSettingsDto, AccountSettingsInput, CreateAccountPaymentInput, CreateAccountPaymentManualTransactionInput, GetAccountNameshiftCommissionsResponseDto, GetAllAffiliateCommissions200Response, GetAllReferrals200Response, MoneyDto, ObjectId, PayAccountPaymentInput, PrivateAccountGetMeResponse, SetPayoutFrequencyInput, SetPayoutProviderInput, UpdateAccountBillingInformationInput } from '../models/index';
|
|
14
14
|
export interface AccountsApiCreateAccountPaymentRequest {
|
|
15
15
|
accountId: string;
|
|
16
16
|
createAccountPaymentInput: CreateAccountPaymentInput;
|
|
@@ -71,6 +71,10 @@ export interface AccountsApiPutAvatarRequest {
|
|
|
71
71
|
accountId: string;
|
|
72
72
|
file?: Blob | null;
|
|
73
73
|
}
|
|
74
|
+
export interface AccountsApiSetPayoutFrequencyRequest {
|
|
75
|
+
accountId: string;
|
|
76
|
+
setPayoutFrequencyInput: SetPayoutFrequencyInput;
|
|
77
|
+
}
|
|
74
78
|
export interface AccountsApiSetPayoutProviderRequest {
|
|
75
79
|
accountId: string;
|
|
76
80
|
setPayoutProviderInput: SetPayoutProviderInput;
|
|
@@ -243,6 +247,16 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
243
247
|
* Upload landing page avatar
|
|
244
248
|
*/
|
|
245
249
|
putAvatar(requestParameters: AccountsApiPutAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
250
|
+
/**
|
|
251
|
+
* Sets how often the current seller account is paid out, for an account that is paid out automatically. Invoices that came in during a period are paid out together when the next one starts, which saves the fee per payout of an international transfer. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
252
|
+
* Set payout frequency
|
|
253
|
+
*/
|
|
254
|
+
setPayoutFrequencyRaw(requestParameters: AccountsApiSetPayoutFrequencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
255
|
+
/**
|
|
256
|
+
* Sets how often the current seller account is paid out, for an account that is paid out automatically. Invoices that came in during a period are paid out together when the next one starts, which saves the fee per payout of an international transfer. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
257
|
+
* Set payout frequency
|
|
258
|
+
*/
|
|
259
|
+
setPayoutFrequency(requestParameters: AccountsApiSetPayoutFrequencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
246
260
|
/**
|
|
247
261
|
* Sets the payout provider for the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
248
262
|
* Set payout provider
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -1142,6 +1142,72 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
1142
1142
|
});
|
|
1143
1143
|
});
|
|
1144
1144
|
};
|
|
1145
|
+
/**
|
|
1146
|
+
* Sets how often the current seller account is paid out, for an account that is paid out automatically. Invoices that came in during a period are paid out together when the next one starts, which saves the fee per payout of an international transfer. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
1147
|
+
* Set payout frequency
|
|
1148
|
+
*/
|
|
1149
|
+
AccountsApi.prototype.setPayoutFrequencyRaw = function (requestParameters, initOverrides) {
|
|
1150
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1151
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
1152
|
+
return __generator(this, function (_c) {
|
|
1153
|
+
switch (_c.label) {
|
|
1154
|
+
case 0:
|
|
1155
|
+
if (requestParameters['accountId'] == null) {
|
|
1156
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling setPayoutFrequency().');
|
|
1157
|
+
}
|
|
1158
|
+
if (requestParameters['setPayoutFrequencyInput'] == null) {
|
|
1159
|
+
throw new runtime.RequiredError('setPayoutFrequencyInput', 'Required parameter "setPayoutFrequencyInput" was null or undefined when calling setPayoutFrequency().');
|
|
1160
|
+
}
|
|
1161
|
+
queryParameters = {};
|
|
1162
|
+
headerParameters = {};
|
|
1163
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1164
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1165
|
+
_a = headerParameters;
|
|
1166
|
+
_b = "apikey";
|
|
1167
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
1168
|
+
case 1:
|
|
1169
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
1170
|
+
_c.label = 2;
|
|
1171
|
+
case 2:
|
|
1172
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
1173
|
+
token = this.configuration.accessToken;
|
|
1174
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1175
|
+
case 3:
|
|
1176
|
+
tokenString = _c.sent();
|
|
1177
|
+
if (tokenString) {
|
|
1178
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1179
|
+
}
|
|
1180
|
+
_c.label = 4;
|
|
1181
|
+
case 4: return [4 /*yield*/, this.request({
|
|
1182
|
+
path: "/private/accounts/{accountId}/payout-frequency".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
1183
|
+
method: 'POST',
|
|
1184
|
+
headers: headerParameters,
|
|
1185
|
+
query: queryParameters,
|
|
1186
|
+
body: (0, index_1.SetPayoutFrequencyInputToJSON)(requestParameters['setPayoutFrequencyInput']),
|
|
1187
|
+
}, initOverrides)];
|
|
1188
|
+
case 5:
|
|
1189
|
+
response = _c.sent();
|
|
1190
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1193
|
+
});
|
|
1194
|
+
};
|
|
1195
|
+
/**
|
|
1196
|
+
* Sets how often the current seller account is paid out, for an account that is paid out automatically. Invoices that came in during a period are paid out together when the next one starts, which saves the fee per payout of an international transfer. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
1197
|
+
* Set payout frequency
|
|
1198
|
+
*/
|
|
1199
|
+
AccountsApi.prototype.setPayoutFrequency = function (requestParameters, initOverrides) {
|
|
1200
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1201
|
+
return __generator(this, function (_a) {
|
|
1202
|
+
switch (_a.label) {
|
|
1203
|
+
case 0: return [4 /*yield*/, this.setPayoutFrequencyRaw(requestParameters, initOverrides)];
|
|
1204
|
+
case 1:
|
|
1205
|
+
_a.sent();
|
|
1206
|
+
return [2 /*return*/];
|
|
1207
|
+
}
|
|
1208
|
+
});
|
|
1209
|
+
});
|
|
1210
|
+
};
|
|
1145
1211
|
/**
|
|
1146
1212
|
* Sets the payout provider for the current seller account. **API key scope required:** `PAYOUTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
1147
1213
|
* Set payout provider
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminLandingDesignStatsDto, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminLandingDesignAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ObjectId, SellerLeadDetails, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminLandingDesignStatsDto, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminLandingDesignAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ObjectId, PaySellerInvoicesInput, SellerLeadDetails, SellerPayoutPreviewDto, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminDeleteAuctionRequest {
|
|
15
15
|
auctionId: string;
|
|
16
16
|
}
|
|
@@ -303,13 +303,12 @@ export interface AdminApiLoginAsRequest {
|
|
|
303
303
|
export interface AdminApiLoginAsBuyerRequest {
|
|
304
304
|
buyerId: string;
|
|
305
305
|
}
|
|
306
|
-
export interface AdminApiPayDomainTransferSellerInvoiceRequest {
|
|
307
|
-
transferId: string;
|
|
308
|
-
invoiceId: string;
|
|
309
|
-
}
|
|
310
306
|
export interface AdminApiPaySellerInvoiceRequest {
|
|
311
307
|
invoiceId: string;
|
|
312
308
|
}
|
|
309
|
+
export interface AdminApiPaySellerInvoicesRequest {
|
|
310
|
+
paySellerInvoicesInput: PaySellerInvoicesInput;
|
|
311
|
+
}
|
|
313
312
|
export interface AdminApiPostAdminCompleteDomainTransferRequest {
|
|
314
313
|
transferId: string;
|
|
315
314
|
}
|
|
@@ -321,6 +320,9 @@ export interface AdminApiPostAdminExecuteDomainTransferStepActionRequest {
|
|
|
321
320
|
export interface AdminApiPostAiPriceNegotiatorAgentChatMessageRequest {
|
|
322
321
|
sendAdminLeadAiPriceNegotiatorAgentChatMessageInput: SendAdminLeadAiPriceNegotiatorAgentChatMessageInput;
|
|
323
322
|
}
|
|
323
|
+
export interface AdminApiPreviewSellerPayoutRequest {
|
|
324
|
+
paySellerInvoicesInput: PaySellerInvoicesInput;
|
|
325
|
+
}
|
|
324
326
|
export interface AdminApiPurgeDomainCdnCacheRequest {
|
|
325
327
|
domainId: string;
|
|
326
328
|
}
|
|
@@ -994,16 +996,6 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
994
996
|
* Log in as a buyer
|
|
995
997
|
*/
|
|
996
998
|
loginAsBuyer(requestParameters: AdminApiLoginAsBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminBuyerLoginDto>;
|
|
997
|
-
/**
|
|
998
|
-
* Processes payment of a seller invoice associated with a domain transfer.
|
|
999
|
-
* Pay domain transfer seller invoice
|
|
1000
|
-
*/
|
|
1001
|
-
payDomainTransferSellerInvoiceRaw(requestParameters: AdminApiPayDomainTransferSellerInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1002
|
-
/**
|
|
1003
|
-
* Processes payment of a seller invoice associated with a domain transfer.
|
|
1004
|
-
* Pay domain transfer seller invoice
|
|
1005
|
-
*/
|
|
1006
|
-
payDomainTransferSellerInvoice(requestParameters: AdminApiPayDomainTransferSellerInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1007
999
|
/**
|
|
1008
1000
|
* Marks a seller invoice transaction as paid when the payout has been processed.
|
|
1009
1001
|
* Pay seller invoice
|
|
@@ -1014,6 +1006,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
1014
1006
|
* Pay seller invoice
|
|
1015
1007
|
*/
|
|
1016
1008
|
paySellerInvoice(requestParameters: AdminApiPaySellerInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Pays several invoices of one seller out together. To a bank account they go in one transfer, so the seller pays the fee of an international transfer once; they then have to be in one currency. Through Stripe each invoice is its own transfer.
|
|
1011
|
+
* Pay seller invoices in one payout
|
|
1012
|
+
*/
|
|
1013
|
+
paySellerInvoicesRaw(requestParameters: AdminApiPaySellerInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1014
|
+
/**
|
|
1015
|
+
* Pays several invoices of one seller out together. To a bank account they go in one transfer, so the seller pays the fee of an international transfer once; they then have to be in one currency. Through Stripe each invoice is its own transfer.
|
|
1016
|
+
* Pay seller invoices in one payout
|
|
1017
|
+
*/
|
|
1018
|
+
paySellerInvoices(requestParameters: AdminApiPaySellerInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1017
1019
|
/**
|
|
1018
1020
|
* Marks a domain transfer as completed. Requires super admin role.
|
|
1019
1021
|
* Complete domain transfer
|
|
@@ -1044,6 +1046,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
1044
1046
|
* Test AI price negotiator agent
|
|
1045
1047
|
*/
|
|
1046
1048
|
postAiPriceNegotiatorAgentChatMessage(requestParameters: AdminApiPostAiPriceNegotiatorAgentChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>>;
|
|
1049
|
+
/**
|
|
1050
|
+
* Tells what paying these invoices out together would do, without doing it: the bank account the transfer goes to, and the fee taken out of what the seller receives. Refuses what paying them would refuse.
|
|
1051
|
+
* Preview a payout of seller invoices
|
|
1052
|
+
*/
|
|
1053
|
+
previewSellerPayoutRaw(requestParameters: AdminApiPreviewSellerPayoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SellerPayoutPreviewDto>>;
|
|
1054
|
+
/**
|
|
1055
|
+
* Tells what paying these invoices out together would do, without doing it: the bank account the transfer goes to, and the fee taken out of what the seller receives. Refuses what paying them would refuse.
|
|
1056
|
+
* Preview a payout of seller invoices
|
|
1057
|
+
*/
|
|
1058
|
+
previewSellerPayout(requestParameters: AdminApiPreviewSellerPayoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerPayoutPreviewDto>;
|
|
1047
1059
|
/**
|
|
1048
1060
|
* Purges the CDN cache for the specified domain landing page.
|
|
1049
1061
|
* Purge domain CDN cache
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -3657,20 +3657,17 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3657
3657
|
});
|
|
3658
3658
|
};
|
|
3659
3659
|
/**
|
|
3660
|
-
*
|
|
3661
|
-
* Pay
|
|
3660
|
+
* Marks a seller invoice transaction as paid when the payout has been processed.
|
|
3661
|
+
* Pay seller invoice
|
|
3662
3662
|
*/
|
|
3663
|
-
AdminApi.prototype.
|
|
3663
|
+
AdminApi.prototype.paySellerInvoiceRaw = function (requestParameters, initOverrides) {
|
|
3664
3664
|
return __awaiter(this, void 0, void 0, function () {
|
|
3665
3665
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
3666
3666
|
return __generator(this, function (_a) {
|
|
3667
3667
|
switch (_a.label) {
|
|
3668
3668
|
case 0:
|
|
3669
|
-
if (requestParameters['transferId'] == null) {
|
|
3670
|
-
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling payDomainTransferSellerInvoice().');
|
|
3671
|
-
}
|
|
3672
3669
|
if (requestParameters['invoiceId'] == null) {
|
|
3673
|
-
throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling
|
|
3670
|
+
throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling paySellerInvoice().');
|
|
3674
3671
|
}
|
|
3675
3672
|
queryParameters = {};
|
|
3676
3673
|
headerParameters = {};
|
|
@@ -3684,7 +3681,7 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3684
3681
|
}
|
|
3685
3682
|
_a.label = 2;
|
|
3686
3683
|
case 2: return [4 /*yield*/, this.request({
|
|
3687
|
-
path: "/admin/
|
|
3684
|
+
path: "/admin/invoices/{invoiceId}/pay".replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
3688
3685
|
method: 'POST',
|
|
3689
3686
|
headers: headerParameters,
|
|
3690
3687
|
query: queryParameters,
|
|
@@ -3697,14 +3694,14 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3697
3694
|
});
|
|
3698
3695
|
};
|
|
3699
3696
|
/**
|
|
3700
|
-
*
|
|
3701
|
-
* Pay
|
|
3697
|
+
* Marks a seller invoice transaction as paid when the payout has been processed.
|
|
3698
|
+
* Pay seller invoice
|
|
3702
3699
|
*/
|
|
3703
|
-
AdminApi.prototype.
|
|
3700
|
+
AdminApi.prototype.paySellerInvoice = function (requestParameters, initOverrides) {
|
|
3704
3701
|
return __awaiter(this, void 0, void 0, function () {
|
|
3705
3702
|
return __generator(this, function (_a) {
|
|
3706
3703
|
switch (_a.label) {
|
|
3707
|
-
case 0: return [4 /*yield*/, this.
|
|
3704
|
+
case 0: return [4 /*yield*/, this.paySellerInvoiceRaw(requestParameters, initOverrides)];
|
|
3708
3705
|
case 1:
|
|
3709
3706
|
_a.sent();
|
|
3710
3707
|
return [2 /*return*/];
|
|
@@ -3713,20 +3710,21 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3713
3710
|
});
|
|
3714
3711
|
};
|
|
3715
3712
|
/**
|
|
3716
|
-
*
|
|
3717
|
-
* Pay seller
|
|
3713
|
+
* Pays several invoices of one seller out together. To a bank account they go in one transfer, so the seller pays the fee of an international transfer once; they then have to be in one currency. Through Stripe each invoice is its own transfer.
|
|
3714
|
+
* Pay seller invoices in one payout
|
|
3718
3715
|
*/
|
|
3719
|
-
AdminApi.prototype.
|
|
3716
|
+
AdminApi.prototype.paySellerInvoicesRaw = function (requestParameters, initOverrides) {
|
|
3720
3717
|
return __awaiter(this, void 0, void 0, function () {
|
|
3721
3718
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
3722
3719
|
return __generator(this, function (_a) {
|
|
3723
3720
|
switch (_a.label) {
|
|
3724
3721
|
case 0:
|
|
3725
|
-
if (requestParameters['
|
|
3726
|
-
throw new runtime.RequiredError('
|
|
3722
|
+
if (requestParameters['paySellerInvoicesInput'] == null) {
|
|
3723
|
+
throw new runtime.RequiredError('paySellerInvoicesInput', 'Required parameter "paySellerInvoicesInput" was null or undefined when calling paySellerInvoices().');
|
|
3727
3724
|
}
|
|
3728
3725
|
queryParameters = {};
|
|
3729
3726
|
headerParameters = {};
|
|
3727
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3730
3728
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
3731
3729
|
token = this.configuration.accessToken;
|
|
3732
3730
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -3737,10 +3735,11 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3737
3735
|
}
|
|
3738
3736
|
_a.label = 2;
|
|
3739
3737
|
case 2: return [4 /*yield*/, this.request({
|
|
3740
|
-
path: "/admin/invoices/
|
|
3738
|
+
path: "/admin/invoices/pay",
|
|
3741
3739
|
method: 'POST',
|
|
3742
3740
|
headers: headerParameters,
|
|
3743
3741
|
query: queryParameters,
|
|
3742
|
+
body: (0, index_1.PaySellerInvoicesInputToJSON)(requestParameters['paySellerInvoicesInput']),
|
|
3744
3743
|
}, initOverrides)];
|
|
3745
3744
|
case 3:
|
|
3746
3745
|
response = _a.sent();
|
|
@@ -3750,14 +3749,14 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3750
3749
|
});
|
|
3751
3750
|
};
|
|
3752
3751
|
/**
|
|
3753
|
-
*
|
|
3754
|
-
* Pay seller
|
|
3752
|
+
* Pays several invoices of one seller out together. To a bank account they go in one transfer, so the seller pays the fee of an international transfer once; they then have to be in one currency. Through Stripe each invoice is its own transfer.
|
|
3753
|
+
* Pay seller invoices in one payout
|
|
3755
3754
|
*/
|
|
3756
|
-
AdminApi.prototype.
|
|
3755
|
+
AdminApi.prototype.paySellerInvoices = function (requestParameters, initOverrides) {
|
|
3757
3756
|
return __awaiter(this, void 0, void 0, function () {
|
|
3758
3757
|
return __generator(this, function (_a) {
|
|
3759
3758
|
switch (_a.label) {
|
|
3760
|
-
case 0: return [4 /*yield*/, this.
|
|
3759
|
+
case 0: return [4 /*yield*/, this.paySellerInvoicesRaw(requestParameters, initOverrides)];
|
|
3761
3760
|
case 1:
|
|
3762
3761
|
_a.sent();
|
|
3763
3762
|
return [2 /*return*/];
|
|
@@ -3934,6 +3933,63 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3934
3933
|
});
|
|
3935
3934
|
});
|
|
3936
3935
|
};
|
|
3936
|
+
/**
|
|
3937
|
+
* Tells what paying these invoices out together would do, without doing it: the bank account the transfer goes to, and the fee taken out of what the seller receives. Refuses what paying them would refuse.
|
|
3938
|
+
* Preview a payout of seller invoices
|
|
3939
|
+
*/
|
|
3940
|
+
AdminApi.prototype.previewSellerPayoutRaw = function (requestParameters, initOverrides) {
|
|
3941
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3942
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
3943
|
+
return __generator(this, function (_a) {
|
|
3944
|
+
switch (_a.label) {
|
|
3945
|
+
case 0:
|
|
3946
|
+
if (requestParameters['paySellerInvoicesInput'] == null) {
|
|
3947
|
+
throw new runtime.RequiredError('paySellerInvoicesInput', 'Required parameter "paySellerInvoicesInput" was null or undefined when calling previewSellerPayout().');
|
|
3948
|
+
}
|
|
3949
|
+
queryParameters = {};
|
|
3950
|
+
headerParameters = {};
|
|
3951
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3952
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
3953
|
+
token = this.configuration.accessToken;
|
|
3954
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
3955
|
+
case 1:
|
|
3956
|
+
tokenString = _a.sent();
|
|
3957
|
+
if (tokenString) {
|
|
3958
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
3959
|
+
}
|
|
3960
|
+
_a.label = 2;
|
|
3961
|
+
case 2: return [4 /*yield*/, this.request({
|
|
3962
|
+
path: "/admin/invoices/pay/preview",
|
|
3963
|
+
method: 'POST',
|
|
3964
|
+
headers: headerParameters,
|
|
3965
|
+
query: queryParameters,
|
|
3966
|
+
body: (0, index_1.PaySellerInvoicesInputToJSON)(requestParameters['paySellerInvoicesInput']),
|
|
3967
|
+
}, initOverrides)];
|
|
3968
|
+
case 3:
|
|
3969
|
+
response = _a.sent();
|
|
3970
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SellerPayoutPreviewDtoFromJSON)(jsonValue); })];
|
|
3971
|
+
}
|
|
3972
|
+
});
|
|
3973
|
+
});
|
|
3974
|
+
};
|
|
3975
|
+
/**
|
|
3976
|
+
* Tells what paying these invoices out together would do, without doing it: the bank account the transfer goes to, and the fee taken out of what the seller receives. Refuses what paying them would refuse.
|
|
3977
|
+
* Preview a payout of seller invoices
|
|
3978
|
+
*/
|
|
3979
|
+
AdminApi.prototype.previewSellerPayout = function (requestParameters, initOverrides) {
|
|
3980
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3981
|
+
var response;
|
|
3982
|
+
return __generator(this, function (_a) {
|
|
3983
|
+
switch (_a.label) {
|
|
3984
|
+
case 0: return [4 /*yield*/, this.previewSellerPayoutRaw(requestParameters, initOverrides)];
|
|
3985
|
+
case 1:
|
|
3986
|
+
response = _a.sent();
|
|
3987
|
+
return [4 /*yield*/, response.value()];
|
|
3988
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
3989
|
+
}
|
|
3990
|
+
});
|
|
3991
|
+
});
|
|
3992
|
+
};
|
|
3937
3993
|
/**
|
|
3938
3994
|
* Purges the CDN cache for the specified domain landing page.
|
|
3939
3995
|
* Purge domain CDN cache
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { MoneyDto } from './MoneyDto';
|
|
12
13
|
import type { AccountBankAccountDetailsDto } from './AccountBankAccountDetailsDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -64,6 +65,18 @@ export interface AccountBankAccountDto {
|
|
|
64
65
|
* @memberof AccountBankAccountDto
|
|
65
66
|
*/
|
|
66
67
|
payable: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* How we pay out to this bank account: LOCAL over the country's own clearing system, which costs the seller nothing, or SWIFT, an international transfer whose fee is taken out of each payout. Null when we can't pay out to it.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof AccountBankAccountDto
|
|
72
|
+
*/
|
|
73
|
+
transferMethod: AccountBankAccountDtoTransferMethodEnum | null;
|
|
74
|
+
/**
|
|
75
|
+
* What a payout to this bank account costs the seller, as an indication: the fee of a SWIFT transfer in the account currency at the rate of the day. Null for a local payout, and when the fee is not known.
|
|
76
|
+
* @type {MoneyDto}
|
|
77
|
+
* @memberof AccountBankAccountDto
|
|
78
|
+
*/
|
|
79
|
+
payoutFee: MoneyDto | null;
|
|
67
80
|
}
|
|
68
81
|
/**
|
|
69
82
|
* @export
|
|
@@ -85,6 +98,14 @@ export declare const AccountBankAccountDtoNameCheckStatusEnum: {
|
|
|
85
98
|
readonly UNAVAILABLE: "unavailable";
|
|
86
99
|
};
|
|
87
100
|
export type AccountBankAccountDtoNameCheckStatusEnum = typeof AccountBankAccountDtoNameCheckStatusEnum[keyof typeof AccountBankAccountDtoNameCheckStatusEnum];
|
|
101
|
+
/**
|
|
102
|
+
* @export
|
|
103
|
+
*/
|
|
104
|
+
export declare const AccountBankAccountDtoTransferMethodEnum: {
|
|
105
|
+
readonly LOCAL: "LOCAL";
|
|
106
|
+
readonly SWIFT: "SWIFT";
|
|
107
|
+
};
|
|
108
|
+
export type AccountBankAccountDtoTransferMethodEnum = typeof AccountBankAccountDtoTransferMethodEnum[keyof typeof AccountBankAccountDtoTransferMethodEnum];
|
|
88
109
|
/**
|
|
89
110
|
* Check if a given object implements the AccountBankAccountDto interface.
|
|
90
111
|
*/
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AccountBankAccountDtoNameCheckStatusEnum = exports.AccountBankAccountDtoVerificationStatusEnum = void 0;
|
|
16
|
+
exports.AccountBankAccountDtoTransferMethodEnum = exports.AccountBankAccountDtoNameCheckStatusEnum = exports.AccountBankAccountDtoVerificationStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfAccountBankAccountDto = instanceOfAccountBankAccountDto;
|
|
18
18
|
exports.AccountBankAccountDtoFromJSON = AccountBankAccountDtoFromJSON;
|
|
19
19
|
exports.AccountBankAccountDtoFromJSONTyped = AccountBankAccountDtoFromJSONTyped;
|
|
20
20
|
exports.AccountBankAccountDtoToJSON = AccountBankAccountDtoToJSON;
|
|
21
21
|
exports.AccountBankAccountDtoToJSONTyped = AccountBankAccountDtoToJSONTyped;
|
|
22
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
22
23
|
var AccountBankAccountDetailsDto_1 = require("./AccountBankAccountDetailsDto");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
@@ -38,6 +39,13 @@ exports.AccountBankAccountDtoNameCheckStatusEnum = {
|
|
|
38
39
|
INVALID: 'invalid',
|
|
39
40
|
UNAVAILABLE: 'unavailable'
|
|
40
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
exports.AccountBankAccountDtoTransferMethodEnum = {
|
|
46
|
+
LOCAL: 'LOCAL',
|
|
47
|
+
SWIFT: 'SWIFT'
|
|
48
|
+
};
|
|
41
49
|
/**
|
|
42
50
|
* Check if a given object implements the AccountBankAccountDto interface.
|
|
43
51
|
*/
|
|
@@ -58,6 +66,10 @@ function instanceOfAccountBankAccountDto(value) {
|
|
|
58
66
|
return false;
|
|
59
67
|
if (!('payable' in value) || value['payable'] === undefined)
|
|
60
68
|
return false;
|
|
69
|
+
if (!('transferMethod' in value) || value['transferMethod'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('payoutFee' in value) || value['payoutFee'] === undefined)
|
|
72
|
+
return false;
|
|
61
73
|
return true;
|
|
62
74
|
}
|
|
63
75
|
function AccountBankAccountDtoFromJSON(json) {
|
|
@@ -76,6 +88,8 @@ function AccountBankAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
88
|
'bankStatementSubmittedAt': (json['bankStatementSubmittedAt'] == null ? null : new Date(json['bankStatementSubmittedAt'])),
|
|
77
89
|
'details': (0, AccountBankAccountDetailsDto_1.AccountBankAccountDetailsDtoFromJSON)(json['details']),
|
|
78
90
|
'payable': json['payable'],
|
|
91
|
+
'transferMethod': json['transferMethod'],
|
|
92
|
+
'payoutFee': (0, MoneyDto_1.MoneyDtoFromJSON)(json['payoutFee']),
|
|
79
93
|
};
|
|
80
94
|
}
|
|
81
95
|
function AccountBankAccountDtoToJSON(json) {
|
|
@@ -95,5 +109,7 @@ function AccountBankAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
95
109
|
'bankStatementSubmittedAt': (value['bankStatementSubmittedAt'] == null ? null : value['bankStatementSubmittedAt'].toISOString()),
|
|
96
110
|
'details': (0, AccountBankAccountDetailsDto_1.AccountBankAccountDetailsDtoToJSON)(value['details']),
|
|
97
111
|
'payable': value['payable'],
|
|
112
|
+
'transferMethod': value['transferMethod'],
|
|
113
|
+
'payoutFee': (0, MoneyDto_1.MoneyDtoToJSON)(value['payoutFee']),
|
|
98
114
|
};
|
|
99
115
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { PayoutFrequency } from './PayoutFrequency';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,18 @@ export interface AccountPayoutDto {
|
|
|
27
28
|
* @memberof AccountPayoutDto
|
|
28
29
|
*/
|
|
29
30
|
provider: AccountPayoutDtoProviderEnum;
|
|
31
|
+
/**
|
|
32
|
+
* How often the seller is paid out when they are paid out automatically: each invoice as soon as it can be (immediate), or what came in during a week, two weeks, month or quarter when the next one starts. An admin pays out the others, whatever this says.
|
|
33
|
+
* @type {PayoutFrequency}
|
|
34
|
+
* @memberof AccountPayoutDto
|
|
35
|
+
*/
|
|
36
|
+
frequency: PayoutFrequency;
|
|
37
|
+
/**
|
|
38
|
+
* Whether payouts that cost the seller nothing (a local transfer to their bank account) wait for the frequency too. When false, those are made as soon as they can be, and only payouts with a transfer fee wait, to go out together.
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof AccountPayoutDto
|
|
41
|
+
*/
|
|
42
|
+
batchFreePayouts: boolean;
|
|
30
43
|
}
|
|
31
44
|
/**
|
|
32
45
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.AccountPayoutDtoFromJSON = AccountPayoutDtoFromJSON;
|
|
|
19
19
|
exports.AccountPayoutDtoFromJSONTyped = AccountPayoutDtoFromJSONTyped;
|
|
20
20
|
exports.AccountPayoutDtoToJSON = AccountPayoutDtoToJSON;
|
|
21
21
|
exports.AccountPayoutDtoToJSONTyped = AccountPayoutDtoToJSONTyped;
|
|
22
|
+
var PayoutFrequency_1 = require("./PayoutFrequency");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -34,6 +35,10 @@ function instanceOfAccountPayoutDto(value) {
|
|
|
34
35
|
return false;
|
|
35
36
|
if (!('provider' in value) || value['provider'] === undefined)
|
|
36
37
|
return false;
|
|
38
|
+
if (!('frequency' in value) || value['frequency'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('batchFreePayouts' in value) || value['batchFreePayouts'] === undefined)
|
|
41
|
+
return false;
|
|
37
42
|
return true;
|
|
38
43
|
}
|
|
39
44
|
function AccountPayoutDtoFromJSON(json) {
|
|
@@ -46,6 +51,8 @@ function AccountPayoutDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
51
|
return {
|
|
47
52
|
'automatic': json['automatic'],
|
|
48
53
|
'provider': json['provider'],
|
|
54
|
+
'frequency': (0, PayoutFrequency_1.PayoutFrequencyFromJSON)(json['frequency']),
|
|
55
|
+
'batchFreePayouts': json['batchFreePayouts'],
|
|
49
56
|
};
|
|
50
57
|
}
|
|
51
58
|
function AccountPayoutDtoToJSON(json) {
|
|
@@ -59,5 +66,7 @@ function AccountPayoutDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
59
66
|
return {
|
|
60
67
|
'automatic': value['automatic'],
|
|
61
68
|
'provider': value['provider'],
|
|
69
|
+
'frequency': (0, PayoutFrequency_1.PayoutFrequencyToJSON)(value['frequency']),
|
|
70
|
+
'batchFreePayouts': value['batchFreePayouts'],
|
|
62
71
|
};
|
|
63
72
|
}
|
|
@@ -66,6 +66,7 @@ export declare const ApiKeyDtoScopeEnum: {
|
|
|
66
66
|
readonly DOMAINS_FIND: "DOMAINS_FIND";
|
|
67
67
|
readonly AUCTION_LIST: "AUCTION_LIST";
|
|
68
68
|
readonly MARKET_DATA: "MARKET_DATA";
|
|
69
|
+
readonly DOMAIN_SEO_METRICS: "DOMAIN_SEO_METRICS";
|
|
69
70
|
readonly DOMAINS_READ: "DOMAINS_READ";
|
|
70
71
|
readonly DOMAINS_WRITE: "DOMAINS_WRITE";
|
|
71
72
|
readonly EPP_WRITE: "EPP_WRITE";
|
package/dist/models/ApiKeyDto.js
CHANGED
|
@@ -27,6 +27,7 @@ exports.ApiKeyDtoScopeEnum = {
|
|
|
27
27
|
DOMAINS_FIND: 'DOMAINS_FIND',
|
|
28
28
|
AUCTION_LIST: 'AUCTION_LIST',
|
|
29
29
|
MARKET_DATA: 'MARKET_DATA',
|
|
30
|
+
DOMAIN_SEO_METRICS: 'DOMAIN_SEO_METRICS',
|
|
30
31
|
DOMAINS_READ: 'DOMAINS_READ',
|
|
31
32
|
DOMAINS_WRITE: 'DOMAINS_WRITE',
|
|
32
33
|
EPP_WRITE: 'EPP_WRITE',
|
|
@@ -42,6 +42,7 @@ export declare const ApiKeyScopeDtoScopeEnum: {
|
|
|
42
42
|
readonly DOMAINS_FIND: "DOMAINS_FIND";
|
|
43
43
|
readonly AUCTION_LIST: "AUCTION_LIST";
|
|
44
44
|
readonly MARKET_DATA: "MARKET_DATA";
|
|
45
|
+
readonly DOMAIN_SEO_METRICS: "DOMAIN_SEO_METRICS";
|
|
45
46
|
readonly DOMAINS_READ: "DOMAINS_READ";
|
|
46
47
|
readonly DOMAINS_WRITE: "DOMAINS_WRITE";
|
|
47
48
|
readonly EPP_WRITE: "EPP_WRITE";
|
|
@@ -27,6 +27,7 @@ exports.ApiKeyScopeDtoScopeEnum = {
|
|
|
27
27
|
DOMAINS_FIND: 'DOMAINS_FIND',
|
|
28
28
|
AUCTION_LIST: 'AUCTION_LIST',
|
|
29
29
|
MARKET_DATA: 'MARKET_DATA',
|
|
30
|
+
DOMAIN_SEO_METRICS: 'DOMAIN_SEO_METRICS',
|
|
30
31
|
DOMAINS_READ: 'DOMAINS_READ',
|
|
31
32
|
DOMAINS_WRITE: 'DOMAINS_WRITE',
|
|
32
33
|
EPP_WRITE: 'EPP_WRITE',
|