@randock/nameshift-api-client 0.0.475 → 0.0.477
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 +2 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +15 -1
- package/dist/apis/AdminApi.js +58 -0
- package/dist/apis/BuyersApi.d.ts +15 -1
- package/dist/apis/BuyersApi.js +58 -0
- package/dist/models/AccountBankAccountSummaryDto.d.ts +59 -0
- package/dist/models/AccountBankAccountSummaryDto.js +72 -0
- package/dist/models/AdminListAccountDto.d.ts +7 -0
- package/dist/models/AdminListAccountDto.js +5 -0
- package/dist/models/BuyerSubscriptionListItemDto.d.ts +7 -0
- package/dist/models/BuyerSubscriptionListItemDto.js +5 -0
- package/dist/models/CompanyInformationDto.d.ts +2 -2
- package/dist/models/CustomerSuccessListAccountDto.d.ts +7 -0
- package/dist/models/CustomerSuccessListAccountDto.js +5 -0
- package/dist/models/SubscriptionDetailsDto.d.ts +7 -0
- package/dist/models/SubscriptionDetailsDto.js +5 -0
- package/dist/models/UpdateSubscriptionBuyerInformationInput.d.ts +33 -0
- package/dist/models/UpdateSubscriptionBuyerInformationInput.js +52 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +60 -0
- package/src/apis/BuyersApi.ts +60 -0
- package/src/models/AccountBankAccountSummaryDto.ts +105 -0
- package/src/models/AdminListAccountDto.ts +16 -0
- package/src/models/BuyerSubscriptionListItemDto.ts +16 -0
- package/src/models/CompanyInformationDto.ts +2 -2
- package/src/models/CustomerSuccessListAccountDto.ts +16 -0
- package/src/models/SubscriptionDetailsDto.ts +16 -0
- package/src/models/UpdateSubscriptionBuyerInformationInput.ts +74 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -43,6 +43,7 @@ src/models/AccountAliasDto.ts
|
|
|
43
43
|
src/models/AccountAliasInput.ts
|
|
44
44
|
src/models/AccountBankAccountDto.ts
|
|
45
45
|
src/models/AccountBankAccountDtoDetails.ts
|
|
46
|
+
src/models/AccountBankAccountSummaryDto.ts
|
|
46
47
|
src/models/AccountChallengeRewardUsageListItemDto.ts
|
|
47
48
|
src/models/AccountChallengeRewardUsageListItemDtoMetadata.ts
|
|
48
49
|
src/models/AccountCommissionByDateRangeDto.ts
|
|
@@ -581,6 +582,7 @@ src/models/UpdateMarketplaceInput.ts
|
|
|
581
582
|
src/models/UpdateOrderInput.ts
|
|
582
583
|
src/models/UpdateRentConfigurationDto.ts
|
|
583
584
|
src/models/UpdateSubscriptionBillingPeriodicityInput.ts
|
|
585
|
+
src/models/UpdateSubscriptionBuyerInformationInput.ts
|
|
584
586
|
src/models/UpdateSubscriptionDomainNameserversInput.ts
|
|
585
587
|
src/models/UpdateSubscriptionDomainRecordInput.ts
|
|
586
588
|
src/models/UpdateSubscriptionInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.477
|
|
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.477 --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
|
+
a72adb656a4e635180141294b78db983179843d0ddbc1219d448ed096ece4b9ef4aa6653ac9c2972106d52f5e9e5d4c7
|
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, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminDeleteAuctionRequest {
|
|
15
15
|
auctionId: string;
|
|
16
16
|
}
|
|
@@ -318,6 +318,10 @@ export interface AdminApiUpdateMarketplaceRequest {
|
|
|
318
318
|
code: UpdateMarketplaceCodeEnum;
|
|
319
319
|
updateMarketplaceInput: UpdateMarketplaceInput;
|
|
320
320
|
}
|
|
321
|
+
export interface AdminApiUpdateSubscriptionBuyerInformationRequest {
|
|
322
|
+
subscriptionId: string;
|
|
323
|
+
updateSubscriptionBuyerInformationInput: UpdateSubscriptionBuyerInformationInput;
|
|
324
|
+
}
|
|
321
325
|
export interface AdminApiVerifyAccountAliasRequest {
|
|
322
326
|
accountId: string;
|
|
323
327
|
}
|
|
@@ -1018,6 +1022,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
1018
1022
|
* Update a marketplace
|
|
1019
1023
|
*/
|
|
1020
1024
|
updateMarketplace(requestParameters: AdminApiUpdateMarketplaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1025
|
+
/**
|
|
1026
|
+
* Updates the buyer information stored on the subscription. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched. Note that the emails related to the current invoice are still sent to the email of that invoice.
|
|
1027
|
+
* Update subscription buyer information
|
|
1028
|
+
*/
|
|
1029
|
+
updateSubscriptionBuyerInformationRaw(requestParameters: AdminApiUpdateSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1030
|
+
/**
|
|
1031
|
+
* Updates the buyer information stored on the subscription. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched. Note that the emails related to the current invoice are still sent to the email of that invoice.
|
|
1032
|
+
* Update subscription buyer information
|
|
1033
|
+
*/
|
|
1034
|
+
updateSubscriptionBuyerInformation(requestParameters: AdminApiUpdateSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1021
1035
|
/**
|
|
1022
1036
|
* Marks the account alias as verified.
|
|
1023
1037
|
* Verify account alias
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -4108,6 +4108,64 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
4108
4108
|
});
|
|
4109
4109
|
});
|
|
4110
4110
|
};
|
|
4111
|
+
/**
|
|
4112
|
+
* Updates the buyer information stored on the subscription. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched. Note that the emails related to the current invoice are still sent to the email of that invoice.
|
|
4113
|
+
* Update subscription buyer information
|
|
4114
|
+
*/
|
|
4115
|
+
AdminApi.prototype.updateSubscriptionBuyerInformationRaw = function (requestParameters, initOverrides) {
|
|
4116
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4117
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
4118
|
+
return __generator(this, function (_a) {
|
|
4119
|
+
switch (_a.label) {
|
|
4120
|
+
case 0:
|
|
4121
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
4122
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling updateSubscriptionBuyerInformation().');
|
|
4123
|
+
}
|
|
4124
|
+
if (requestParameters['updateSubscriptionBuyerInformationInput'] == null) {
|
|
4125
|
+
throw new runtime.RequiredError('updateSubscriptionBuyerInformationInput', 'Required parameter "updateSubscriptionBuyerInformationInput" was null or undefined when calling updateSubscriptionBuyerInformation().');
|
|
4126
|
+
}
|
|
4127
|
+
queryParameters = {};
|
|
4128
|
+
headerParameters = {};
|
|
4129
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
4130
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
4131
|
+
token = this.configuration.accessToken;
|
|
4132
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
4133
|
+
case 1:
|
|
4134
|
+
tokenString = _a.sent();
|
|
4135
|
+
if (tokenString) {
|
|
4136
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
4137
|
+
}
|
|
4138
|
+
_a.label = 2;
|
|
4139
|
+
case 2: return [4 /*yield*/, this.request({
|
|
4140
|
+
path: "/admin/subscriptions/{subscriptionId}/buyer-information".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
4141
|
+
method: 'PATCH',
|
|
4142
|
+
headers: headerParameters,
|
|
4143
|
+
query: queryParameters,
|
|
4144
|
+
body: (0, index_1.UpdateSubscriptionBuyerInformationInputToJSON)(requestParameters['updateSubscriptionBuyerInformationInput']),
|
|
4145
|
+
}, initOverrides)];
|
|
4146
|
+
case 3:
|
|
4147
|
+
response = _a.sent();
|
|
4148
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
4149
|
+
}
|
|
4150
|
+
});
|
|
4151
|
+
});
|
|
4152
|
+
};
|
|
4153
|
+
/**
|
|
4154
|
+
* Updates the buyer information stored on the subscription. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched. Note that the emails related to the current invoice are still sent to the email of that invoice.
|
|
4155
|
+
* Update subscription buyer information
|
|
4156
|
+
*/
|
|
4157
|
+
AdminApi.prototype.updateSubscriptionBuyerInformation = function (requestParameters, initOverrides) {
|
|
4158
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4159
|
+
return __generator(this, function (_a) {
|
|
4160
|
+
switch (_a.label) {
|
|
4161
|
+
case 0: return [4 /*yield*/, this.updateSubscriptionBuyerInformationRaw(requestParameters, initOverrides)];
|
|
4162
|
+
case 1:
|
|
4163
|
+
_a.sent();
|
|
4164
|
+
return [2 /*return*/];
|
|
4165
|
+
}
|
|
4166
|
+
});
|
|
4167
|
+
});
|
|
4168
|
+
};
|
|
4111
4169
|
/**
|
|
4112
4170
|
* Marks the account alias as verified.
|
|
4113
4171
|
* Verify account alias
|
package/dist/apis/BuyersApi.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 { AddSubscriptionDomainRecordInput, AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerAccessTokenDto, BuyerAuctionDetailDto, BuyerDomainRecordsDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, RemoveSubscriptionDomainRecordInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateAuctionMuteStatusInput, UpdateBuyerDomainTransferBuyerInfoInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateSubscriptionDomainNameserversInput, UpdateSubscriptionDomainRecordInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
|
|
13
|
+
import type { AddSubscriptionDomainRecordInput, AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerAccessTokenDto, BuyerAuctionDetailDto, BuyerDomainRecordsDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, RemoveSubscriptionDomainRecordInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateAuctionMuteStatusInput, UpdateBuyerDomainTransferBuyerInfoInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateSubscriptionBuyerInformationInput, UpdateSubscriptionDomainNameserversInput, UpdateSubscriptionDomainRecordInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
|
|
14
14
|
export interface BuyersApiAcceptBuyerLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -161,6 +161,10 @@ export interface BuyersApiUpdateBuyerDomainTransferBuyerInfoRequest {
|
|
|
161
161
|
export interface BuyersApiUpdateBuyerNotificationSettingsRequest {
|
|
162
162
|
updateBuyerNotificationSettingsInput: UpdateBuyerNotificationSettingsInput;
|
|
163
163
|
}
|
|
164
|
+
export interface BuyersApiUpdateBuyerSubscriptionBuyerInformationRequest {
|
|
165
|
+
subscriptionId: string;
|
|
166
|
+
updateSubscriptionBuyerInformationInput: UpdateSubscriptionBuyerInformationInput;
|
|
167
|
+
}
|
|
164
168
|
export interface BuyersApiUpdateDomainTransferIpsTagRequest {
|
|
165
169
|
transferId: string;
|
|
166
170
|
updateBuyerDomainTransferIpsTagInputDto: UpdateBuyerDomainTransferIpsTagInputDto;
|
|
@@ -581,6 +585,16 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
581
585
|
* Update notification settings
|
|
582
586
|
*/
|
|
583
587
|
updateBuyerNotificationSettings(requestParameters: BuyersApiUpdateBuyerNotificationSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
588
|
+
/**
|
|
589
|
+
* Updates the billing information stored on one of the subscriptions of the current buyer. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched.
|
|
590
|
+
* Update the billing information of a subscription
|
|
591
|
+
*/
|
|
592
|
+
updateBuyerSubscriptionBuyerInformationRaw(requestParameters: BuyersApiUpdateBuyerSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
593
|
+
/**
|
|
594
|
+
* Updates the billing information stored on one of the subscriptions of the current buyer. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched.
|
|
595
|
+
* Update the billing information of a subscription
|
|
596
|
+
*/
|
|
597
|
+
updateBuyerSubscriptionBuyerInformation(requestParameters: BuyersApiUpdateBuyerSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
584
598
|
/**
|
|
585
599
|
* Updates the IPS tag for a .uk domain transfer during the buyer workflow step.
|
|
586
600
|
* Update IPS tag
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -2313,6 +2313,64 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
2313
2313
|
});
|
|
2314
2314
|
});
|
|
2315
2315
|
};
|
|
2316
|
+
/**
|
|
2317
|
+
* Updates the billing information stored on one of the subscriptions of the current buyer. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched.
|
|
2318
|
+
* Update the billing information of a subscription
|
|
2319
|
+
*/
|
|
2320
|
+
BuyersApi.prototype.updateBuyerSubscriptionBuyerInformationRaw = function (requestParameters, initOverrides) {
|
|
2321
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2322
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2323
|
+
return __generator(this, function (_a) {
|
|
2324
|
+
switch (_a.label) {
|
|
2325
|
+
case 0:
|
|
2326
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
2327
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling updateBuyerSubscriptionBuyerInformation().');
|
|
2328
|
+
}
|
|
2329
|
+
if (requestParameters['updateSubscriptionBuyerInformationInput'] == null) {
|
|
2330
|
+
throw new runtime.RequiredError('updateSubscriptionBuyerInformationInput', 'Required parameter "updateSubscriptionBuyerInformationInput" was null or undefined when calling updateBuyerSubscriptionBuyerInformation().');
|
|
2331
|
+
}
|
|
2332
|
+
queryParameters = {};
|
|
2333
|
+
headerParameters = {};
|
|
2334
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2335
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2336
|
+
token = this.configuration.accessToken;
|
|
2337
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2338
|
+
case 1:
|
|
2339
|
+
tokenString = _a.sent();
|
|
2340
|
+
if (tokenString) {
|
|
2341
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2342
|
+
}
|
|
2343
|
+
_a.label = 2;
|
|
2344
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2345
|
+
path: "/buyers/private/subscriptions/{subscriptionId}/buyer-information".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
2346
|
+
method: 'PATCH',
|
|
2347
|
+
headers: headerParameters,
|
|
2348
|
+
query: queryParameters,
|
|
2349
|
+
body: (0, index_1.UpdateSubscriptionBuyerInformationInputToJSON)(requestParameters['updateSubscriptionBuyerInformationInput']),
|
|
2350
|
+
}, initOverrides)];
|
|
2351
|
+
case 3:
|
|
2352
|
+
response = _a.sent();
|
|
2353
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
2354
|
+
}
|
|
2355
|
+
});
|
|
2356
|
+
});
|
|
2357
|
+
};
|
|
2358
|
+
/**
|
|
2359
|
+
* Updates the billing information stored on one of the subscriptions of the current buyer. The change is applied from the next renewal onwards: the already issued invoices, including the active one, are left untouched.
|
|
2360
|
+
* Update the billing information of a subscription
|
|
2361
|
+
*/
|
|
2362
|
+
BuyersApi.prototype.updateBuyerSubscriptionBuyerInformation = function (requestParameters, initOverrides) {
|
|
2363
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2364
|
+
return __generator(this, function (_a) {
|
|
2365
|
+
switch (_a.label) {
|
|
2366
|
+
case 0: return [4 /*yield*/, this.updateBuyerSubscriptionBuyerInformationRaw(requestParameters, initOverrides)];
|
|
2367
|
+
case 1:
|
|
2368
|
+
_a.sent();
|
|
2369
|
+
return [2 /*return*/];
|
|
2370
|
+
}
|
|
2371
|
+
});
|
|
2372
|
+
});
|
|
2373
|
+
};
|
|
2316
2374
|
/**
|
|
2317
2375
|
* Updates the IPS tag for a .uk domain transfer during the buyer workflow step.
|
|
2318
2376
|
* Update IPS tag
|
|
@@ -0,0 +1,59 @@
|
|
|
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 AccountBankAccountSummaryDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountBankAccountSummaryDto {
|
|
18
|
+
/**
|
|
19
|
+
* ISO 4217 currency code for the account.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountBankAccountSummaryDto
|
|
22
|
+
*/
|
|
23
|
+
currencyCode: string;
|
|
24
|
+
/**
|
|
25
|
+
* ISO country code of the bank.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccountBankAccountSummaryDto
|
|
28
|
+
*/
|
|
29
|
+
countryCode: string;
|
|
30
|
+
/**
|
|
31
|
+
* Last digits of the account number or IBAN.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccountBankAccountSummaryDto
|
|
34
|
+
*/
|
|
35
|
+
reference: string;
|
|
36
|
+
/**
|
|
37
|
+
* Verification status with the payment provider.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AccountBankAccountSummaryDto
|
|
40
|
+
*/
|
|
41
|
+
verificationStatus: AccountBankAccountSummaryDtoVerificationStatusEnum;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const AccountBankAccountSummaryDtoVerificationStatusEnum: {
|
|
47
|
+
readonly PENDING: "pending";
|
|
48
|
+
readonly VERIFIED: "verified";
|
|
49
|
+
readonly REJECTED: "rejected";
|
|
50
|
+
};
|
|
51
|
+
export type AccountBankAccountSummaryDtoVerificationStatusEnum = typeof AccountBankAccountSummaryDtoVerificationStatusEnum[keyof typeof AccountBankAccountSummaryDtoVerificationStatusEnum];
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AccountBankAccountSummaryDto interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfAccountBankAccountSummaryDto(value: object): value is AccountBankAccountSummaryDto;
|
|
56
|
+
export declare function AccountBankAccountSummaryDtoFromJSON(json: any): AccountBankAccountSummaryDto;
|
|
57
|
+
export declare function AccountBankAccountSummaryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBankAccountSummaryDto;
|
|
58
|
+
export declare function AccountBankAccountSummaryDtoToJSON(json: any): AccountBankAccountSummaryDto;
|
|
59
|
+
export declare function AccountBankAccountSummaryDtoToJSONTyped(value?: AccountBankAccountSummaryDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.AccountBankAccountSummaryDtoVerificationStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfAccountBankAccountSummaryDto = instanceOfAccountBankAccountSummaryDto;
|
|
18
|
+
exports.AccountBankAccountSummaryDtoFromJSON = AccountBankAccountSummaryDtoFromJSON;
|
|
19
|
+
exports.AccountBankAccountSummaryDtoFromJSONTyped = AccountBankAccountSummaryDtoFromJSONTyped;
|
|
20
|
+
exports.AccountBankAccountSummaryDtoToJSON = AccountBankAccountSummaryDtoToJSON;
|
|
21
|
+
exports.AccountBankAccountSummaryDtoToJSONTyped = AccountBankAccountSummaryDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AccountBankAccountSummaryDtoVerificationStatusEnum = {
|
|
26
|
+
PENDING: 'pending',
|
|
27
|
+
VERIFIED: 'verified',
|
|
28
|
+
REJECTED: 'rejected'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AccountBankAccountSummaryDto interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfAccountBankAccountSummaryDto(value) {
|
|
34
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('reference' in value) || value['reference'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('verificationStatus' in value) || value['verificationStatus'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function AccountBankAccountSummaryDtoFromJSON(json) {
|
|
45
|
+
return AccountBankAccountSummaryDtoFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AccountBankAccountSummaryDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'currencyCode': json['currencyCode'],
|
|
53
|
+
'countryCode': json['countryCode'],
|
|
54
|
+
'reference': json['reference'],
|
|
55
|
+
'verificationStatus': json['verificationStatus'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function AccountBankAccountSummaryDtoToJSON(json) {
|
|
59
|
+
return AccountBankAccountSummaryDtoToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function AccountBankAccountSummaryDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'currencyCode': value['currencyCode'],
|
|
68
|
+
'countryCode': value['countryCode'],
|
|
69
|
+
'reference': value['reference'],
|
|
70
|
+
'verificationStatus': value['verificationStatus'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ListAccountMetricsDto } from './ListAccountMetricsDto';
|
|
13
13
|
import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
|
|
14
|
+
import type { AccountBankAccountSummaryDto } from './AccountBankAccountSummaryDto';
|
|
14
15
|
import type { ListAccountPortfolioSizeDto } from './ListAccountPortfolioSizeDto';
|
|
15
16
|
import type { ListAccountUserDto } from './ListAccountUserDto';
|
|
16
17
|
/**
|
|
@@ -43,6 +44,12 @@ export interface AdminListAccountDto {
|
|
|
43
44
|
* @memberof AdminListAccountDto
|
|
44
45
|
*/
|
|
45
46
|
notesLastUpdatedAt: Date | null;
|
|
47
|
+
/**
|
|
48
|
+
* The bank accounts of the account, and their verification.
|
|
49
|
+
* @type {Array<AccountBankAccountSummaryDto>}
|
|
50
|
+
* @memberof AdminListAccountDto
|
|
51
|
+
*/
|
|
52
|
+
bankAccounts: Array<AccountBankAccountSummaryDto>;
|
|
46
53
|
/**
|
|
47
54
|
* Account creation date.
|
|
48
55
|
* @type {Date}
|
|
@@ -21,6 +21,7 @@ exports.AdminListAccountDtoToJSON = AdminListAccountDtoToJSON;
|
|
|
21
21
|
exports.AdminListAccountDtoToJSONTyped = AdminListAccountDtoToJSONTyped;
|
|
22
22
|
var ListAccountMetricsDto_1 = require("./ListAccountMetricsDto");
|
|
23
23
|
var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
|
|
24
|
+
var AccountBankAccountSummaryDto_1 = require("./AccountBankAccountSummaryDto");
|
|
24
25
|
var ListAccountPortfolioSizeDto_1 = require("./ListAccountPortfolioSizeDto");
|
|
25
26
|
var ListAccountUserDto_1 = require("./ListAccountUserDto");
|
|
26
27
|
/**
|
|
@@ -57,6 +58,8 @@ function instanceOfAdminListAccountDto(value) {
|
|
|
57
58
|
return false;
|
|
58
59
|
if (!('notesLastUpdatedAt' in value) || value['notesLastUpdatedAt'] === undefined)
|
|
59
60
|
return false;
|
|
61
|
+
if (!('bankAccounts' in value) || value['bankAccounts'] === undefined)
|
|
62
|
+
return false;
|
|
60
63
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
61
64
|
return false;
|
|
62
65
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -103,6 +106,7 @@ function AdminListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
103
106
|
'identifier': json['identifier'],
|
|
104
107
|
'notesNumber': json['notesNumber'],
|
|
105
108
|
'notesLastUpdatedAt': (json['notesLastUpdatedAt'] == null ? null : new Date(json['notesLastUpdatedAt'])),
|
|
109
|
+
'bankAccounts': (json['bankAccounts'].map(AccountBankAccountSummaryDto_1.AccountBankAccountSummaryDtoFromJSON)),
|
|
106
110
|
'createdAt': (new Date(json['createdAt'])),
|
|
107
111
|
'name': json['name'],
|
|
108
112
|
'type': json['type'],
|
|
@@ -134,6 +138,7 @@ function AdminListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
134
138
|
'identifier': value['identifier'],
|
|
135
139
|
'notesNumber': value['notesNumber'],
|
|
136
140
|
'notesLastUpdatedAt': (value['notesLastUpdatedAt'] == null ? null : value['notesLastUpdatedAt'].toISOString()),
|
|
141
|
+
'bankAccounts': (value['bankAccounts'].map(AccountBankAccountSummaryDto_1.AccountBankAccountSummaryDtoToJSON)),
|
|
137
142
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
138
143
|
'name': value['name'],
|
|
139
144
|
'type': value['type'],
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { BuyerSubscriptionListItemDtoDomainInformation } from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
13
13
|
import type { MoneyDto } from './MoneyDto';
|
|
14
|
+
import type { BillingInformationDto } from './BillingInformationDto';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -107,6 +108,12 @@ export interface BuyerSubscriptionListItemDto {
|
|
|
107
108
|
* @memberof BuyerSubscriptionListItemDto
|
|
108
109
|
*/
|
|
109
110
|
canManageDomainDns: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Billing information of the subscription. It is the one used to build the invoices of the upcoming renewals.
|
|
113
|
+
* @type {BillingInformationDto}
|
|
114
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
115
|
+
*/
|
|
116
|
+
buyerInformation: BillingInformationDto;
|
|
110
117
|
}
|
|
111
118
|
/**
|
|
112
119
|
* @export
|
|
@@ -21,6 +21,7 @@ exports.BuyerSubscriptionListItemDtoToJSON = BuyerSubscriptionListItemDtoToJSON;
|
|
|
21
21
|
exports.BuyerSubscriptionListItemDtoToJSONTyped = BuyerSubscriptionListItemDtoToJSONTyped;
|
|
22
22
|
var BuyerSubscriptionListItemDtoDomainInformation_1 = require("./BuyerSubscriptionListItemDtoDomainInformation");
|
|
23
23
|
var MoneyDto_1 = require("./MoneyDto");
|
|
24
|
+
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
24
25
|
/**
|
|
25
26
|
* @export
|
|
26
27
|
*/
|
|
@@ -79,6 +80,8 @@ function instanceOfBuyerSubscriptionListItemDto(value) {
|
|
|
79
80
|
return false;
|
|
80
81
|
if (!('canManageDomainDns' in value) || value['canManageDomainDns'] === undefined)
|
|
81
82
|
return false;
|
|
83
|
+
if (!('buyerInformation' in value) || value['buyerInformation'] === undefined)
|
|
84
|
+
return false;
|
|
82
85
|
return true;
|
|
83
86
|
}
|
|
84
87
|
function BuyerSubscriptionListItemDtoFromJSON(json) {
|
|
@@ -104,6 +107,7 @@ function BuyerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
104
107
|
'renewAt': (new Date(json['renewAt'])),
|
|
105
108
|
'paymentUrl': json['paymentUrl'],
|
|
106
109
|
'canManageDomainDns': json['canManageDomainDns'],
|
|
110
|
+
'buyerInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['buyerInformation']),
|
|
107
111
|
};
|
|
108
112
|
}
|
|
109
113
|
function BuyerSubscriptionListItemDtoToJSON(json) {
|
|
@@ -130,5 +134,6 @@ function BuyerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
130
134
|
'renewAt': ((value['renewAt']).toISOString()),
|
|
131
135
|
'paymentUrl': value['paymentUrl'],
|
|
132
136
|
'canManageDomainDns': value['canManageDomainDns'],
|
|
137
|
+
'buyerInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['buyerInformation']),
|
|
133
138
|
};
|
|
134
139
|
}
|
|
@@ -23,11 +23,11 @@ export interface CompanyInformationDto {
|
|
|
23
23
|
*/
|
|
24
24
|
name: string;
|
|
25
25
|
/**
|
|
26
|
-
* Company tax identification details.
|
|
26
|
+
* Company tax identification details. A company is not required to have one.
|
|
27
27
|
* @type {CompanyTaxIdDto}
|
|
28
28
|
* @memberof CompanyInformationDto
|
|
29
29
|
*/
|
|
30
|
-
taxId: CompanyTaxIdDto;
|
|
30
|
+
taxId: CompanyTaxIdDto | null;
|
|
31
31
|
/**
|
|
32
32
|
* Optional company registration or chamber of commerce ID.
|
|
33
33
|
* @type {string}
|
|
@@ -13,6 +13,7 @@ import type { CustomerSuccessListAccountUserDto } from './CustomerSuccessListAcc
|
|
|
13
13
|
import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
|
|
14
14
|
import type { CustomerSuccessListAccountMetricsDto } from './CustomerSuccessListAccountMetricsDto';
|
|
15
15
|
import type { CustomerSuccessListAccountPortfolioSizeDto } from './CustomerSuccessListAccountPortfolioSizeDto';
|
|
16
|
+
import type { AccountBankAccountSummaryDto } from './AccountBankAccountSummaryDto';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
18
19
|
* @export
|
|
@@ -43,6 +44,12 @@ export interface CustomerSuccessListAccountDto {
|
|
|
43
44
|
* @memberof CustomerSuccessListAccountDto
|
|
44
45
|
*/
|
|
45
46
|
notesLastUpdatedAt: Date | null;
|
|
47
|
+
/**
|
|
48
|
+
* The bank accounts of the account, and their verification.
|
|
49
|
+
* @type {Array<AccountBankAccountSummaryDto>}
|
|
50
|
+
* @memberof CustomerSuccessListAccountDto
|
|
51
|
+
*/
|
|
52
|
+
bankAccounts: Array<AccountBankAccountSummaryDto>;
|
|
46
53
|
/**
|
|
47
54
|
* Account creation date.
|
|
48
55
|
* @type {Date}
|
|
@@ -23,6 +23,7 @@ var CustomerSuccessListAccountUserDto_1 = require("./CustomerSuccessListAccountU
|
|
|
23
23
|
var ChallengeRewardBalanceDto_1 = require("./ChallengeRewardBalanceDto");
|
|
24
24
|
var CustomerSuccessListAccountMetricsDto_1 = require("./CustomerSuccessListAccountMetricsDto");
|
|
25
25
|
var CustomerSuccessListAccountPortfolioSizeDto_1 = require("./CustomerSuccessListAccountPortfolioSizeDto");
|
|
26
|
+
var AccountBankAccountSummaryDto_1 = require("./AccountBankAccountSummaryDto");
|
|
26
27
|
/**
|
|
27
28
|
* @export
|
|
28
29
|
*/
|
|
@@ -57,6 +58,8 @@ function instanceOfCustomerSuccessListAccountDto(value) {
|
|
|
57
58
|
return false;
|
|
58
59
|
if (!('notesLastUpdatedAt' in value) || value['notesLastUpdatedAt'] === undefined)
|
|
59
60
|
return false;
|
|
61
|
+
if (!('bankAccounts' in value) || value['bankAccounts'] === undefined)
|
|
62
|
+
return false;
|
|
60
63
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
61
64
|
return false;
|
|
62
65
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -103,6 +106,7 @@ function CustomerSuccessListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
103
106
|
'identifier': json['identifier'],
|
|
104
107
|
'notesNumber': json['notesNumber'],
|
|
105
108
|
'notesLastUpdatedAt': (json['notesLastUpdatedAt'] == null ? null : new Date(json['notesLastUpdatedAt'])),
|
|
109
|
+
'bankAccounts': (json['bankAccounts'].map(AccountBankAccountSummaryDto_1.AccountBankAccountSummaryDtoFromJSON)),
|
|
106
110
|
'createdAt': (new Date(json['createdAt'])),
|
|
107
111
|
'name': json['name'],
|
|
108
112
|
'type': json['type'],
|
|
@@ -134,6 +138,7 @@ function CustomerSuccessListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
134
138
|
'identifier': value['identifier'],
|
|
135
139
|
'notesNumber': value['notesNumber'],
|
|
136
140
|
'notesLastUpdatedAt': (value['notesLastUpdatedAt'] == null ? null : value['notesLastUpdatedAt'].toISOString()),
|
|
141
|
+
'bankAccounts': (value['bankAccounts'].map(AccountBankAccountSummaryDto_1.AccountBankAccountSummaryDtoToJSON)),
|
|
137
142
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
138
143
|
'name': value['name'],
|
|
139
144
|
'type': value['type'],
|
|
@@ -18,6 +18,7 @@ import type { DomainTransferDetailsDto } from './DomainTransferDetailsDto';
|
|
|
18
18
|
import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
|
|
19
19
|
import type { AddressDto } from './AddressDto';
|
|
20
20
|
import type { SubscriptionDetailsDomainSellerDto } from './SubscriptionDetailsDomainSellerDto';
|
|
21
|
+
import type { BillingInformationDto } from './BillingInformationDto';
|
|
21
22
|
/**
|
|
22
23
|
*
|
|
23
24
|
* @export
|
|
@@ -114,6 +115,12 @@ export interface SubscriptionDetailsDto {
|
|
|
114
115
|
* @memberof SubscriptionDetailsDto
|
|
115
116
|
*/
|
|
116
117
|
companyInfo: SubscriptionCompanyInfoDto | null;
|
|
118
|
+
/**
|
|
119
|
+
* Buyer billing information as stored on the subscription. It is the editable one, used to build the invoices of the upcoming renewals.
|
|
120
|
+
* @type {BillingInformationDto}
|
|
121
|
+
* @memberof SubscriptionDetailsDto
|
|
122
|
+
*/
|
|
123
|
+
buyerInformation: BillingInformationDto;
|
|
117
124
|
/**
|
|
118
125
|
* Subscribed domain.
|
|
119
126
|
* @type {SubscriptionDetailsDomainDto}
|
|
@@ -28,6 +28,7 @@ var DomainTransferDetailsDto_1 = require("./DomainTransferDetailsDto");
|
|
|
28
28
|
var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
|
|
29
29
|
var AddressDto_1 = require("./AddressDto");
|
|
30
30
|
var SubscriptionDetailsDomainSellerDto_1 = require("./SubscriptionDetailsDomainSellerDto");
|
|
31
|
+
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
31
32
|
/**
|
|
32
33
|
* @export
|
|
33
34
|
*/
|
|
@@ -122,6 +123,8 @@ function instanceOfSubscriptionDetailsDto(value) {
|
|
|
122
123
|
return false;
|
|
123
124
|
if (!('companyInfo' in value) || value['companyInfo'] === undefined)
|
|
124
125
|
return false;
|
|
126
|
+
if (!('buyerInformation' in value) || value['buyerInformation'] === undefined)
|
|
127
|
+
return false;
|
|
125
128
|
if (!('domain' in value) || value['domain'] === undefined)
|
|
126
129
|
return false;
|
|
127
130
|
if (!('type' in value) || value['type'] === undefined)
|
|
@@ -193,6 +196,7 @@ function SubscriptionDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
193
196
|
'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
|
|
194
197
|
'locale': json['locale'],
|
|
195
198
|
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
199
|
+
'buyerInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['buyerInformation']),
|
|
196
200
|
'domain': (0, SubscriptionDetailsDomainDto_1.SubscriptionDetailsDomainDtoFromJSON)(json['domain']),
|
|
197
201
|
'type': json['type'],
|
|
198
202
|
'installments': json['installments'],
|
|
@@ -242,6 +246,7 @@ function SubscriptionDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
242
246
|
'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
|
|
243
247
|
'locale': value['locale'],
|
|
244
248
|
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
249
|
+
'buyerInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['buyerInformation']),
|
|
245
250
|
'domain': (0, SubscriptionDetailsDomainDto_1.SubscriptionDetailsDomainDtoToJSON)(value['domain']),
|
|
246
251
|
'type': value['type'],
|
|
247
252
|
'installments': value['installments'],
|