Skip to content

Commit cb034ac

Browse files
authored
Merge pull request #14 from anthonyroux/fix_subattributes-not-accessible
Fixing the not accessible sub attributes
2 parents 4322291 + b2d031c commit cb034ac

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ To make a new release, follow the following steps:
4545
- [ ] Push the new tag `git push --tags`
4646
- [ ] Update the [Releases](https://github.com/amadeus4dev/amadeus-java/releases) tab on GitHub with a new release for the tag, copying the description from the `CHANGELOG.md`
4747

48-
Travis will bow build the gem and release it to RubyGems.
48+
Travis will bow build the library and release it to BinTray and then to Maven Central.
4949

5050
## How to contribute to the Amadeus Java SDK
5151

src/main/java/com/amadeus/resources/HotelOffer.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected HotelOffer() {}
2121
* @see com.amadeus.shopping.HotelOffers#get()
2222
*/
2323
@ToString
24-
private class Hotel {
24+
public class Hotel {
2525
protected Hotel() {}
2626

2727
private @Getter String type;
@@ -70,7 +70,7 @@ protected Offer() {}
7070
* @see com.amadeus.shopping.HotelOffers#get()
7171
*/
7272
@ToString
73-
private class RateFamily {
73+
public class RateFamily {
7474
protected RateFamily() {}
7575

7676
private @Getter String code;
@@ -82,7 +82,7 @@ protected RateFamily() {}
8282
* @see com.amadeus.shopping.HotelOffers#get()
8383
*/
8484
@ToString
85-
private class Commission {
85+
public class Commission {
8686
protected Commission() {}
8787

8888
private @Getter String percentage;
@@ -95,7 +95,7 @@ protected Commission() {}
9595
* @see com.amadeus.shopping.HotelOffers#get()
9696
*/
9797
@ToString
98-
private class RoomDetails {
98+
public class RoomDetails {
9999
protected RoomDetails() {}
100100

101101
private @Getter String type;
@@ -108,7 +108,7 @@ protected RoomDetails() {}
108108
* @see com.amadeus.shopping.HotelOffers#get()
109109
*/
110110
@ToString
111-
private class EstimatedRoomType {
111+
public class EstimatedRoomType {
112112
protected EstimatedRoomType() {}
113113

114114
private @Getter String category;
@@ -121,7 +121,7 @@ protected EstimatedRoomType() {}
121121
* @see com.amadeus.shopping.HotelOffers#get()
122122
*/
123123
@ToString
124-
private class HotelPrice {
124+
public class HotelPrice {
125125
protected HotelPrice() {}
126126

127127
private @Getter String currency;
@@ -136,7 +136,7 @@ protected HotelPrice() {}
136136
* @see com.amadeus.shopping.HotelOffers#get()
137137
*/
138138
@ToString
139-
private class HotelTax {
139+
public class HotelTax {
140140
protected HotelTax() {}
141141

142142
private @Getter String currency;
@@ -154,7 +154,7 @@ protected HotelTax() {}
154154
* @see com.amadeus.shopping.HotelOffers#get()
155155
*/
156156
@ToString
157-
private class PriceVariations {
157+
public class PriceVariations {
158158
protected PriceVariations() {}
159159

160160
private @Getter BaseTotalAmount average;
@@ -166,7 +166,7 @@ protected PriceVariations() {}
166166
* @see com.amadeus.shopping.HotelOffers#get()
167167
*/
168168
@ToString
169-
private class PriceVariation {
169+
public class PriceVariation {
170170
protected PriceVariation() {}
171171

172172
private @Getter String startDate;
@@ -180,7 +180,7 @@ protected PriceVariation() {}
180180
* @see com.amadeus.shopping.HotelOffers#get()
181181
*/
182182
@ToString
183-
private class BaseTotalAmount {
183+
public class BaseTotalAmount {
184184
protected BaseTotalAmount() {}
185185

186186
private @Getter String base;
@@ -192,7 +192,7 @@ protected BaseTotalAmount() {}
192192
* @see com.amadeus.shopping.HotelOffers#get()
193193
*/
194194
@ToString
195-
private class Guests {
195+
public class Guests {
196196
protected Guests() {}
197197

198198
private @Getter Integer adults;
@@ -204,7 +204,7 @@ protected Guests() {}
204204
* @see com.amadeus.shopping.HotelOffers#get()
205205
*/
206206
@ToString
207-
private class TextWithLanguageType {
207+
public class TextWithLanguageType {
208208
protected TextWithLanguageType() {}
209209

210210
private @Getter String lang;
@@ -216,7 +216,7 @@ protected TextWithLanguageType() {}
216216
* @see com.amadeus.shopping.HotelOffers#get()
217217
*/
218218
@ToString
219-
private class MediaURI {
219+
public class MediaURI {
220220
protected MediaURI() {}
221221

222222
private @Getter String uri;
@@ -227,7 +227,7 @@ protected MediaURI() {}
227227
* @see com.amadeus.shopping.HotelOffers#get()
228228
*/
229229
@ToString
230-
private class AddressType {
230+
public class AddressType {
231231
protected AddressType() {}
232232

233233
private @Getter String[] lines;
@@ -242,7 +242,7 @@ protected AddressType() {}
242242
* @see com.amadeus.shopping.HotelOffers#get()
243243
*/
244244
@ToString
245-
private class HotelContact {
245+
public class HotelContact {
246246
protected HotelContact() {}
247247

248248
private @Getter String phone;
@@ -254,7 +254,7 @@ protected HotelContact() {}
254254
* @see com.amadeus.shopping.HotelOffers#get()
255255
*/
256256
@ToString
257-
private class PolicyDetails {
257+
public class PolicyDetails {
258258
protected PolicyDetails() {}
259259

260260
private @Getter GuaranteePolicy guarantee;
@@ -269,7 +269,7 @@ protected PolicyDetails() {}
269269
* @see com.amadeus.shopping.HotelOffers#get()
270270
*/
271271
@ToString
272-
private class GuaranteePolicy {
272+
public class GuaranteePolicy {
273273
protected GuaranteePolicy() {}
274274

275275
private @Getter String amount;
@@ -283,7 +283,7 @@ protected GuaranteePolicy() {}
283283
* @see com.amadeus.shopping.HotelOffers#get()
284284
*/
285285
@ToString
286-
private class CancellationPolicy {
286+
public class CancellationPolicy {
287287
protected CancellationPolicy() {}
288288

289289
private @Getter String type;
@@ -299,7 +299,7 @@ protected CancellationPolicy() {}
299299
* @see com.amadeus.shopping.HotelOffers#get()
300300
*/
301301
@ToString
302-
private class PaymentPolicy {
302+
public class PaymentPolicy {
303303
protected PaymentPolicy() {}
304304

305305
private @Getter String[] creditCards;

src/main/java/com/amadeus/resources/Location.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@ protected Location() {}
2424
private @Getter Double relevance;
2525

2626
/**
27-
* An Location-related object as returned by the Locaion API.
27+
* An Location-related object as returned by the Location API.
2828
* @see com.amadeus.referenceData.Location#get()
2929
*/
3030
@ToString
31-
private class GeoCode {
31+
public class GeoCode {
3232
protected GeoCode() {}
3333

3434
private @Getter double latitude;
3535
private @Getter double longitude;
3636
}
3737

3838
/**
39-
* An Location-related object as returned by the Locaion API.
39+
* An Location-related object as returned by the Location API.
4040
* @see com.amadeus.referenceData.Location#get()
4141
*/
4242
@ToString
43-
private class Address {
43+
public class Address {
4444
protected Address() {}
4545

4646
private @Getter String cityName;
@@ -55,7 +55,7 @@ protected Address() {}
5555
* @see com.amadeus.referenceData.Location#get()
5656
*/
5757
@ToString
58-
private class Distance {
58+
public class Distance {
5959
protected Distance() {}
6060

6161
private @Getter Double value;
@@ -67,7 +67,7 @@ protected Distance() {}
6767
* @see com.amadeus.referenceData.Location#get()
6868
*/
6969
@ToString
70-
private class Analytics {
70+
public class Analytics {
7171
protected Analytics() {}
7272

7373
private @Getter Flights flights;
@@ -78,7 +78,7 @@ protected Analytics() {}
7878
* @see com.amadeus.referenceData.Location#get()
7979
*/
8080
@ToString
81-
private class Flights {
81+
public class Flights {
8282
protected Flights() {}
8383

8484
private @Getter Double score;
@@ -89,7 +89,7 @@ protected Flights() {}
8989
* @see com.amadeus.referenceData.Location#get()
9090
*/
9191
@ToString
92-
private class Travelers {
92+
public class Travelers {
9393
protected Travelers() {}
9494

9595
private @Getter Double score;

0 commit comments

Comments
 (0)