@randock/nameshift-api-client 0.0.92 → 0.0.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/.openapi-generator/FILES +8 -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/OrdersPublicApi.d.ts +12 -1
  6. package/dist/apis/OrdersPublicApi.js +44 -0
  7. package/dist/apis/StripePublicApi.d.ts +28 -0
  8. package/dist/apis/StripePublicApi.js +124 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AccountDto.d.ts +7 -0
  12. package/dist/models/AccountDto.js +5 -0
  13. package/dist/models/AccountPaymentProviderSessionDto.d.ts +31 -0
  14. package/dist/models/AccountPaymentProviderSessionDto.js +46 -0
  15. package/dist/models/AddressDto.d.ts +61 -0
  16. package/dist/models/AddressDto.js +66 -0
  17. package/dist/models/CreateAccountPaymentProviderInput.d.ts +31 -0
  18. package/dist/models/CreateAccountPaymentProviderInput.js +46 -0
  19. package/dist/models/CreateLeadInput.d.ts +0 -6
  20. package/dist/models/CreateLeadInput.js +0 -4
  21. package/dist/models/CreateOrderInput.d.ts +0 -30
  22. package/dist/models/CreateOrderInput.js +0 -20
  23. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +69 -0
  24. package/dist/models/{IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js → IntersectionAccountDtoWithSettingsDto.js} +14 -19
  25. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +6 -0
  26. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +4 -0
  27. package/dist/models/OrderCheckoutSessionDto.d.ts +31 -0
  28. package/dist/models/OrderCheckoutSessionDto.js +46 -0
  29. package/dist/models/OrderDto.d.ts +12 -16
  30. package/dist/models/OrderDto.js +12 -14
  31. package/dist/models/OrderListItemDtoBuyerInformation.d.ts +4 -21
  32. package/dist/models/OrderListItemDtoBuyerInformation.js +3 -14
  33. package/dist/models/OrderTaxDto.d.ts +44 -0
  34. package/dist/models/OrderTaxDto.js +55 -0
  35. package/dist/models/PaymentProviderDto.d.ts +45 -0
  36. package/dist/models/PaymentProviderDto.js +58 -0
  37. package/dist/models/PublicLeadBuyerDto.d.ts +0 -6
  38. package/dist/models/PublicLeadBuyerDto.js +0 -4
  39. package/dist/models/UpdateLeadInput.d.ts +0 -6
  40. package/dist/models/UpdateLeadInput.js +0 -4
  41. package/dist/models/UpdateOrderInput.d.ts +0 -30
  42. package/dist/models/UpdateOrderInput.js +0 -20
  43. package/dist/models/index.d.ts +7 -6
  44. package/dist/models/index.js +7 -6
  45. package/package.json +1 -1
  46. package/src/apis/AccountsApi.ts +44 -54
  47. package/src/apis/AccountsPublicApi.ts +0 -3
  48. package/src/apis/AdminApi.ts +0 -3
  49. package/src/apis/BuyersApi.ts +0 -3
  50. package/src/apis/BuyersPublicApi.ts +0 -3
  51. package/src/apis/DashboardApi.ts +0 -3
  52. package/src/apis/DomainsApi.ts +0 -3
  53. package/src/apis/DomainsPublicApi.ts +0 -3
  54. package/src/apis/LeadsApi.ts +0 -3
  55. package/src/apis/LeadsPublicApi.ts +0 -3
  56. package/src/apis/OrdersPublicApi.ts +40 -3
  57. package/src/apis/StripePublicApi.ts +70 -0
  58. package/src/apis/UsersApi.ts +0 -3
  59. package/src/apis/UsersPublicApi.ts +0 -3
  60. package/src/apis/index.ts +1 -0
  61. package/src/models/AccountDto.ts +16 -0
  62. package/src/models/AccountPaymentProviderSessionDto.ts +61 -0
  63. package/src/models/AddressDto.ts +106 -0
  64. package/src/models/CreateAccountPaymentProviderInput.ts +61 -0
  65. package/src/models/CreateLeadInput.ts +0 -9
  66. package/src/models/CreateOrderInput.ts +0 -45
  67. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +128 -0
  68. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +9 -0
  69. package/src/models/OrderCheckoutSessionDto.ts +61 -0
  70. package/src/models/OrderDto.ts +30 -27
  71. package/src/models/OrderListItemDtoBuyerInformation.ts +12 -32
  72. package/src/models/OrderTaxDto.ts +86 -0
  73. package/src/models/PaymentProviderDto.ts +81 -0
  74. package/src/models/PublicLeadBuyerDto.ts +0 -9
  75. package/src/models/UpdateLeadInput.ts +0 -9
  76. package/src/models/UpdateOrderInput.ts +0 -45
  77. package/src/models/index.ts +7 -6
  78. package/dist/models/AccountAddressDto.d.ts +0 -68
  79. package/dist/models/AccountAddressDto.js +0 -71
  80. package/dist/models/AccountAddressInput.d.ts +0 -68
  81. package/dist/models/AccountAddressInput.js +0 -71
  82. package/dist/models/AccountFinancialInput.d.ts +0 -49
  83. package/dist/models/AccountFinancialInput.js +0 -58
  84. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +0 -76
  85. package/dist/models/ThrottlerException.d.ts +0 -43
  86. package/dist/models/ThrottlerException.js +0 -54
  87. package/dist/models/WithFinancialDtoInner.d.ts +0 -49
  88. package/dist/models/WithFinancialDtoInner.js +0 -58
  89. package/src/models/AccountAddressDto.ts +0 -115
  90. package/src/models/AccountAddressInput.ts +0 -115
  91. package/src/models/AccountFinancialInput.ts +0 -88
  92. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +0 -143
  93. package/src/models/ThrottlerException.ts +0 -79
  94. 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.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
+ }
@@ -0,0 +1,61 @@
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 AddressDto
16
+ */
17
+ export interface AddressDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AddressDto
22
+ */
23
+ city: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AddressDto
28
+ */
29
+ countryCode: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AddressDto
34
+ */
35
+ line1: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AddressDto
40
+ */
41
+ line2: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AddressDto
46
+ */
47
+ postalCode: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof AddressDto
52
+ */
53
+ stateCode: string | null;
54
+ }
55
+ /**
56
+ * Check if a given object implements the AddressDto interface.
57
+ */
58
+ export declare function instanceOfAddressDto(value: object): value is AddressDto;
59
+ export declare function AddressDtoFromJSON(json: any): AddressDto;
60
+ export declare function AddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressDto;
61
+ export declare function AddressDtoToJSON(value?: AddressDto | null): any;
@@ -0,0 +1,66 @@
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.instanceOfAddressDto = instanceOfAddressDto;
17
+ exports.AddressDtoFromJSON = AddressDtoFromJSON;
18
+ exports.AddressDtoFromJSONTyped = AddressDtoFromJSONTyped;
19
+ exports.AddressDtoToJSON = AddressDtoToJSON;
20
+ /**
21
+ * Check if a given object implements the AddressDto interface.
22
+ */
23
+ function instanceOfAddressDto(value) {
24
+ if (!('city' in value) || value['city'] === undefined)
25
+ return false;
26
+ if (!('countryCode' in value) || value['countryCode'] === undefined)
27
+ return false;
28
+ if (!('line1' in value) || value['line1'] === undefined)
29
+ return false;
30
+ if (!('line2' in value) || value['line2'] === undefined)
31
+ return false;
32
+ if (!('postalCode' in value) || value['postalCode'] === undefined)
33
+ return false;
34
+ if (!('stateCode' in value) || value['stateCode'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function AddressDtoFromJSON(json) {
39
+ return AddressDtoFromJSONTyped(json, false);
40
+ }
41
+ function AddressDtoFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'city': json['city'],
47
+ 'countryCode': json['countryCode'],
48
+ 'line1': json['line1'],
49
+ 'line2': json['line2'],
50
+ 'postalCode': json['postalCode'],
51
+ 'stateCode': json['stateCode'],
52
+ };
53
+ }
54
+ function AddressDtoToJSON(value) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'city': value['city'],
60
+ 'countryCode': value['countryCode'],
61
+ 'line1': value['line1'],
62
+ 'line2': value['line2'],
63
+ 'postalCode': value['postalCode'],
64
+ 'stateCode': value['stateCode'],
65
+ };
66
+ }
@@ -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 CreateAccountPaymentProviderInput
16
+ */
17
+ export interface CreateAccountPaymentProviderInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateAccountPaymentProviderInput
22
+ */
23
+ countryIsoCode: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateAccountPaymentProviderInput interface.
27
+ */
28
+ export declare function instanceOfCreateAccountPaymentProviderInput(value: object): value is CreateAccountPaymentProviderInput;
29
+ export declare function CreateAccountPaymentProviderInputFromJSON(json: any): CreateAccountPaymentProviderInput;
30
+ export declare function CreateAccountPaymentProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountPaymentProviderInput;
31
+ export declare function CreateAccountPaymentProviderInputToJSON(value?: CreateAccountPaymentProviderInput | 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.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
+ }
@@ -58,12 +58,6 @@ export interface CreateLeadInput {
58
58
  * @memberof CreateLeadInput
59
59
  */
60
60
  email: string;
61
- /**
62
- *
63
- * @type {string}
64
- * @memberof CreateLeadInput
65
- */
66
- phone: string;
67
61
  /**
68
62
  *
69
63
  * @type {string}
@@ -45,8 +45,6 @@ function instanceOfCreateLeadInput(value) {
45
45
  return false;
46
46
  if (!('email' in value) || value['email'] === undefined)
47
47
  return false;
48
- if (!('phone' in value) || value['phone'] === undefined)
49
- return false;
50
48
  if (!('companyName' in value) || value['companyName'] === undefined)
51
49
  return false;
52
50
  return true;
@@ -66,7 +64,6 @@ function CreateLeadInputFromJSONTyped(json, ignoreDiscriminator) {
66
64
  'firstname': json['firstname'],
67
65
  'lastname': json['lastname'],
68
66
  'email': json['email'],
69
- 'phone': json['phone'],
70
67
  'companyName': json['companyName'],
71
68
  };
72
69
  }
@@ -82,7 +79,6 @@ function CreateLeadInputToJSON(value) {
82
79
  'firstname': value['firstname'],
83
80
  'lastname': value['lastname'],
84
81
  'email': value['email'],
85
- 'phone': value['phone'],
86
82
  'companyName': value['companyName'],
87
83
  };
88
84
  }
@@ -63,36 +63,6 @@ export interface CreateOrderInput {
63
63
  * @memberof CreateOrderInput
64
64
  */
65
65
  email: string;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof CreateOrderInput
70
- */
71
- phone: string;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof CreateOrderInput
76
- */
77
- country: string;
78
- /**
79
- *
80
- * @type {string}
81
- * @memberof CreateOrderInput
82
- */
83
- city: string;
84
- /**
85
- *
86
- * @type {string}
87
- * @memberof CreateOrderInput
88
- */
89
- postalCode: string;
90
- /**
91
- *
92
- * @type {string}
93
- * @memberof CreateOrderInput
94
- */
95
- address: string;
96
66
  }
97
67
  /**
98
68
  * Check if a given object implements the CreateOrderInput interface.
@@ -37,16 +37,6 @@ function instanceOfCreateOrderInput(value) {
37
37
  return false;
38
38
  if (!('email' in value) || value['email'] === undefined)
39
39
  return false;
40
- if (!('phone' in value) || value['phone'] === undefined)
41
- return false;
42
- if (!('country' in value) || value['country'] === undefined)
43
- return false;
44
- if (!('city' in value) || value['city'] === undefined)
45
- return false;
46
- if (!('postalCode' in value) || value['postalCode'] === undefined)
47
- return false;
48
- if (!('address' in value) || value['address'] === undefined)
49
- return false;
50
40
  return true;
51
41
  }
52
42
  function CreateOrderInputFromJSON(json) {
@@ -65,11 +55,6 @@ function CreateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
65
55
  'firstname': json['firstname'],
66
56
  'lastname': json['lastname'],
67
57
  'email': json['email'],
68
- 'phone': json['phone'],
69
- 'country': json['country'],
70
- 'city': json['city'],
71
- 'postalCode': json['postalCode'],
72
- 'address': json['address'],
73
58
  };
74
59
  }
75
60
  function CreateOrderInputToJSON(value) {
@@ -85,10 +70,5 @@ function CreateOrderInputToJSON(value) {
85
70
  'firstname': value['firstname'],
86
71
  'lastname': value['lastname'],
87
72
  'email': value['email'],
88
- 'phone': value['phone'],
89
- 'country': value['country'],
90
- 'city': value['city'],
91
- 'postalCode': value['postalCode'],
92
- 'address': value['address'],
93
73
  };
94
74
  }
@@ -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.instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto = instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto;
17
- exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON;
18
- exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped;
19
- exports.IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON = IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON;
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 IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto interface.
23
+ * Check if a given object implements the IntersectionAccountDtoWithSettingsDto interface.
25
24
  */
26
- function instanceOfIntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto(value) {
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 (!('financial' in value) || value['financial'] === undefined)
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 IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSON(json) {
46
- return IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json, false);
42
+ function IntersectionAccountDtoWithSettingsDtoFromJSON(json) {
43
+ return IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json, false);
47
44
  }
48
- function IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoFromJSONTyped(json, ignoreDiscriminator) {
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
- 'financial': (0, WithFinancialDtoInner_1.WithFinancialDtoInnerFromJSON)(json['financial']),
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 IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDtoToJSON(value) {
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
- 'financial': (0, WithFinancialDtoInner_1.WithFinancialDtoInnerToJSON)(value['financial']),
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
  }
@@ -54,6 +54,12 @@ export interface IntersectionDomainSalesInformationDtoWithDomainStatsDto {
54
54
  * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
55
55
  */
56
56
  seller: DomainSellerDto;
57
+ /**
58
+ * The domain "sold" status
59
+ * @type {boolean}
60
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
61
+ */
62
+ sold: boolean;
57
63
  }
58
64
  /**
59
65
  * Check if a given object implements the IntersectionDomainSalesInformationDtoWithDomainStatsDto interface.
@@ -36,6 +36,8 @@ function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDto(value
36
36
  return false;
37
37
  if (!('seller' in value) || value['seller'] === undefined)
38
38
  return false;
39
+ if (!('sold' in value) || value['sold'] === undefined)
40
+ return false;
39
41
  return true;
40
42
  }
41
43
  function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSON(json) {
@@ -52,6 +54,7 @@ function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONTyped(js
52
54
  'buyNowPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNowPrice']),
53
55
  'minOfferPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOfferPrice']),
54
56
  'seller': (0, DomainSellerDto_1.DomainSellerDtoFromJSON)(json['seller']),
57
+ 'sold': json['sold'],
55
58
  };
56
59
  }
57
60
  function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON(value) {
@@ -65,5 +68,6 @@ function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON(value) {
65
68
  'buyNowPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNowPrice']),
66
69
  'minOfferPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOfferPrice']),
67
70
  'seller': (0, DomainSellerDto_1.DomainSellerDtoToJSON)(value['seller']),
71
+ 'sold': value['sold'],
68
72
  };
69
73
  }
@@ -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 OrderCheckoutSessionDto
16
+ */
17
+ export interface OrderCheckoutSessionDto {
18
+ /**
19
+ * Order payment provider checkout session token
20
+ * @type {string}
21
+ * @memberof OrderCheckoutSessionDto
22
+ */
23
+ accessToken: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the OrderCheckoutSessionDto interface.
27
+ */
28
+ export declare function instanceOfOrderCheckoutSessionDto(value: object): value is OrderCheckoutSessionDto;
29
+ export declare function OrderCheckoutSessionDtoFromJSON(json: any): OrderCheckoutSessionDto;
30
+ export declare function OrderCheckoutSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCheckoutSessionDto;
31
+ export declare function OrderCheckoutSessionDtoToJSON(value?: OrderCheckoutSessionDto | 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.instanceOfOrderCheckoutSessionDto = instanceOfOrderCheckoutSessionDto;
17
+ exports.OrderCheckoutSessionDtoFromJSON = OrderCheckoutSessionDtoFromJSON;
18
+ exports.OrderCheckoutSessionDtoFromJSONTyped = OrderCheckoutSessionDtoFromJSONTyped;
19
+ exports.OrderCheckoutSessionDtoToJSON = OrderCheckoutSessionDtoToJSON;
20
+ /**
21
+ * Check if a given object implements the OrderCheckoutSessionDto interface.
22
+ */
23
+ function instanceOfOrderCheckoutSessionDto(value) {
24
+ if (!('accessToken' in value) || value['accessToken'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ function OrderCheckoutSessionDtoFromJSON(json) {
29
+ return OrderCheckoutSessionDtoFromJSONTyped(json, false);
30
+ }
31
+ function OrderCheckoutSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'accessToken': json['accessToken'],
37
+ };
38
+ }
39
+ function OrderCheckoutSessionDtoToJSON(value) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'accessToken': value['accessToken'],
45
+ };
46
+ }