@randock/nameshift-api-client 0.0.50 → 0.0.51

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.50
1
+ ## @randock/nameshift-api-client@0.0.51
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.50 --save
39
+ npm install @randock/nameshift-api-client@0.0.51 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 12d38b1e6cd2ef344d8359c5f38e1ceb31d4e5f0bc6d8a0f33df89e1d8b56686a5feba47ce653232407afd5dd302a5d9
47
+ 8df6d8a7d40a12158f5b624f490a2630f0469544293a8b9e35f89ea53465fbd2595fe69631c1d3ff8afc34aa74c92d08
@@ -48,11 +48,11 @@ export interface DomainDto {
48
48
  name: string;
49
49
  /**
50
50
  * /**
51
- * The domain's currency
51
+ * The domain's currency code (ISO 4217)
52
52
  * @type {string}
53
53
  * @memberof DomainDto
54
54
  */
55
- currency: string;
55
+ currencyCode: string;
56
56
  /**
57
57
  * The BIN
58
58
  * @type {MoneyDto}
@@ -29,7 +29,7 @@ function instanceOfDomainDto(value) {
29
29
  return false;
30
30
  if (!('name' in value) || value['name'] === undefined)
31
31
  return false;
32
- if (!('currency' in value) || value['currency'] === undefined)
32
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
33
33
  return false;
34
34
  if (!('buyNow' in value) || value['buyNow'] === undefined)
35
35
  return false;
@@ -52,7 +52,7 @@ function DomainDtoFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'verified': json['verified'],
53
53
  'nameservers': json['nameservers'],
54
54
  'name': json['name'],
55
- 'currency': json['currency'],
55
+ 'currencyCode': json['currencyCode'],
56
56
  'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
57
57
  'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
58
58
  };
@@ -68,7 +68,7 @@ function DomainDtoToJSON(value) {
68
68
  'verified': value['verified'],
69
69
  'nameservers': value['nameservers'],
70
70
  'name': value['name'],
71
- 'currency': value['currency'],
71
+ 'currencyCode': value['currencyCode'],
72
72
  'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
73
73
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
74
74
  };
@@ -49,11 +49,11 @@ export interface IntersectionDomainDtoWithAccountDto {
49
49
  name: string;
50
50
  /**
51
51
  * /**
52
- * The domain's currency
52
+ * The domain's currency code (ISO 4217)
53
53
  * @type {string}
54
54
  * @memberof IntersectionDomainDtoWithAccountDto
55
55
  */
56
- currency: string;
56
+ currencyCode: string;
57
57
  /**
58
58
  * The BIN
59
59
  * @type {MoneyDto}
@@ -30,7 +30,7 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
30
30
  return false;
31
31
  if (!('name' in value) || value['name'] === undefined)
32
32
  return false;
33
- if (!('currency' in value) || value['currency'] === undefined)
33
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
34
34
  return false;
35
35
  if (!('buyNow' in value) || value['buyNow'] === undefined)
36
36
  return false;
@@ -55,7 +55,7 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
55
55
  'verified': json['verified'],
56
56
  'nameservers': json['nameservers'],
57
57
  'name': json['name'],
58
- 'currency': json['currency'],
58
+ 'currencyCode': json['currencyCode'],
59
59
  'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
60
60
  'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
61
61
  'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
@@ -72,7 +72,7 @@ function IntersectionDomainDtoWithAccountDtoToJSON(value) {
72
72
  'verified': value['verified'],
73
73
  'nameservers': value['nameservers'],
74
74
  'name': value['name'],
75
- 'currency': value['currency'],
75
+ 'currencyCode': value['currencyCode'],
76
76
  'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
77
77
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
78
78
  'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
@@ -49,11 +49,11 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
49
49
  name: string;
50
50
  /**
51
51
  * /**
52
- * The domain's currency
52
+ * The domain's currency code (ISO 4217)
53
53
  * @type {string}
54
54
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
55
55
  */
56
- currency: string;
56
+ currencyCode: string;
57
57
  /**
58
58
  * The BIN
59
59
  * @type {MoneyDto}
@@ -30,7 +30,7 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
30
30
  return false;
31
31
  if (!('name' in value) || value['name'] === undefined)
32
32
  return false;
33
- if (!('currency' in value) || value['currency'] === undefined)
33
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
34
34
  return false;
35
35
  if (!('buyNow' in value) || value['buyNow'] === undefined)
36
36
  return false;
@@ -57,7 +57,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
57
57
  'verified': json['verified'],
58
58
  'nameservers': json['nameservers'],
59
59
  'name': json['name'],
60
- 'currency': json['currency'],
60
+ 'currencyCode': json['currencyCode'],
61
61
  'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
62
62
  'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
63
63
  'hijacker': (0, AccountDto_1.AccountDtoFromJSON)(json['hijacker']),
@@ -75,7 +75,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value) {
75
75
  'verified': value['verified'],
76
76
  'nameservers': value['nameservers'],
77
77
  'name': value['name'],
78
- 'currency': value['currency'],
78
+ 'currencyCode': value['currencyCode'],
79
79
  'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
80
80
  'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
81
81
  'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value['hijacker']),
@@ -28,6 +28,12 @@ export interface UpdateDomainInput {
28
28
  * @memberof UpdateDomainInput
29
29
  */
30
30
  minOffer?: MoneyInput;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof UpdateDomainInput
35
+ */
36
+ currencyCode?: string;
31
37
  }
32
38
  /**
33
39
  * Check if a given object implements the UpdateDomainInput interface.
@@ -33,6 +33,7 @@ function UpdateDomainInputFromJSONTyped(json, ignoreDiscriminator) {
33
33
  return {
34
34
  'bin': json['bin'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['bin']),
35
35
  'minOffer': json['minOffer'] == null ? undefined : (0, MoneyInput_1.MoneyInputFromJSON)(json['minOffer']),
36
+ 'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
36
37
  };
37
38
  }
38
39
  exports.UpdateDomainInputFromJSONTyped = UpdateDomainInputFromJSONTyped;
@@ -43,6 +44,7 @@ function UpdateDomainInputToJSON(value) {
43
44
  return {
44
45
  'bin': (0, MoneyInput_1.MoneyInputToJSON)(value['bin']),
45
46
  'minOffer': (0, MoneyInput_1.MoneyInputToJSON)(value['minOffer']),
47
+ 'currencyCode': value['currencyCode'],
46
48
  };
47
49
  }
48
50
  exports.UpdateDomainInputToJSON = UpdateDomainInputToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -58,11 +58,11 @@ export interface DomainDto {
58
58
  name: string;
59
59
  /**
60
60
  * /**
61
- * The domain's currency
61
+ * The domain's currency code (ISO 4217)
62
62
  * @type {string}
63
63
  * @memberof DomainDto
64
64
  */
65
- currency: string;
65
+ currencyCode: string;
66
66
  /**
67
67
  * The BIN
68
68
  * @type {MoneyDto}
@@ -86,7 +86,7 @@ export function instanceOfDomainDto(value: object): value is DomainDto {
86
86
  if (!('verified' in value) || value['verified'] === undefined) return false;
87
87
  if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
88
88
  if (!('name' in value) || value['name'] === undefined) return false;
89
- if (!('currency' in value) || value['currency'] === undefined) return false;
89
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
90
90
  if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
91
91
  if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
92
92
  return true;
@@ -107,7 +107,7 @@ export function DomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
107
107
  'verified': json['verified'],
108
108
  'nameservers': json['nameservers'],
109
109
  'name': json['name'],
110
- 'currency': json['currency'],
110
+ 'currencyCode': json['currencyCode'],
111
111
  'buyNow': MoneyDtoFromJSON(json['buyNow']),
112
112
  'minOffer': MoneyDtoFromJSON(json['minOffer']),
113
113
  };
@@ -124,7 +124,7 @@ export function DomainDtoToJSON(value?: DomainDto | null): any {
124
124
  'verified': value['verified'],
125
125
  'nameservers': value['nameservers'],
126
126
  'name': value['name'],
127
- 'currency': value['currency'],
127
+ 'currencyCode': value['currencyCode'],
128
128
  'buyNow': MoneyDtoToJSON(value['buyNow']),
129
129
  'minOffer': MoneyDtoToJSON(value['minOffer']),
130
130
  };
@@ -64,11 +64,11 @@ export interface IntersectionDomainDtoWithAccountDto {
64
64
  name: string;
65
65
  /**
66
66
  * /**
67
- * The domain's currency
67
+ * The domain's currency code (ISO 4217)
68
68
  * @type {string}
69
69
  * @memberof IntersectionDomainDtoWithAccountDto
70
70
  */
71
- currency: string;
71
+ currencyCode: string;
72
72
  /**
73
73
  * The BIN
74
74
  * @type {MoneyDto}
@@ -98,7 +98,7 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
98
98
  if (!('verified' in value) || value['verified'] === undefined) return false;
99
99
  if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
100
100
  if (!('name' in value) || value['name'] === undefined) return false;
101
- if (!('currency' in value) || value['currency'] === undefined) return false;
101
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
102
102
  if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
103
103
  if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
104
104
  if (!('account' in value) || value['account'] === undefined) return false;
@@ -120,7 +120,7 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
120
120
  'verified': json['verified'],
121
121
  'nameservers': json['nameservers'],
122
122
  'name': json['name'],
123
- 'currency': json['currency'],
123
+ 'currencyCode': json['currencyCode'],
124
124
  'buyNow': MoneyDtoFromJSON(json['buyNow']),
125
125
  'minOffer': MoneyDtoFromJSON(json['minOffer']),
126
126
  'account': AccountDtoFromJSON(json['account']),
@@ -138,7 +138,7 @@ export function IntersectionDomainDtoWithAccountDtoToJSON(value?: IntersectionDo
138
138
  'verified': value['verified'],
139
139
  'nameservers': value['nameservers'],
140
140
  'name': value['name'],
141
- 'currency': value['currency'],
141
+ 'currencyCode': value['currencyCode'],
142
142
  'buyNow': MoneyDtoToJSON(value['buyNow']),
143
143
  'minOffer': MoneyDtoToJSON(value['minOffer']),
144
144
  'account': AccountDtoToJSON(value['account']),
@@ -64,11 +64,11 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
64
64
  name: string;
65
65
  /**
66
66
  * /**
67
- * The domain's currency
67
+ * The domain's currency code (ISO 4217)
68
68
  * @type {string}
69
69
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
70
70
  */
71
- currency: string;
71
+ currencyCode: string;
72
72
  /**
73
73
  * The BIN
74
74
  * @type {MoneyDto}
@@ -104,7 +104,7 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
104
104
  if (!('verified' in value) || value['verified'] === undefined) return false;
105
105
  if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
106
106
  if (!('name' in value) || value['name'] === undefined) return false;
107
- if (!('currency' in value) || value['currency'] === undefined) return false;
107
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
108
108
  if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
109
109
  if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
110
110
  if (!('hijacker' in value) || value['hijacker'] === undefined) return false;
@@ -127,7 +127,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
127
127
  'verified': json['verified'],
128
128
  'nameservers': json['nameservers'],
129
129
  'name': json['name'],
130
- 'currency': json['currency'],
130
+ 'currencyCode': json['currencyCode'],
131
131
  'buyNow': MoneyDtoFromJSON(json['buyNow']),
132
132
  'minOffer': MoneyDtoFromJSON(json['minOffer']),
133
133
  'hijacker': AccountDtoFromJSON(json['hijacker']),
@@ -146,7 +146,7 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON(value?:
146
146
  'verified': value['verified'],
147
147
  'nameservers': value['nameservers'],
148
148
  'name': value['name'],
149
- 'currency': value['currency'],
149
+ 'currencyCode': value['currencyCode'],
150
150
  'buyNow': MoneyDtoToJSON(value['buyNow']),
151
151
  'minOffer': MoneyDtoToJSON(value['minOffer']),
152
152
  'hijacker': AccountDtoToJSON(value['hijacker']),
@@ -38,6 +38,12 @@ export interface UpdateDomainInput {
38
38
  * @memberof UpdateDomainInput
39
39
  */
40
40
  minOffer?: MoneyInput;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof UpdateDomainInput
45
+ */
46
+ currencyCode?: string;
41
47
  }
42
48
 
43
49
  /**
@@ -59,6 +65,7 @@ export function UpdateDomainInputFromJSONTyped(json: any, ignoreDiscriminator: b
59
65
 
60
66
  'bin': json['bin'] == null ? undefined : MoneyInputFromJSON(json['bin']),
61
67
  'minOffer': json['minOffer'] == null ? undefined : MoneyInputFromJSON(json['minOffer']),
68
+ 'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
62
69
  };
63
70
  }
64
71
 
@@ -70,6 +77,7 @@ export function UpdateDomainInputToJSON(value?: UpdateDomainInput | null): any {
70
77
 
71
78
  'bin': MoneyInputToJSON(value['bin']),
72
79
  'minOffer': MoneyInputToJSON(value['minOffer']),
80
+ 'currencyCode': value['currencyCode'],
73
81
  };
74
82
  }
75
83