@randock/nameshift-api-client 0.0.91 → 0.0.93
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 +5 -6
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +10 -11
- package/dist/apis/AccountsApi.js +27 -30
- 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/BuyerLeadListItemDto.d.ts +6 -0
- package/dist/models/BuyerLeadListItemDto.js +4 -0
- package/dist/models/CreateAccountPaymentProviderInput.d.ts +31 -0
- package/dist/models/CreateAccountPaymentProviderInput.js +46 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +69 -0
- package/dist/models/{IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js → IntersectionAccountDtoWithSettingsDto.js} +14 -19
- package/dist/models/PaymentProviderDto.d.ts +45 -0
- package/dist/models/PaymentProviderDto.js +58 -0
- package/dist/models/index.d.ts +4 -6
- package/dist/models/index.js +4 -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 +0 -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/BuyerLeadListItemDto.ts +9 -0
- package/src/models/CreateAccountPaymentProviderInput.ts +61 -0
- package/src/models/IntersectionAccountDtoWithSettingsDto.ts +128 -0
- package/src/models/PaymentProviderDto.ts +81 -0
- package/src/models/index.ts +4 -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/.openapi-generator/FILES
CHANGED
|
@@ -14,14 +14,13 @@ src/apis/DomainsPublicApi.ts
|
|
|
14
14
|
src/apis/LeadsApi.ts
|
|
15
15
|
src/apis/LeadsPublicApi.ts
|
|
16
16
|
src/apis/OrdersPublicApi.ts
|
|
17
|
+
src/apis/StripePublicApi.ts
|
|
17
18
|
src/apis/UsersApi.ts
|
|
18
19
|
src/apis/UsersPublicApi.ts
|
|
19
20
|
src/apis/index.ts
|
|
20
21
|
src/index.ts
|
|
21
|
-
src/models/AccountAddressDto.ts
|
|
22
|
-
src/models/AccountAddressInput.ts
|
|
23
22
|
src/models/AccountDto.ts
|
|
24
|
-
src/models/
|
|
23
|
+
src/models/AccountPaymentProviderSessionDto.ts
|
|
25
24
|
src/models/AccountSettingsInput.ts
|
|
26
25
|
src/models/AdminGetAllDomainTransfers200Response.ts
|
|
27
26
|
src/models/BadRequestException.ts
|
|
@@ -37,6 +36,7 @@ src/models/BuyerUserDto.ts
|
|
|
37
36
|
src/models/ChangeOrderStatusInput.ts
|
|
38
37
|
src/models/ChartDataPoint.ts
|
|
39
38
|
src/models/ConflictException.ts
|
|
39
|
+
src/models/CreateAccountPaymentProviderInput.ts
|
|
40
40
|
src/models/CreateBuyerLeadMessageInput.ts
|
|
41
41
|
src/models/CreateLeadInput.ts
|
|
42
42
|
src/models/CreateLeadMessageInput.ts
|
|
@@ -66,7 +66,7 @@ src/models/GetAllOrders200Response.ts
|
|
|
66
66
|
src/models/GetBuyerLeads200Response.ts
|
|
67
67
|
src/models/GetBuyerTransfers200Response.ts
|
|
68
68
|
src/models/HttpException.ts
|
|
69
|
-
src/models/
|
|
69
|
+
src/models/IntersectionAccountDtoWithSettingsDto.ts
|
|
70
70
|
src/models/IntersectionDomainDtoWithAccountDto.ts
|
|
71
71
|
src/models/IntersectionDomainDtoWithDomainUrlDto.ts
|
|
72
72
|
src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
|
|
@@ -96,6 +96,7 @@ src/models/OrderListItemDtoSellerAccount.ts
|
|
|
96
96
|
src/models/PaginateResponse.ts
|
|
97
97
|
src/models/PaginateResponseLinks.ts
|
|
98
98
|
src/models/PaginateResponseMeta.ts
|
|
99
|
+
src/models/PaymentProviderDto.ts
|
|
99
100
|
src/models/PublicLeadBuyerDto.ts
|
|
100
101
|
src/models/PublicLeadDto.ts
|
|
101
102
|
src/models/PutBuyerLeadOfferInput.ts
|
|
@@ -113,7 +114,6 @@ src/models/SetDomainTransferConfirmationInput.ts
|
|
|
113
114
|
src/models/SetNewPasswordInput.ts
|
|
114
115
|
src/models/StoreBuyerLocaleInput.ts
|
|
115
116
|
src/models/StoreUserLocaleInput.ts
|
|
116
|
-
src/models/ThrottlerException.ts
|
|
117
117
|
src/models/UpdateDomainInput.ts
|
|
118
118
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
119
119
|
src/models/UpdateLeadInput.ts
|
|
@@ -122,7 +122,6 @@ src/models/UserPasswordResetDto.ts
|
|
|
122
122
|
src/models/ValidationError.ts
|
|
123
123
|
src/models/ValidationException.ts
|
|
124
124
|
src/models/VerifyLeadInput.ts
|
|
125
|
-
src/models/WithFinancialDtoInner.ts
|
|
126
125
|
src/models/WithSettingsInner.ts
|
|
127
126
|
src/models/index.ts
|
|
128
127
|
src/runtime.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.93
|
|
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.93 --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
|
+
80f1cabc7c2f89da187d5eb902c7da294aa45eb3c0db9858df34128d88dca9a887d2d94b7b09c0901e58cc856c6d03f7
|
|
@@ -10,14 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface
|
|
13
|
+
import type { AccountPaymentProviderSessionDto, AccountSettingsInput, CreateAccountPaymentProviderInput, IntersectionAccountDtoWithSettingsDto } from '../models/index';
|
|
14
|
+
export interface AccountsApiGetAccountPaymentProviderSessionRequest {
|
|
15
15
|
accountId: string;
|
|
16
|
-
accountAddressInput: AccountAddressInput;
|
|
17
16
|
}
|
|
18
|
-
export interface
|
|
17
|
+
export interface AccountsApiPostPaymentProviderRequest {
|
|
19
18
|
accountId: string;
|
|
20
|
-
|
|
19
|
+
createAccountPaymentProviderInput: CreateAccountPaymentProviderInput;
|
|
21
20
|
}
|
|
22
21
|
export interface AccountsApiUpdateSettingsRequest {
|
|
23
22
|
accountId: string;
|
|
@@ -30,27 +29,27 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
30
29
|
/**
|
|
31
30
|
*
|
|
32
31
|
*/
|
|
33
|
-
|
|
32
|
+
getAccountPaymentProviderSessionRaw(requestParameters: AccountsApiGetAccountPaymentProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountPaymentProviderSessionDto>>;
|
|
34
33
|
/**
|
|
35
34
|
*
|
|
36
35
|
*/
|
|
37
|
-
|
|
36
|
+
getAccountPaymentProviderSession(requestParameters: AccountsApiGetAccountPaymentProviderSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPaymentProviderSessionDto>;
|
|
38
37
|
/**
|
|
39
38
|
*
|
|
40
39
|
*/
|
|
41
|
-
|
|
40
|
+
meRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionAccountDtoWithSettingsDto>>;
|
|
42
41
|
/**
|
|
43
42
|
*
|
|
44
43
|
*/
|
|
45
|
-
|
|
44
|
+
me(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDto>;
|
|
46
45
|
/**
|
|
47
46
|
*
|
|
48
47
|
*/
|
|
49
|
-
|
|
48
|
+
postPaymentProviderRaw(requestParameters: AccountsApiPostPaymentProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
50
49
|
/**
|
|
51
50
|
*
|
|
52
51
|
*/
|
|
53
|
-
|
|
52
|
+
postPaymentProvider(requestParameters: AccountsApiPostPaymentProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
54
53
|
/**
|
|
55
54
|
*
|
|
56
55
|
*/
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -78,12 +78,15 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
*/
|
|
81
|
-
AccountsApi.prototype.
|
|
81
|
+
AccountsApi.prototype.getAccountPaymentProviderSessionRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
83
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
switch (_a.label) {
|
|
86
86
|
case 0:
|
|
87
|
+
if (requestParameters['accountId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAccountPaymentProviderSession().');
|
|
89
|
+
}
|
|
87
90
|
queryParameters = {};
|
|
88
91
|
headerParameters = {};
|
|
89
92
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
@@ -96,14 +99,14 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
96
99
|
}
|
|
97
100
|
_a.label = 2;
|
|
98
101
|
case 2: return [4 /*yield*/, this.request({
|
|
99
|
-
path: "/private/accounts/
|
|
102
|
+
path: "/private/accounts/{accountId}/payment-provider/session".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
100
103
|
method: 'GET',
|
|
101
104
|
headers: headerParameters,
|
|
102
105
|
query: queryParameters,
|
|
103
106
|
}, initOverrides)];
|
|
104
107
|
case 3:
|
|
105
108
|
response = _a.sent();
|
|
106
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
109
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AccountPaymentProviderSessionDtoFromJSON)(jsonValue); })];
|
|
107
110
|
}
|
|
108
111
|
});
|
|
109
112
|
});
|
|
@@ -111,12 +114,12 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
111
114
|
/**
|
|
112
115
|
*
|
|
113
116
|
*/
|
|
114
|
-
AccountsApi.prototype.
|
|
117
|
+
AccountsApi.prototype.getAccountPaymentProviderSession = function (requestParameters, initOverrides) {
|
|
115
118
|
return __awaiter(this, void 0, void 0, function () {
|
|
116
119
|
var response;
|
|
117
120
|
return __generator(this, function (_a) {
|
|
118
121
|
switch (_a.label) {
|
|
119
|
-
case 0: return [4 /*yield*/, this.
|
|
122
|
+
case 0: return [4 /*yield*/, this.getAccountPaymentProviderSessionRaw(requestParameters, initOverrides)];
|
|
120
123
|
case 1:
|
|
121
124
|
response = _a.sent();
|
|
122
125
|
return [4 /*yield*/, response.value()];
|
|
@@ -128,21 +131,14 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
128
131
|
/**
|
|
129
132
|
*
|
|
130
133
|
*/
|
|
131
|
-
AccountsApi.prototype.
|
|
134
|
+
AccountsApi.prototype.meRaw = function (initOverrides) {
|
|
132
135
|
return __awaiter(this, void 0, void 0, function () {
|
|
133
136
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
134
137
|
return __generator(this, function (_a) {
|
|
135
138
|
switch (_a.label) {
|
|
136
139
|
case 0:
|
|
137
|
-
if (requestParameters['accountId'] == null) {
|
|
138
|
-
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling updateAddress().');
|
|
139
|
-
}
|
|
140
|
-
if (requestParameters['accountAddressInput'] == null) {
|
|
141
|
-
throw new runtime.RequiredError('accountAddressInput', 'Required parameter "accountAddressInput" was null or undefined when calling updateAddress().');
|
|
142
|
-
}
|
|
143
140
|
queryParameters = {};
|
|
144
141
|
headerParameters = {};
|
|
145
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
146
142
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
147
143
|
token = this.configuration.accessToken;
|
|
148
144
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -153,15 +149,14 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
153
149
|
}
|
|
154
150
|
_a.label = 2;
|
|
155
151
|
case 2: return [4 /*yield*/, this.request({
|
|
156
|
-
path: "/private/accounts/
|
|
157
|
-
method: '
|
|
152
|
+
path: "/private/accounts/me",
|
|
153
|
+
method: 'GET',
|
|
158
154
|
headers: headerParameters,
|
|
159
155
|
query: queryParameters,
|
|
160
|
-
body: (0, index_1.AccountAddressInputToJSON)(requestParameters['accountAddressInput']),
|
|
161
156
|
}, initOverrides)];
|
|
162
157
|
case 3:
|
|
163
158
|
response = _a.sent();
|
|
164
|
-
return [2 /*return*/, new runtime.
|
|
159
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionAccountDtoWithSettingsDtoFromJSON)(jsonValue); })];
|
|
165
160
|
}
|
|
166
161
|
});
|
|
167
162
|
});
|
|
@@ -169,14 +164,16 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
169
164
|
/**
|
|
170
165
|
*
|
|
171
166
|
*/
|
|
172
|
-
AccountsApi.prototype.
|
|
167
|
+
AccountsApi.prototype.me = function (initOverrides) {
|
|
173
168
|
return __awaiter(this, void 0, void 0, function () {
|
|
169
|
+
var response;
|
|
174
170
|
return __generator(this, function (_a) {
|
|
175
171
|
switch (_a.label) {
|
|
176
|
-
case 0: return [4 /*yield*/, this.
|
|
172
|
+
case 0: return [4 /*yield*/, this.meRaw(initOverrides)];
|
|
177
173
|
case 1:
|
|
178
|
-
_a.sent();
|
|
179
|
-
return [
|
|
174
|
+
response = _a.sent();
|
|
175
|
+
return [4 /*yield*/, response.value()];
|
|
176
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
180
177
|
}
|
|
181
178
|
});
|
|
182
179
|
});
|
|
@@ -184,17 +181,17 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
184
181
|
/**
|
|
185
182
|
*
|
|
186
183
|
*/
|
|
187
|
-
AccountsApi.prototype.
|
|
184
|
+
AccountsApi.prototype.postPaymentProviderRaw = function (requestParameters, initOverrides) {
|
|
188
185
|
return __awaiter(this, void 0, void 0, function () {
|
|
189
186
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
190
187
|
return __generator(this, function (_a) {
|
|
191
188
|
switch (_a.label) {
|
|
192
189
|
case 0:
|
|
193
190
|
if (requestParameters['accountId'] == null) {
|
|
194
|
-
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling
|
|
191
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling postPaymentProvider().');
|
|
195
192
|
}
|
|
196
|
-
if (requestParameters['
|
|
197
|
-
throw new runtime.RequiredError('
|
|
193
|
+
if (requestParameters['createAccountPaymentProviderInput'] == null) {
|
|
194
|
+
throw new runtime.RequiredError('createAccountPaymentProviderInput', 'Required parameter "createAccountPaymentProviderInput" was null or undefined when calling postPaymentProvider().');
|
|
198
195
|
}
|
|
199
196
|
queryParameters = {};
|
|
200
197
|
headerParameters = {};
|
|
@@ -209,11 +206,11 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
209
206
|
}
|
|
210
207
|
_a.label = 2;
|
|
211
208
|
case 2: return [4 /*yield*/, this.request({
|
|
212
|
-
path: "/private/accounts/{accountId}/
|
|
213
|
-
method: '
|
|
209
|
+
path: "/private/accounts/{accountId}/payment-provider".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
210
|
+
method: 'POST',
|
|
214
211
|
headers: headerParameters,
|
|
215
212
|
query: queryParameters,
|
|
216
|
-
body: (0, index_1.
|
|
213
|
+
body: (0, index_1.CreateAccountPaymentProviderInputToJSON)(requestParameters['createAccountPaymentProviderInput']),
|
|
217
214
|
}, initOverrides)];
|
|
218
215
|
case 3:
|
|
219
216
|
response = _a.sent();
|
|
@@ -225,11 +222,11 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
225
222
|
/**
|
|
226
223
|
*
|
|
227
224
|
*/
|
|
228
|
-
AccountsApi.prototype.
|
|
225
|
+
AccountsApi.prototype.postPaymentProvider = function (requestParameters, initOverrides) {
|
|
229
226
|
return __awaiter(this, void 0, void 0, function () {
|
|
230
227
|
return __generator(this, function (_a) {
|
|
231
228
|
switch (_a.label) {
|
|
232
|
-
case 0: return [4 /*yield*/, this.
|
|
229
|
+
case 0: return [4 /*yield*/, this.postPaymentProviderRaw(requestParameters, initOverrides)];
|
|
233
230
|
case 1:
|
|
234
231
|
_a.sent();
|
|
235
232
|
return [2 /*return*/];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
export interface StripePublicApiPostStripeWebhookRequest {
|
|
14
|
+
stripeSignature: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare class StripePublicApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
postStripeWebhookRaw(requestParameters: StripePublicApiPostStripeWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
postStripeWebhook(requestParameters: StripePublicApiPostStripeWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.StripePublicApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
var StripePublicApi = /** @class */ (function (_super) {
|
|
73
|
+
__extends(StripePublicApi, _super);
|
|
74
|
+
function StripePublicApi() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
StripePublicApi.prototype.postStripeWebhookRaw = function (requestParameters, initOverrides) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
+
var queryParameters, headerParameters, response;
|
|
83
|
+
return __generator(this, function (_a) {
|
|
84
|
+
switch (_a.label) {
|
|
85
|
+
case 0:
|
|
86
|
+
if (requestParameters['stripeSignature'] == null) {
|
|
87
|
+
throw new runtime.RequiredError('stripeSignature', 'Required parameter "stripeSignature" was null or undefined when calling postStripeWebhook().');
|
|
88
|
+
}
|
|
89
|
+
queryParameters = {};
|
|
90
|
+
headerParameters = {};
|
|
91
|
+
if (requestParameters['stripeSignature'] != null) {
|
|
92
|
+
headerParameters['stripe-signature'] = String(requestParameters['stripeSignature']);
|
|
93
|
+
}
|
|
94
|
+
return [4 /*yield*/, this.request({
|
|
95
|
+
path: "/stripe/webhook",
|
|
96
|
+
method: 'POST',
|
|
97
|
+
headers: headerParameters,
|
|
98
|
+
query: queryParameters,
|
|
99
|
+
}, initOverrides)];
|
|
100
|
+
case 1:
|
|
101
|
+
response = _a.sent();
|
|
102
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
StripePublicApi.prototype.postStripeWebhook = function (requestParameters, initOverrides) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0: return [4 /*yield*/, this.postStripeWebhookRaw(requestParameters, initOverrides)];
|
|
115
|
+
case 1:
|
|
116
|
+
_a.sent();
|
|
117
|
+
return [2 /*return*/];
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
return StripePublicApi;
|
|
123
|
+
}(runtime.BaseAPI));
|
|
124
|
+
exports.StripePublicApi = StripePublicApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -27,5 +27,6 @@ __exportStar(require("./DomainsPublicApi"), exports);
|
|
|
27
27
|
__exportStar(require("./LeadsApi"), exports);
|
|
28
28
|
__exportStar(require("./LeadsPublicApi"), exports);
|
|
29
29
|
__exportStar(require("./OrdersPublicApi"), exports);
|
|
30
|
+
__exportStar(require("./StripePublicApi"), exports);
|
|
30
31
|
__exportStar(require("./UsersApi"), exports);
|
|
31
32
|
__exportStar(require("./UsersPublicApi"), exports);
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { PaymentProviderDto } from './PaymentProviderDto';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -45,6 +46,12 @@ export interface AccountDto {
|
|
|
45
46
|
* @memberof AccountDto
|
|
46
47
|
*/
|
|
47
48
|
activeLeadsNumber: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {PaymentProviderDto}
|
|
52
|
+
* @memberof AccountDto
|
|
53
|
+
*/
|
|
54
|
+
paymentProvider: PaymentProviderDto | null;
|
|
48
55
|
}
|
|
49
56
|
/**
|
|
50
57
|
* Check if a given object implements the AccountDto interface.
|
|
@@ -17,6 +17,7 @@ exports.instanceOfAccountDto = instanceOfAccountDto;
|
|
|
17
17
|
exports.AccountDtoFromJSON = AccountDtoFromJSON;
|
|
18
18
|
exports.AccountDtoFromJSONTyped = AccountDtoFromJSONTyped;
|
|
19
19
|
exports.AccountDtoToJSON = AccountDtoToJSON;
|
|
20
|
+
var PaymentProviderDto_1 = require("./PaymentProviderDto");
|
|
20
21
|
/**
|
|
21
22
|
* Check if a given object implements the AccountDto interface.
|
|
22
23
|
*/
|
|
@@ -31,6 +32,8 @@ function instanceOfAccountDto(value) {
|
|
|
31
32
|
return false;
|
|
32
33
|
if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined)
|
|
33
34
|
return false;
|
|
35
|
+
if (!('paymentProvider' in value) || value['paymentProvider'] === undefined)
|
|
36
|
+
return false;
|
|
34
37
|
return true;
|
|
35
38
|
}
|
|
36
39
|
function AccountDtoFromJSON(json) {
|
|
@@ -46,6 +49,7 @@ function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
49
|
'name': json['name'],
|
|
47
50
|
'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
|
|
48
51
|
'activeLeadsNumber': json['activeLeadsNumber'],
|
|
52
|
+
'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoFromJSON)(json['paymentProvider']),
|
|
49
53
|
};
|
|
50
54
|
}
|
|
51
55
|
function AccountDtoToJSON(value) {
|
|
@@ -58,5 +62,6 @@ function AccountDtoToJSON(value) {
|
|
|
58
62
|
'name': value['name'],
|
|
59
63
|
'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
|
|
60
64
|
'activeLeadsNumber': value['activeLeadsNumber'],
|
|
65
|
+
'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoToJSON)(value['paymentProvider']),
|
|
61
66
|
};
|
|
62
67
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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 AccountPaymentProviderSessionDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountPaymentProviderSessionDto {
|
|
18
|
+
/**
|
|
19
|
+
* Account payment provider session token
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountPaymentProviderSessionDto
|
|
22
|
+
*/
|
|
23
|
+
accessToken: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AccountPaymentProviderSessionDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAccountPaymentProviderSessionDto(value: object): value is AccountPaymentProviderSessionDto;
|
|
29
|
+
export declare function AccountPaymentProviderSessionDtoFromJSON(json: any): AccountPaymentProviderSessionDto;
|
|
30
|
+
export declare function AccountPaymentProviderSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountPaymentProviderSessionDto;
|
|
31
|
+
export declare function AccountPaymentProviderSessionDtoToJSON(value?: AccountPaymentProviderSessionDto | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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.instanceOfAccountPaymentProviderSessionDto = instanceOfAccountPaymentProviderSessionDto;
|
|
17
|
+
exports.AccountPaymentProviderSessionDtoFromJSON = AccountPaymentProviderSessionDtoFromJSON;
|
|
18
|
+
exports.AccountPaymentProviderSessionDtoFromJSONTyped = AccountPaymentProviderSessionDtoFromJSONTyped;
|
|
19
|
+
exports.AccountPaymentProviderSessionDtoToJSON = AccountPaymentProviderSessionDtoToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the AccountPaymentProviderSessionDto interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfAccountPaymentProviderSessionDto(value) {
|
|
24
|
+
if (!('accessToken' in value) || value['accessToken'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function AccountPaymentProviderSessionDtoFromJSON(json) {
|
|
29
|
+
return AccountPaymentProviderSessionDtoFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function AccountPaymentProviderSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'accessToken': json['accessToken'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AccountPaymentProviderSessionDtoToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'accessToken': value['accessToken'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -53,6 +53,12 @@ export interface BuyerLeadListItemDto {
|
|
|
53
53
|
* @memberof BuyerLeadListItemDto
|
|
54
54
|
*/
|
|
55
55
|
domain: BuyerLeadListItemDomainDto;
|
|
56
|
+
/**
|
|
57
|
+
* Buyer unread messages number *
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof BuyerLeadListItemDto
|
|
60
|
+
*/
|
|
61
|
+
unreadMessages: number;
|
|
56
62
|
}
|
|
57
63
|
/**
|
|
58
64
|
* @export
|
|
@@ -55,6 +55,8 @@ function instanceOfBuyerLeadListItemDto(value) {
|
|
|
55
55
|
return false;
|
|
56
56
|
if (!('domain' in value) || value['domain'] === undefined)
|
|
57
57
|
return false;
|
|
58
|
+
if (!('unreadMessages' in value) || value['unreadMessages'] === undefined)
|
|
59
|
+
return false;
|
|
58
60
|
return true;
|
|
59
61
|
}
|
|
60
62
|
function BuyerLeadListItemDtoFromJSON(json) {
|
|
@@ -71,6 +73,7 @@ function BuyerLeadListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
73
|
'lastOfferBy': json['lastOfferBy'],
|
|
72
74
|
'createdAt': (new Date(json['createdAt'])),
|
|
73
75
|
'domain': (0, BuyerLeadListItemDomainDto_1.BuyerLeadListItemDomainDtoFromJSON)(json['domain']),
|
|
76
|
+
'unreadMessages': json['unreadMessages'],
|
|
74
77
|
};
|
|
75
78
|
}
|
|
76
79
|
function BuyerLeadListItemDtoToJSON(value) {
|
|
@@ -84,5 +87,6 @@ function BuyerLeadListItemDtoToJSON(value) {
|
|
|
84
87
|
'lastOfferBy': value['lastOfferBy'],
|
|
85
88
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
86
89
|
'domain': (0, BuyerLeadListItemDomainDto_1.BuyerLeadListItemDomainDtoToJSON)(value['domain']),
|
|
90
|
+
'unreadMessages': value['unreadMessages'],
|
|
87
91
|
};
|
|
88
92
|
}
|