Skip to content

Commit 6a44f6b

Browse files
feat(api): add IS_NEW_MERCHANT attribute to authorization action parameters
1 parent 183501b commit 6a44f6b

2 files changed

Lines changed: 17 additions & 2 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/lithic-a46ebb10f6bb217a591206f0574450c324f108dbd32a2d62727cd8186d85e94f.yml
3-
openapi_spec_hash: f320c173152f74b0799166b6ef5b82cd
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-92d7ce0702a494edb7beb0ad484c4f24aca65777197d40b2108d05c13c3fa505.yml
3+
openapi_spec_hash: 35e4b9edb38ef23f528fcfbfeaabac02
44
config_hash: ac8326134e692f3f3bdec82396bbec80

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,9 @@ private constructor(
485485
* for the entity. Requires `parameters.scope`.
486486
* * `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in the
487487
* entity's transaction history. Requires `parameters.scope`.
488+
* * `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the card's
489+
* approved transaction history (capped at the 1000 most recently seen merchants). Valid
490+
* values are `TRUE`, `FALSE`. Card-scoped only; no `parameters` required.
488491
* * `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as a
489492
* percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
490493
*
@@ -694,6 +697,9 @@ private constructor(
694697
* transaction for the entity. Requires `parameters.scope`.
695698
* * `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in the
696699
* entity's transaction history. Requires `parameters.scope`.
700+
* * `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the card's
701+
* approved transaction history (capped at the 1000 most recently seen merchants).
702+
* Valid values are `TRUE`, `FALSE`. Card-scoped only; no `parameters` required.
697703
* * `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as a
698704
* percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
699705
*/
@@ -944,6 +950,9 @@ private constructor(
944950
* for the entity. Requires `parameters.scope`.
945951
* * `DISTINCT_COUNTRY_COUNT`: The number of distinct merchant countries seen in the
946952
* entity's transaction history. Requires `parameters.scope`.
953+
* * `IS_NEW_MERCHANT`: Whether the card acceptor ID has not been seen in the card's
954+
* approved transaction history (capped at the 1000 most recently seen merchants). Valid
955+
* values are `TRUE`, `FALSE`. Card-scoped only; no `parameters` required.
947956
* * `THREE_DS_SUCCESS_RATE`: The 3DS authentication success rate for the card, as a
948957
* percentage from 0.0 to 100.0. Card-scoped only; no `parameters` required.
949958
*/
@@ -1032,6 +1041,8 @@ private constructor(
10321041

10331042
@JvmField val DISTINCT_COUNTRY_COUNT = of("DISTINCT_COUNTRY_COUNT")
10341043

1044+
@JvmField val IS_NEW_MERCHANT = of("IS_NEW_MERCHANT")
1045+
10351046
@JvmField val THREE_DS_SUCCESS_RATE = of("THREE_DS_SUCCESS_RATE")
10361047

10371048
@JvmStatic fun of(value: String) = Attribute(JsonField.of(value))
@@ -1074,6 +1085,7 @@ private constructor(
10741085
CONSECUTIVE_DECLINES,
10751086
TIME_SINCE_LAST_TRANSACTION,
10761087
DISTINCT_COUNTRY_COUNT,
1088+
IS_NEW_MERCHANT,
10771089
THREE_DS_SUCCESS_RATE,
10781090
}
10791091

@@ -1122,6 +1134,7 @@ private constructor(
11221134
CONSECUTIVE_DECLINES,
11231135
TIME_SINCE_LAST_TRANSACTION,
11241136
DISTINCT_COUNTRY_COUNT,
1137+
IS_NEW_MERCHANT,
11251138
THREE_DS_SUCCESS_RATE,
11261139
/**
11271140
* An enum member indicating that [Attribute] was instantiated with an unknown
@@ -1174,6 +1187,7 @@ private constructor(
11741187
CONSECUTIVE_DECLINES -> Value.CONSECUTIVE_DECLINES
11751188
TIME_SINCE_LAST_TRANSACTION -> Value.TIME_SINCE_LAST_TRANSACTION
11761189
DISTINCT_COUNTRY_COUNT -> Value.DISTINCT_COUNTRY_COUNT
1190+
IS_NEW_MERCHANT -> Value.IS_NEW_MERCHANT
11771191
THREE_DS_SUCCESS_RATE -> Value.THREE_DS_SUCCESS_RATE
11781192
else -> Value._UNKNOWN
11791193
}
@@ -1224,6 +1238,7 @@ private constructor(
12241238
CONSECUTIVE_DECLINES -> Known.CONSECUTIVE_DECLINES
12251239
TIME_SINCE_LAST_TRANSACTION -> Known.TIME_SINCE_LAST_TRANSACTION
12261240
DISTINCT_COUNTRY_COUNT -> Known.DISTINCT_COUNTRY_COUNT
1241+
IS_NEW_MERCHANT -> Known.IS_NEW_MERCHANT
12271242
THREE_DS_SUCCESS_RATE -> Known.THREE_DS_SUCCESS_RATE
12281243
else -> throw LithicInvalidDataException("Unknown Attribute: $value")
12291244
}

0 commit comments

Comments
 (0)