@randock/nameshift-api-client 0.0.92 → 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/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/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
|
@@ -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.instanceOfCreateAccountPaymentProviderInput = instanceOfCreateAccountPaymentProviderInput;
|
|
17
|
+
exports.CreateAccountPaymentProviderInputFromJSON = CreateAccountPaymentProviderInputFromJSON;
|
|
18
|
+
exports.CreateAccountPaymentProviderInputFromJSONTyped = CreateAccountPaymentProviderInputFromJSONTyped;
|
|
19
|
+
exports.CreateAccountPaymentProviderInputToJSON = CreateAccountPaymentProviderInputToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the CreateAccountPaymentProviderInput interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfCreateAccountPaymentProviderInput(value) {
|
|
24
|
+
if (!('countryIsoCode' in value) || value['countryIsoCode'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function CreateAccountPaymentProviderInputFromJSON(json) {
|
|
29
|
+
return CreateAccountPaymentProviderInputFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function CreateAccountPaymentProviderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'countryIsoCode': json['countryIsoCode'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CreateAccountPaymentProviderInputToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'countryIsoCode': value['countryIsoCode'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 type { PaymentProviderDto } from './PaymentProviderDto';
|
|
13
|
+
import type { WithSettingsInner } from './WithSettingsInner';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface IntersectionAccountDtoWithSettingsDto
|
|
18
|
+
*/
|
|
19
|
+
export interface IntersectionAccountDtoWithSettingsDto {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
30
|
+
*/
|
|
31
|
+
identifier: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
42
|
+
*/
|
|
43
|
+
activeDomainTransfersNumber: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
48
|
+
*/
|
|
49
|
+
activeLeadsNumber: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaymentProviderDto}
|
|
53
|
+
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
54
|
+
*/
|
|
55
|
+
paymentProvider: PaymentProviderDto | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {WithSettingsInner}
|
|
59
|
+
* @memberof IntersectionAccountDtoWithSettingsDto
|
|
60
|
+
*/
|
|
61
|
+
settings: WithSettingsInner;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the IntersectionAccountDtoWithSettingsDto interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfIntersectionAccountDtoWithSettingsDto(value: object): value is IntersectionAccountDtoWithSettingsDto;
|
|
67
|
+
export declare function IntersectionAccountDtoWithSettingsDtoFromJSON(json: any): IntersectionAccountDtoWithSettingsDto;
|
|
68
|
+
export declare function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithSettingsDto;
|
|
69
|
+
export declare function IntersectionAccountDtoWithSettingsDtoToJSON(value?: IntersectionAccountDtoWithSettingsDto | null): any;
|
|
@@ -13,17 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
16
|
+
exports.instanceOfIntersectionAccountDtoWithSettingsDto = instanceOfIntersectionAccountDtoWithSettingsDto;
|
|
17
|
+
exports.IntersectionAccountDtoWithSettingsDtoFromJSON = IntersectionAccountDtoWithSettingsDtoFromJSON;
|
|
18
|
+
exports.IntersectionAccountDtoWithSettingsDtoFromJSONTyped = IntersectionAccountDtoWithSettingsDtoFromJSONTyped;
|
|
19
|
+
exports.IntersectionAccountDtoWithSettingsDtoToJSON = IntersectionAccountDtoWithSettingsDtoToJSON;
|
|
20
|
+
var PaymentProviderDto_1 = require("./PaymentProviderDto");
|
|
20
21
|
var WithSettingsInner_1 = require("./WithSettingsInner");
|
|
21
|
-
var WithFinancialDtoInner_1 = require("./WithFinancialDtoInner");
|
|
22
|
-
var AccountAddressDto_1 = require("./AccountAddressDto");
|
|
23
22
|
/**
|
|
24
|
-
* Check if a given object implements the
|
|
23
|
+
* Check if a given object implements the IntersectionAccountDtoWithSettingsDto interface.
|
|
25
24
|
*/
|
|
26
|
-
function
|
|
25
|
+
function instanceOfIntersectionAccountDtoWithSettingsDto(value) {
|
|
27
26
|
if (!('id' in value) || value['id'] === undefined)
|
|
28
27
|
return false;
|
|
29
28
|
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
@@ -34,18 +33,16 @@ function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddr
|
|
|
34
33
|
return false;
|
|
35
34
|
if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined)
|
|
36
35
|
return false;
|
|
37
|
-
if (!('
|
|
36
|
+
if (!('paymentProvider' in value) || value['paymentProvider'] === undefined)
|
|
38
37
|
return false;
|
|
39
38
|
if (!('settings' in value) || value['settings'] === undefined)
|
|
40
39
|
return false;
|
|
41
|
-
if (!('addresses' in value) || value['addresses'] === undefined)
|
|
42
|
-
return false;
|
|
43
40
|
return true;
|
|
44
41
|
}
|
|
45
|
-
function
|
|
46
|
-
return
|
|
42
|
+
function IntersectionAccountDtoWithSettingsDtoFromJSON(json) {
|
|
43
|
+
return IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json, false);
|
|
47
44
|
}
|
|
48
|
-
function
|
|
45
|
+
function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
46
|
if (json == null) {
|
|
50
47
|
return json;
|
|
51
48
|
}
|
|
@@ -55,12 +52,11 @@ function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFrom
|
|
|
55
52
|
'name': json['name'],
|
|
56
53
|
'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
|
|
57
54
|
'activeLeadsNumber': json['activeLeadsNumber'],
|
|
58
|
-
'
|
|
55
|
+
'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoFromJSON)(json['paymentProvider']),
|
|
59
56
|
'settings': (0, WithSettingsInner_1.WithSettingsInnerFromJSON)(json['settings']),
|
|
60
|
-
'addresses': (json['addresses'].map(AccountAddressDto_1.AccountAddressDtoFromJSON)),
|
|
61
57
|
};
|
|
62
58
|
}
|
|
63
|
-
function
|
|
59
|
+
function IntersectionAccountDtoWithSettingsDtoToJSON(value) {
|
|
64
60
|
if (value == null) {
|
|
65
61
|
return value;
|
|
66
62
|
}
|
|
@@ -70,8 +66,7 @@ function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJS
|
|
|
70
66
|
'name': value['name'],
|
|
71
67
|
'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
|
|
72
68
|
'activeLeadsNumber': value['activeLeadsNumber'],
|
|
73
|
-
'
|
|
69
|
+
'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoToJSON)(value['paymentProvider']),
|
|
74
70
|
'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value['settings']),
|
|
75
|
-
'addresses': (value['addresses'].map(AccountAddressDto_1.AccountAddressDtoToJSON)),
|
|
76
71
|
};
|
|
77
72
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 PaymentProviderDto
|
|
16
|
+
*/
|
|
17
|
+
export interface PaymentProviderDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PaymentProviderDto
|
|
22
|
+
*/
|
|
23
|
+
accountId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PaymentProviderDto
|
|
28
|
+
*/
|
|
29
|
+
status: PaymentProviderDtoStatusEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const PaymentProviderDtoStatusEnum: {
|
|
35
|
+
readonly PENDING: "pending";
|
|
36
|
+
readonly ACTIVE: "active";
|
|
37
|
+
};
|
|
38
|
+
export type PaymentProviderDtoStatusEnum = typeof PaymentProviderDtoStatusEnum[keyof typeof PaymentProviderDtoStatusEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the PaymentProviderDto interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfPaymentProviderDto(value: object): value is PaymentProviderDto;
|
|
43
|
+
export declare function PaymentProviderDtoFromJSON(json: any): PaymentProviderDto;
|
|
44
|
+
export declare function PaymentProviderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentProviderDto;
|
|
45
|
+
export declare function PaymentProviderDtoToJSON(value?: PaymentProviderDto | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.PaymentProviderDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfPaymentProviderDto = instanceOfPaymentProviderDto;
|
|
18
|
+
exports.PaymentProviderDtoFromJSON = PaymentProviderDtoFromJSON;
|
|
19
|
+
exports.PaymentProviderDtoFromJSONTyped = PaymentProviderDtoFromJSONTyped;
|
|
20
|
+
exports.PaymentProviderDtoToJSON = PaymentProviderDtoToJSON;
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
exports.PaymentProviderDtoStatusEnum = {
|
|
25
|
+
PENDING: 'pending',
|
|
26
|
+
ACTIVE: 'active'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the PaymentProviderDto interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfPaymentProviderDto(value) {
|
|
32
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function PaymentProviderDtoFromJSON(json) {
|
|
39
|
+
return PaymentProviderDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PaymentProviderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'accountId': json['accountId'],
|
|
47
|
+
'status': json['status'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function PaymentProviderDtoToJSON(value) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'accountId': value['accountId'],
|
|
56
|
+
'status': value['status'],
|
|
57
|
+
};
|
|
58
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export * from './AccountAddressDto';
|
|
2
|
-
export * from './AccountAddressInput';
|
|
3
1
|
export * from './AccountDto';
|
|
4
|
-
export * from './
|
|
2
|
+
export * from './AccountPaymentProviderSessionDto';
|
|
5
3
|
export * from './AccountSettingsInput';
|
|
6
4
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
7
5
|
export * from './BadRequestException';
|
|
@@ -17,6 +15,7 @@ export * from './BuyerUserDto';
|
|
|
17
15
|
export * from './ChangeOrderStatusInput';
|
|
18
16
|
export * from './ChartDataPoint';
|
|
19
17
|
export * from './ConflictException';
|
|
18
|
+
export * from './CreateAccountPaymentProviderInput';
|
|
20
19
|
export * from './CreateBuyerLeadMessageInput';
|
|
21
20
|
export * from './CreateLeadInput';
|
|
22
21
|
export * from './CreateLeadMessageInput';
|
|
@@ -46,7 +45,7 @@ export * from './GetAllOrders200Response';
|
|
|
46
45
|
export * from './GetBuyerLeads200Response';
|
|
47
46
|
export * from './GetBuyerTransfers200Response';
|
|
48
47
|
export * from './HttpException';
|
|
49
|
-
export * from './
|
|
48
|
+
export * from './IntersectionAccountDtoWithSettingsDto';
|
|
50
49
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
51
50
|
export * from './IntersectionDomainDtoWithDomainUrlDto';
|
|
52
51
|
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
@@ -76,6 +75,7 @@ export * from './OrderListItemDtoSellerAccount';
|
|
|
76
75
|
export * from './PaginateResponse';
|
|
77
76
|
export * from './PaginateResponseLinks';
|
|
78
77
|
export * from './PaginateResponseMeta';
|
|
78
|
+
export * from './PaymentProviderDto';
|
|
79
79
|
export * from './PublicLeadBuyerDto';
|
|
80
80
|
export * from './PublicLeadDto';
|
|
81
81
|
export * from './PutBuyerLeadOfferInput';
|
|
@@ -93,7 +93,6 @@ export * from './SetDomainTransferConfirmationInput';
|
|
|
93
93
|
export * from './SetNewPasswordInput';
|
|
94
94
|
export * from './StoreBuyerLocaleInput';
|
|
95
95
|
export * from './StoreUserLocaleInput';
|
|
96
|
-
export * from './ThrottlerException';
|
|
97
96
|
export * from './UpdateDomainInput';
|
|
98
97
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
99
98
|
export * from './UpdateLeadInput';
|
|
@@ -102,5 +101,4 @@ export * from './UserPasswordResetDto';
|
|
|
102
101
|
export * from './ValidationError';
|
|
103
102
|
export * from './ValidationException';
|
|
104
103
|
export * from './VerifyLeadInput';
|
|
105
|
-
export * from './WithFinancialDtoInner';
|
|
106
104
|
export * from './WithSettingsInner';
|
package/dist/models/index.js
CHANGED
|
@@ -16,10 +16,8 @@ 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);
|
|
24
22
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
25
23
|
__exportStar(require("./BadRequestException"), exports);
|
|
@@ -35,6 +33,7 @@ __exportStar(require("./BuyerUserDto"), exports);
|
|
|
35
33
|
__exportStar(require("./ChangeOrderStatusInput"), exports);
|
|
36
34
|
__exportStar(require("./ChartDataPoint"), exports);
|
|
37
35
|
__exportStar(require("./ConflictException"), exports);
|
|
36
|
+
__exportStar(require("./CreateAccountPaymentProviderInput"), exports);
|
|
38
37
|
__exportStar(require("./CreateBuyerLeadMessageInput"), exports);
|
|
39
38
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
40
39
|
__exportStar(require("./CreateLeadMessageInput"), exports);
|
|
@@ -64,7 +63,7 @@ __exportStar(require("./GetAllOrders200Response"), exports);
|
|
|
64
63
|
__exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
65
64
|
__exportStar(require("./GetBuyerTransfers200Response"), exports);
|
|
66
65
|
__exportStar(require("./HttpException"), exports);
|
|
67
|
-
__exportStar(require("./
|
|
66
|
+
__exportStar(require("./IntersectionAccountDtoWithSettingsDto"), exports);
|
|
68
67
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
69
68
|
__exportStar(require("./IntersectionDomainDtoWithDomainUrlDto"), exports);
|
|
70
69
|
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
@@ -94,6 +93,7 @@ __exportStar(require("./OrderListItemDtoSellerAccount"), exports);
|
|
|
94
93
|
__exportStar(require("./PaginateResponse"), exports);
|
|
95
94
|
__exportStar(require("./PaginateResponseLinks"), exports);
|
|
96
95
|
__exportStar(require("./PaginateResponseMeta"), exports);
|
|
96
|
+
__exportStar(require("./PaymentProviderDto"), exports);
|
|
97
97
|
__exportStar(require("./PublicLeadBuyerDto"), exports);
|
|
98
98
|
__exportStar(require("./PublicLeadDto"), exports);
|
|
99
99
|
__exportStar(require("./PutBuyerLeadOfferInput"), exports);
|
|
@@ -111,7 +111,6 @@ __exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
|
111
111
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
112
112
|
__exportStar(require("./StoreBuyerLocaleInput"), exports);
|
|
113
113
|
__exportStar(require("./StoreUserLocaleInput"), exports);
|
|
114
|
-
__exportStar(require("./ThrottlerException"), exports);
|
|
115
114
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
116
115
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
117
116
|
__exportStar(require("./UpdateLeadInput"), exports);
|
|
@@ -120,5 +119,4 @@ __exportStar(require("./UserPasswordResetDto"), exports);
|
|
|
120
119
|
__exportStar(require("./ValidationError"), exports);
|
|
121
120
|
__exportStar(require("./ValidationException"), exports);
|
|
122
121
|
__exportStar(require("./VerifyLeadInput"), exports);
|
|
123
|
-
__exportStar(require("./WithFinancialDtoInner"), exports);
|
|
124
122
|
__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';
|