@randock/nameshift-api-client 0.0.475 → 0.0.476

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.
@@ -581,6 +581,7 @@ src/models/UpdateMarketplaceInput.ts
581
581
  src/models/UpdateOrderInput.ts
582
582
  src/models/UpdateRentConfigurationDto.ts
583
583
  src/models/UpdateSubscriptionBillingPeriodicityInput.ts
584
+ src/models/UpdateSubscriptionBuyerInformationInput.ts
584
585
  src/models/UpdateSubscriptionDomainNameserversInput.ts
585
586
  src/models/UpdateSubscriptionDomainRecordInput.ts
586
587
  src/models/UpdateSubscriptionInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.475
1
+ ## @randock/nameshift-api-client@0.0.476
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.475 --save
39
+ npm install @randock/nameshift-api-client@0.0.476 --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
- 05c66ce269439b857c42b2e92a88f9a5e82eb0db09d64d7f7402a4784a0bc207405198736983955a11778e652860a808
47
+ e119b1473338a7f1a447a219151b5a1217411f1a8dc87cf2156a7946a97e4d6061488f58081a9957b6bfd7faf7e21a81
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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}
@@ -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'],
@@ -0,0 +1,33 @@
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 { BillingInformationDto } from './BillingInformationDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateSubscriptionBuyerInformationInput
17
+ */
18
+ export interface UpdateSubscriptionBuyerInformationInput {
19
+ /**
20
+ * Billing information to store on the subscription. It is used to build the invoices of the upcoming renewals and does not modify the already issued ones.
21
+ * @type {BillingInformationDto}
22
+ * @memberof UpdateSubscriptionBuyerInformationInput
23
+ */
24
+ billingInformation: BillingInformationDto;
25
+ }
26
+ /**
27
+ * Check if a given object implements the UpdateSubscriptionBuyerInformationInput interface.
28
+ */
29
+ export declare function instanceOfUpdateSubscriptionBuyerInformationInput(value: object): value is UpdateSubscriptionBuyerInformationInput;
30
+ export declare function UpdateSubscriptionBuyerInformationInputFromJSON(json: any): UpdateSubscriptionBuyerInformationInput;
31
+ export declare function UpdateSubscriptionBuyerInformationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubscriptionBuyerInformationInput;
32
+ export declare function UpdateSubscriptionBuyerInformationInputToJSON(json: any): UpdateSubscriptionBuyerInformationInput;
33
+ export declare function UpdateSubscriptionBuyerInformationInputToJSONTyped(value?: UpdateSubscriptionBuyerInformationInput | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfUpdateSubscriptionBuyerInformationInput = instanceOfUpdateSubscriptionBuyerInformationInput;
17
+ exports.UpdateSubscriptionBuyerInformationInputFromJSON = UpdateSubscriptionBuyerInformationInputFromJSON;
18
+ exports.UpdateSubscriptionBuyerInformationInputFromJSONTyped = UpdateSubscriptionBuyerInformationInputFromJSONTyped;
19
+ exports.UpdateSubscriptionBuyerInformationInputToJSON = UpdateSubscriptionBuyerInformationInputToJSON;
20
+ exports.UpdateSubscriptionBuyerInformationInputToJSONTyped = UpdateSubscriptionBuyerInformationInputToJSONTyped;
21
+ var BillingInformationDto_1 = require("./BillingInformationDto");
22
+ /**
23
+ * Check if a given object implements the UpdateSubscriptionBuyerInformationInput interface.
24
+ */
25
+ function instanceOfUpdateSubscriptionBuyerInformationInput(value) {
26
+ if (!('billingInformation' in value) || value['billingInformation'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function UpdateSubscriptionBuyerInformationInputFromJSON(json) {
31
+ return UpdateSubscriptionBuyerInformationInputFromJSONTyped(json, false);
32
+ }
33
+ function UpdateSubscriptionBuyerInformationInputFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
39
+ };
40
+ }
41
+ function UpdateSubscriptionBuyerInformationInputToJSON(json) {
42
+ return UpdateSubscriptionBuyerInformationInputToJSONTyped(json, false);
43
+ }
44
+ function UpdateSubscriptionBuyerInformationInputToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
51
+ };
52
+ }
@@ -540,6 +540,7 @@ export * from './UpdateMarketplaceInput';
540
540
  export * from './UpdateOrderInput';
541
541
  export * from './UpdateRentConfigurationDto';
542
542
  export * from './UpdateSubscriptionBillingPeriodicityInput';
543
+ export * from './UpdateSubscriptionBuyerInformationInput';
543
544
  export * from './UpdateSubscriptionDomainNameserversInput';
544
545
  export * from './UpdateSubscriptionDomainRecordInput';
545
546
  export * from './UpdateSubscriptionInput';
@@ -558,6 +558,7 @@ __exportStar(require("./UpdateMarketplaceInput"), exports);
558
558
  __exportStar(require("./UpdateOrderInput"), exports);
559
559
  __exportStar(require("./UpdateRentConfigurationDto"), exports);
560
560
  __exportStar(require("./UpdateSubscriptionBillingPeriodicityInput"), exports);
561
+ __exportStar(require("./UpdateSubscriptionBuyerInformationInput"), exports);
561
562
  __exportStar(require("./UpdateSubscriptionDomainNameserversInput"), exports);
562
563
  __exportStar(require("./UpdateSubscriptionDomainRecordInput"), exports);
563
564
  __exportStar(require("./UpdateSubscriptionInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.475",
3
+ "version": "0.0.476",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -72,6 +72,7 @@ import type {
72
72
  UpdateChallengeInput,
73
73
  UpdateFeatureFlagInput,
74
74
  UpdateMarketplaceInput,
75
+ UpdateSubscriptionBuyerInformationInput,
75
76
  ValidationException,
76
77
  } from '../models/index';
77
78
  import {
@@ -189,6 +190,8 @@ import {
189
190
  UpdateFeatureFlagInputToJSON,
190
191
  UpdateMarketplaceInputFromJSON,
191
192
  UpdateMarketplaceInputToJSON,
193
+ UpdateSubscriptionBuyerInformationInputFromJSON,
194
+ UpdateSubscriptionBuyerInformationInputToJSON,
192
195
  ValidationExceptionFromJSON,
193
196
  ValidationExceptionToJSON,
194
197
  } from '../models/index';
@@ -542,6 +545,11 @@ export interface AdminApiUpdateMarketplaceRequest {
542
545
  updateMarketplaceInput: UpdateMarketplaceInput;
543
546
  }
544
547
 
548
+ export interface AdminApiUpdateSubscriptionBuyerInformationRequest {
549
+ subscriptionId: string;
550
+ updateSubscriptionBuyerInformationInput: UpdateSubscriptionBuyerInformationInput;
551
+ }
552
+
545
553
  export interface AdminApiVerifyAccountAliasRequest {
546
554
  accountId: string;
547
555
  }
@@ -3872,6 +3880,58 @@ export class AdminApi extends runtime.BaseAPI {
3872
3880
  await this.updateMarketplaceRaw(requestParameters, initOverrides);
3873
3881
  }
3874
3882
 
3883
+ /**
3884
+ * 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.
3885
+ * Update subscription buyer information
3886
+ */
3887
+ async updateSubscriptionBuyerInformationRaw(requestParameters: AdminApiUpdateSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
3888
+ if (requestParameters['subscriptionId'] == null) {
3889
+ throw new runtime.RequiredError(
3890
+ 'subscriptionId',
3891
+ 'Required parameter "subscriptionId" was null or undefined when calling updateSubscriptionBuyerInformation().'
3892
+ );
3893
+ }
3894
+
3895
+ if (requestParameters['updateSubscriptionBuyerInformationInput'] == null) {
3896
+ throw new runtime.RequiredError(
3897
+ 'updateSubscriptionBuyerInformationInput',
3898
+ 'Required parameter "updateSubscriptionBuyerInformationInput" was null or undefined when calling updateSubscriptionBuyerInformation().'
3899
+ );
3900
+ }
3901
+
3902
+ const queryParameters: any = {};
3903
+
3904
+ const headerParameters: runtime.HTTPHeaders = {};
3905
+
3906
+ headerParameters['Content-Type'] = 'application/json';
3907
+
3908
+ if (this.configuration && this.configuration.accessToken) {
3909
+ const token = this.configuration.accessToken;
3910
+ const tokenString = await token("bearer", []);
3911
+
3912
+ if (tokenString) {
3913
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3914
+ }
3915
+ }
3916
+ const response = await this.request({
3917
+ path: `/admin/subscriptions/{subscriptionId}/buyer-information`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
3918
+ method: 'PATCH',
3919
+ headers: headerParameters,
3920
+ query: queryParameters,
3921
+ body: UpdateSubscriptionBuyerInformationInputToJSON(requestParameters['updateSubscriptionBuyerInformationInput']),
3922
+ }, initOverrides);
3923
+
3924
+ return new runtime.VoidApiResponse(response);
3925
+ }
3926
+
3927
+ /**
3928
+ * 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.
3929
+ * Update subscription buyer information
3930
+ */
3931
+ async updateSubscriptionBuyerInformation(requestParameters: AdminApiUpdateSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
3932
+ await this.updateSubscriptionBuyerInformationRaw(requestParameters, initOverrides);
3933
+ }
3934
+
3875
3935
  /**
3876
3936
  * Marks the account alias as verified.
3877
3937
  * Verify account alias
@@ -55,6 +55,7 @@ import type {
55
55
  UpdateBuyerDomainTransferIpsTagInputDto,
56
56
  UpdateBuyerNotificationSettingsInput,
57
57
  UpdateLeadMuteStatusForBuyerInput,
58
+ UpdateSubscriptionBuyerInformationInput,
58
59
  UpdateSubscriptionDomainNameserversInput,
59
60
  UpdateSubscriptionDomainRecordInput,
60
61
  UpdateTaskMuteStatusForBuyerInput,
@@ -142,6 +143,8 @@ import {
142
143
  UpdateBuyerNotificationSettingsInputToJSON,
143
144
  UpdateLeadMuteStatusForBuyerInputFromJSON,
144
145
  UpdateLeadMuteStatusForBuyerInputToJSON,
146
+ UpdateSubscriptionBuyerInformationInputFromJSON,
147
+ UpdateSubscriptionBuyerInformationInputToJSON,
145
148
  UpdateSubscriptionDomainNameserversInputFromJSON,
146
149
  UpdateSubscriptionDomainNameserversInputToJSON,
147
150
  UpdateSubscriptionDomainRecordInputFromJSON,
@@ -326,6 +329,11 @@ export interface BuyersApiUpdateBuyerNotificationSettingsRequest {
326
329
  updateBuyerNotificationSettingsInput: UpdateBuyerNotificationSettingsInput;
327
330
  }
328
331
 
332
+ export interface BuyersApiUpdateBuyerSubscriptionBuyerInformationRequest {
333
+ subscriptionId: string;
334
+ updateSubscriptionBuyerInformationInput: UpdateSubscriptionBuyerInformationInput;
335
+ }
336
+
329
337
  export interface BuyersApiUpdateDomainTransferIpsTagRequest {
330
338
  transferId: string;
331
339
  updateBuyerDomainTransferIpsTagInputDto: UpdateBuyerDomainTransferIpsTagInputDto;
@@ -2191,6 +2199,58 @@ export class BuyersApi extends runtime.BaseAPI {
2191
2199
  await this.updateBuyerNotificationSettingsRaw(requestParameters, initOverrides);
2192
2200
  }
2193
2201
 
2202
+ /**
2203
+ * 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.
2204
+ * Update the billing information of a subscription
2205
+ */
2206
+ async updateBuyerSubscriptionBuyerInformationRaw(requestParameters: BuyersApiUpdateBuyerSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2207
+ if (requestParameters['subscriptionId'] == null) {
2208
+ throw new runtime.RequiredError(
2209
+ 'subscriptionId',
2210
+ 'Required parameter "subscriptionId" was null or undefined when calling updateBuyerSubscriptionBuyerInformation().'
2211
+ );
2212
+ }
2213
+
2214
+ if (requestParameters['updateSubscriptionBuyerInformationInput'] == null) {
2215
+ throw new runtime.RequiredError(
2216
+ 'updateSubscriptionBuyerInformationInput',
2217
+ 'Required parameter "updateSubscriptionBuyerInformationInput" was null or undefined when calling updateBuyerSubscriptionBuyerInformation().'
2218
+ );
2219
+ }
2220
+
2221
+ const queryParameters: any = {};
2222
+
2223
+ const headerParameters: runtime.HTTPHeaders = {};
2224
+
2225
+ headerParameters['Content-Type'] = 'application/json';
2226
+
2227
+ if (this.configuration && this.configuration.accessToken) {
2228
+ const token = this.configuration.accessToken;
2229
+ const tokenString = await token("bearer", []);
2230
+
2231
+ if (tokenString) {
2232
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2233
+ }
2234
+ }
2235
+ const response = await this.request({
2236
+ path: `/buyers/private/subscriptions/{subscriptionId}/buyer-information`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
2237
+ method: 'PATCH',
2238
+ headers: headerParameters,
2239
+ query: queryParameters,
2240
+ body: UpdateSubscriptionBuyerInformationInputToJSON(requestParameters['updateSubscriptionBuyerInformationInput']),
2241
+ }, initOverrides);
2242
+
2243
+ return new runtime.VoidApiResponse(response);
2244
+ }
2245
+
2246
+ /**
2247
+ * 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.
2248
+ * Update the billing information of a subscription
2249
+ */
2250
+ async updateBuyerSubscriptionBuyerInformation(requestParameters: BuyersApiUpdateBuyerSubscriptionBuyerInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2251
+ await this.updateBuyerSubscriptionBuyerInformationRaw(requestParameters, initOverrides);
2252
+ }
2253
+
2194
2254
  /**
2195
2255
  * Updates the IPS tag for a .uk domain transfer during the buyer workflow step.
2196
2256
  * Update IPS tag
@@ -27,6 +27,13 @@ import {
27
27
  MoneyDtoToJSON,
28
28
  MoneyDtoToJSONTyped,
29
29
  } from './MoneyDto';
30
+ import type { BillingInformationDto } from './BillingInformationDto';
31
+ import {
32
+ BillingInformationDtoFromJSON,
33
+ BillingInformationDtoFromJSONTyped,
34
+ BillingInformationDtoToJSON,
35
+ BillingInformationDtoToJSONTyped,
36
+ } from './BillingInformationDto';
30
37
 
31
38
  /**
32
39
  *
@@ -124,6 +131,12 @@ export interface BuyerSubscriptionListItemDto {
124
131
  * @memberof BuyerSubscriptionListItemDto
125
132
  */
126
133
  canManageDomainDns: boolean;
134
+ /**
135
+ * Billing information of the subscription. It is the one used to build the invoices of the upcoming renewals.
136
+ * @type {BillingInformationDto}
137
+ * @memberof BuyerSubscriptionListItemDto
138
+ */
139
+ buyerInformation: BillingInformationDto;
127
140
  }
128
141
 
129
142
 
@@ -177,6 +190,7 @@ export function instanceOfBuyerSubscriptionListItemDto(value: object): value is
177
190
  if (!('renewAt' in value) || value['renewAt'] === undefined) return false;
178
191
  if (!('paymentUrl' in value) || value['paymentUrl'] === undefined) return false;
179
192
  if (!('canManageDomainDns' in value) || value['canManageDomainDns'] === undefined) return false;
193
+ if (!('buyerInformation' in value) || value['buyerInformation'] === undefined) return false;
180
194
  return true;
181
195
  }
182
196
 
@@ -205,6 +219,7 @@ export function BuyerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscr
205
219
  'renewAt': (new Date(json['renewAt'])),
206
220
  'paymentUrl': json['paymentUrl'],
207
221
  'canManageDomainDns': json['canManageDomainDns'],
222
+ 'buyerInformation': BillingInformationDtoFromJSON(json['buyerInformation']),
208
223
  };
209
224
  }
210
225
 
@@ -234,6 +249,7 @@ export function BuyerSubscriptionListItemDtoToJSONTyped(value?: BuyerSubscriptio
234
249
  'renewAt': ((value['renewAt']).toISOString()),
235
250
  'paymentUrl': value['paymentUrl'],
236
251
  'canManageDomainDns': value['canManageDomainDns'],
252
+ 'buyerInformation': BillingInformationDtoToJSON(value['buyerInformation']),
237
253
  };
238
254
  }
239
255
 
@@ -34,11 +34,11 @@ export interface CompanyInformationDto {
34
34
  */
35
35
  name: string;
36
36
  /**
37
- * Company tax identification details.
37
+ * Company tax identification details. A company is not required to have one.
38
38
  * @type {CompanyTaxIdDto}
39
39
  * @memberof CompanyInformationDto
40
40
  */
41
- taxId: CompanyTaxIdDto;
41
+ taxId: CompanyTaxIdDto | null;
42
42
  /**
43
43
  * Optional company registration or chamber of commerce ID.
44
44
  * @type {string}
@@ -76,6 +76,13 @@ import {
76
76
  SubscriptionDetailsDomainSellerDtoToJSON,
77
77
  SubscriptionDetailsDomainSellerDtoToJSONTyped,
78
78
  } from './SubscriptionDetailsDomainSellerDto';
79
+ import type { BillingInformationDto } from './BillingInformationDto';
80
+ import {
81
+ BillingInformationDtoFromJSON,
82
+ BillingInformationDtoFromJSONTyped,
83
+ BillingInformationDtoToJSON,
84
+ BillingInformationDtoToJSONTyped,
85
+ } from './BillingInformationDto';
79
86
 
80
87
  /**
81
88
  *
@@ -173,6 +180,12 @@ export interface SubscriptionDetailsDto {
173
180
  * @memberof SubscriptionDetailsDto
174
181
  */
175
182
  companyInfo: SubscriptionCompanyInfoDto | null;
183
+ /**
184
+ * Buyer billing information as stored on the subscription. It is the editable one, used to build the invoices of the upcoming renewals.
185
+ * @type {BillingInformationDto}
186
+ * @memberof SubscriptionDetailsDto
187
+ */
188
+ buyerInformation: BillingInformationDto;
176
189
  /**
177
190
  * Subscribed domain.
178
191
  * @type {SubscriptionDetailsDomainDto}
@@ -406,6 +419,7 @@ export function instanceOfSubscriptionDetailsDto(value: object): value is Subscr
406
419
  if (!('address' in value) || value['address'] === undefined) return false;
407
420
  if (!('locale' in value) || value['locale'] === undefined) return false;
408
421
  if (!('companyInfo' in value) || value['companyInfo'] === undefined) return false;
422
+ if (!('buyerInformation' in value) || value['buyerInformation'] === undefined) return false;
409
423
  if (!('domain' in value) || value['domain'] === undefined) return false;
410
424
  if (!('type' in value) || value['type'] === undefined) return false;
411
425
  if (!('installments' in value) || value['installments'] === undefined) return false;
@@ -457,6 +471,7 @@ export function SubscriptionDetailsDtoFromJSONTyped(json: any, ignoreDiscriminat
457
471
  'address': AddressDtoFromJSON(json['address']),
458
472
  'locale': json['locale'],
459
473
  'companyInfo': SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
474
+ 'buyerInformation': BillingInformationDtoFromJSON(json['buyerInformation']),
460
475
  'domain': SubscriptionDetailsDomainDtoFromJSON(json['domain']),
461
476
  'type': json['type'],
462
477
  'installments': json['installments'],
@@ -509,6 +524,7 @@ export function SubscriptionDetailsDtoToJSONTyped(value?: SubscriptionDetailsDto
509
524
  'address': AddressDtoToJSON(value['address']),
510
525
  'locale': value['locale'],
511
526
  'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
527
+ 'buyerInformation': BillingInformationDtoToJSON(value['buyerInformation']),
512
528
  'domain': SubscriptionDetailsDomainDtoToJSON(value['domain']),
513
529
  'type': value['type'],
514
530
  'installments': value['installments'],
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { BillingInformationDto } from './BillingInformationDto';
17
+ import {
18
+ BillingInformationDtoFromJSON,
19
+ BillingInformationDtoFromJSONTyped,
20
+ BillingInformationDtoToJSON,
21
+ BillingInformationDtoToJSONTyped,
22
+ } from './BillingInformationDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UpdateSubscriptionBuyerInformationInput
28
+ */
29
+ export interface UpdateSubscriptionBuyerInformationInput {
30
+ /**
31
+ * Billing information to store on the subscription. It is used to build the invoices of the upcoming renewals and does not modify the already issued ones.
32
+ * @type {BillingInformationDto}
33
+ * @memberof UpdateSubscriptionBuyerInformationInput
34
+ */
35
+ billingInformation: BillingInformationDto;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the UpdateSubscriptionBuyerInformationInput interface.
40
+ */
41
+ export function instanceOfUpdateSubscriptionBuyerInformationInput(value: object): value is UpdateSubscriptionBuyerInformationInput {
42
+ if (!('billingInformation' in value) || value['billingInformation'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function UpdateSubscriptionBuyerInformationInputFromJSON(json: any): UpdateSubscriptionBuyerInformationInput {
47
+ return UpdateSubscriptionBuyerInformationInputFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function UpdateSubscriptionBuyerInformationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubscriptionBuyerInformationInput {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'billingInformation': BillingInformationDtoFromJSON(json['billingInformation']),
57
+ };
58
+ }
59
+
60
+ export function UpdateSubscriptionBuyerInformationInputToJSON(json: any): UpdateSubscriptionBuyerInformationInput {
61
+ return UpdateSubscriptionBuyerInformationInputToJSONTyped(json, false);
62
+ }
63
+
64
+ export function UpdateSubscriptionBuyerInformationInputToJSONTyped(value?: UpdateSubscriptionBuyerInformationInput | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'billingInformation': BillingInformationDtoToJSON(value['billingInformation']),
72
+ };
73
+ }
74
+
@@ -542,6 +542,7 @@ export * from './UpdateMarketplaceInput';
542
542
  export * from './UpdateOrderInput';
543
543
  export * from './UpdateRentConfigurationDto';
544
544
  export * from './UpdateSubscriptionBillingPeriodicityInput';
545
+ export * from './UpdateSubscriptionBuyerInformationInput';
545
546
  export * from './UpdateSubscriptionDomainNameserversInput';
546
547
  export * from './UpdateSubscriptionDomainRecordInput';
547
548
  export * from './UpdateSubscriptionInput';