@randock/nameshift-api-client 0.0.354 → 0.0.355
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 +6 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +75 -1
- package/dist/apis/AccountsApi.js +300 -1
- package/dist/models/AccountPaymentDto.d.ts +100 -0
- package/dist/models/AccountPaymentDto.js +101 -0
- package/dist/models/AccountPaymentMethodDto.d.ts +80 -0
- package/dist/models/AccountPaymentMethodDto.js +83 -0
- package/dist/models/AccountPaymentMethodProfileDto.d.ts +71 -0
- package/dist/models/AccountPaymentMethodProfileDto.js +80 -0
- package/dist/models/AuctionConfigurationDto.d.ts +7 -0
- package/dist/models/AuctionConfigurationDto.js +5 -0
- package/dist/models/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- package/dist/models/CreateAccountPaymentInput.d.ts +51 -0
- package/dist/models/CreateAccountPaymentInput.js +62 -0
- package/dist/models/CreateAccountPaymentManualTransactionInput.d.ts +58 -0
- package/dist/models/CreateAccountPaymentManualTransactionInput.js +65 -0
- package/dist/models/DomainAuctionDto.d.ts +6 -0
- package/dist/models/DomainAuctionDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +4 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +6 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +4 -0
- package/dist/models/PayAccountPaymentInput.d.ts +32 -0
- package/dist/models/PayAccountPaymentInput.js +51 -0
- package/dist/models/StartAuctionInput.d.ts +6 -13
- package/dist/models/StartAuctionInput.js +2 -5
- package/dist/models/UpdateAuctionConfigurationDto.d.ts +7 -0
- package/dist/models/UpdateAuctionConfigurationDto.js +3 -0
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +319 -0
- package/src/models/AccountPaymentDto.ts +189 -0
- package/src/models/AccountPaymentMethodDto.ts +138 -0
- package/src/models/AccountPaymentMethodProfileDto.ts +130 -0
- package/src/models/AuctionConfigurationDto.ts +16 -0
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/CreateAccountPaymentInput.ts +92 -0
- package/src/models/CreateAccountPaymentManualTransactionInput.ts +101 -0
- package/src/models/DomainAuctionDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +9 -0
- package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +9 -0
- package/src/models/PayAccountPaymentInput.ts +66 -0
- package/src/models/StartAuctionInput.ts +8 -24
- package/src/models/UpdateAuctionConfigurationDto.ts +15 -0
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,138 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AccountPaymentMethodDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountPaymentMethodDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AccountPaymentMethodDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AccountPaymentMethodDto
|
|
32
|
+
*/
|
|
33
|
+
gatewayId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof AccountPaymentMethodDto
|
|
38
|
+
*/
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof AccountPaymentMethodDto
|
|
44
|
+
*/
|
|
45
|
+
updatedAt: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AccountPaymentMethodDto
|
|
50
|
+
*/
|
|
51
|
+
lastFourDigits: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof AccountPaymentMethodDto
|
|
56
|
+
*/
|
|
57
|
+
expirationYear: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof AccountPaymentMethodDto
|
|
62
|
+
*/
|
|
63
|
+
expirationMonth: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof AccountPaymentMethodDto
|
|
68
|
+
*/
|
|
69
|
+
country: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof AccountPaymentMethodDto
|
|
74
|
+
*/
|
|
75
|
+
brand: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the AccountPaymentMethodDto interface.
|
|
80
|
+
*/
|
|
81
|
+
export function instanceOfAccountPaymentMethodDto(value: object): value is AccountPaymentMethodDto {
|
|
82
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
83
|
+
if (!('gatewayId' in value) || value['gatewayId'] === undefined) return false;
|
|
84
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
85
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
86
|
+
if (!('lastFourDigits' in value) || value['lastFourDigits'] === undefined) return false;
|
|
87
|
+
if (!('expirationYear' in value) || value['expirationYear'] === undefined) return false;
|
|
88
|
+
if (!('expirationMonth' in value) || value['expirationMonth'] === undefined) return false;
|
|
89
|
+
if (!('country' in value) || value['country'] === undefined) return false;
|
|
90
|
+
if (!('brand' in value) || value['brand'] === undefined) return false;
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function AccountPaymentMethodDtoFromJSON(json: any): AccountPaymentMethodDto {
|
|
95
|
+
return AccountPaymentMethodDtoFromJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function AccountPaymentMethodDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountPaymentMethodDto {
|
|
99
|
+
if (json == null) {
|
|
100
|
+
return json;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'id': json['id'],
|
|
105
|
+
'gatewayId': json['gatewayId'],
|
|
106
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
107
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
108
|
+
'lastFourDigits': json['lastFourDigits'],
|
|
109
|
+
'expirationYear': json['expirationYear'],
|
|
110
|
+
'expirationMonth': json['expirationMonth'],
|
|
111
|
+
'country': json['country'],
|
|
112
|
+
'brand': json['brand'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function AccountPaymentMethodDtoToJSON(json: any): AccountPaymentMethodDto {
|
|
117
|
+
return AccountPaymentMethodDtoToJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function AccountPaymentMethodDtoToJSONTyped(value?: AccountPaymentMethodDto | null, ignoreDiscriminator: boolean = false): any {
|
|
121
|
+
if (value == null) {
|
|
122
|
+
return value;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'id': value['id'],
|
|
128
|
+
'gatewayId': value['gatewayId'],
|
|
129
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
130
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
131
|
+
'lastFourDigits': value['lastFourDigits'],
|
|
132
|
+
'expirationYear': value['expirationYear'],
|
|
133
|
+
'expirationMonth': value['expirationMonth'],
|
|
134
|
+
'country': value['country'],
|
|
135
|
+
'brand': value['brand'],
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AccountPaymentMethodDto } from './AccountPaymentMethodDto';
|
|
17
|
+
import {
|
|
18
|
+
AccountPaymentMethodDtoFromJSON,
|
|
19
|
+
AccountPaymentMethodDtoFromJSONTyped,
|
|
20
|
+
AccountPaymentMethodDtoToJSON,
|
|
21
|
+
AccountPaymentMethodDtoToJSONTyped,
|
|
22
|
+
} from './AccountPaymentMethodDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AccountPaymentMethodProfileDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AccountPaymentMethodProfileDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccountPaymentMethodProfileDto
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AccountPaymentMethodProfileDto
|
|
40
|
+
*/
|
|
41
|
+
gateway: AccountPaymentMethodProfileDtoGatewayEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AccountPaymentMethodProfileDto
|
|
46
|
+
*/
|
|
47
|
+
gatewayId: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof AccountPaymentMethodProfileDto
|
|
52
|
+
*/
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof AccountPaymentMethodProfileDto
|
|
58
|
+
*/
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<AccountPaymentMethodDto>}
|
|
63
|
+
* @memberof AccountPaymentMethodProfileDto
|
|
64
|
+
*/
|
|
65
|
+
paymentMethods: Array<AccountPaymentMethodDto>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const AccountPaymentMethodProfileDtoGatewayEnum = {
|
|
73
|
+
STRIPE: 'stripe',
|
|
74
|
+
NICKY: 'nicky'
|
|
75
|
+
} as const;
|
|
76
|
+
export type AccountPaymentMethodProfileDtoGatewayEnum = typeof AccountPaymentMethodProfileDtoGatewayEnum[keyof typeof AccountPaymentMethodProfileDtoGatewayEnum];
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the AccountPaymentMethodProfileDto interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfAccountPaymentMethodProfileDto(value: object): value is AccountPaymentMethodProfileDto {
|
|
83
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
84
|
+
if (!('gateway' in value) || value['gateway'] === undefined) return false;
|
|
85
|
+
if (!('gatewayId' in value) || value['gatewayId'] === undefined) return false;
|
|
86
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
87
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
88
|
+
if (!('paymentMethods' in value) || value['paymentMethods'] === undefined) return false;
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function AccountPaymentMethodProfileDtoFromJSON(json: any): AccountPaymentMethodProfileDto {
|
|
93
|
+
return AccountPaymentMethodProfileDtoFromJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function AccountPaymentMethodProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountPaymentMethodProfileDto {
|
|
97
|
+
if (json == null) {
|
|
98
|
+
return json;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': json['id'],
|
|
103
|
+
'gateway': json['gateway'],
|
|
104
|
+
'gatewayId': json['gatewayId'],
|
|
105
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
106
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
107
|
+
'paymentMethods': ((json['paymentMethods'] as Array<any>).map(AccountPaymentMethodDtoFromJSON)),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function AccountPaymentMethodProfileDtoToJSON(json: any): AccountPaymentMethodProfileDto {
|
|
112
|
+
return AccountPaymentMethodProfileDtoToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function AccountPaymentMethodProfileDtoToJSONTyped(value?: AccountPaymentMethodProfileDto | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'id': value['id'],
|
|
123
|
+
'gateway': value['gateway'],
|
|
124
|
+
'gatewayId': value['gatewayId'],
|
|
125
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
126
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
127
|
+
'paymentMethods': ((value['paymentMethods'] as Array<any>).map(AccountPaymentMethodDtoToJSON)),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
AuctionDurationDtoToJSON,
|
|
21
21
|
AuctionDurationDtoToJSONTyped,
|
|
22
22
|
} from './AuctionDurationDto';
|
|
23
|
+
import type { MoneyDto } from './MoneyDto';
|
|
24
|
+
import {
|
|
25
|
+
MoneyDtoFromJSON,
|
|
26
|
+
MoneyDtoFromJSONTyped,
|
|
27
|
+
MoneyDtoToJSON,
|
|
28
|
+
MoneyDtoToJSONTyped,
|
|
29
|
+
} from './MoneyDto';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -39,6 +46,12 @@ export interface AuctionConfigurationDto {
|
|
|
39
46
|
* @memberof AuctionConfigurationDto
|
|
40
47
|
*/
|
|
41
48
|
defaultInitialBidAmount: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {MoneyDto}
|
|
52
|
+
* @memberof AuctionConfigurationDto
|
|
53
|
+
*/
|
|
54
|
+
paidAuctionPrice: MoneyDto;
|
|
42
55
|
}
|
|
43
56
|
|
|
44
57
|
/**
|
|
@@ -47,6 +60,7 @@ export interface AuctionConfigurationDto {
|
|
|
47
60
|
export function instanceOfAuctionConfigurationDto(value: object): value is AuctionConfigurationDto {
|
|
48
61
|
if (!('defaultDurationFromLead' in value) || value['defaultDurationFromLead'] === undefined) return false;
|
|
49
62
|
if (!('defaultInitialBidAmount' in value) || value['defaultInitialBidAmount'] === undefined) return false;
|
|
63
|
+
if (!('paidAuctionPrice' in value) || value['paidAuctionPrice'] === undefined) return false;
|
|
50
64
|
return true;
|
|
51
65
|
}
|
|
52
66
|
|
|
@@ -62,6 +76,7 @@ export function AuctionConfigurationDtoFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
62
76
|
|
|
63
77
|
'defaultDurationFromLead': AuctionDurationDtoFromJSON(json['defaultDurationFromLead']),
|
|
64
78
|
'defaultInitialBidAmount': json['defaultInitialBidAmount'],
|
|
79
|
+
'paidAuctionPrice': MoneyDtoFromJSON(json['paidAuctionPrice']),
|
|
65
80
|
};
|
|
66
81
|
}
|
|
67
82
|
|
|
@@ -78,6 +93,7 @@ export function AuctionConfigurationDtoToJSONTyped(value?: AuctionConfigurationD
|
|
|
78
93
|
|
|
79
94
|
'defaultDurationFromLead': AuctionDurationDtoToJSON(value['defaultDurationFromLead']),
|
|
80
95
|
'defaultInitialBidAmount': value['defaultInitialBidAmount'],
|
|
96
|
+
'paidAuctionPrice': MoneyDtoToJSON(value['paidAuctionPrice']),
|
|
81
97
|
};
|
|
82
98
|
}
|
|
83
99
|
|
|
@@ -135,6 +135,7 @@ export const BuyerNotificationDtoTypeEnum = {
|
|
|
135
135
|
LEAD_CLOSED_SELLER: 'lead.closed.seller',
|
|
136
136
|
SELLER_PAYOUT_WAS_PAID: 'seller_payout_was_paid',
|
|
137
137
|
SELLER_INVOICE: 'seller_invoice',
|
|
138
|
+
SELLER_ACCOUNT_PAYMENT_INVOICE: 'seller_account_payment_invoice',
|
|
138
139
|
SELLER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'seller_lease_to_own_installment_invoice',
|
|
139
140
|
SELLER_RENT_INSTALLMENT_INVOICE: 'seller_rent_installment_invoice',
|
|
140
141
|
AFFILIATE_COMMISSIONS_INVOICE: 'affiliate_commissions_invoice',
|
|
@@ -121,6 +121,7 @@ export const BuyerNotificationListItemDtoTypeEnum = {
|
|
|
121
121
|
LEAD_CLOSED_SELLER: 'lead.closed.seller',
|
|
122
122
|
SELLER_PAYOUT_WAS_PAID: 'seller_payout_was_paid',
|
|
123
123
|
SELLER_INVOICE: 'seller_invoice',
|
|
124
|
+
SELLER_ACCOUNT_PAYMENT_INVOICE: 'seller_account_payment_invoice',
|
|
124
125
|
SELLER_LEASE_TO_OWN_INSTALLMENT_INVOICE: 'seller_lease_to_own_installment_invoice',
|
|
125
126
|
SELLER_RENT_INSTALLMENT_INVOICE: 'seller_rent_installment_invoice',
|
|
126
127
|
AFFILIATE_COMMISSIONS_INVOICE: 'affiliate_commissions_invoice',
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateAccountPaymentInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateAccountPaymentInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateAccountPaymentInput
|
|
26
|
+
*/
|
|
27
|
+
type: CreateAccountPaymentInputTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the object this payment is for
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateAccountPaymentInput
|
|
32
|
+
*/
|
|
33
|
+
domainId?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Additional payment data
|
|
36
|
+
* @type {object}
|
|
37
|
+
* @memberof CreateAccountPaymentInput
|
|
38
|
+
*/
|
|
39
|
+
payload?: object;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const CreateAccountPaymentInputTypeEnum = {
|
|
47
|
+
PAID_AUCTION: 'PAID_AUCTION'
|
|
48
|
+
} as const;
|
|
49
|
+
export type CreateAccountPaymentInputTypeEnum = typeof CreateAccountPaymentInputTypeEnum[keyof typeof CreateAccountPaymentInputTypeEnum];
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the CreateAccountPaymentInput interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfCreateAccountPaymentInput(value: object): value is CreateAccountPaymentInput {
|
|
56
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CreateAccountPaymentInputFromJSON(json: any): CreateAccountPaymentInput {
|
|
61
|
+
return CreateAccountPaymentInputFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CreateAccountPaymentInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountPaymentInput {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'type': json['type'],
|
|
71
|
+
'domainId': json['domainId'] == null ? undefined : json['domainId'],
|
|
72
|
+
'payload': json['payload'] == null ? undefined : json['payload'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function CreateAccountPaymentInputToJSON(json: any): CreateAccountPaymentInput {
|
|
77
|
+
return CreateAccountPaymentInputToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function CreateAccountPaymentInputToJSONTyped(value?: CreateAccountPaymentInput | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'type': value['type'],
|
|
88
|
+
'domainId': value['domainId'],
|
|
89
|
+
'payload': value['payload'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateAccountPaymentManualTransactionInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateAccountPaymentManualTransactionInput {
|
|
22
|
+
/**
|
|
23
|
+
* Payment gateway to use for the transaction
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateAccountPaymentManualTransactionInput
|
|
26
|
+
*/
|
|
27
|
+
gateway?: CreateAccountPaymentManualTransactionInputGatewayEnum;
|
|
28
|
+
/**
|
|
29
|
+
* URL to redirect to when payment is successful
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateAccountPaymentManualTransactionInput
|
|
32
|
+
*/
|
|
33
|
+
successUrl?: string;
|
|
34
|
+
/**
|
|
35
|
+
* URL to redirect to when payment is cancelled
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateAccountPaymentManualTransactionInput
|
|
38
|
+
*/
|
|
39
|
+
cancelUrl?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Payment method string to use for this transaction
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateAccountPaymentManualTransactionInput
|
|
44
|
+
*/
|
|
45
|
+
paymentMethodType: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const CreateAccountPaymentManualTransactionInputGatewayEnum = {
|
|
53
|
+
COMMON: 'common',
|
|
54
|
+
CRYPTO: 'crypto'
|
|
55
|
+
} as const;
|
|
56
|
+
export type CreateAccountPaymentManualTransactionInputGatewayEnum = typeof CreateAccountPaymentManualTransactionInputGatewayEnum[keyof typeof CreateAccountPaymentManualTransactionInputGatewayEnum];
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the CreateAccountPaymentManualTransactionInput interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfCreateAccountPaymentManualTransactionInput(value: object): value is CreateAccountPaymentManualTransactionInput {
|
|
63
|
+
if (!('paymentMethodType' in value) || value['paymentMethodType'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function CreateAccountPaymentManualTransactionInputFromJSON(json: any): CreateAccountPaymentManualTransactionInput {
|
|
68
|
+
return CreateAccountPaymentManualTransactionInputFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function CreateAccountPaymentManualTransactionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountPaymentManualTransactionInput {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'gateway': json['gateway'] == null ? undefined : json['gateway'],
|
|
78
|
+
'successUrl': json['successUrl'] == null ? undefined : json['successUrl'],
|
|
79
|
+
'cancelUrl': json['cancelUrl'] == null ? undefined : json['cancelUrl'],
|
|
80
|
+
'paymentMethodType': json['paymentMethodType'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function CreateAccountPaymentManualTransactionInputToJSON(json: any): CreateAccountPaymentManualTransactionInput {
|
|
85
|
+
return CreateAccountPaymentManualTransactionInputToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function CreateAccountPaymentManualTransactionInputToJSONTyped(value?: CreateAccountPaymentManualTransactionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'gateway': value['gateway'],
|
|
96
|
+
'successUrl': value['successUrl'],
|
|
97
|
+
'cancelUrl': value['cancelUrl'],
|
|
98
|
+
'paymentMethodType': value['paymentMethodType'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -69,6 +69,12 @@ export interface DomainAuctionDto {
|
|
|
69
69
|
* @memberof DomainAuctionDto
|
|
70
70
|
*/
|
|
71
71
|
status: DomainAuctionDtoStatusEnum;
|
|
72
|
+
/**
|
|
73
|
+
* The account payment id
|
|
74
|
+
* @type {object}
|
|
75
|
+
* @memberof DomainAuctionDto
|
|
76
|
+
*/
|
|
77
|
+
accountPaymentId: object | null;
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
|
|
@@ -96,6 +102,7 @@ export function instanceOfDomainAuctionDto(value: object): value is DomainAuctio
|
|
|
96
102
|
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
97
103
|
if (!('highestBid' in value) || value['highestBid'] === undefined) return false;
|
|
98
104
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
105
|
+
if (!('accountPaymentId' in value) || value['accountPaymentId'] === undefined) return false;
|
|
99
106
|
return true;
|
|
100
107
|
}
|
|
101
108
|
|
|
@@ -116,6 +123,7 @@ export function DomainAuctionDtoFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
116
123
|
'endDate': (new Date(json['endDate'])),
|
|
117
124
|
'highestBid': MoneyDtoFromJSON(json['highestBid']),
|
|
118
125
|
'status': json['status'],
|
|
126
|
+
'accountPaymentId': json['accountPaymentId'],
|
|
119
127
|
};
|
|
120
128
|
}
|
|
121
129
|
|
|
@@ -137,6 +145,7 @@ export function DomainAuctionDtoToJSONTyped(value?: DomainAuctionDto | null, ign
|
|
|
137
145
|
'endDate': ((value['endDate']).toISOString()),
|
|
138
146
|
'highestBid': MoneyDtoToJSON(value['highestBid']),
|
|
139
147
|
'status': value['status'],
|
|
148
|
+
'accountPaymentId': value['accountPaymentId'],
|
|
140
149
|
};
|
|
141
150
|
}
|
|
142
151
|
|
|
@@ -190,6 +190,12 @@ export interface IntersectionDomainDtoWithAccountDto {
|
|
|
190
190
|
* @memberof IntersectionDomainDtoWithAccountDto
|
|
191
191
|
*/
|
|
192
192
|
auction: DomainAuctionDto | null;
|
|
193
|
+
/**
|
|
194
|
+
* The paid auction price
|
|
195
|
+
* @type {MoneyDto}
|
|
196
|
+
* @memberof IntersectionDomainDtoWithAccountDto
|
|
197
|
+
*/
|
|
198
|
+
paidAuctionPrice: MoneyDto;
|
|
193
199
|
/**
|
|
194
200
|
* Whether the domain has an open lead
|
|
195
201
|
* @type {boolean}
|
|
@@ -228,6 +234,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
|
|
|
228
234
|
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
|
|
229
235
|
if (!('leadPriceNegotiator' in value) || value['leadPriceNegotiator'] === undefined) return false;
|
|
230
236
|
if (!('auction' in value) || value['auction'] === undefined) return false;
|
|
237
|
+
if (!('paidAuctionPrice' in value) || value['paidAuctionPrice'] === undefined) return false;
|
|
231
238
|
if (!('hasAcceptedLead' in value) || value['hasAcceptedLead'] === undefined) return false;
|
|
232
239
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
233
240
|
return true;
|
|
@@ -263,6 +270,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
|
|
|
263
270
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
264
271
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json['leadPriceNegotiator']),
|
|
265
272
|
'auction': DomainAuctionDtoFromJSON(json['auction']),
|
|
273
|
+
'paidAuctionPrice': MoneyDtoFromJSON(json['paidAuctionPrice']),
|
|
266
274
|
'hasAcceptedLead': json['hasAcceptedLead'],
|
|
267
275
|
'account': AccountDtoFromJSON(json['account']),
|
|
268
276
|
};
|
|
@@ -299,6 +307,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSONTyped(value?: Intersect
|
|
|
299
307
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
300
308
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON(value['leadPriceNegotiator']),
|
|
301
309
|
'auction': DomainAuctionDtoToJSON(value['auction']),
|
|
310
|
+
'paidAuctionPrice': MoneyDtoToJSON(value['paidAuctionPrice']),
|
|
302
311
|
'hasAcceptedLead': value['hasAcceptedLead'],
|
|
303
312
|
'account': AccountDtoToJSON(value['account']),
|
|
304
313
|
};
|
|
@@ -190,6 +190,12 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
|
|
|
190
190
|
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
191
191
|
*/
|
|
192
192
|
auction: DomainAuctionDto | null;
|
|
193
|
+
/**
|
|
194
|
+
* The paid auction price
|
|
195
|
+
* @type {MoneyDto}
|
|
196
|
+
* @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
|
|
197
|
+
*/
|
|
198
|
+
paidAuctionPrice: MoneyDto;
|
|
193
199
|
/**
|
|
194
200
|
* Whether the domain has an open lead
|
|
195
201
|
* @type {boolean}
|
|
@@ -234,6 +240,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(
|
|
|
234
240
|
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
|
|
235
241
|
if (!('leadPriceNegotiator' in value) || value['leadPriceNegotiator'] === undefined) return false;
|
|
236
242
|
if (!('auction' in value) || value['auction'] === undefined) return false;
|
|
243
|
+
if (!('paidAuctionPrice' in value) || value['paidAuctionPrice'] === undefined) return false;
|
|
237
244
|
if (!('hasAcceptedLead' in value) || value['hasAcceptedLead'] === undefined) return false;
|
|
238
245
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
239
246
|
if (!('hasAuction' in value) || value['hasAuction'] === undefined) return false;
|
|
@@ -270,6 +277,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyp
|
|
|
270
277
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
271
278
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json['leadPriceNegotiator']),
|
|
272
279
|
'auction': DomainAuctionDtoFromJSON(json['auction']),
|
|
280
|
+
'paidAuctionPrice': MoneyDtoFromJSON(json['paidAuctionPrice']),
|
|
273
281
|
'hasAcceptedLead': json['hasAcceptedLead'],
|
|
274
282
|
'account': AccountDtoFromJSON(json['account']),
|
|
275
283
|
'hasAuction': json['hasAuction'],
|
|
@@ -307,6 +315,7 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped
|
|
|
307
315
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
308
316
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON(value['leadPriceNegotiator']),
|
|
309
317
|
'auction': DomainAuctionDtoToJSON(value['auction']),
|
|
318
|
+
'paidAuctionPrice': MoneyDtoToJSON(value['paidAuctionPrice']),
|
|
310
319
|
'hasAcceptedLead': value['hasAcceptedLead'],
|
|
311
320
|
'account': AccountDtoToJSON(value['account']),
|
|
312
321
|
'hasAuction': value['hasAuction'],
|
|
@@ -190,6 +190,12 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
|
|
|
190
190
|
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
191
191
|
*/
|
|
192
192
|
auction: DomainAuctionDto | null;
|
|
193
|
+
/**
|
|
194
|
+
* The paid auction price
|
|
195
|
+
* @type {MoneyDto}
|
|
196
|
+
* @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
|
|
197
|
+
*/
|
|
198
|
+
paidAuctionPrice: MoneyDto;
|
|
193
199
|
/**
|
|
194
200
|
* Whether the domain has an open lead
|
|
195
201
|
* @type {boolean}
|
|
@@ -234,6 +240,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
|
|
|
234
240
|
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined) return false;
|
|
235
241
|
if (!('leadPriceNegotiator' in value) || value['leadPriceNegotiator'] === undefined) return false;
|
|
236
242
|
if (!('auction' in value) || value['auction'] === undefined) return false;
|
|
243
|
+
if (!('paidAuctionPrice' in value) || value['paidAuctionPrice'] === undefined) return false;
|
|
237
244
|
if (!('hasAcceptedLead' in value) || value['hasAcceptedLead'] === undefined) return false;
|
|
238
245
|
if (!('hijacker' in value) || value['hijacker'] === undefined) return false;
|
|
239
246
|
if (!('account' in value) || value['account'] === undefined) return false;
|
|
@@ -270,6 +277,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
|
|
|
270
277
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
271
278
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json['leadPriceNegotiator']),
|
|
272
279
|
'auction': DomainAuctionDtoFromJSON(json['auction']),
|
|
280
|
+
'paidAuctionPrice': MoneyDtoFromJSON(json['paidAuctionPrice']),
|
|
273
281
|
'hasAcceptedLead': json['hasAcceptedLead'],
|
|
274
282
|
'hijacker': AccountDtoFromJSON(json['hijacker']),
|
|
275
283
|
'account': AccountDtoFromJSON(json['account']),
|
|
@@ -307,6 +315,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
|
|
|
307
315
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
308
316
|
'leadPriceNegotiator': DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON(value['leadPriceNegotiator']),
|
|
309
317
|
'auction': DomainAuctionDtoToJSON(value['auction']),
|
|
318
|
+
'paidAuctionPrice': MoneyDtoToJSON(value['paidAuctionPrice']),
|
|
310
319
|
'hasAcceptedLead': value['hasAcceptedLead'],
|
|
311
320
|
'hijacker': AccountDtoToJSON(value['hijacker']),
|
|
312
321
|
'account': AccountDtoToJSON(value['account']),
|