@randock/nameshift-api-client 0.0.498 → 0.0.499

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 (54) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +15 -1
  4. package/dist/apis/AccountsApi.js +66 -0
  5. package/dist/apis/AdminApi.d.ts +27 -15
  6. package/dist/apis/AdminApi.js +78 -22
  7. package/dist/models/AccountBankAccountDto.d.ts +21 -0
  8. package/dist/models/AccountBankAccountDto.js +17 -1
  9. package/dist/models/AccountPayoutDto.d.ts +13 -0
  10. package/dist/models/AccountPayoutDto.js +9 -0
  11. package/dist/models/BankAccountFormatCountryDto.d.ts +7 -1
  12. package/dist/models/BankAccountFormatCountryDto.js +4 -0
  13. package/dist/models/BankAccountFormatDto.d.ts +14 -0
  14. package/dist/models/BankAccountFormatDto.js +10 -0
  15. package/dist/models/BankAccountTransferMethod.d.ts +25 -0
  16. package/dist/models/BankAccountTransferMethod.js +51 -0
  17. package/dist/models/InvoiceDto.d.ts +13 -0
  18. package/dist/models/InvoiceDto.js +9 -0
  19. package/dist/models/InvoicePayoutDto.d.ts +71 -0
  20. package/dist/models/InvoicePayoutDto.js +78 -0
  21. package/dist/models/InvoiceSellerAccountDto.d.ts +13 -0
  22. package/dist/models/InvoiceSellerAccountDto.js +9 -0
  23. package/dist/models/PaySellerInvoicesInput.d.ts +32 -0
  24. package/dist/models/PaySellerInvoicesInput.js +51 -0
  25. package/dist/models/PayoutFrequency.d.ts +28 -0
  26. package/dist/models/PayoutFrequency.js +54 -0
  27. package/dist/models/SellerInvoiceDto.d.ts +13 -0
  28. package/dist/models/SellerInvoiceDto.js +9 -0
  29. package/dist/models/SellerPayoutPreviewDto.d.ts +60 -0
  30. package/dist/models/SellerPayoutPreviewDto.js +73 -0
  31. package/dist/models/SellerPayoutStatus.d.ts +26 -0
  32. package/dist/models/SellerPayoutStatus.js +52 -0
  33. package/dist/models/SetPayoutFrequencyInput.d.ts +39 -0
  34. package/dist/models/SetPayoutFrequencyInput.js +54 -0
  35. package/dist/models/index.d.ts +7 -0
  36. package/dist/models/index.js +7 -0
  37. package/package.json +1 -1
  38. package/src/apis/AccountsApi.ts +64 -0
  39. package/src/apis/AdminApi.ts +82 -31
  40. package/src/models/AccountBankAccountDto.ts +34 -0
  41. package/src/models/AccountPayoutDto.ts +26 -0
  42. package/src/models/BankAccountFormatCountryDto.ts +10 -1
  43. package/src/models/BankAccountFormatDto.ts +34 -0
  44. package/src/models/BankAccountTransferMethod.ts +53 -0
  45. package/src/models/InvoiceDto.ts +25 -0
  46. package/src/models/InvoicePayoutDto.ts +144 -0
  47. package/src/models/InvoiceSellerAccountDto.ts +26 -0
  48. package/src/models/PaySellerInvoicesInput.ts +66 -0
  49. package/src/models/PayoutFrequency.ts +56 -0
  50. package/src/models/SellerInvoiceDto.ts +25 -0
  51. package/src/models/SellerPayoutPreviewDto.ts +119 -0
  52. package/src/models/SellerPayoutStatus.ts +54 -0
  53. package/src/models/SetPayoutFrequencyInput.ts +84 -0
  54. package/src/models/index.ts +7 -0
@@ -0,0 +1,60 @@
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 { AccountBankAccountDto } from './AccountBankAccountDto';
13
+ import type { MoneyDto } from './MoneyDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SellerPayoutPreviewDto
18
+ */
19
+ export interface SellerPayoutPreviewDto {
20
+ /**
21
+ * How the seller is paid out: to their bank account in one transfer, or through Stripe, each invoice apart.
22
+ * @type {string}
23
+ * @memberof SellerPayoutPreviewDto
24
+ */
25
+ provider: SellerPayoutPreviewDtoProviderEnum;
26
+ /**
27
+ * What the invoices come to together, in their currency. Null through Stripe.
28
+ * @type {MoneyDto}
29
+ * @memberof SellerPayoutPreviewDto
30
+ */
31
+ amount: MoneyDto | null;
32
+ /**
33
+ * The bank account the transfer goes to, with how it is paid out to. When its currency is not that of the invoices, the payout provider converts the amount. Null through Stripe.
34
+ * @type {AccountBankAccountDto}
35
+ * @memberof SellerPayoutPreviewDto
36
+ */
37
+ bankAccount: AccountBankAccountDto | null;
38
+ /**
39
+ * The transfer fee taken out of what the seller receives, as an indication in the currency of the invoices: the configured SWIFT fee at today's rate. Null when the transfer costs the seller nothing, or no fee is configured.
40
+ * @type {MoneyDto}
41
+ * @memberof SellerPayoutPreviewDto
42
+ */
43
+ fee: MoneyDto | null;
44
+ }
45
+ /**
46
+ * @export
47
+ */
48
+ export declare const SellerPayoutPreviewDtoProviderEnum: {
49
+ readonly STRIPE: "stripe";
50
+ readonly BANK_ACCOUNT: "bank_account";
51
+ };
52
+ export type SellerPayoutPreviewDtoProviderEnum = typeof SellerPayoutPreviewDtoProviderEnum[keyof typeof SellerPayoutPreviewDtoProviderEnum];
53
+ /**
54
+ * Check if a given object implements the SellerPayoutPreviewDto interface.
55
+ */
56
+ export declare function instanceOfSellerPayoutPreviewDto(value: object): value is SellerPayoutPreviewDto;
57
+ export declare function SellerPayoutPreviewDtoFromJSON(json: any): SellerPayoutPreviewDto;
58
+ export declare function SellerPayoutPreviewDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerPayoutPreviewDto;
59
+ export declare function SellerPayoutPreviewDtoToJSON(json: any): SellerPayoutPreviewDto;
60
+ export declare function SellerPayoutPreviewDtoToJSONTyped(value?: SellerPayoutPreviewDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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.SellerPayoutPreviewDtoProviderEnum = void 0;
17
+ exports.instanceOfSellerPayoutPreviewDto = instanceOfSellerPayoutPreviewDto;
18
+ exports.SellerPayoutPreviewDtoFromJSON = SellerPayoutPreviewDtoFromJSON;
19
+ exports.SellerPayoutPreviewDtoFromJSONTyped = SellerPayoutPreviewDtoFromJSONTyped;
20
+ exports.SellerPayoutPreviewDtoToJSON = SellerPayoutPreviewDtoToJSON;
21
+ exports.SellerPayoutPreviewDtoToJSONTyped = SellerPayoutPreviewDtoToJSONTyped;
22
+ var AccountBankAccountDto_1 = require("./AccountBankAccountDto");
23
+ var MoneyDto_1 = require("./MoneyDto");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.SellerPayoutPreviewDtoProviderEnum = {
28
+ STRIPE: 'stripe',
29
+ BANK_ACCOUNT: 'bank_account'
30
+ };
31
+ /**
32
+ * Check if a given object implements the SellerPayoutPreviewDto interface.
33
+ */
34
+ function instanceOfSellerPayoutPreviewDto(value) {
35
+ if (!('provider' in value) || value['provider'] === undefined)
36
+ return false;
37
+ if (!('amount' in value) || value['amount'] === undefined)
38
+ return false;
39
+ if (!('bankAccount' in value) || value['bankAccount'] === undefined)
40
+ return false;
41
+ if (!('fee' in value) || value['fee'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function SellerPayoutPreviewDtoFromJSON(json) {
46
+ return SellerPayoutPreviewDtoFromJSONTyped(json, false);
47
+ }
48
+ function SellerPayoutPreviewDtoFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'provider': json['provider'],
54
+ 'amount': (0, MoneyDto_1.MoneyDtoFromJSON)(json['amount']),
55
+ 'bankAccount': (0, AccountBankAccountDto_1.AccountBankAccountDtoFromJSON)(json['bankAccount']),
56
+ 'fee': (0, MoneyDto_1.MoneyDtoFromJSON)(json['fee']),
57
+ };
58
+ }
59
+ function SellerPayoutPreviewDtoToJSON(json) {
60
+ return SellerPayoutPreviewDtoToJSONTyped(json, false);
61
+ }
62
+ function SellerPayoutPreviewDtoToJSONTyped(value, ignoreDiscriminator) {
63
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'provider': value['provider'],
69
+ 'amount': (0, MoneyDto_1.MoneyDtoToJSON)(value['amount']),
70
+ 'bankAccount': (0, AccountBankAccountDto_1.AccountBankAccountDtoToJSON)(value['bankAccount']),
71
+ 'fee': (0, MoneyDto_1.MoneyDtoToJSON)(value['fee']),
72
+ };
73
+ }
@@ -0,0 +1,26 @@
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
+ * pending while the transfer is being made, paid once it is, failed when the payout provider refused it: the invoice then awaits another payout.
14
+ * @export
15
+ */
16
+ export declare const SellerPayoutStatus: {
17
+ readonly PENDING: "pending";
18
+ readonly PAID: "paid";
19
+ readonly FAILED: "failed";
20
+ };
21
+ export type SellerPayoutStatus = typeof SellerPayoutStatus[keyof typeof SellerPayoutStatus];
22
+ export declare function instanceOfSellerPayoutStatus(value: any): boolean;
23
+ export declare function SellerPayoutStatusFromJSON(json: any): SellerPayoutStatus;
24
+ export declare function SellerPayoutStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerPayoutStatus;
25
+ export declare function SellerPayoutStatusToJSON(value?: SellerPayoutStatus | null): any;
26
+ export declare function SellerPayoutStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): SellerPayoutStatus;
@@ -0,0 +1,52 @@
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.SellerPayoutStatus = void 0;
17
+ exports.instanceOfSellerPayoutStatus = instanceOfSellerPayoutStatus;
18
+ exports.SellerPayoutStatusFromJSON = SellerPayoutStatusFromJSON;
19
+ exports.SellerPayoutStatusFromJSONTyped = SellerPayoutStatusFromJSONTyped;
20
+ exports.SellerPayoutStatusToJSON = SellerPayoutStatusToJSON;
21
+ exports.SellerPayoutStatusToJSONTyped = SellerPayoutStatusToJSONTyped;
22
+ /**
23
+ * pending while the transfer is being made, paid once it is, failed when the payout provider refused it: the invoice then awaits another payout.
24
+ * @export
25
+ */
26
+ exports.SellerPayoutStatus = {
27
+ PENDING: 'pending',
28
+ PAID: 'paid',
29
+ FAILED: 'failed'
30
+ };
31
+ function instanceOfSellerPayoutStatus(value) {
32
+ for (var key in exports.SellerPayoutStatus) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.SellerPayoutStatus, key)) {
34
+ if (exports.SellerPayoutStatus[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function SellerPayoutStatusFromJSON(json) {
42
+ return SellerPayoutStatusFromJSONTyped(json, false);
43
+ }
44
+ function SellerPayoutStatusFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function SellerPayoutStatusToJSON(value) {
48
+ return value;
49
+ }
50
+ function SellerPayoutStatusToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -0,0 +1,39 @@
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 { PayoutFrequency } from './PayoutFrequency';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SetPayoutFrequencyInput
17
+ */
18
+ export interface SetPayoutFrequencyInput {
19
+ /**
20
+ * How often to be paid out: 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.
21
+ * @type {PayoutFrequency}
22
+ * @memberof SetPayoutFrequencyInput
23
+ */
24
+ frequency: PayoutFrequency;
25
+ /**
26
+ * 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. Left as it is when not given.
27
+ * @type {boolean}
28
+ * @memberof SetPayoutFrequencyInput
29
+ */
30
+ batchFreePayouts?: boolean;
31
+ }
32
+ /**
33
+ * Check if a given object implements the SetPayoutFrequencyInput interface.
34
+ */
35
+ export declare function instanceOfSetPayoutFrequencyInput(value: object): value is SetPayoutFrequencyInput;
36
+ export declare function SetPayoutFrequencyInputFromJSON(json: any): SetPayoutFrequencyInput;
37
+ export declare function SetPayoutFrequencyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetPayoutFrequencyInput;
38
+ export declare function SetPayoutFrequencyInputToJSON(json: any): SetPayoutFrequencyInput;
39
+ export declare function SetPayoutFrequencyInputToJSONTyped(value?: SetPayoutFrequencyInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfSetPayoutFrequencyInput = instanceOfSetPayoutFrequencyInput;
17
+ exports.SetPayoutFrequencyInputFromJSON = SetPayoutFrequencyInputFromJSON;
18
+ exports.SetPayoutFrequencyInputFromJSONTyped = SetPayoutFrequencyInputFromJSONTyped;
19
+ exports.SetPayoutFrequencyInputToJSON = SetPayoutFrequencyInputToJSON;
20
+ exports.SetPayoutFrequencyInputToJSONTyped = SetPayoutFrequencyInputToJSONTyped;
21
+ var PayoutFrequency_1 = require("./PayoutFrequency");
22
+ /**
23
+ * Check if a given object implements the SetPayoutFrequencyInput interface.
24
+ */
25
+ function instanceOfSetPayoutFrequencyInput(value) {
26
+ if (!('frequency' in value) || value['frequency'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function SetPayoutFrequencyInputFromJSON(json) {
31
+ return SetPayoutFrequencyInputFromJSONTyped(json, false);
32
+ }
33
+ function SetPayoutFrequencyInputFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'frequency': (0, PayoutFrequency_1.PayoutFrequencyFromJSON)(json['frequency']),
39
+ 'batchFreePayouts': json['batchFreePayouts'] == null ? undefined : json['batchFreePayouts'],
40
+ };
41
+ }
42
+ function SetPayoutFrequencyInputToJSON(json) {
43
+ return SetPayoutFrequencyInputToJSONTyped(json, false);
44
+ }
45
+ function SetPayoutFrequencyInputToJSONTyped(value, ignoreDiscriminator) {
46
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'frequency': (0, PayoutFrequency_1.PayoutFrequencyToJSON)(value['frequency']),
52
+ 'batchFreePayouts': value['batchFreePayouts'],
53
+ };
54
+ }
@@ -103,6 +103,7 @@ export * from './BankAccountFormatFieldDto';
103
103
  export * from './BankAccountFormatFieldOptionDto';
104
104
  export * from './BankAccountFormatFieldType';
105
105
  export * from './BankAccountFormatsDto';
106
+ export * from './BankAccountTransferMethod';
106
107
  export * from './BatchDeleteBuyerLeadsInput';
107
108
  export * from './BatchImportPreviewDto';
108
109
  export * from './BatchReadBuyerLeadMessageInput';
@@ -303,6 +304,7 @@ export * from './InvoiceDto';
303
304
  export * from './InvoiceDtoTransaction';
304
305
  export * from './InvoiceItemDto';
305
306
  export * from './InvoiceItemTaxDto';
307
+ export * from './InvoicePayoutDto';
306
308
  export * from './InvoiceSellerAccountDto';
307
309
  export * from './InvoiceTransactionDto';
308
310
  export * from './JobDto';
@@ -423,7 +425,9 @@ export * from './ParsedDomainDto';
423
425
  export * from './PartnerAuctionDto';
424
426
  export * from './PartnerDomainFindDto';
425
427
  export * from './PayAccountPaymentInput';
428
+ export * from './PaySellerInvoicesInput';
426
429
  export * from './PaymentMethodsStatsDto';
430
+ export * from './PayoutFrequency';
427
431
  export * from './PopularCategoryDto';
428
432
  export * from './PreviewDomainEditInput';
429
433
  export * from './PrivateAccountGetMeResponse';
@@ -481,6 +485,8 @@ export * from './SellerInvoiceDomainDto';
481
485
  export * from './SellerInvoiceDto';
482
486
  export * from './SellerInvoiceSellerAccountDto';
483
487
  export * from './SellerLeadDetails';
488
+ export * from './SellerPayoutPreviewDto';
489
+ export * from './SellerPayoutStatus';
484
490
  export * from './SellerPendingPayoutsByCurrencyStatsItemDto';
485
491
  export * from './SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto';
486
492
  export * from './SellerSalesByTldStatsItemDto';
@@ -500,6 +506,7 @@ export * from './SeoMetricsDto';
500
506
  export * from './SetAccountMarketplaceInput';
501
507
  export * from './SetDomainTransferConfirmationInput';
502
508
  export * from './SetNewPasswordInput';
509
+ export * from './SetPayoutFrequencyInput';
503
510
  export * from './SetPayoutProviderInput';
504
511
  export * from './SimulateCommissionInput';
505
512
  export * from './StartAuctionInput';
@@ -121,6 +121,7 @@ __exportStar(require("./BankAccountFormatFieldDto"), exports);
121
121
  __exportStar(require("./BankAccountFormatFieldOptionDto"), exports);
122
122
  __exportStar(require("./BankAccountFormatFieldType"), exports);
123
123
  __exportStar(require("./BankAccountFormatsDto"), exports);
124
+ __exportStar(require("./BankAccountTransferMethod"), exports);
124
125
  __exportStar(require("./BatchDeleteBuyerLeadsInput"), exports);
125
126
  __exportStar(require("./BatchImportPreviewDto"), exports);
126
127
  __exportStar(require("./BatchReadBuyerLeadMessageInput"), exports);
@@ -321,6 +322,7 @@ __exportStar(require("./InvoiceDto"), exports);
321
322
  __exportStar(require("./InvoiceDtoTransaction"), exports);
322
323
  __exportStar(require("./InvoiceItemDto"), exports);
323
324
  __exportStar(require("./InvoiceItemTaxDto"), exports);
325
+ __exportStar(require("./InvoicePayoutDto"), exports);
324
326
  __exportStar(require("./InvoiceSellerAccountDto"), exports);
325
327
  __exportStar(require("./InvoiceTransactionDto"), exports);
326
328
  __exportStar(require("./JobDto"), exports);
@@ -441,7 +443,9 @@ __exportStar(require("./ParsedDomainDto"), exports);
441
443
  __exportStar(require("./PartnerAuctionDto"), exports);
442
444
  __exportStar(require("./PartnerDomainFindDto"), exports);
443
445
  __exportStar(require("./PayAccountPaymentInput"), exports);
446
+ __exportStar(require("./PaySellerInvoicesInput"), exports);
444
447
  __exportStar(require("./PaymentMethodsStatsDto"), exports);
448
+ __exportStar(require("./PayoutFrequency"), exports);
445
449
  __exportStar(require("./PopularCategoryDto"), exports);
446
450
  __exportStar(require("./PreviewDomainEditInput"), exports);
447
451
  __exportStar(require("./PrivateAccountGetMeResponse"), exports);
@@ -499,6 +503,8 @@ __exportStar(require("./SellerInvoiceDomainDto"), exports);
499
503
  __exportStar(require("./SellerInvoiceDto"), exports);
500
504
  __exportStar(require("./SellerInvoiceSellerAccountDto"), exports);
501
505
  __exportStar(require("./SellerLeadDetails"), exports);
506
+ __exportStar(require("./SellerPayoutPreviewDto"), exports);
507
+ __exportStar(require("./SellerPayoutStatus"), exports);
502
508
  __exportStar(require("./SellerPendingPayoutsByCurrencyStatsItemDto"), exports);
503
509
  __exportStar(require("./SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto"), exports);
504
510
  __exportStar(require("./SellerSalesByTldStatsItemDto"), exports);
@@ -518,6 +524,7 @@ __exportStar(require("./SeoMetricsDto"), exports);
518
524
  __exportStar(require("./SetAccountMarketplaceInput"), exports);
519
525
  __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
520
526
  __exportStar(require("./SetNewPasswordInput"), exports);
527
+ __exportStar(require("./SetPayoutFrequencyInput"), exports);
521
528
  __exportStar(require("./SetPayoutProviderInput"), exports);
522
529
  __exportStar(require("./SimulateCommissionInput"), exports);
523
530
  __exportStar(require("./StartAuctionInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.498",
3
+ "version": "0.0.499",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -32,6 +32,7 @@ import type {
32
32
  ObjectId,
33
33
  PayAccountPaymentInput,
34
34
  PrivateAccountGetMeResponse,
35
+ SetPayoutFrequencyInput,
35
36
  SetPayoutProviderInput,
36
37
  UpdateAccountBillingInformationInput,
37
38
  ValidationException,
@@ -71,6 +72,8 @@ import {
71
72
  PayAccountPaymentInputToJSON,
72
73
  PrivateAccountGetMeResponseFromJSON,
73
74
  PrivateAccountGetMeResponseToJSON,
75
+ SetPayoutFrequencyInputFromJSON,
76
+ SetPayoutFrequencyInputToJSON,
74
77
  SetPayoutProviderInputFromJSON,
75
78
  SetPayoutProviderInputToJSON,
76
79
  UpdateAccountBillingInformationInputFromJSON,
@@ -147,6 +150,11 @@ export interface AccountsApiPutAvatarRequest {
147
150
  file?: Blob | null;
148
151
  }
149
152
 
153
+ export interface AccountsApiSetPayoutFrequencyRequest {
154
+ accountId: string;
155
+ setPayoutFrequencyInput: SetPayoutFrequencyInput;
156
+ }
157
+
150
158
  export interface AccountsApiSetPayoutProviderRequest {
151
159
  accountId: string;
152
160
  setPayoutProviderInput: SetPayoutProviderInput;
@@ -1016,6 +1024,62 @@ export class AccountsApi extends runtime.BaseAPI {
1016
1024
  await this.putAvatarRaw(requestParameters, initOverrides);
1017
1025
  }
1018
1026
 
1027
+ /**
1028
+ * 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.
1029
+ * Set payout frequency
1030
+ */
1031
+ async setPayoutFrequencyRaw(requestParameters: AccountsApiSetPayoutFrequencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1032
+ if (requestParameters['accountId'] == null) {
1033
+ throw new runtime.RequiredError(
1034
+ 'accountId',
1035
+ 'Required parameter "accountId" was null or undefined when calling setPayoutFrequency().'
1036
+ );
1037
+ }
1038
+
1039
+ if (requestParameters['setPayoutFrequencyInput'] == null) {
1040
+ throw new runtime.RequiredError(
1041
+ 'setPayoutFrequencyInput',
1042
+ 'Required parameter "setPayoutFrequencyInput" was null or undefined when calling setPayoutFrequency().'
1043
+ );
1044
+ }
1045
+
1046
+ const queryParameters: any = {};
1047
+
1048
+ const headerParameters: runtime.HTTPHeaders = {};
1049
+
1050
+ headerParameters['Content-Type'] = 'application/json';
1051
+
1052
+ if (this.configuration && this.configuration.apiKey) {
1053
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
1054
+ }
1055
+
1056
+ if (this.configuration && this.configuration.accessToken) {
1057
+ const token = this.configuration.accessToken;
1058
+ const tokenString = await token("bearer", []);
1059
+
1060
+ if (tokenString) {
1061
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1062
+ }
1063
+ }
1064
+ const response = await this.request({
1065
+ path: `/private/accounts/{accountId}/payout-frequency`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
1066
+ method: 'POST',
1067
+ headers: headerParameters,
1068
+ query: queryParameters,
1069
+ body: SetPayoutFrequencyInputToJSON(requestParameters['setPayoutFrequencyInput']),
1070
+ }, initOverrides);
1071
+
1072
+ return new runtime.VoidApiResponse(response);
1073
+ }
1074
+
1075
+ /**
1076
+ * 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.
1077
+ * Set payout frequency
1078
+ */
1079
+ async setPayoutFrequency(requestParameters: AccountsApiSetPayoutFrequencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1080
+ await this.setPayoutFrequencyRaw(requestParameters, initOverrides);
1081
+ }
1082
+
1019
1083
  /**
1020
1084
  * 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.
1021
1085
  * Set payout provider