Skip to content

Commit 638084a

Browse files
feat(api): add AMEX to Network enum in settlement params and models
1 parent 386e6bb commit 638084a

5 files changed

Lines changed: 23 additions & 5 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 191
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-599dd2ac665b09566a84c4871ffb3b7313f6b40d0808b8ab4df63bec608b4f9f.yml
3-
openapi_spec_hash: 429e0ad5e3aae4f63935859c2ac64fdc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ab626b78e088455e814b80debc85d420839bc11f95416491fef6a0460f2d95ed.yml
3+
openapi_spec_hash: f6ae1bbed371a5d45927cd63797a9908
44
config_hash: ac8326134e692f3f3bdec82396bbec80

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

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

395395
companion object {
396396

397+
@JvmField val AMEX = of("AMEX")
398+
397399
@JvmField val VISA = of("VISA")
398400

399401
@JvmField val MASTERCARD = of("MASTERCARD")
@@ -407,6 +409,7 @@ private constructor(
407409

408410
/** An enum containing [Network]'s known values. */
409411
enum class Known {
412+
AMEX,
410413
VISA,
411414
MASTERCARD,
412415
MAESTRO,
@@ -423,6 +426,7 @@ private constructor(
423426
* - It was constructed with an arbitrary value using the [of] method.
424427
*/
425428
enum class Value {
429+
AMEX,
426430
VISA,
427431
MASTERCARD,
428432
MAESTRO,
@@ -440,6 +444,7 @@ private constructor(
440444
*/
441445
fun value(): Value =
442446
when (this) {
447+
AMEX -> Value.AMEX
443448
VISA -> Value.VISA
444449
MASTERCARD -> Value.MASTERCARD
445450
MAESTRO -> Value.MAESTRO
@@ -458,6 +463,7 @@ private constructor(
458463
*/
459464
fun known(): Known =
460465
when (this) {
466+
AMEX -> Known.AMEX
461467
VISA -> Known.VISA
462468
MASTERCARD -> Known.MASTERCARD
463469
MAESTRO -> Known.MAESTRO

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

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

10491049
companion object {
10501050

1051+
@JvmField val AMEX = of("AMEX")
1052+
10511053
@JvmField val INTERLINK = of("INTERLINK")
10521054

10531055
@JvmField val MAESTRO = of("MAESTRO")
@@ -1063,6 +1065,7 @@ private constructor(
10631065

10641066
/** An enum containing [Network]'s known values. */
10651067
enum class Known {
1068+
AMEX,
10661069
INTERLINK,
10671070
MAESTRO,
10681071
MASTERCARD,
@@ -1080,6 +1083,7 @@ private constructor(
10801083
* - It was constructed with an arbitrary value using the [of] method.
10811084
*/
10821085
enum class Value {
1086+
AMEX,
10831087
INTERLINK,
10841088
MAESTRO,
10851089
MASTERCARD,
@@ -1098,6 +1102,7 @@ private constructor(
10981102
*/
10991103
fun value(): Value =
11001104
when (this) {
1105+
AMEX -> Value.AMEX
11011106
INTERLINK -> Value.INTERLINK
11021107
MAESTRO -> Value.MAESTRO
11031108
MASTERCARD -> Value.MASTERCARD
@@ -1117,6 +1122,7 @@ private constructor(
11171122
*/
11181123
fun known(): Known =
11191124
when (this) {
1125+
AMEX -> Known.AMEX
11201126
INTERLINK -> Known.INTERLINK
11211127
MAESTRO -> Known.MAESTRO
11221128
MASTERCARD -> Known.MASTERCARD

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

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

462462
companion object {
463463

464+
@JvmField val AMEX = of("AMEX")
465+
464466
@JvmField val INTERLINK = of("INTERLINK")
465467

466468
@JvmField val MAESTRO = of("MAESTRO")
@@ -476,6 +478,7 @@ private constructor(
476478

477479
/** An enum containing [Network]'s known values. */
478480
enum class Known {
481+
AMEX,
479482
INTERLINK,
480483
MAESTRO,
481484
MASTERCARD,
@@ -493,6 +496,7 @@ private constructor(
493496
* - It was constructed with an arbitrary value using the [of] method.
494497
*/
495498
enum class Value {
499+
AMEX,
496500
INTERLINK,
497501
MAESTRO,
498502
MASTERCARD,
@@ -511,6 +515,7 @@ private constructor(
511515
*/
512516
fun value(): Value =
513517
when (this) {
518+
AMEX -> Value.AMEX
514519
INTERLINK -> Value.INTERLINK
515520
MAESTRO -> Value.MAESTRO
516521
MASTERCARD -> Value.MASTERCARD
@@ -530,6 +535,7 @@ private constructor(
530535
*/
531536
fun known(): Known =
532537
when (this) {
538+
AMEX -> Known.AMEX
533539
INTERLINK -> Known.INTERLINK
534540
MAESTRO -> Known.MAESTRO
535541
MASTERCARD -> Known.MASTERCARD

lithic-java-core/src/test/kotlin/com/lithic/api/models/ReportSettlementNetworkTotalListParamsTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal class ReportSettlementNetworkTotalListParamsTest {
1717
.end(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
1818
.endingBefore("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
1919
.institutionId("institution_id")
20-
.network(ReportSettlementNetworkTotalListParams.Network.VISA)
20+
.network(ReportSettlementNetworkTotalListParams.Network.AMEX)
2121
.pageSize(1L)
2222
.reportDate(LocalDate.parse("2019-12-27"))
2323
.reportDateBegin(LocalDate.parse("2019-12-27"))
@@ -35,7 +35,7 @@ internal class ReportSettlementNetworkTotalListParamsTest {
3535
.end(OffsetDateTime.parse("2019-12-27T18:11:19.117Z"))
3636
.endingBefore("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
3737
.institutionId("institution_id")
38-
.network(ReportSettlementNetworkTotalListParams.Network.VISA)
38+
.network(ReportSettlementNetworkTotalListParams.Network.AMEX)
3939
.pageSize(1L)
4040
.reportDate(LocalDate.parse("2019-12-27"))
4141
.reportDateBegin(LocalDate.parse("2019-12-27"))
@@ -53,7 +53,7 @@ internal class ReportSettlementNetworkTotalListParamsTest {
5353
.put("end", "2019-12-27T18:11:19.117Z")
5454
.put("ending_before", "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
5555
.put("institution_id", "institution_id")
56-
.put("network", "VISA")
56+
.put("network", "AMEX")
5757
.put("page_size", "1")
5858
.put("report_date", "2019-12-27")
5959
.put("report_date_begin", "2019-12-27")

0 commit comments

Comments
 (0)