Skip to content

Commit 04a8ecd

Browse files
feat(api): add canceled to transaction_status enum values (#310)
1 parent f6dd273 commit 04a8ecd

3 files changed

Lines changed: 40 additions & 28 deletions

File tree

lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPayment.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,8 @@ private constructor(
10881088

10891089
@JvmField val REVERSED = TransactionStatus(JsonField.of("REVERSED"))
10901090

1091+
@JvmField val CANCELED = TransactionStatus(JsonField.of("CANCELED"))
1092+
10911093
@JvmStatic fun of(value: String) = TransactionStatus(JsonField.of(value))
10921094
}
10931095

@@ -1096,13 +1098,15 @@ private constructor(
10961098
SETTLED,
10971099
DECLINED,
10981100
REVERSED,
1101+
CANCELED,
10991102
}
11001103

11011104
enum class Value {
11021105
PENDING,
11031106
SETTLED,
11041107
DECLINED,
11051108
REVERSED,
1109+
CANCELED,
11061110
_UNKNOWN,
11071111
}
11081112

@@ -1112,6 +1116,7 @@ private constructor(
11121116
SETTLED -> Value.SETTLED
11131117
DECLINED -> Value.DECLINED
11141118
REVERSED -> Value.REVERSED
1119+
CANCELED -> Value.CANCELED
11151120
else -> Value._UNKNOWN
11161121
}
11171122

@@ -1121,6 +1126,7 @@ private constructor(
11211126
SETTLED -> Known.SETTLED
11221127
DECLINED -> Known.DECLINED
11231128
REVERSED -> Known.REVERSED
1129+
CANCELED -> Known.CANCELED
11241130
else -> throw LithicInvalidDataException("Unknown TransactionStatus: $value")
11251131
}
11261132

lithic-java-core/src/main/kotlin/com/lithic/api/models/ExternalPaymentListParams.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ constructor(
408408

409409
@JvmField val REVERSED = TransactionStatus(JsonField.of("REVERSED"))
410410

411+
@JvmField val CANCELED = TransactionStatus(JsonField.of("CANCELED"))
412+
411413
@JvmStatic fun of(value: String) = TransactionStatus(JsonField.of(value))
412414
}
413415

@@ -416,13 +418,15 @@ constructor(
416418
SETTLED,
417419
DECLINED,
418420
REVERSED,
421+
CANCELED,
419422
}
420423

421424
enum class Value {
422425
PENDING,
423426
SETTLED,
424427
DECLINED,
425428
REVERSED,
429+
CANCELED,
426430
_UNKNOWN,
427431
}
428432

@@ -432,6 +436,7 @@ constructor(
432436
SETTLED -> Value.SETTLED
433437
DECLINED -> Value.DECLINED
434438
REVERSED -> Value.REVERSED
439+
CANCELED -> Value.CANCELED
435440
else -> Value._UNKNOWN
436441
}
437442

@@ -441,6 +446,7 @@ constructor(
441446
SETTLED -> Known.SETTLED
442447
DECLINED -> Known.DECLINED
443448
REVERSED -> Known.REVERSED
449+
CANCELED -> Known.CANCELED
444450
else -> throw LithicInvalidDataException("Unknown TransactionStatus: $value")
445451
}
446452

lithic-java-core/src/main/kotlin/com/lithic/api/models/Transaction.kt

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ private constructor(
971971

972972
/**
973973
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
974-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
974+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
975975
* :attr:`Currency.eur`, :attr:`Currency.usd`.
976976
*/
977977
fun currency(): Currency = currency.getRequired("currency")
@@ -982,7 +982,7 @@ private constructor(
982982

983983
/**
984984
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
985-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
985+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
986986
* :attr:`Currency.eur`, :attr:`Currency.usd`.
987987
*/
988988
@JsonProperty("currency") @ExcludeMissing fun _currency() = currency
@@ -1067,14 +1067,14 @@ private constructor(
10671067

10681068
/**
10691069
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1070-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1070+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
10711071
* :attr:`Currency.eur`, :attr:`Currency.usd`.
10721072
*/
10731073
fun currency(currency: Currency) = currency(JsonField.of(currency))
10741074

10751075
/**
10761076
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1077-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1077+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
10781078
* :attr:`Currency.eur`, :attr:`Currency.usd`.
10791079
*/
10801080
@JsonProperty("currency")
@@ -1123,7 +1123,7 @@ private constructor(
11231123

11241124
/**
11251125
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1126-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1126+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
11271127
* :attr:`Currency.eur`, :attr:`Currency.usd`.
11281128
*/
11291129
fun currency(): Currency = currency.getRequired("currency")
@@ -1132,7 +1132,7 @@ private constructor(
11321132

11331133
/**
11341134
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1135-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1135+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
11361136
* :attr:`Currency.eur`, :attr:`Currency.usd`.
11371137
*/
11381138
@JsonProperty("currency") @ExcludeMissing fun _currency() = currency
@@ -1203,14 +1203,14 @@ private constructor(
12031203

12041204
/**
12051205
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1206-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1206+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
12071207
* :attr:`Currency.eur`, :attr:`Currency.usd`.
12081208
*/
12091209
fun currency(currency: Currency) = currency(JsonField.of(currency))
12101210

12111211
/**
12121212
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1213-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1213+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
12141214
* :attr:`Currency.eur`, :attr:`Currency.usd`.
12151215
*/
12161216
@JsonProperty("currency")
@@ -1258,7 +1258,7 @@ private constructor(
12581258

12591259
/**
12601260
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1261-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1261+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
12621262
* :attr:`Currency.eur`, :attr:`Currency.usd`.
12631263
*/
12641264
fun currency(): Currency = currency.getRequired("currency")
@@ -1267,7 +1267,7 @@ private constructor(
12671267

12681268
/**
12691269
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1270-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1270+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
12711271
* :attr:`Currency.eur`, :attr:`Currency.usd`.
12721272
*/
12731273
@JsonProperty("currency") @ExcludeMissing fun _currency() = currency
@@ -1338,14 +1338,14 @@ private constructor(
13381338

13391339
/**
13401340
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1341-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1341+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
13421342
* :attr:`Currency.eur`, :attr:`Currency.usd`.
13431343
*/
13441344
fun currency(currency: Currency) = currency(JsonField.of(currency))
13451345

13461346
/**
13471347
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1348-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1348+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
13491349
* :attr:`Currency.eur`, :attr:`Currency.usd`.
13501350
*/
13511351
@JsonProperty("currency")
@@ -1393,7 +1393,7 @@ private constructor(
13931393

13941394
/**
13951395
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1396-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1396+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
13971397
* :attr:`Currency.eur`, :attr:`Currency.usd`.
13981398
*/
13991399
fun currency(): Currency = currency.getRequired("currency")
@@ -1402,7 +1402,7 @@ private constructor(
14021402

14031403
/**
14041404
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1405-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1405+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
14061406
* :attr:`Currency.eur`, :attr:`Currency.usd`.
14071407
*/
14081408
@JsonProperty("currency") @ExcludeMissing fun _currency() = currency
@@ -1473,14 +1473,14 @@ private constructor(
14731473

14741474
/**
14751475
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1476-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1476+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
14771477
* :attr:`Currency.eur`, :attr:`Currency.usd`.
14781478
*/
14791479
fun currency(currency: Currency) = currency(JsonField.of(currency))
14801480

14811481
/**
14821482
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
1483-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
1483+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
14841484
* :attr:`Currency.eur`, :attr:`Currency.usd`.
14851485
*/
14861486
@JsonProperty("currency")
@@ -2200,7 +2200,7 @@ private constructor(
22002200

22012201
/**
22022202
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
2203-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
2203+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
22042204
* :attr:`Currency.eur`, :attr:`Currency.usd`.
22052205
*/
22062206
fun currency(): Currency = currency.getRequired("currency")
@@ -2213,7 +2213,7 @@ private constructor(
22132213

22142214
/**
22152215
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
2216-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
2216+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
22172217
* :attr:`Currency.eur`, :attr:`Currency.usd`.
22182218
*/
22192219
@JsonProperty("currency") @ExcludeMissing fun _currency() = currency
@@ -2298,14 +2298,14 @@ private constructor(
22982298

22992299
/**
23002300
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some
2301-
* special currencies like ``XXX`. Enumerants names are lowercase cureency code
2301+
* special currencies like ``XXX`. Enumerants names are lowercase currency code
23022302
* e.g. :attr:`Currency.eur`, :attr:`Currency.usd`.
23032303
*/
23042304
fun currency(currency: Currency) = currency(JsonField.of(currency))
23052305

23062306
/**
23072307
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some
2308-
* special currencies like ``XXX`. Enumerants names are lowercase cureency code
2308+
* special currencies like ``XXX`. Enumerants names are lowercase currency code
23092309
* e.g. :attr:`Currency.eur`, :attr:`Currency.usd`.
23102310
*/
23112311
@JsonProperty("currency")
@@ -2354,7 +2354,7 @@ private constructor(
23542354

23552355
/**
23562356
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
2357-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
2357+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
23582358
* :attr:`Currency.eur`, :attr:`Currency.usd`.
23592359
*/
23602360
fun currency(): Currency = currency.getRequired("currency")
@@ -2363,7 +2363,7 @@ private constructor(
23632363

23642364
/**
23652365
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
2366-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
2366+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
23672367
* :attr:`Currency.eur`, :attr:`Currency.usd`.
23682368
*/
23692369
@JsonProperty("currency") @ExcludeMissing fun _currency() = currency
@@ -2434,14 +2434,14 @@ private constructor(
24342434

24352435
/**
24362436
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some
2437-
* special currencies like ``XXX`. Enumerants names are lowercase cureency code
2437+
* special currencies like ``XXX`. Enumerants names are lowercase currency code
24382438
* e.g. :attr:`Currency.eur`, :attr:`Currency.usd`.
24392439
*/
24402440
fun currency(currency: Currency) = currency(JsonField.of(currency))
24412441

24422442
/**
24432443
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some
2444-
* special currencies like ``XXX`. Enumerants names are lowercase cureency code
2444+
* special currencies like ``XXX`. Enumerants names are lowercase currency code
24452445
* e.g. :attr:`Currency.eur`, :attr:`Currency.usd`.
24462446
*/
24472447
@JsonProperty("currency")
@@ -2492,7 +2492,7 @@ private constructor(
24922492

24932493
/**
24942494
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
2495-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
2495+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
24962496
* :attr:`Currency.eur`, :attr:`Currency.usd`.
24972497
*/
24982498
fun currency(): Currency = currency.getRequired("currency")
@@ -2505,7 +2505,7 @@ private constructor(
25052505

25062506
/**
25072507
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some special
2508-
* currencies like ``XXX`. Enumerants names are lowercase cureency code e.g.
2508+
* currencies like ``XXX`. Enumerants names are lowercase currency code e.g.
25092509
* :attr:`Currency.eur`, :attr:`Currency.usd`.
25102510
*/
25112511
@JsonProperty("currency") @ExcludeMissing fun _currency() = currency
@@ -2590,14 +2590,14 @@ private constructor(
25902590

25912591
/**
25922592
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some
2593-
* special currencies like ``XXX`. Enumerants names are lowercase cureency code
2593+
* special currencies like ``XXX`. Enumerants names are lowercase currency code
25942594
* e.g. :attr:`Currency.eur`, :attr:`Currency.usd`.
25952595
*/
25962596
fun currency(currency: Currency) = currency(JsonField.of(currency))
25972597

25982598
/**
25992599
* ISO 4217 currency. Its enumerants are ISO 4217 currencies except for some
2600-
* special currencies like ``XXX`. Enumerants names are lowercase cureency code
2600+
* special currencies like ``XXX`. Enumerants names are lowercase currency code
26012601
* e.g. :attr:`Currency.eur`, :attr:`Currency.usd`.
26022602
*/
26032603
@JsonProperty("currency")

0 commit comments

Comments
 (0)