Skip to content

Commit bf7de58

Browse files
Update generated code for v2197 and
1 parent 56849e0 commit bf7de58

File tree

5 files changed

+203
-14
lines changed

5 files changed

+203
-14
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b2b6ac2ae2ea46b678ca6df0040e6ba2f9ea11af
1+
2909a9f94e3392db0c39d4c1c776fe1d4977caab

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2196
1+
v2197

src/main/java/com/stripe/model/issuing/Authorization.java

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ public class Authorization extends ApiResource
214214
@Setter(lombok.AccessLevel.NONE)
215215
ExpandableField<Token> token;
216216

217+
@SerializedName("token_details")
218+
TokenDetails tokenDetails;
219+
217220
/**
218221
* List of <a href="https://docs.stripe.com/api/issuing/transactions">transactions</a> associated
219222
* with this authorization.
@@ -1158,6 +1161,203 @@ public static class AmountDetails extends StripeObject {
11581161
}
11591162
}
11601163

1164+
/**
1165+
* For more details about TokenDetails, please refer to the <a
1166+
* href="https://docs.stripe.com/api">API Reference.</a>
1167+
*/
1168+
@Getter
1169+
@Setter
1170+
@EqualsAndHashCode(callSuper = false)
1171+
public static class TokenDetails extends StripeObject {
1172+
/** The card associated with this token. */
1173+
@SerializedName("card")
1174+
String card;
1175+
1176+
/** Time at which the object was created. Measured in seconds since the Unix epoch. */
1177+
@SerializedName("created")
1178+
Long created;
1179+
1180+
/** The hashed ID derived from the device ID from the card network associated with the token. */
1181+
@SerializedName("device_fingerprint")
1182+
String deviceFingerprint;
1183+
1184+
@SerializedName("network_data")
1185+
NetworkData networkData;
1186+
1187+
/**
1188+
* For more details about NetworkData, please refer to the <a
1189+
* href="https://docs.stripe.com/api">API Reference.</a>
1190+
*/
1191+
@Getter
1192+
@Setter
1193+
@EqualsAndHashCode(callSuper = false)
1194+
public static class NetworkData extends StripeObject {
1195+
@SerializedName("device")
1196+
Device device;
1197+
1198+
@SerializedName("mastercard")
1199+
Mastercard mastercard;
1200+
1201+
/**
1202+
* The card network for this token.
1203+
*
1204+
* <p>One of {@code mastercard}, or {@code visa}.
1205+
*/
1206+
@SerializedName("type")
1207+
String type;
1208+
1209+
@SerializedName("visa")
1210+
Visa visa;
1211+
1212+
@SerializedName("wallet_provider")
1213+
WalletProvider walletProvider;
1214+
1215+
/**
1216+
* For more details about Device, please refer to the <a
1217+
* href="https://docs.stripe.com/api">API Reference.</a>
1218+
*/
1219+
@Getter
1220+
@Setter
1221+
@EqualsAndHashCode(callSuper = false)
1222+
public static class Device extends StripeObject {
1223+
/** The IP address of the device at provisioning time. */
1224+
@SerializedName("ip_address")
1225+
String ipAddress;
1226+
1227+
/**
1228+
* The ISO 639-1 language code of the device associated with the tokenization request.
1229+
*
1230+
* <p>One of {@code aa}, {@code ab}, {@code ae}, {@code af}, {@code ak}, {@code am}, {@code
1231+
* an}, {@code ar}, {@code as}, {@code av}, {@code ay}, {@code az}, {@code ba}, {@code be},
1232+
* {@code bg}, {@code bi}, {@code bm}, {@code bn}, {@code bo}, {@code br}, {@code bs},
1233+
* {@code ca}, {@code ce}, {@code ch}, {@code co}, {@code cr}, {@code cs}, {@code cu},
1234+
* {@code cv}, {@code cy}, {@code da}, {@code de}, {@code dv}, {@code dz}, {@code ee},
1235+
* {@code el}, {@code en}, {@code eo}, {@code es}, {@code et}, {@code eu}, {@code fa},
1236+
* {@code ff}, {@code fi}, {@code fj}, {@code fo}, {@code fr}, {@code fy}, {@code ga},
1237+
* {@code gd}, {@code gl}, {@code gn}, {@code gu}, {@code gv}, {@code ha}, {@code he},
1238+
* {@code hi}, {@code ho}, {@code hr}, {@code ht}, {@code hu}, {@code hy}, {@code hz},
1239+
* {@code ia}, {@code id}, {@code ie}, {@code ig}, {@code ii}, {@code ik}, {@code io},
1240+
* {@code is}, {@code it}, {@code iu}, {@code ja}, {@code jv}, {@code ka}, {@code kg},
1241+
* {@code ki}, {@code kj}, {@code kk}, {@code kl}, {@code km}, {@code kn}, {@code ko},
1242+
* {@code kr}, {@code ks}, {@code ku}, {@code kv}, {@code kw}, {@code ky}, {@code la},
1243+
* {@code lb}, {@code lg}, {@code li}, {@code ln}, {@code lo}, {@code lt}, {@code lu},
1244+
* {@code lv}, {@code mg}, {@code mh}, {@code mi}, {@code mk}, {@code ml}, {@code mn},
1245+
* {@code mr}, {@code ms}, {@code mt}, {@code my}, {@code na}, {@code nb}, {@code nd},
1246+
* {@code ne}, {@code ng}, {@code nl}, {@code nn}, {@code no}, {@code nr}, {@code nv},
1247+
* {@code ny}, {@code oc}, {@code oj}, {@code om}, {@code or}, {@code os}, {@code pa},
1248+
* {@code pi}, {@code pl}, {@code ps}, {@code pt}, {@code qu}, {@code rm}, {@code rn},
1249+
* {@code ro}, {@code ru}, {@code rw}, {@code sa}, {@code sc}, {@code sd}, {@code se},
1250+
* {@code sg}, {@code si}, {@code sk}, {@code sl}, {@code sm}, {@code sn}, {@code so},
1251+
* {@code sq}, {@code sr}, {@code ss}, {@code st}, {@code su}, {@code sv}, {@code sw},
1252+
* {@code ta}, {@code te}, {@code tg}, {@code th}, {@code ti}, {@code tk}, {@code tl},
1253+
* {@code tn}, {@code to}, {@code tr}, {@code ts}, {@code tt}, {@code tw}, {@code ty},
1254+
* {@code ug}, {@code uk}, {@code ur}, {@code uz}, {@code ve}, {@code vi}, {@code vo},
1255+
* {@code wa}, {@code wo}, {@code xh}, {@code yi}, {@code yo}, {@code za}, {@code zh}, or
1256+
* {@code zu}.
1257+
*/
1258+
@SerializedName("language")
1259+
String language;
1260+
1261+
/** The phone number of the device used for tokenization. */
1262+
@SerializedName("phone_number")
1263+
String phoneNumber;
1264+
}
1265+
1266+
/**
1267+
* For more details about Mastercard, please refer to the <a
1268+
* href="https://docs.stripe.com/api">API Reference.</a>
1269+
*/
1270+
@Getter
1271+
@Setter
1272+
@EqualsAndHashCode(callSuper = false)
1273+
public static class Mastercard extends StripeObject {
1274+
/** A unique reference ID from the network to represent the card account number. */
1275+
@SerializedName("card_reference_id")
1276+
String cardReferenceId;
1277+
1278+
/** The network-unique identifier for the token. */
1279+
@SerializedName("token_reference_id")
1280+
String tokenReferenceId;
1281+
1282+
/** The ID of the entity requesting tokenization. */
1283+
@SerializedName("token_requestor_id")
1284+
String tokenRequestorId;
1285+
}
1286+
1287+
/**
1288+
* For more details about Visa, please refer to the <a href="https://docs.stripe.com/api">API
1289+
* Reference.</a>
1290+
*/
1291+
@Getter
1292+
@Setter
1293+
@EqualsAndHashCode(callSuper = false)
1294+
public static class Visa extends StripeObject {
1295+
/** A unique reference ID from the network to represent the card account number. */
1296+
@SerializedName("card_reference_id")
1297+
String cardReferenceId;
1298+
1299+
/** The network-unique identifier for the token. */
1300+
@SerializedName("token_reference_id")
1301+
String tokenReferenceId;
1302+
1303+
/** The ID of the entity requesting tokenization. */
1304+
@SerializedName("token_requestor_id")
1305+
String tokenRequestorId;
1306+
1307+
/**
1308+
* Degree of risk associated with the token between {@code 01} and {@code 99}, with higher
1309+
* number indicating higher risk. A {@code 00} value indicates the token was not scored by
1310+
* Visa.
1311+
*/
1312+
@SerializedName("token_risk_score")
1313+
String tokenRiskScore;
1314+
}
1315+
1316+
/**
1317+
* For more details about WalletProvider, please refer to the <a
1318+
* href="https://docs.stripe.com/api">API Reference.</a>
1319+
*/
1320+
@Getter
1321+
@Setter
1322+
@EqualsAndHashCode(callSuper = false)
1323+
public static class WalletProvider extends StripeObject {
1324+
/**
1325+
* An evaluation on the trustworthiness of the wallet account between 1 and 5. A higher
1326+
* score indicates more trustworthy.
1327+
*/
1328+
@SerializedName("account_trust_score")
1329+
Long accountTrustScore;
1330+
1331+
/**
1332+
* The method used for tokenizing a card.
1333+
*
1334+
* <p>One of {@code app}, {@code manual}, {@code on_file}, or {@code other}.
1335+
*/
1336+
@SerializedName("card_number_source")
1337+
String cardNumberSource;
1338+
1339+
/**
1340+
* An evaluation on the trustworthiness of the device. A higher score indicates more
1341+
* trustworthy.
1342+
*/
1343+
@SerializedName("device_trust_score")
1344+
Long deviceTrustScore;
1345+
1346+
/** The reasons for suggested tokenization given by the card network. */
1347+
@SerializedName("reason_codes")
1348+
List<String> reasonCodes;
1349+
1350+
/**
1351+
* The recommendation on responding to the tokenization request.
1352+
*
1353+
* <p>One of {@code approve}, {@code decline}, or {@code require_auth}.
1354+
*/
1355+
@SerializedName("suggested_decision")
1356+
String suggestedDecision;
1357+
}
1358+
}
1359+
}
1360+
11611361
/**
11621362
* For more details about Treasury, please refer to the <a href="https://docs.stripe.com/api">API
11631363
* Reference.</a>
@@ -1642,6 +1842,7 @@ public void setResponseGetter(StripeResponseGetter responseGetter) {
16421842
trySetResponseGetter(networkData, responseGetter);
16431843
trySetResponseGetter(pendingRequest, responseGetter);
16441844
trySetResponseGetter(token, responseGetter);
1845+
trySetResponseGetter(tokenDetails, responseGetter);
16451846
trySetResponseGetter(treasury, responseGetter);
16461847
trySetResponseGetter(verificationData, responseGetter);
16471848
}

src/main/java/com/stripe/param/QuoteCreateParams.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9941,9 +9941,6 @@ public enum Type implements ApiRequestParams.EnumParam {
99419941
@SerializedName("line_starts_at")
99429942
LINE_STARTS_AT("line_starts_at"),
99439943

9944-
@SerializedName("now")
9945-
NOW("now"),
9946-
99479944
@SerializedName("pause_collection_start")
99489945
PAUSE_COLLECTION_START("pause_collection_start"),
99499946

@@ -12079,9 +12076,6 @@ public enum Type implements ApiRequestParams.EnumParam {
1207912076
@SerializedName("line_starts_at")
1208012077
LINE_STARTS_AT("line_starts_at"),
1208112078

12082-
@SerializedName("now")
12083-
NOW("now"),
12084-
1208512079
@SerializedName("pause_collection_start")
1208612080
PAUSE_COLLECTION_START("pause_collection_start"),
1208712081

src/main/java/com/stripe/param/QuoteUpdateParams.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9943,9 +9943,6 @@ public enum Type implements ApiRequestParams.EnumParam {
99439943
@SerializedName("line_starts_at")
99449944
LINE_STARTS_AT("line_starts_at"),
99459945

9946-
@SerializedName("now")
9947-
NOW("now"),
9948-
99499946
@SerializedName("pause_collection_start")
99509947
PAUSE_COLLECTION_START("pause_collection_start"),
99519948

@@ -12142,9 +12139,6 @@ public enum Type implements ApiRequestParams.EnumParam {
1214212139
@SerializedName("line_starts_at")
1214312140
LINE_STARTS_AT("line_starts_at"),
1214412141

12145-
@SerializedName("now")
12146-
NOW("now"),
12147-
1214812142
@SerializedName("pause_collection_start")
1214912143
PAUSE_COLLECTION_START("pause_collection_start"),
1215012144

0 commit comments

Comments
 (0)