@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.
Files changed (62) hide show
  1. package/.openapi-generator/FILES +5 -6
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +10 -11
  4. package/dist/apis/AccountsApi.js +27 -30
  5. package/dist/apis/StripePublicApi.d.ts +28 -0
  6. package/dist/apis/StripePublicApi.js +124 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AccountDto.d.ts +7 -0
  10. package/dist/models/AccountDto.js +5 -0
  11. package/dist/models/AccountPaymentProviderSessionDto.d.ts +31 -0
  12. package/dist/models/AccountPaymentProviderSessionDto.js +46 -0
  13. package/dist/models/BuyerLeadListItemDto.d.ts +6 -0
  14. package/dist/models/BuyerLeadListItemDto.js +4 -0
  15. package/dist/models/CreateAccountPaymentProviderInput.d.ts +31 -0
  16. package/dist/models/CreateAccountPaymentProviderInput.js +46 -0
  17. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +69 -0
  18. package/dist/models/{IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js → IntersectionAccountDtoWithSettingsDto.js} +14 -19
  19. package/dist/models/PaymentProviderDto.d.ts +45 -0
  20. package/dist/models/PaymentProviderDto.js +58 -0
  21. package/dist/models/index.d.ts +4 -6
  22. package/dist/models/index.js +4 -6
  23. package/package.json +1 -1
  24. package/src/apis/AccountsApi.ts +44 -54
  25. package/src/apis/AccountsPublicApi.ts +0 -3
  26. package/src/apis/AdminApi.ts +0 -3
  27. package/src/apis/BuyersApi.ts +0 -3
  28. package/src/apis/BuyersPublicApi.ts +0 -3
  29. package/src/apis/DashboardApi.ts +0 -3
  30. package/src/apis/DomainsApi.ts +0 -3
  31. package/src/apis/DomainsPublicApi.ts +0 -3
  32. package/src/apis/LeadsApi.ts +0 -3
  33. package/src/apis/LeadsPublicApi.ts +0 -3
  34. package/src/apis/OrdersPublicApi.ts +0 -3
  35. package/src/apis/StripePublicApi.ts +70 -0
  36. package/src/apis/UsersApi.ts +0 -3
  37. package/src/apis/UsersPublicApi.ts +0 -3
  38. package/src/apis/index.ts +1 -0
  39. package/src/models/AccountDto.ts +16 -0
  40. package/src/models/AccountPaymentProviderSessionDto.ts +61 -0
  41. package/src/models/BuyerLeadListItemDto.ts +9 -0
  42. package/src/models/CreateAccountPaymentProviderInput.ts +61 -0
  43. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +128 -0
  44. package/src/models/PaymentProviderDto.ts +81 -0
  45. package/src/models/index.ts +4 -6
  46. package/dist/models/AccountAddressDto.d.ts +0 -68
  47. package/dist/models/AccountAddressDto.js +0 -71
  48. package/dist/models/AccountAddressInput.d.ts +0 -68
  49. package/dist/models/AccountAddressInput.js +0 -71
  50. package/dist/models/AccountFinancialInput.d.ts +0 -49
  51. package/dist/models/AccountFinancialInput.js +0 -58
  52. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +0 -76
  53. package/dist/models/ThrottlerException.d.ts +0 -43
  54. package/dist/models/ThrottlerException.js +0 -54
  55. package/dist/models/WithFinancialDtoInner.d.ts +0 -49
  56. package/dist/models/WithFinancialDtoInner.js +0 -58
  57. package/src/models/AccountAddressDto.ts +0 -115
  58. package/src/models/AccountAddressInput.ts +0 -115
  59. package/src/models/AccountFinancialInput.ts +0 -88
  60. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +0 -143
  61. package/src/models/ThrottlerException.ts +0 -79
  62. package/src/models/WithFinancialDtoInner.ts +0 -88
@@ -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';
@@ -16,14 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  DashboardStatsDto,
19
- ThrottlerException,
20
19
  ValidationException,
21
20
  } from '../models/index';
22
21
  import {
23
22
  DashboardStatsDtoFromJSON,
24
23
  DashboardStatsDtoToJSON,
25
- ThrottlerExceptionFromJSON,
26
- ThrottlerExceptionToJSON,
27
24
  ValidationExceptionFromJSON,
28
25
  ValidationExceptionToJSON,
29
26
  } from '../models/index';
@@ -23,7 +23,6 @@ import type {
23
23
  List200Response,
24
24
  NotFoundException,
25
25
  SellerDomainTransferDto,
26
- ThrottlerException,
27
26
  UpdateDomainInput,
28
27
  UpdateDomainTransferAuthCodeInput,
29
28
  ValidationException,
@@ -45,8 +44,6 @@ import {
45
44
  NotFoundExceptionToJSON,
46
45
  SellerDomainTransferDtoFromJSON,
47
46
  SellerDomainTransferDtoToJSON,
48
- ThrottlerExceptionFromJSON,
49
- ThrottlerExceptionToJSON,
50
47
  UpdateDomainInputFromJSON,
51
48
  UpdateDomainInputToJSON,
52
49
  UpdateDomainTransferAuthCodeInputFromJSON,
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  IntersectionDomainSalesInformationDtoWithDomainStatsDto,
19
19
  NotFoundException,
20
- ThrottlerException,
21
20
  ValidationException,
22
21
  } from '../models/index';
23
22
  import {
@@ -25,8 +24,6 @@ import {
25
24
  IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON,
26
25
  NotFoundExceptionFromJSON,
27
26
  NotFoundExceptionToJSON,
28
- ThrottlerExceptionFromJSON,
29
- ThrottlerExceptionToJSON,
30
27
  ValidationExceptionFromJSON,
31
28
  ValidationExceptionToJSON,
32
29
  } from '../models/index';
@@ -23,7 +23,6 @@ import type {
23
23
  ListLeadMessagesDto,
24
24
  ObjectId,
25
25
  PutLeadOfferInput,
26
- ThrottlerException,
27
26
  ValidationException,
28
27
  } from '../models/index';
29
28
  import {
@@ -43,8 +42,6 @@ import {
43
42
  ObjectIdToJSON,
44
43
  PutLeadOfferInputFromJSON,
45
44
  PutLeadOfferInputToJSON,
46
- ThrottlerExceptionFromJSON,
47
- ThrottlerExceptionToJSON,
48
45
  ValidationExceptionFromJSON,
49
46
  ValidationExceptionToJSON,
50
47
  } from '../models/index';
@@ -21,7 +21,6 @@ import type {
21
21
  NotFoundException,
22
22
  ObjectId,
23
23
  PublicLeadDto,
24
- ThrottlerException,
25
24
  UpdateLeadInput,
26
25
  ValidationException,
27
26
  VerifyLeadInput,
@@ -39,8 +38,6 @@ import {
39
38
  ObjectIdToJSON,
40
39
  PublicLeadDtoFromJSON,
41
40
  PublicLeadDtoToJSON,
42
- ThrottlerExceptionFromJSON,
43
- ThrottlerExceptionToJSON,
44
41
  UpdateLeadInputFromJSON,
45
42
  UpdateLeadInputToJSON,
46
43
  ValidationExceptionFromJSON,
@@ -20,7 +20,6 @@ import type {
20
20
  NotFoundException,
21
21
  ObjectId,
22
22
  OrderDto,
23
- ThrottlerException,
24
23
  UpdateOrderInput,
25
24
  ValidationException,
26
25
  } from '../models/index';
@@ -35,8 +34,6 @@ import {
35
34
  ObjectIdToJSON,
36
35
  OrderDtoFromJSON,
37
36
  OrderDtoToJSON,
38
- ThrottlerExceptionFromJSON,
39
- ThrottlerExceptionToJSON,
40
37
  UpdateOrderInputFromJSON,
41
38
  UpdateOrderInputToJSON,
42
39
  ValidationExceptionFromJSON,
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ValidationException,
19
+ } from '../models/index';
20
+ import {
21
+ ValidationExceptionFromJSON,
22
+ ValidationExceptionToJSON,
23
+ } from '../models/index';
24
+
25
+ export interface StripePublicApiPostStripeWebhookRequest {
26
+ stripeSignature: string;
27
+ }
28
+
29
+ /**
30
+ *
31
+ */
32
+ export class StripePublicApi extends runtime.BaseAPI {
33
+
34
+ /**
35
+ *
36
+ */
37
+ async postStripeWebhookRaw(requestParameters: StripePublicApiPostStripeWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
38
+ if (requestParameters['stripeSignature'] == null) {
39
+ throw new runtime.RequiredError(
40
+ 'stripeSignature',
41
+ 'Required parameter "stripeSignature" was null or undefined when calling postStripeWebhook().'
42
+ );
43
+ }
44
+
45
+ const queryParameters: any = {};
46
+
47
+ const headerParameters: runtime.HTTPHeaders = {};
48
+
49
+ if (requestParameters['stripeSignature'] != null) {
50
+ headerParameters['stripe-signature'] = String(requestParameters['stripeSignature']);
51
+ }
52
+
53
+ const response = await this.request({
54
+ path: `/stripe/webhook`,
55
+ method: 'POST',
56
+ headers: headerParameters,
57
+ query: queryParameters,
58
+ }, initOverrides);
59
+
60
+ return new runtime.VoidApiResponse(response);
61
+ }
62
+
63
+ /**
64
+ *
65
+ */
66
+ async postStripeWebhook(requestParameters: StripePublicApiPostStripeWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
67
+ await this.postStripeWebhookRaw(requestParameters, initOverrides);
68
+ }
69
+
70
+ }
@@ -16,14 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  StoreUserLocaleInput,
19
- ThrottlerException,
20
19
  ValidationException,
21
20
  } from '../models/index';
22
21
  import {
23
22
  StoreUserLocaleInputFromJSON,
24
23
  StoreUserLocaleInputToJSON,
25
- ThrottlerExceptionFromJSON,
26
- ThrottlerExceptionToJSON,
27
24
  ValidationExceptionFromJSON,
28
25
  ValidationExceptionToJSON,
29
26
  } from '../models/index';
@@ -20,7 +20,6 @@ import type {
20
20
  LoginInput,
21
21
  NotFoundException,
22
22
  SetNewPasswordInput,
23
- ThrottlerException,
24
23
  UserPasswordResetDto,
25
24
  ValidationException,
26
25
  } from '../models/index';
@@ -35,8 +34,6 @@ import {
35
34
  NotFoundExceptionToJSON,
36
35
  SetNewPasswordInputFromJSON,
37
36
  SetNewPasswordInputToJSON,
38
- ThrottlerExceptionFromJSON,
39
- ThrottlerExceptionToJSON,
40
37
  UserPasswordResetDtoFromJSON,
41
38
  UserPasswordResetDtoToJSON,
42
39
  ValidationExceptionFromJSON,
package/src/apis/index.ts CHANGED
@@ -11,5 +11,6 @@ export * from './DomainsPublicApi';
11
11
  export * from './LeadsApi';
12
12
  export * from './LeadsPublicApi';
13
13
  export * from './OrdersPublicApi';
14
+ export * from './StripePublicApi';
14
15
  export * from './UsersApi';
15
16
  export * from './UsersPublicApi';
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PaymentProviderDto } from './PaymentProviderDto';
17
+ import {
18
+ PaymentProviderDtoFromJSON,
19
+ PaymentProviderDtoFromJSONTyped,
20
+ PaymentProviderDtoToJSON,
21
+ } from './PaymentProviderDto';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -49,6 +56,12 @@ export interface AccountDto {
49
56
  * @memberof AccountDto
50
57
  */
51
58
  activeLeadsNumber: number;
59
+ /**
60
+ *
61
+ * @type {PaymentProviderDto}
62
+ * @memberof AccountDto
63
+ */
64
+ paymentProvider: PaymentProviderDto | null;
52
65
  }
53
66
 
54
67
  /**
@@ -60,6 +73,7 @@ export function instanceOfAccountDto(value: object): value is AccountDto {
60
73
  if (!('name' in value) || value['name'] === undefined) return false;
61
74
  if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined) return false;
62
75
  if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined) return false;
76
+ if (!('paymentProvider' in value) || value['paymentProvider'] === undefined) return false;
63
77
  return true;
64
78
  }
65
79
 
@@ -78,6 +92,7 @@ export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
78
92
  'name': json['name'],
79
93
  'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
80
94
  'activeLeadsNumber': json['activeLeadsNumber'],
95
+ 'paymentProvider': PaymentProviderDtoFromJSON(json['paymentProvider']),
81
96
  };
82
97
  }
83
98
 
@@ -92,6 +107,7 @@ export function AccountDtoToJSON(value?: AccountDto | null): any {
92
107
  'name': value['name'],
93
108
  'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
94
109
  'activeLeadsNumber': value['activeLeadsNumber'],
110
+ 'paymentProvider': PaymentProviderDtoToJSON(value['paymentProvider']),
95
111
  };
96
112
  }
97
113
 
@@ -0,0 +1,61 @@
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 AccountPaymentProviderSessionDto
20
+ */
21
+ export interface AccountPaymentProviderSessionDto {
22
+ /**
23
+ * Account payment provider session token
24
+ * @type {string}
25
+ * @memberof AccountPaymentProviderSessionDto
26
+ */
27
+ accessToken: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AccountPaymentProviderSessionDto interface.
32
+ */
33
+ export function instanceOfAccountPaymentProviderSessionDto(value: object): value is AccountPaymentProviderSessionDto {
34
+ if (!('accessToken' in value) || value['accessToken'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AccountPaymentProviderSessionDtoFromJSON(json: any): AccountPaymentProviderSessionDto {
39
+ return AccountPaymentProviderSessionDtoFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AccountPaymentProviderSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountPaymentProviderSessionDto {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'accessToken': json['accessToken'],
49
+ };
50
+ }
51
+
52
+ export function AccountPaymentProviderSessionDtoToJSON(value?: AccountPaymentProviderSessionDto | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'accessToken': value['accessToken'],
59
+ };
60
+ }
61
+
@@ -68,6 +68,12 @@ export interface BuyerLeadListItemDto {
68
68
  * @memberof BuyerLeadListItemDto
69
69
  */
70
70
  domain: BuyerLeadListItemDomainDto;
71
+ /**
72
+ * Buyer unread messages number *
73
+ * @type {number}
74
+ * @memberof BuyerLeadListItemDto
75
+ */
76
+ unreadMessages: number;
71
77
  }
72
78
 
73
79
 
@@ -105,6 +111,7 @@ export function instanceOfBuyerLeadListItemDto(value: object): value is BuyerLea
105
111
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
106
112
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
107
113
  if (!('domain' in value) || value['domain'] === undefined) return false;
114
+ if (!('unreadMessages' in value) || value['unreadMessages'] === undefined) return false;
108
115
  return true;
109
116
  }
110
117
 
@@ -124,6 +131,7 @@ export function BuyerLeadListItemDtoFromJSONTyped(json: any, ignoreDiscriminator
124
131
  'lastOfferBy': json['lastOfferBy'],
125
132
  'createdAt': (new Date(json['createdAt'])),
126
133
  'domain': BuyerLeadListItemDomainDtoFromJSON(json['domain']),
134
+ 'unreadMessages': json['unreadMessages'],
127
135
  };
128
136
  }
129
137
 
@@ -139,6 +147,7 @@ export function BuyerLeadListItemDtoToJSON(value?: BuyerLeadListItemDto | null):
139
147
  'lastOfferBy': value['lastOfferBy'],
140
148
  'createdAt': ((value['createdAt']).toISOString()),
141
149
  'domain': BuyerLeadListItemDomainDtoToJSON(value['domain']),
150
+ 'unreadMessages': value['unreadMessages'],
142
151
  };
143
152
  }
144
153
 
@@ -0,0 +1,61 @@
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 CreateAccountPaymentProviderInput
20
+ */
21
+ export interface CreateAccountPaymentProviderInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateAccountPaymentProviderInput
26
+ */
27
+ countryIsoCode: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CreateAccountPaymentProviderInput interface.
32
+ */
33
+ export function instanceOfCreateAccountPaymentProviderInput(value: object): value is CreateAccountPaymentProviderInput {
34
+ if (!('countryIsoCode' in value) || value['countryIsoCode'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function CreateAccountPaymentProviderInputFromJSON(json: any): CreateAccountPaymentProviderInput {
39
+ return CreateAccountPaymentProviderInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function CreateAccountPaymentProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountPaymentProviderInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'countryIsoCode': json['countryIsoCode'],
49
+ };
50
+ }
51
+
52
+ export function CreateAccountPaymentProviderInputToJSON(value?: CreateAccountPaymentProviderInput | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'countryIsoCode': value['countryIsoCode'],
59
+ };
60
+ }
61
+
@@ -0,0 +1,128 @@
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 { PaymentProviderDto } from './PaymentProviderDto';
17
+ import {
18
+ PaymentProviderDtoFromJSON,
19
+ PaymentProviderDtoFromJSONTyped,
20
+ PaymentProviderDtoToJSON,
21
+ } from './PaymentProviderDto';
22
+ import type { WithSettingsInner } from './WithSettingsInner';
23
+ import {
24
+ WithSettingsInnerFromJSON,
25
+ WithSettingsInnerFromJSONTyped,
26
+ WithSettingsInnerToJSON,
27
+ } from './WithSettingsInner';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface IntersectionAccountDtoWithSettingsDto
33
+ */
34
+ export interface IntersectionAccountDtoWithSettingsDto {
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof IntersectionAccountDtoWithSettingsDto
39
+ */
40
+ id: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof IntersectionAccountDtoWithSettingsDto
45
+ */
46
+ identifier: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof IntersectionAccountDtoWithSettingsDto
51
+ */
52
+ name: string;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof IntersectionAccountDtoWithSettingsDto
57
+ */
58
+ activeDomainTransfersNumber: number;
59
+ /**
60
+ *
61
+ * @type {number}
62
+ * @memberof IntersectionAccountDtoWithSettingsDto
63
+ */
64
+ activeLeadsNumber: number;
65
+ /**
66
+ *
67
+ * @type {PaymentProviderDto}
68
+ * @memberof IntersectionAccountDtoWithSettingsDto
69
+ */
70
+ paymentProvider: PaymentProviderDto | null;
71
+ /**
72
+ *
73
+ * @type {WithSettingsInner}
74
+ * @memberof IntersectionAccountDtoWithSettingsDto
75
+ */
76
+ settings: WithSettingsInner;
77
+ }
78
+
79
+ /**
80
+ * Check if a given object implements the IntersectionAccountDtoWithSettingsDto interface.
81
+ */
82
+ export function instanceOfIntersectionAccountDtoWithSettingsDto(value: object): value is IntersectionAccountDtoWithSettingsDto {
83
+ if (!('id' in value) || value['id'] === undefined) return false;
84
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
85
+ if (!('name' in value) || value['name'] === undefined) return false;
86
+ if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined) return false;
87
+ if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined) return false;
88
+ if (!('paymentProvider' in value) || value['paymentProvider'] === undefined) return false;
89
+ if (!('settings' in value) || value['settings'] === undefined) return false;
90
+ return true;
91
+ }
92
+
93
+ export function IntersectionAccountDtoWithSettingsDtoFromJSON(json: any): IntersectionAccountDtoWithSettingsDto {
94
+ return IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json, false);
95
+ }
96
+
97
+ export function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithSettingsDto {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+
103
+ 'id': json['id'],
104
+ 'identifier': json['identifier'],
105
+ 'name': json['name'],
106
+ 'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
107
+ 'activeLeadsNumber': json['activeLeadsNumber'],
108
+ 'paymentProvider': PaymentProviderDtoFromJSON(json['paymentProvider']),
109
+ 'settings': WithSettingsInnerFromJSON(json['settings']),
110
+ };
111
+ }
112
+
113
+ export function IntersectionAccountDtoWithSettingsDtoToJSON(value?: IntersectionAccountDtoWithSettingsDto | null): any {
114
+ if (value == null) {
115
+ return value;
116
+ }
117
+ return {
118
+
119
+ 'id': value['id'],
120
+ 'identifier': value['identifier'],
121
+ 'name': value['name'],
122
+ 'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
123
+ 'activeLeadsNumber': value['activeLeadsNumber'],
124
+ 'paymentProvider': PaymentProviderDtoToJSON(value['paymentProvider']),
125
+ 'settings': WithSettingsInnerToJSON(value['settings']),
126
+ };
127
+ }
128
+
@@ -0,0 +1,81 @@
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 PaymentProviderDto
20
+ */
21
+ export interface PaymentProviderDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PaymentProviderDto
26
+ */
27
+ accountId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PaymentProviderDto
32
+ */
33
+ status: PaymentProviderDtoStatusEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const PaymentProviderDtoStatusEnum = {
41
+ PENDING: 'pending',
42
+ ACTIVE: 'active'
43
+ } as const;
44
+ export type PaymentProviderDtoStatusEnum = typeof PaymentProviderDtoStatusEnum[keyof typeof PaymentProviderDtoStatusEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the PaymentProviderDto interface.
49
+ */
50
+ export function instanceOfPaymentProviderDto(value: object): value is PaymentProviderDto {
51
+ if (!('accountId' in value) || value['accountId'] === undefined) return false;
52
+ if (!('status' in value) || value['status'] === undefined) return false;
53
+ return true;
54
+ }
55
+
56
+ export function PaymentProviderDtoFromJSON(json: any): PaymentProviderDto {
57
+ return PaymentProviderDtoFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function PaymentProviderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentProviderDto {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'accountId': json['accountId'],
67
+ 'status': json['status'],
68
+ };
69
+ }
70
+
71
+ export function PaymentProviderDtoToJSON(value?: PaymentProviderDto | null): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+ return {
76
+
77
+ 'accountId': value['accountId'],
78
+ 'status': value['status'],
79
+ };
80
+ }
81
+