@randock/nameshift-api-client 0.0.92 → 0.0.94
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 +8 -6
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +10 -11
- package/dist/apis/AccountsApi.js +27 -30
- package/dist/apis/OrdersPublicApi.d.ts +12 -1
- package/dist/apis/OrdersPublicApi.js +44 -0
- package/dist/apis/StripePublicApi.d.ts +28 -0
- package/dist/apis/StripePublicApi.js +124 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountDto.d.ts +7 -0
- package/dist/models/AccountDto.js +5 -0
- package/dist/models/AccountPaymentProviderSessionDto.d.ts +31 -0
- package/dist/models/AccountPaymentProviderSessionDto.js +46 -0
- package/dist/models/AddressDto.d.ts +61 -0
- package/dist/models/AddressDto.js +66 -0
- package/dist/models/CreateAccountPaymentProviderInput.d.ts +31 -0
- package/dist/models/CreateAccountPaymentProviderInput.js +46 -0
- package/dist/models/CreateLeadInput.d.ts +0 -6
- package/dist/models/CreateLeadInput.js +0 -4
- package/dist/models/CreateOrderInput.d.ts +0 -30
- package/dist/models/CreateOrderInput.js +0 -20
- package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +69 -0
- package/dist/models/{IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js → IntersectionAccountDtoWithSettingsDto.js} +14 -19
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +6 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +4 -0
- package/dist/models/OrderCheckoutSessionDto.d.ts +31 -0
- package/dist/models/OrderCheckoutSessionDto.js +46 -0
- package/dist/models/OrderDto.d.ts +12 -16
- package/dist/models/OrderDto.js +12 -14
- package/dist/models/OrderListItemDtoBuyerInformation.d.ts +4 -21
- package/dist/models/OrderListItemDtoBuyerInformation.js +3 -14
- package/dist/models/OrderTaxDto.d.ts +44 -0
- package/dist/models/OrderTaxDto.js +55 -0
- package/dist/models/PaymentProviderDto.d.ts +45 -0
- package/dist/models/PaymentProviderDto.js +58 -0
- package/dist/models/PublicLeadBuyerDto.d.ts +0 -6
- package/dist/models/PublicLeadBuyerDto.js +0 -4
- package/dist/models/UpdateLeadInput.d.ts +0 -6
- package/dist/models/UpdateLeadInput.js +0 -4
- package/dist/models/UpdateOrderInput.d.ts +0 -30
- package/dist/models/UpdateOrderInput.js +0 -20
- package/dist/models/index.d.ts +7 -6
- package/dist/models/index.js +7 -6
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +44 -54
- package/src/apis/AccountsPublicApi.ts +0 -3
- package/src/apis/AdminApi.ts +0 -3
- package/src/apis/BuyersApi.ts +0 -3
- package/src/apis/BuyersPublicApi.ts +0 -3
- package/src/apis/DashboardApi.ts +0 -3
- package/src/apis/DomainsApi.ts +0 -3
- package/src/apis/DomainsPublicApi.ts +0 -3
- package/src/apis/LeadsApi.ts +0 -3
- package/src/apis/LeadsPublicApi.ts +0 -3
- package/src/apis/OrdersPublicApi.ts +40 -3
- package/src/apis/StripePublicApi.ts +70 -0
- package/src/apis/UsersApi.ts +0 -3
- package/src/apis/UsersPublicApi.ts +0 -3
- package/src/apis/index.ts +1 -0
- package/src/models/AccountDto.ts +16 -0
- package/src/models/AccountPaymentProviderSessionDto.ts +61 -0
- package/src/models/AddressDto.ts +106 -0
- package/src/models/CreateAccountPaymentProviderInput.ts +61 -0
- package/src/models/CreateLeadInput.ts +0 -9
- package/src/models/CreateOrderInput.ts +0 -45
- package/src/models/IntersectionAccountDtoWithSettingsDto.ts +128 -0
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +9 -0
- package/src/models/OrderCheckoutSessionDto.ts +61 -0
- package/src/models/OrderDto.ts +30 -27
- package/src/models/OrderListItemDtoBuyerInformation.ts +12 -32
- package/src/models/OrderTaxDto.ts +86 -0
- package/src/models/PaymentProviderDto.ts +81 -0
- package/src/models/PublicLeadBuyerDto.ts +0 -9
- package/src/models/UpdateLeadInput.ts +0 -9
- package/src/models/UpdateOrderInput.ts +0 -45
- package/src/models/index.ts +7 -6
- package/dist/models/AccountAddressDto.d.ts +0 -68
- package/dist/models/AccountAddressDto.js +0 -71
- package/dist/models/AccountAddressInput.d.ts +0 -68
- package/dist/models/AccountAddressInput.js +0 -71
- package/dist/models/AccountFinancialInput.d.ts +0 -49
- package/dist/models/AccountFinancialInput.js +0 -58
- package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +0 -76
- package/dist/models/ThrottlerException.d.ts +0 -43
- package/dist/models/ThrottlerException.js +0 -54
- package/dist/models/WithFinancialDtoInner.d.ts +0 -49
- package/dist/models/WithFinancialDtoInner.js +0 -58
- package/src/models/AccountAddressDto.ts +0 -115
- package/src/models/AccountAddressInput.ts +0 -115
- package/src/models/AccountFinancialInput.ts +0 -88
- package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +0 -143
- package/src/models/ThrottlerException.ts +0 -79
- package/src/models/WithFinancialDtoInner.ts +0 -88
package/dist/models/index.js
CHANGED
|
@@ -16,11 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./AccountAddressDto"), exports);
|
|
20
|
-
__exportStar(require("./AccountAddressInput"), exports);
|
|
21
19
|
__exportStar(require("./AccountDto"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./AccountPaymentProviderSessionDto"), exports);
|
|
23
21
|
__exportStar(require("./AccountSettingsInput"), exports);
|
|
22
|
+
__exportStar(require("./AddressDto"), exports);
|
|
24
23
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
25
24
|
__exportStar(require("./BadRequestException"), exports);
|
|
26
25
|
__exportStar(require("./BatchReadBuyerLeadMessageInput"), exports);
|
|
@@ -35,6 +34,7 @@ __exportStar(require("./BuyerUserDto"), exports);
|
|
|
35
34
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
36
35
|
__exportStar(require("./ChartDataPoint"), exports);
|
|
37
36
|
__exportStar(require("./ConflictException"), exports);
|
|
37
|
+
__exportStar(require("./CreateAccountPaymentProviderInput"), exports);
|
|
38
38
|
__exportStar(require("./CreateBuyerLeadMessageInput"), exports);
|
|
39
39
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
40
40
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
@@ -64,7 +64,7 @@ __exportStar(require("./GetAllOrders200Response"), exports);
|
|
|
64
64
|
__exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
65
65
|
__exportStar(require("./GetBuyerTransfers200Response"), exports);
|
|
66
66
|
__exportStar(require("./HttpException"), exports);
|
|
67
|
-
__exportStar(require("./
|
|
67
|
+
__exportStar(require("./IntersectionAccountDtoWithSettingsDto"), exports);
|
|
68
68
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
69
69
|
__exportStar(require("./IntersectionDomainDtoWithDomainUrlDto"), exports);
|
|
70
70
|
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
@@ -86,14 +86,17 @@ __exportStar(require("./LoginInput"), exports);
|
|
|
86
86
|
__exportStar(require("./MoneyDto"), exports);
|
|
87
87
|
__exportStar(require("./NotFoundException"), exports);
|
|
88
88
|
__exportStar(require("./ObjectId"), exports);
|
|
89
|
+
__exportStar(require("./OrderCheckoutSessionDto"), exports);
|
|
89
90
|
__exportStar(require("./OrderDto"), exports);
|
|
90
91
|
__exportStar(require("./OrderListItemDto"), exports);
|
|
91
92
|
__exportStar(require("./OrderListItemDtoBuyerInformation"), exports);
|
|
92
93
|
__exportStar(require("./OrderListItemDtoDomainInformation"), exports);
|
|
93
94
|
__exportStar(require("./OrderListItemDtoSellerAccount"), exports);
|
|
95
|
+
__exportStar(require("./OrderTaxDto"), exports);
|
|
94
96
|
__exportStar(require("./PaginateResponse"), exports);
|
|
95
97
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
96
98
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
99
|
+
__exportStar(require("./PaymentProviderDto"), exports);
|
|
97
100
|
__exportStar(require("./PublicLeadBuyerDto"), exports);
|
|
98
101
|
__exportStar(require("./PublicLeadDto"), exports);
|
|
99
102
|
__exportStar(require("./PutBuyerLeadOfferInput"), exports);
|
|
@@ -111,7 +114,6 @@ __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
|
111
114
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
112
115
|
__exportStar(require("./StoreBuyerLocaleInput"), exports);
|
|
113
116
|
__exportStar(require("./StoreUserLocaleInput"), exports);
|
|
114
|
-
__exportStar(require("./ThrottlerException"), exports);
|
|
115
117
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
116
118
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
117
119
|
__exportStar(require("./UpdateLeadInput"), exports);
|
|
@@ -120,5 +122,4 @@ __exportStar(require("./UserPasswordResetDto"), exports);
|
|
|
120
122
|
__exportStar(require("./ValidationError"), exports);
|
|
121
123
|
__exportStar(require("./ValidationException"), exports);
|
|
122
124
|
__exportStar(require("./VerifyLeadInput"), exports);
|
|
123
|
-
__exportStar(require("./WithFinancialDtoInner"), exports);
|
|
124
125
|
__exportStar(require("./WithSettingsInner"), exports);
|
package/package.json
CHANGED
package/src/apis/AccountsApi.ts
CHANGED
|
@@ -15,36 +15,35 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
AccountFinancialInput,
|
|
18
|
+
AccountPaymentProviderSessionDto,
|
|
20
19
|
AccountSettingsInput,
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
CreateAccountPaymentProviderInput,
|
|
21
|
+
IntersectionAccountDtoWithSettingsDto,
|
|
22
|
+
NotFoundException,
|
|
23
23
|
ValidationException,
|
|
24
24
|
} from '../models/index';
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
AccountFinancialInputFromJSON,
|
|
29
|
-
AccountFinancialInputToJSON,
|
|
26
|
+
AccountPaymentProviderSessionDtoFromJSON,
|
|
27
|
+
AccountPaymentProviderSessionDtoToJSON,
|
|
30
28
|
AccountSettingsInputFromJSON,
|
|
31
29
|
AccountSettingsInputToJSON,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
CreateAccountPaymentProviderInputFromJSON,
|
|
31
|
+
CreateAccountPaymentProviderInputToJSON,
|
|
32
|
+
IntersectionAccountDtoWithSettingsDtoFromJSON,
|
|
33
|
+
IntersectionAccountDtoWithSettingsDtoToJSON,
|
|
34
|
+
NotFoundExceptionFromJSON,
|
|
35
|
+
NotFoundExceptionToJSON,
|
|
36
36
|
ValidationExceptionFromJSON,
|
|
37
37
|
ValidationExceptionToJSON,
|
|
38
38
|
} from '../models/index';
|
|
39
39
|
|
|
40
|
-
export interface
|
|
40
|
+
export interface AccountsApiGetAccountPaymentProviderSessionRequest {
|
|
41
41
|
accountId: string;
|
|
42
|
-
accountAddressInput: AccountAddressInput;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
export interface
|
|
44
|
+
export interface AccountsApiPostPaymentProviderRequest {
|
|
46
45
|
accountId: string;
|
|
47
|
-
|
|
46
|
+
createAccountPaymentProviderInput: CreateAccountPaymentProviderInput;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
export interface AccountsApiUpdateSettingsRequest {
|
|
@@ -60,7 +59,14 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
60
59
|
/**
|
|
61
60
|
*
|
|
62
61
|
*/
|
|
63
|
-
async
|
|
62
|
+
async getAccountPaymentProviderSessionRaw(requestParameters: AccountsApiGetAccountPaymentProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountPaymentProviderSessionDto>> {
|
|
63
|
+
if (requestParameters['accountId'] == null) {
|
|
64
|
+
throw new runtime.RequiredError(
|
|
65
|
+
'accountId',
|
|
66
|
+
'Required parameter "accountId" was null or undefined when calling getAccountPaymentProviderSession().'
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
64
70
|
const queryParameters: any = {};
|
|
65
71
|
|
|
66
72
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -74,47 +80,31 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
82
|
const response = await this.request({
|
|
77
|
-
path: `/private/accounts/
|
|
83
|
+
path: `/private/accounts/{accountId}/payment-provider/session`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
78
84
|
method: 'GET',
|
|
79
85
|
headers: headerParameters,
|
|
80
86
|
query: queryParameters,
|
|
81
87
|
}, initOverrides);
|
|
82
88
|
|
|
83
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
89
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountPaymentProviderSessionDtoFromJSON(jsonValue));
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
/**
|
|
87
93
|
*
|
|
88
94
|
*/
|
|
89
|
-
async
|
|
90
|
-
const response = await this.
|
|
95
|
+
async getAccountPaymentProviderSession(requestParameters: AccountsApiGetAccountPaymentProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPaymentProviderSessionDto> {
|
|
96
|
+
const response = await this.getAccountPaymentProviderSessionRaw(requestParameters, initOverrides);
|
|
91
97
|
return await response.value();
|
|
92
98
|
}
|
|
93
99
|
|
|
94
100
|
/**
|
|
95
101
|
*
|
|
96
102
|
*/
|
|
97
|
-
async
|
|
98
|
-
if (requestParameters['accountId'] == null) {
|
|
99
|
-
throw new runtime.RequiredError(
|
|
100
|
-
'accountId',
|
|
101
|
-
'Required parameter "accountId" was null or undefined when calling updateAddress().'
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
if (requestParameters['accountAddressInput'] == null) {
|
|
106
|
-
throw new runtime.RequiredError(
|
|
107
|
-
'accountAddressInput',
|
|
108
|
-
'Required parameter "accountAddressInput" was null or undefined when calling updateAddress().'
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
103
|
+
async meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithSettingsDto>> {
|
|
112
104
|
const queryParameters: any = {};
|
|
113
105
|
|
|
114
106
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
115
107
|
|
|
116
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
117
|
-
|
|
118
108
|
if (this.configuration && this.configuration.accessToken) {
|
|
119
109
|
const token = this.configuration.accessToken;
|
|
120
110
|
const tokenString = await token("bearer", []);
|
|
@@ -124,38 +114,38 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
124
114
|
}
|
|
125
115
|
}
|
|
126
116
|
const response = await this.request({
|
|
127
|
-
path: `/private/accounts/
|
|
128
|
-
method: '
|
|
117
|
+
path: `/private/accounts/me`,
|
|
118
|
+
method: 'GET',
|
|
129
119
|
headers: headerParameters,
|
|
130
120
|
query: queryParameters,
|
|
131
|
-
body: AccountAddressInputToJSON(requestParameters['accountAddressInput']),
|
|
132
121
|
}, initOverrides);
|
|
133
122
|
|
|
134
|
-
return new runtime.
|
|
123
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionAccountDtoWithSettingsDtoFromJSON(jsonValue));
|
|
135
124
|
}
|
|
136
125
|
|
|
137
126
|
/**
|
|
138
127
|
*
|
|
139
128
|
*/
|
|
140
|
-
async
|
|
141
|
-
await this.
|
|
129
|
+
async me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDto> {
|
|
130
|
+
const response = await this.meRaw(initOverrides);
|
|
131
|
+
return await response.value();
|
|
142
132
|
}
|
|
143
133
|
|
|
144
134
|
/**
|
|
145
135
|
*
|
|
146
136
|
*/
|
|
147
|
-
async
|
|
137
|
+
async postPaymentProviderRaw(requestParameters: AccountsApiPostPaymentProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
148
138
|
if (requestParameters['accountId'] == null) {
|
|
149
139
|
throw new runtime.RequiredError(
|
|
150
140
|
'accountId',
|
|
151
|
-
'Required parameter "accountId" was null or undefined when calling
|
|
141
|
+
'Required parameter "accountId" was null or undefined when calling postPaymentProvider().'
|
|
152
142
|
);
|
|
153
143
|
}
|
|
154
144
|
|
|
155
|
-
if (requestParameters['
|
|
145
|
+
if (requestParameters['createAccountPaymentProviderInput'] == null) {
|
|
156
146
|
throw new runtime.RequiredError(
|
|
157
|
-
'
|
|
158
|
-
'Required parameter "
|
|
147
|
+
'createAccountPaymentProviderInput',
|
|
148
|
+
'Required parameter "createAccountPaymentProviderInput" was null or undefined when calling postPaymentProvider().'
|
|
159
149
|
);
|
|
160
150
|
}
|
|
161
151
|
|
|
@@ -174,11 +164,11 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
174
164
|
}
|
|
175
165
|
}
|
|
176
166
|
const response = await this.request({
|
|
177
|
-
path: `/private/accounts/{accountId}/
|
|
178
|
-
method: '
|
|
167
|
+
path: `/private/accounts/{accountId}/payment-provider`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
168
|
+
method: 'POST',
|
|
179
169
|
headers: headerParameters,
|
|
180
170
|
query: queryParameters,
|
|
181
|
-
body:
|
|
171
|
+
body: CreateAccountPaymentProviderInputToJSON(requestParameters['createAccountPaymentProviderInput']),
|
|
182
172
|
}, initOverrides);
|
|
183
173
|
|
|
184
174
|
return new runtime.VoidApiResponse(response);
|
|
@@ -187,8 +177,8 @@ export class AccountsApi extends runtime.BaseAPI {
|
|
|
187
177
|
/**
|
|
188
178
|
*
|
|
189
179
|
*/
|
|
190
|
-
async
|
|
191
|
-
await this.
|
|
180
|
+
async postPaymentProvider(requestParameters: AccountsApiPostPaymentProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
181
|
+
await this.postPaymentProviderRaw(requestParameters, initOverrides);
|
|
192
182
|
}
|
|
193
183
|
|
|
194
184
|
/**
|
|
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ConflictException,
|
|
19
19
|
RegisterAccountInput,
|
|
20
|
-
ThrottlerException,
|
|
21
20
|
ValidationException,
|
|
22
21
|
} from '../models/index';
|
|
23
22
|
import {
|
|
@@ -25,8 +24,6 @@ import {
|
|
|
25
24
|
ConflictExceptionToJSON,
|
|
26
25
|
RegisterAccountInputFromJSON,
|
|
27
26
|
RegisterAccountInputToJSON,
|
|
28
|
-
ThrottlerExceptionFromJSON,
|
|
29
|
-
ThrottlerExceptionToJSON,
|
|
30
27
|
ValidationExceptionFromJSON,
|
|
31
28
|
ValidationExceptionToJSON,
|
|
32
29
|
} from '../models/index';
|
package/src/apis/AdminApi.ts
CHANGED
|
@@ -22,7 +22,6 @@ import type {
|
|
|
22
22
|
GetAllOrders200Response,
|
|
23
23
|
ListAccounts200Response,
|
|
24
24
|
NotFoundException,
|
|
25
|
-
ThrottlerException,
|
|
26
25
|
ValidationException,
|
|
27
26
|
} from '../models/index';
|
|
28
27
|
import {
|
|
@@ -40,8 +39,6 @@ import {
|
|
|
40
39
|
ListAccounts200ResponseToJSON,
|
|
41
40
|
NotFoundExceptionFromJSON,
|
|
42
41
|
NotFoundExceptionToJSON,
|
|
43
|
-
ThrottlerExceptionFromJSON,
|
|
44
|
-
ThrottlerExceptionToJSON,
|
|
45
42
|
ValidationExceptionFromJSON,
|
|
46
43
|
ValidationExceptionToJSON,
|
|
47
44
|
} from '../models/index';
|
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -29,7 +29,6 @@ import type {
|
|
|
29
29
|
PutBuyerLeadOfferInput,
|
|
30
30
|
SetDomainTransferConfirmationInput,
|
|
31
31
|
StoreBuyerLocaleInput,
|
|
32
|
-
ThrottlerException,
|
|
33
32
|
ValidationException,
|
|
34
33
|
} from '../models/index';
|
|
35
34
|
import {
|
|
@@ -61,8 +60,6 @@ import {
|
|
|
61
60
|
SetDomainTransferConfirmationInputToJSON,
|
|
62
61
|
StoreBuyerLocaleInputFromJSON,
|
|
63
62
|
StoreBuyerLocaleInputToJSON,
|
|
64
|
-
ThrottlerExceptionFromJSON,
|
|
65
|
-
ThrottlerExceptionToJSON,
|
|
66
63
|
ValidationExceptionFromJSON,
|
|
67
64
|
ValidationExceptionToJSON,
|
|
68
65
|
} from '../models/index';
|
|
@@ -18,7 +18,6 @@ import type {
|
|
|
18
18
|
LoginDto,
|
|
19
19
|
LoginInput,
|
|
20
20
|
RequestAccessTokenInput,
|
|
21
|
-
ThrottlerException,
|
|
22
21
|
ValidationException,
|
|
23
22
|
} from '../models/index';
|
|
24
23
|
import {
|
|
@@ -28,8 +27,6 @@ import {
|
|
|
28
27
|
LoginInputToJSON,
|
|
29
28
|
RequestAccessTokenInputFromJSON,
|
|
30
29
|
RequestAccessTokenInputToJSON,
|
|
31
|
-
ThrottlerExceptionFromJSON,
|
|
32
|
-
ThrottlerExceptionToJSON,
|
|
33
30
|
ValidationExceptionFromJSON,
|
|
34
31
|
ValidationExceptionToJSON,
|
|
35
32
|
} from '../models/index';
|
package/src/apis/DashboardApi.ts
CHANGED
|
@@ -16,14 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
DashboardStatsDto,
|
|
19
|
-
ThrottlerException,
|
|
20
19
|
ValidationException,
|
|
21
20
|
} from '../models/index';
|
|
22
21
|
import {
|
|
23
22
|
DashboardStatsDtoFromJSON,
|
|
24
23
|
DashboardStatsDtoToJSON,
|
|
25
|
-
ThrottlerExceptionFromJSON,
|
|
26
|
-
ThrottlerExceptionToJSON,
|
|
27
24
|
ValidationExceptionFromJSON,
|
|
28
25
|
ValidationExceptionToJSON,
|
|
29
26
|
} from '../models/index';
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -23,7 +23,6 @@ import type {
|
|
|
23
23
|
List200Response,
|
|
24
24
|
NotFoundException,
|
|
25
25
|
SellerDomainTransferDto,
|
|
26
|
-
ThrottlerException,
|
|
27
26
|
UpdateDomainInput,
|
|
28
27
|
UpdateDomainTransferAuthCodeInput,
|
|
29
28
|
ValidationException,
|
|
@@ -45,8 +44,6 @@ import {
|
|
|
45
44
|
NotFoundExceptionToJSON,
|
|
46
45
|
SellerDomainTransferDtoFromJSON,
|
|
47
46
|
SellerDomainTransferDtoToJSON,
|
|
48
|
-
ThrottlerExceptionFromJSON,
|
|
49
|
-
ThrottlerExceptionToJSON,
|
|
50
47
|
UpdateDomainInputFromJSON,
|
|
51
48
|
UpdateDomainInputToJSON,
|
|
52
49
|
UpdateDomainTransferAuthCodeInputFromJSON,
|
|
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
IntersectionDomainSalesInformationDtoWithDomainStatsDto,
|
|
19
19
|
NotFoundException,
|
|
20
|
-
ThrottlerException,
|
|
21
20
|
ValidationException,
|
|
22
21
|
} from '../models/index';
|
|
23
22
|
import {
|
|
@@ -25,8 +24,6 @@ import {
|
|
|
25
24
|
IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON,
|
|
26
25
|
NotFoundExceptionFromJSON,
|
|
27
26
|
NotFoundExceptionToJSON,
|
|
28
|
-
ThrottlerExceptionFromJSON,
|
|
29
|
-
ThrottlerExceptionToJSON,
|
|
30
27
|
ValidationExceptionFromJSON,
|
|
31
28
|
ValidationExceptionToJSON,
|
|
32
29
|
} from '../models/index';
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -23,7 +23,6 @@ import type {
|
|
|
23
23
|
ListLeadMessagesDto,
|
|
24
24
|
ObjectId,
|
|
25
25
|
PutLeadOfferInput,
|
|
26
|
-
ThrottlerException,
|
|
27
26
|
ValidationException,
|
|
28
27
|
} from '../models/index';
|
|
29
28
|
import {
|
|
@@ -43,8 +42,6 @@ import {
|
|
|
43
42
|
ObjectIdToJSON,
|
|
44
43
|
PutLeadOfferInputFromJSON,
|
|
45
44
|
PutLeadOfferInputToJSON,
|
|
46
|
-
ThrottlerExceptionFromJSON,
|
|
47
|
-
ThrottlerExceptionToJSON,
|
|
48
45
|
ValidationExceptionFromJSON,
|
|
49
46
|
ValidationExceptionToJSON,
|
|
50
47
|
} from '../models/index';
|
|
@@ -21,7 +21,6 @@ import type {
|
|
|
21
21
|
NotFoundException,
|
|
22
22
|
ObjectId,
|
|
23
23
|
PublicLeadDto,
|
|
24
|
-
ThrottlerException,
|
|
25
24
|
UpdateLeadInput,
|
|
26
25
|
ValidationException,
|
|
27
26
|
VerifyLeadInput,
|
|
@@ -39,8 +38,6 @@ import {
|
|
|
39
38
|
ObjectIdToJSON,
|
|
40
39
|
PublicLeadDtoFromJSON,
|
|
41
40
|
PublicLeadDtoToJSON,
|
|
42
|
-
ThrottlerExceptionFromJSON,
|
|
43
|
-
ThrottlerExceptionToJSON,
|
|
44
41
|
UpdateLeadInputFromJSON,
|
|
45
42
|
UpdateLeadInputToJSON,
|
|
46
43
|
ValidationExceptionFromJSON,
|
|
@@ -19,8 +19,8 @@ import type {
|
|
|
19
19
|
CreateOrderInput,
|
|
20
20
|
NotFoundException,
|
|
21
21
|
ObjectId,
|
|
22
|
+
OrderCheckoutSessionDto,
|
|
22
23
|
OrderDto,
|
|
23
|
-
ThrottlerException,
|
|
24
24
|
UpdateOrderInput,
|
|
25
25
|
ValidationException,
|
|
26
26
|
} from '../models/index';
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
NotFoundExceptionToJSON,
|
|
34
34
|
ObjectIdFromJSON,
|
|
35
35
|
ObjectIdToJSON,
|
|
36
|
+
OrderCheckoutSessionDtoFromJSON,
|
|
37
|
+
OrderCheckoutSessionDtoToJSON,
|
|
36
38
|
OrderDtoFromJSON,
|
|
37
39
|
OrderDtoToJSON,
|
|
38
|
-
ThrottlerExceptionFromJSON,
|
|
39
|
-
ThrottlerExceptionToJSON,
|
|
40
40
|
UpdateOrderInputFromJSON,
|
|
41
41
|
UpdateOrderInputToJSON,
|
|
42
42
|
ValidationExceptionFromJSON,
|
|
@@ -51,6 +51,10 @@ export interface OrdersPublicApiGetOrderRequest {
|
|
|
51
51
|
orderId: string;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export interface OrdersPublicApiGetOrderCheckoutSessionRequest {
|
|
55
|
+
orderId: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
54
58
|
export interface OrdersPublicApiUpdateOrderRequest {
|
|
55
59
|
orderId: string;
|
|
56
60
|
updateOrderInput: UpdateOrderInput;
|
|
@@ -130,6 +134,39 @@ export class OrdersPublicApi extends runtime.BaseAPI {
|
|
|
130
134
|
return await response.value();
|
|
131
135
|
}
|
|
132
136
|
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
*/
|
|
140
|
+
async getOrderCheckoutSessionRaw(requestParameters: OrdersPublicApiGetOrderCheckoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderCheckoutSessionDto>> {
|
|
141
|
+
if (requestParameters['orderId'] == null) {
|
|
142
|
+
throw new runtime.RequiredError(
|
|
143
|
+
'orderId',
|
|
144
|
+
'Required parameter "orderId" was null or undefined when calling getOrderCheckoutSession().'
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const queryParameters: any = {};
|
|
149
|
+
|
|
150
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
|
+
|
|
152
|
+
const response = await this.request({
|
|
153
|
+
path: `/orders/{orderId}/checkout-session`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
|
|
154
|
+
method: 'GET',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
}, initOverrides);
|
|
158
|
+
|
|
159
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrderCheckoutSessionDtoFromJSON(jsonValue));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
165
|
+
async getOrderCheckoutSession(requestParameters: OrdersPublicApiGetOrderCheckoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderCheckoutSessionDto> {
|
|
166
|
+
const response = await this.getOrderCheckoutSessionRaw(requestParameters, initOverrides);
|
|
167
|
+
return await response.value();
|
|
168
|
+
}
|
|
169
|
+
|
|
133
170
|
/**
|
|
134
171
|
*
|
|
135
172
|
*/
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ValidationException,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
ValidationExceptionFromJSON,
|
|
22
|
+
ValidationExceptionToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
export interface StripePublicApiPostStripeWebhookRequest {
|
|
26
|
+
stripeSignature: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export class StripePublicApi extends runtime.BaseAPI {
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
async postStripeWebhookRaw(requestParameters: StripePublicApiPostStripeWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
38
|
+
if (requestParameters['stripeSignature'] == null) {
|
|
39
|
+
throw new runtime.RequiredError(
|
|
40
|
+
'stripeSignature',
|
|
41
|
+
'Required parameter "stripeSignature" was null or undefined when calling postStripeWebhook().'
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const queryParameters: any = {};
|
|
46
|
+
|
|
47
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
48
|
+
|
|
49
|
+
if (requestParameters['stripeSignature'] != null) {
|
|
50
|
+
headerParameters['stripe-signature'] = String(requestParameters['stripeSignature']);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const response = await this.request({
|
|
54
|
+
path: `/stripe/webhook`,
|
|
55
|
+
method: 'POST',
|
|
56
|
+
headers: headerParameters,
|
|
57
|
+
query: queryParameters,
|
|
58
|
+
}, initOverrides);
|
|
59
|
+
|
|
60
|
+
return new runtime.VoidApiResponse(response);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
async postStripeWebhook(requestParameters: StripePublicApiPostStripeWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
67
|
+
await this.postStripeWebhookRaw(requestParameters, initOverrides);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
}
|
package/src/apis/UsersApi.ts
CHANGED
|
@@ -16,14 +16,11 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
StoreUserLocaleInput,
|
|
19
|
-
ThrottlerException,
|
|
20
19
|
ValidationException,
|
|
21
20
|
} from '../models/index';
|
|
22
21
|
import {
|
|
23
22
|
StoreUserLocaleInputFromJSON,
|
|
24
23
|
StoreUserLocaleInputToJSON,
|
|
25
|
-
ThrottlerExceptionFromJSON,
|
|
26
|
-
ThrottlerExceptionToJSON,
|
|
27
24
|
ValidationExceptionFromJSON,
|
|
28
25
|
ValidationExceptionToJSON,
|
|
29
26
|
} from '../models/index';
|
|
@@ -20,7 +20,6 @@ import type {
|
|
|
20
20
|
LoginInput,
|
|
21
21
|
NotFoundException,
|
|
22
22
|
SetNewPasswordInput,
|
|
23
|
-
ThrottlerException,
|
|
24
23
|
UserPasswordResetDto,
|
|
25
24
|
ValidationException,
|
|
26
25
|
} from '../models/index';
|
|
@@ -35,8 +34,6 @@ import {
|
|
|
35
34
|
NotFoundExceptionToJSON,
|
|
36
35
|
SetNewPasswordInputFromJSON,
|
|
37
36
|
SetNewPasswordInputToJSON,
|
|
38
|
-
ThrottlerExceptionFromJSON,
|
|
39
|
-
ThrottlerExceptionToJSON,
|
|
40
37
|
UserPasswordResetDtoFromJSON,
|
|
41
38
|
UserPasswordResetDtoToJSON,
|
|
42
39
|
ValidationExceptionFromJSON,
|
package/src/apis/index.ts
CHANGED
package/src/models/AccountDto.ts
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PaymentProviderDto } from './PaymentProviderDto';
|
|
17
|
+
import {
|
|
18
|
+
PaymentProviderDtoFromJSON,
|
|
19
|
+
PaymentProviderDtoFromJSONTyped,
|
|
20
|
+
PaymentProviderDtoToJSON,
|
|
21
|
+
} from './PaymentProviderDto';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -49,6 +56,12 @@ export interface AccountDto {
|
|
|
49
56
|
* @memberof AccountDto
|
|
50
57
|
*/
|
|
51
58
|
activeLeadsNumber: number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {PaymentProviderDto}
|
|
62
|
+
* @memberof AccountDto
|
|
63
|
+
*/
|
|
64
|
+
paymentProvider: PaymentProviderDto | null;
|
|
52
65
|
}
|
|
53
66
|
|
|
54
67
|
/**
|
|
@@ -60,6 +73,7 @@ export function instanceOfAccountDto(value: object): value is AccountDto {
|
|
|
60
73
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
61
74
|
if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined) return false;
|
|
62
75
|
if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined) return false;
|
|
76
|
+
if (!('paymentProvider' in value) || value['paymentProvider'] === undefined) return false;
|
|
63
77
|
return true;
|
|
64
78
|
}
|
|
65
79
|
|
|
@@ -78,6 +92,7 @@ export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
78
92
|
'name': json['name'],
|
|
79
93
|
'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
|
|
80
94
|
'activeLeadsNumber': json['activeLeadsNumber'],
|
|
95
|
+
'paymentProvider': PaymentProviderDtoFromJSON(json['paymentProvider']),
|
|
81
96
|
};
|
|
82
97
|
}
|
|
83
98
|
|
|
@@ -92,6 +107,7 @@ export function AccountDtoToJSON(value?: AccountDto | null): any {
|
|
|
92
107
|
'name': value['name'],
|
|
93
108
|
'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
|
|
94
109
|
'activeLeadsNumber': value['activeLeadsNumber'],
|
|
110
|
+
'paymentProvider': PaymentProviderDtoToJSON(value['paymentProvider']),
|
|
95
111
|
};
|
|
96
112
|
}
|
|
97
113
|
|