Skip to content

Commit a0640dc

Browse files
authored
Java api examples rate update (#7)
* Update Util.java * Update Rate.json
1 parent 2d04d97 commit a0640dc

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎rating/src/main/java/com/ups/api/app/tool/Util.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ private static boolean isWeekDay(Calendar cal) {
110110
JSON_OBJECT_TO_TARGET_TYPE.put("\"RateResponse\".\"RatedShipment\".\"ItemizedCharges\"", API_TYPE.ARRAY);
111111
JSON_OBJECT_TO_TARGET_TYPE.put("\"RateResponse\".\"RatedShipment\".\"RatedPackage\"", API_TYPE.ARRAY);
112112
JSON_OBJECT_TO_TARGET_TYPE.put("\"RateResponse\".\"RatedShipment\".\"RatedShipmentAlert\"", API_TYPE.ARRAY);
113+
JSON_OBJECT_TO_TARGET_TYPE.put("\"RateResponse\".\"RatedShipment\".\"RatedPackage\".\"NegotiatedCharges\".\"ItemizedCharges\"", API_TYPE.ARRAY);
113114
}
114115

115116
private enum API_TYPE { ARRAY }

‎rating/src/main/resources/Rate.json‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5436,7 +5436,6 @@
54365436
"required": [
54375437
"ModifierType",
54385438
"ModifierDesc",
5439-
"CurrencyCode",
54405439
"Amount"
54415440
],
54425441
"properties": {
@@ -5476,7 +5475,10 @@
54765475
"type": "object",
54775476
"properties": {
54785477
"ItemizedCharges": {
5479-
"$ref": "#/components/schemas/NegotiatedCharges_ItemizedCharges"
5478+
"type": "array",
5479+
"items": {
5480+
"$ref": "#/components/schemas/NegotiatedCharges_ItemizedCharges"
5481+
}
54805482
}
54815483
},
54825484
"xml": {
@@ -5833,4 +5835,4 @@
58335835
}
58345836
}
58355837
}
5836-
}
5838+
}

0 commit comments

Comments
 (0)