Skip to content

Commit 4807eb8

Browse files
committed
Merge branch '332-update-fueling-api' into 'master'
Resolve "Update Fueling API" Closes #332 See merge request pace/mobile/android/pace-cloud-sdk!361
2 parents 4df1402 + c22bb10 commit 4807eb8

File tree

5 files changed

+39
-5
lines changed

5 files changed

+39
-5
lines changed

library/src/main/java/cloud/pace/sdk/api/fueling/generated/model/FuelPriceModel.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,14 @@ class FuelPrice : Resource() {
140140

141141
@SerializedName("heatingOil")
142142
@Json(name = "heatingOil")
143-
HEATINGOIL("heatingOil")
143+
HEATINGOIL("heatingOil"),
144+
145+
@SerializedName("washerFluid")
146+
@Json(name = "washerFluid")
147+
WASHERFLUID("washerFluid"),
148+
149+
@SerializedName("twoStroke")
150+
@Json(name = "twoStroke")
151+
TWOSTROKE("twoStroke")
144152
}
145153
}

library/src/main/java/cloud/pace/sdk/api/fueling/generated/model/FuelPriceResponseModel.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,14 @@ class FuelPriceResponse : Resource() {
140140

141141
@SerializedName("heatingOil")
142142
@Json(name = "heatingOil")
143-
HEATINGOIL("heatingOil")
143+
HEATINGOIL("heatingOil"),
144+
145+
@SerializedName("washerFluid")
146+
@Json(name = "washerFluid")
147+
WASHERFLUID("washerFluid"),
148+
149+
@SerializedName("twoStroke")
150+
@Json(name = "twoStroke")
151+
TWOSTROKE("twoStroke")
144152
}
145153
}

library/src/main/java/cloud/pace/sdk/api/fueling/generated/model/PaymentMethodKindModel.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ class PaymentMethodKind : Resource() {
2222
/* Indicates whether the payment method is a fuel card. Fuelcard `no` means no. */
2323
var fuelcard: Boolean? = null
2424

25-
/* Indicates whether the payment method can be onboarded/modified. Implict `true` means no. Otherwise yes.
26-
Most payment method kinds are no implicit, i.e., `implicit=false`.
25+
/* Indicates whether the payment method has been onboarded implicitely, e.g., an on-device payment method such as Apple Pay or Google Pay.
2726
This field is optional and if not present should be assumed to indicate `implicit=false`.
2827
*/
2928
var implicit: Boolean? = null
3029

30+
/* Indicates whether the payment method can be onboarded/modified. Managed `true` means no. Otherwise yes.
31+
Most payment method kinds are not managed, i.e., `managed=false`.
32+
*/
33+
var managed: Boolean? = null
34+
3135
/* localized name */
3236
var name: String? = null
3337

library/src/main/java/cloud/pace/sdk/api/fueling/generated/model/ProcessPaymentResponseModel.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ class ProcessPaymentResponse : Resource() {
3232
var priceWithoutVAT: Double? = null
3333
var pumpId: String? = null
3434

35+
/* Additional information that will be rendered on the receipt */
36+
var receiptInformation: List<String>? = null
37+
3538
/* Vehicle identification number */
3639
var vin: String? = null
3740

library/src/main/java/cloud/pace/sdk/api/fueling/generated/model/TransactionRequestModel.kt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ class TransactionRequest : Resource() {
4444
var numberPlate: String? = null
4545
var priceIncludingVAT: Double? = null
4646

47+
/* Additional information that will be rendered on the receipt */
48+
var receiptInformation: List<String>? = null
49+
4750
/* Set to 'true' if you want the payment to be cleared automatically in the background after fueling */
4851
var unattendedPayment: Boolean? = null
4952

@@ -162,6 +165,14 @@ class TransactionRequest : Resource() {
162165

163166
@SerializedName("heatingOil")
164167
@Json(name = "heatingOil")
165-
HEATINGOIL("heatingOil")
168+
HEATINGOIL("heatingOil"),
169+
170+
@SerializedName("washerFluid")
171+
@Json(name = "washerFluid")
172+
WASHERFLUID("washerFluid"),
173+
174+
@SerializedName("twoStroke")
175+
@Json(name = "twoStroke")
176+
TWOSTROKE("twoStroke")
166177
}
167178
}

0 commit comments

Comments
 (0)