diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 5db62fdc..aec537be 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,25 +1,25 @@ lockVersion: 2.0.0 id: 5bbaa3a9-baa0-471b-ba6a-13fd88e8c119 management: - docChecksum: e367a0573b3a09dc74baed0557be4ec9 + docChecksum: c53450070a1feb2df0f7c62705835963 docVersion: 1.0.0 - speakeasyVersion: 1.704.0 - generationVersion: 2.806.4 - releaseVersion: 2.16.23 - configChecksum: 372a791632e1169771004b8f19c01165 + speakeasyVersion: 1.709.1 + generationVersion: 2.812.2 + releaseVersion: 2.16.24 + configChecksum: f7fb99ab6e4b9248cda517e03c9940f0 repoURL: https://github.com/gr4vy/gr4vy-java.git published: true persistentEdits: - generation_id: 5b7d431d-ebfa-4339-aa4b-436cdea29817 - pristine_commit_hash: 503be800fef6db5bf6344ef36bfbc64039c10f1c - pristine_tree_hash: f556877fad3a27e0f6ade0a2de65f20da1671909 + generation_id: 7760b752-a867-4593-bef4-96ef081e650e + pristine_commit_hash: 4270a67e083a016bd8de6e64fc6609651cd10d42 + pristine_tree_hash: 7963609c5187a10fb0c3ef39526cf1b0ecebd2a1 features: java: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.2 core: 3.55.10 flattening: 2.81.1 - globalSecurity: 2.83.1 + globalSecurity: 2.83.2 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 globalServerURLs: 2.83.0 @@ -233,8 +233,8 @@ trackedFiles: pristine_git_object: 5eff7733d786fcfdbb924f2611d1980b7bdd6dc7 docs/models/components/CartItem.md: id: 7488a245df87 - last_write_checksum: sha1:aa6291879adce1f75cc43996b6b8a5ed22cb143b - pristine_git_object: 8f8491671abfb133393b8f726163cd8be009a29c + last_write_checksum: sha1:a783c82981f5c18c9e2b35c4726b1473565dc676 + pristine_git_object: f5dc579a5bbbf702a45f68f31c59eaade94804c2 docs/models/components/ChaseOptions.md: id: e2c1a60d6e5e last_write_checksum: sha1:366762b72eddeb6415442365255be2f7e924f808 @@ -245,12 +245,12 @@ trackedFiles: pristine_git_object: f77c4efda0e2c5e1fd5ae187a0a3867221c955c9 docs/models/components/CheckoutSession.md: id: e48c5910ced0 - last_write_checksum: sha1:6f438c4a1d688a8bb8a84ba56b82947c3aba5ac6 - pristine_git_object: 8c044422e282ce602b29c3be4d7a4fbc0cac93af + last_write_checksum: sha1:63b5c0959fa9b15f22d5255497e534da395285fb + pristine_git_object: de6e36428baeff1fcaaa9308fb5460f3e6ef3881 docs/models/components/CheckoutSessionCreate.md: id: 344e4a86f6b1 - last_write_checksum: sha1:b6c6260b4e307eb7d459424c449f1b2512557a5f - pristine_git_object: 4479f55cf8869d60752736b33767c94e096d6e89 + last_write_checksum: sha1:5195e64bc1083cd46d3ab3dc061884a88a15b05d + pristine_git_object: 612b87869bb6d11134de68908902ea2b79801c0f docs/models/components/CheckoutSessionPaymentMethod.md: id: 174c5006be40 last_write_checksum: sha1:8dece5a774013331919edee510313c852415019f @@ -333,8 +333,8 @@ trackedFiles: pristine_git_object: 2f20efa451f406d07b9e1914f8c07f6c6ea1c9d7 docs/models/components/DigitalWalletCreate.md: id: 9478c2e6b3ab - last_write_checksum: sha1:3e2657cae2dfa5404309cea03245077a6468fa82 - pristine_git_object: 7ce5bd017850ec363aa13f40e61572486b190a00 + last_write_checksum: sha1:ec5c06de5f4382d6a7de16259de3eee3daa7337d + pristine_git_object: 812f1059d9cd27f191aabf1c36d561eebe59cbc1 docs/models/components/DigitalWalletDomain.md: id: 09c4fefe14a2 last_write_checksum: sha1:faf8dc74f42709605fdc5b6447d10980c276145b @@ -345,8 +345,8 @@ trackedFiles: pristine_git_object: dc5223280394265fd3f50d8d3fe81aa7f756bb59 docs/models/components/DigitalWalletUpdate.md: id: 28df643ffff1 - last_write_checksum: sha1:b927d52189bbc5f8bb046980e1ed0840a98fc4a7 - pristine_git_object: 5fba09823895c74d8cc180055ddb5f1601b84b98 + last_write_checksum: sha1:dd5b542be162230738da1930b6c6aee03ef27e7b + pristine_git_object: e886b0397279faaaa12e426437e606bfbf170646 docs/models/components/DigitalWallets.md: id: 1d8f579779b7 last_write_checksum: sha1:da6eb080bd762e01a123938be1bf1cdbd851c16d @@ -421,8 +421,8 @@ trackedFiles: pristine_git_object: c49247ad20157925ae0282d6f5d47537ffc88c89 docs/models/components/ForterAntiFraudOptionsCartItemBeneficiaryAddress.md: id: 574a304dc615 - last_write_checksum: sha1:e512cef19e77308e65adf7695baf779cca82e58d - pristine_git_object: 9a99ef3b34bd0d880c17e89f66e70e9e41360059 + last_write_checksum: sha1:37639d56ac1f6acc498702cd8c4ad836e5e3b98c + pristine_git_object: eb789225459e8c5de864e56e18089539fc49718d docs/models/components/ForterAntiFraudOptionsCartItemBeneficiaryComments.md: id: a43056540a56 last_write_checksum: sha1:2cb464e135f8e2a98945ae8b94bd1950b0f1342c @@ -453,8 +453,8 @@ trackedFiles: pristine_git_object: 0414148b2ae7ac0c1456cce702c41d29842a856e docs/models/components/ForterAntiFraudOptionsDiscountCouponDiscountAmount.md: id: c8e64ccb8ddc - last_write_checksum: sha1:16aada466c70e26f5a4a0d3c70521fb140fa7325 - pristine_git_object: bc61e0c1b5b9a2103610933c9a1defd5b1c7283b + last_write_checksum: sha1:ee1ad77e2da095c87d0c37b077920777c40d989c + pristine_git_object: 71efe40d2c4aa0793b6ca4727cdde8d6846ed186 docs/models/components/GiftCard.md: id: 040d9b308398 last_write_checksum: sha1:70fe77c81129ccb2c427ebceb9dd1242bd68c27f @@ -525,8 +525,8 @@ trackedFiles: pristine_git_object: 177683fb377fdae9b6196275a700f18c34dd700c docs/models/components/GoCardlessOptions.md: id: 398cceb0c938 - last_write_checksum: sha1:175415a601f1a6c7b3735b47ac21fbb3eb878741 - pristine_git_object: fb4716bddc98b976ad1f9e4fe653af56b7ace752 + last_write_checksum: sha1:b96dc14efadc251750c3aaaa875a38b315455cdc + pristine_git_object: 3ee9064e8a015a14e12a455881ebb201ea04dec2 docs/models/components/GooglePayAssuranceDetails.md: id: 494500f53e0f last_write_checksum: sha1:34836c7edb1f74b2f00d76c6587bec11db63c720 @@ -581,32 +581,32 @@ trackedFiles: pristine_git_object: 0ebcc1a2d8c19f3d9112245ab8d9c34c27d21ecc docs/models/components/MerchantAccount.md: id: 648030314b0f - last_write_checksum: sha1:3faf848a4fe1e167b9f5915a9815aa587b466900 - pristine_git_object: e4f6d165558ab7aa30604539bd351c89e0a46177 + last_write_checksum: sha1:910337f676b09242999e574eb4d397cbe8276b2a + pristine_git_object: 808010c5a425a73261445c2c8adb7d8db4c2daf7 docs/models/components/MerchantAccountCreate.md: id: 66caf1e4a763 - last_write_checksum: sha1:8fef888caf70a10951f3050057b85dcfc1c58c43 - pristine_git_object: 2c3c53b90b88911f1bd1ddeadb18970f1871f7bd + last_write_checksum: sha1:6977ff0d8572aafab022124464bfc425a55a0cd6 + pristine_git_object: 40bdcf54e52aab75255c9cece905bc3a5b6481a8 docs/models/components/MerchantAccountThreeDSConfiguration.md: id: 28adba2fa69e - last_write_checksum: sha1:7dbf47aeee7ba50e3161cb0b8e982bac1a64a3a9 - pristine_git_object: 43adb72c2501502d737c002b1cd0808c5d4836eb + last_write_checksum: sha1:47f622a152673c1b123fb9a2190460bf2c5ef358 + pristine_git_object: fa353627d482bf8230898cb06eaf1469c79daee1 docs/models/components/MerchantAccountThreeDSConfigurationCreate.md: id: 71153c55fa33 - last_write_checksum: sha1:c572769412e9d158c268e17f9e03599f7f00ef23 - pristine_git_object: a17d57a9477c3423e0748959c68aa85794be17ec + last_write_checksum: sha1:23e9b8e20e375a7709acb18e0edd741ede5e9cca + pristine_git_object: 218823096f556a3e4cebc596f1e663c7ef673273 docs/models/components/MerchantAccountThreeDSConfigurationUpdate.md: id: 6a7f63f1aa9e - last_write_checksum: sha1:738cca2d9ce44c753417f9c35f03c594db2f45b4 - pristine_git_object: 0ae248147654d964f5aaae886def8ffe0ad290c9 + last_write_checksum: sha1:e6f1bfc44e7140c4853b5992ecaf98e59d58c656 + pristine_git_object: 0eca6c54176fd9dd72b5cc0abb031f09a391f54c docs/models/components/MerchantAccountThreeDSConfigurations.md: id: 82cbeba7387f last_write_checksum: sha1:f6df2f60acef9735dee7a1ebeb2ea6d6d22af57c pristine_git_object: 7e614985f9499e0ed1baa99697804c76c05ca3db docs/models/components/MerchantAccountUpdate.md: id: 9709bd5efde9 - last_write_checksum: sha1:5f32d5b3add1662bd020cf9f526484642953d609 - pristine_git_object: c2c208746ecd79c15cfb159759a5c0b74eb89c81 + last_write_checksum: sha1:3f8fc74589cffd2a4fc5b8b85452517bbf863d23 + pristine_git_object: 2c6a20850d136b6ec79ce280a95bb8a12bedccb7 docs/models/components/MerchantAccounts.md: id: 066c94dd9676 last_write_checksum: sha1:a8427c0a732719bdad84944f2d319f12ae72acd7 @@ -685,12 +685,12 @@ trackedFiles: pristine_git_object: b9eae99580cd6785b330ea6c37e4bc84109b7b93 docs/models/components/PaymentLink.md: id: 14e920f19b2f - last_write_checksum: sha1:9814b2e4c740d2d9b5d6b87984ee81ece9e2ee89 - pristine_git_object: 15cfd9d3c1217e0531b211ad686e80bb2d7a3aea + last_write_checksum: sha1:d2340110756f208ca553503d05e93db0679062c8 + pristine_git_object: 9a4b8b008f09ad7e6543452ee9865e7d39a5bca1 docs/models/components/PaymentLinkCreate.md: id: abdc9863afe0 - last_write_checksum: sha1:78b4bbf19885d94750c971805d11a48967a0c57d - pristine_git_object: 9253d0264e5420f185c537783483ecc4155f4365 + last_write_checksum: sha1:b7078c2c7f5e17ed5a41f5440df0b98feea95de2 + pristine_git_object: cbf48615d1b336ece82f2b36a0e335812db7063a docs/models/components/PaymentLinkStatus.md: id: 025fb96de5be last_write_checksum: sha1:91f595831b6fc3f17eac79fcba8b6e2c5ac31a6e @@ -753,20 +753,20 @@ trackedFiles: pristine_git_object: c7852fe044e8c7dc451e748fbd830f20decacf68 docs/models/components/PaymentService.md: id: cb188982885d - last_write_checksum: sha1:6859055ece0acafbcbdf0e0d85839a815f57ca55 - pristine_git_object: aef9539271ff3881be997f8c21812e2fc4027974 + last_write_checksum: sha1:f55fe3f86d5310423bf87b001361476d1161a2f1 + pristine_git_object: 352cd8e649fe6f90670dcb84af066c4dbb8f2a59 docs/models/components/PaymentServiceConfiguration.md: id: b35d4080e70d - last_write_checksum: sha1:ccb61b2228dc9799c32856fc6e60b84201a2524d - pristine_git_object: c3d7472fa4136a1f55258d110544160b9041354a + last_write_checksum: sha1:9374ffdab8c4b7664085ad6b787c9e32f6d4dbbd + pristine_git_object: 42ec552fc4e1ea18230846fd69cef70e88cab3f0 docs/models/components/PaymentServiceCreate.md: id: 8e51d4f1b2f3 - last_write_checksum: sha1:374047d2c0f136293d1fd2711ed8d6c58d64552a - pristine_git_object: 52178677ef6c98d85863ca9b93abb08613bf16ae + last_write_checksum: sha1:f642e6d28aa9305aa4987e5759c2bb43ee6732dd + pristine_git_object: 18b07b4ebab6860716f00c69ec04772ba7f23bac docs/models/components/PaymentServiceDefinition.md: id: addc89888d0d - last_write_checksum: sha1:e7f572c91b665893d0d04dac137e1eb0819a7b2b - pristine_git_object: 5f18f1e1bd3849f96abd7f993df89b2ff8ee0fe3 + last_write_checksum: sha1:a22aabc074986eba0a20dfac3295dddd17d5a534 + pristine_git_object: 496fc51cf8deddb8ec7d21af18a51f9b37cf19ad docs/models/components/PaymentServiceDefinitions.md: id: 059dafd4b176 last_write_checksum: sha1:6f877d8177b44c8f46202cff046cafdd2390e6d8 @@ -789,8 +789,8 @@ trackedFiles: pristine_git_object: 1f49a7560a41ba65a9c0f8795ac3dd93eb75061c docs/models/components/PaymentServiceUpdate.md: id: 7000457c2a0a - last_write_checksum: sha1:f1f920de6994466d2adcfa860479a7d66be98a41 - pristine_git_object: 53b0affe2666112b54d8c2b9441df671a06dc121 + last_write_checksum: sha1:cc7780d142aaf09ff44800b432fb8ee83373b43d + pristine_git_object: b2ae44f0037ac20aa1cf2cd951cf447dee51e5c6 docs/models/components/PaymentServices.md: id: 47b3c2654f4a last_write_checksum: sha1:12e02ecb7e1ab44351cdd59ac4e8568905306547 @@ -805,20 +805,20 @@ trackedFiles: pristine_git_object: ed2dd938d005f829561a8eadaf7756ff7b5f70a8 docs/models/components/PayoutCreate.md: id: 8161501217fc - last_write_checksum: sha1:4c9638ab89b9057df5762d63e9fb3902cfeb3ea9 - pristine_git_object: c494db553d3058a877cf0f3bead24f17c70b7445 + last_write_checksum: sha1:2e40d87e955edd3b764098e3487e6ea2c972dbb3 + pristine_git_object: 7edde3c96ee8a156c6a2b724c74ffa8dced513a3 docs/models/components/PayoutCreatePaymentMethod.md: id: 8bc38f10b506 last_write_checksum: sha1:59308fe828c7404022fdbbe95d12573b26dbf18e pristine_git_object: 620c6ade465a24bad64d69cd34e40fb0eebdc5e8 docs/models/components/PayoutMerchant.md: id: d09e27a9cef7 - last_write_checksum: sha1:638d45f72312cb11674c7493c1d8520044aa81d8 - pristine_git_object: b0d346ac21d4283400d132366125461c7c9e5c15 + last_write_checksum: sha1:7497a14b3fd8449c87e2e409c8a39833d657aecf + pristine_git_object: 7858d59ae3d4d1921d64b4e6c13e939202fd0059 docs/models/components/PayoutMerchantSummary.md: id: 3d61171b0672 - last_write_checksum: sha1:1a28c9bf0b833280d4bf5e640c639edeafbb934e - pristine_git_object: 75b4d063ef1c8b6393c7f832bd296149e2b22363 + last_write_checksum: sha1:5996a19fca1a9d413c88e2eebad7105d8b7d36b5 + pristine_git_object: e0445a963e5096220d2bed37281b9a4ba763fcb8 docs/models/components/PayoutPaymentService.md: id: 66129be47b16 last_write_checksum: sha1:0951ee6a1be105f8962138602fa977ed74e9a917 @@ -833,8 +833,8 @@ trackedFiles: pristine_git_object: 066bf9a4856a93689f00687e26e46615f1835a3d docs/models/components/PayoutSummary.md: id: 1b8526854d95 - last_write_checksum: sha1:7ef3bf3d8e1ad9cc4f438acd8406c831c6c94431 - pristine_git_object: f54a1827af6221625cf0a73ca7eefd0397d91946 + last_write_checksum: sha1:53c8d6930b076b8e27e49b811dd345ce190f175b + pristine_git_object: 5b4187c4f281c1d6a0d8273aa8e3250f85c9e3e8 docs/models/components/PaypalOptions.md: id: 4e7a7bb84822 last_write_checksum: sha1:dd29f489ae36dd0a0634e4ca7a655f49daff8efa @@ -845,12 +845,12 @@ trackedFiles: pristine_git_object: d145bfd4685ec394f2aa21af7f85b0652e909299 docs/models/components/PaypalShippingOptionsItem.md: id: 727a25b558a7 - last_write_checksum: sha1:14b1a3994229682048d25154d3ad8e91dfedf521 - pristine_git_object: 050e7f11e1518e47ee009eb61a070d92dca19ee7 + last_write_checksum: sha1:c66215618f20064b3834ec75738a8f96f859353f + pristine_git_object: 5f9c0b66a264a48f7dc0599b6aa5986d4ebe5019 docs/models/components/PaypalShippingOptionsItemAmount.md: id: 84c899c3c664 - last_write_checksum: sha1:98713f6f4f054ebd7ae94698ef11c8fcb7771666 - pristine_git_object: 50d9c293e43c3678a44f5218543bef87e1444de5 + last_write_checksum: sha1:3d313a66e3880af44730ccb60a18b4533b89fc2b + pristine_git_object: 44eae688f0d845dfe35ca2cbf0522c9860d2a2fe docs/models/components/PaypalShippingOptionsItemType.md: id: "037507540426" last_write_checksum: sha1:951f5dbd7c96a58909aebc206074e961c519f833 @@ -877,16 +877,16 @@ trackedFiles: pristine_git_object: e9188a6d35d8e0b4bce4ca8fbf0df71296aa1712 docs/models/components/RedirectPaymentMethodCreate.md: id: 601bcf1cbb6d - last_write_checksum: sha1:cf1e0223b63dfaf6b9affbf9fc19b7e06f759d19 - pristine_git_object: dd6741bb20117b0b669f965e07daf309d2e0d250 + last_write_checksum: sha1:b847d9807715238a938b9d842f568b3772912900 + pristine_git_object: 98be6328cbcf338eaa22369da773dbdbd08cc82a docs/models/components/RedirectPaymentMethodCreateMethod.md: id: d7f0c77bb644 last_write_checksum: sha1:96954ccf170f607e5017364d3a6c7fa33960695b pristine_git_object: 1c16b87612fa6aae7b1bb835a76a732f60a1b4f7 docs/models/components/Refund.md: id: a2190313768a - last_write_checksum: sha1:324d7beb6d8483798fd590e2d440325a2d933e17 - pristine_git_object: d8a8da8ec1a8f9f373139693cd5186052a739355 + last_write_checksum: sha1:72afb9c9503c846bfc2e325fa08c8e3dcb3b3966 + pristine_git_object: d2d07684a4e67a1fd3e451e2321b9ee55378da57 docs/models/components/RefundStatus.md: id: 77cdfb79bfbb last_write_checksum: sha1:ba1191147c0aa13f1b73d97d6c7bba0af6940585 @@ -989,8 +989,8 @@ trackedFiles: pristine_git_object: 32660d9891da0c12ea2a78147ad19b64c1456397 docs/models/components/Settlement.md: id: c45b1211974f - last_write_checksum: sha1:5737d611decf91826d867bc79951cfba82bfaca6 - pristine_git_object: f6fd127bc2a88aa48e7965fe2b1d9d1829810a64 + last_write_checksum: sha1:01d57f8a6a38fdbf24f0960c0210f29a1f33fa1f + pristine_git_object: a67b046bb3aaed4532632ca94b94344a24b6cd53 docs/models/components/Settlements.md: id: e497ca34f516 last_write_checksum: sha1:8021a733c69ea6535ba8ab73ea762050dd1f7c80 @@ -1077,20 +1077,20 @@ trackedFiles: pristine_git_object: 88ad0e1cea61fc64ba36b984c3843cafe81c549b docs/models/components/ThreeDSecureScenarioOutcome.md: id: b95d918b7c60 - last_write_checksum: sha1:f1858d81c440908a5f0542f5a67d81d7d3d2995d - pristine_git_object: 358067a8a637a4f98a7e015e0ec3a7c46316249c + last_write_checksum: sha1:ed8cb8e2af177d2c48d44c7ab5563c1167166581 + pristine_git_object: 2ab26f55f938931a205d88b521ab0f381bfc5195 docs/models/components/ThreeDSecureScenarioOutcomeAuthentication.md: id: fc4ac114a442 - last_write_checksum: sha1:91e45478e94c9b5275d58b1b6724dea3e13a1884 - pristine_git_object: 5e56c89bf2e772e11d468613744e9af38090c400 + last_write_checksum: sha1:f5ca4a3eabe4d70c64a22e17fa074e26b690fc45 + pristine_git_object: 34a4cae376f89e95f3efa8fd2ba9b4f34b9d03a1 docs/models/components/ThreeDSecureScenarioOutcomeAuthenticationTransactionStatus.md: id: fe841d2bf148 last_write_checksum: sha1:1392401e5ed0acf852a0e3323a417c6df9fc6daa pristine_git_object: 8edeecd22fc11bfaf0de0a8d0a0a5ea1e9c19aea docs/models/components/ThreeDSecureScenarioOutcomeResult.md: id: e25e784c7c3a - last_write_checksum: sha1:0163e06b7b720c597c74aad1f0045c180217cf98 - pristine_git_object: 94bf8fdb5fdb87b936408a5597a8694eabec3c92 + last_write_checksum: sha1:9e777f40cf2220d509801d41d606e929a07b6d45 + pristine_git_object: 662c6bfa6fb18a41b66cc5f706a68859509e2c17 docs/models/components/ThreeDSecureScenarioOutcomeResultTransactionStatus.md: id: 3d1cbb6d3385 last_write_checksum: sha1:87404b3a37c4eee2d484b3a82c6d8ab54d9cafc2 @@ -1125,8 +1125,8 @@ trackedFiles: pristine_git_object: ce01164765781161afc5da5ac9f8e74761506636 docs/models/components/Transaction.md: id: 860f2214deb0 - last_write_checksum: sha1:5f0b212eb6cb091b7a6b71452e836c68e8094a1a - pristine_git_object: 3e58aadb3c8d30151cd033962b519686fe1a4cff + last_write_checksum: sha1:46fd44b7f2ecca0cb788afb42903b39487fb5c8b + pristine_git_object: fbd4f8fedec842771676a53f2d21acca12d2d17a docs/models/components/TransactionAction.md: id: 7cf2857d2f07 last_write_checksum: sha1:e9d0306a43f9865d511a66ee72ac9dc57fe1b79e @@ -1157,8 +1157,8 @@ trackedFiles: pristine_git_object: 7c5116383b980ca145c7ef5c8c6487a5901d56bb docs/models/components/TransactionCreate.md: id: 0af6b811ca1f - last_write_checksum: sha1:3e09689034328ac57623d720a2ca8560aca5f8e4 - pristine_git_object: 7a33352d4abf318c77841a21ed96b97b37463563 + last_write_checksum: sha1:dc0985503d742169b49dfe33aa1035f6ef04ab4c + pristine_git_object: ef55216915aa4904ea0c8d0022caffdd1e3ce62a docs/models/components/TransactionCreatePaymentMethod.md: id: d01bc2723cd5 last_write_checksum: sha1:4ac7c25162f999d9c8ee377251c459379e684445 @@ -1217,8 +1217,8 @@ trackedFiles: pristine_git_object: 278f5e7a4ca95b1b749795433f8267b713a9bf66 docs/models/components/TransactionSummary.md: id: 95d437d847b0 - last_write_checksum: sha1:454851967b6a4b72c583f7d06e0f38cd1e4c8ece - pristine_git_object: abe1427c44eb62b25cbb81db142d6f55afe29816 + last_write_checksum: sha1:082354b2f36d455b2d6350e4d6be6d71b2d1dccb + pristine_git_object: bb6812ad1b9c9484b2473388f32357e79409e49d docs/models/components/TransactionThreeDSecureSummary.md: id: 5b36b4b54f8b last_write_checksum: sha1:bcc220f4ce3c4f5fc59bd5ec28c673c8b3a953c6 @@ -1981,8 +1981,8 @@ trackedFiles: pristine_git_object: 192a3b88d50e0e622849209d0499dc6c0dd25862 docs/models/operations/ListThreeDsConfigurationsRequest.md: id: 3102e3f86d88 - last_write_checksum: sha1:72431be2116957b6775fa5df77cfffb85c5ebb82 - pristine_git_object: 2061f041cd8310dbfc95a54d9a8967f1f055908d + last_write_checksum: sha1:0784886a6db0c79f095dc81d2d59d476761e7842 + pristine_git_object: dc8f7f5891e8c6b8dd6cdd28a4c4c47cac22ca3e docs/models/operations/ListThreeDsConfigurationsResponse.md: id: c8a8613cd819 last_write_checksum: sha1:cba42665e288ac52057a8646c7a101d048635d21 @@ -2293,8 +2293,8 @@ trackedFiles: pristine_git_object: db63346cfaccd51ee64210a000874c63d121cda3 docs/sdks/threedsconfiguration/README.md: id: 86aa349ed0d5 - last_write_checksum: sha1:6522c02d5606f9547e8d4606290d190200abf562 - pristine_git_object: 486e2a77e0899d422d004f32d28733af8780b96b + last_write_checksum: sha1:1b715bf1350d36c9c1b25f3fe2b7e3b30f0bfd72 + pristine_git_object: b0a1fbf0c53e9feb3bcfbe288f3f7fe79a6e2e03 docs/sdks/threedsscenarios/README.md: id: 81ff4c3f8215 last_write_checksum: sha1:1a2c770bf2a1b02010ab22c87b398105eaef58f2 @@ -2313,8 +2313,8 @@ trackedFiles: pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:9d4ea3ff29b5214fbe39fbbda4b76c73ac2ffddc - pristine_git_object: 891ffd5dd9284e677ff85f08f7b40dd6e301a401 + last_write_checksum: sha1:d242eceaa626812cc1d631599bc783d6590dcaa9 + pristine_git_object: abba4823a50b815106b3b2a88e2c17e51610227c gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -2637,8 +2637,8 @@ trackedFiles: pristine_git_object: 502a7312d3dc82c102dbaf7ed5e952d0c793e26f src/main/java/com/gr4vy/sdk/SDKConfiguration.java: id: 73a7edeaca45 - last_write_checksum: sha1:ee2a776d7cb4d4f21243112824d701234f1d0792 - pristine_git_object: 804b7096ce0f1fb4c10b7354f56b427b96a16b28 + last_write_checksum: sha1:16f451e1675418ba4b2c03c5798e992f0a9a2ec5 + pristine_git_object: 44ecb2ea8ddbbdff7a5655c1ed1c571d2254807b src/main/java/com/gr4vy/sdk/SecuritySource.java: id: 1b6add6b9b50 last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd @@ -6081,8 +6081,8 @@ trackedFiles: pristine_git_object: fd1205b14e6ed6626299a5d875f879dbfcba0167 src/main/java/com/gr4vy/sdk/operations/CreateClickToPayDigitalWalletSession.java: id: a77afe5d40f4 - last_write_checksum: sha1:4bfea8d499d539184d26cb6b1b892fc944f6f865 - pristine_git_object: 3ca87f459d70df96266ef58453154be614dd87e7 + last_write_checksum: sha1:6a84adcbfea9455ea01f8fd6ec3bf3314ab35d02 + pristine_git_object: 564fe300ab31cfebf03bedabf9cf83c9c8371f1b src/main/java/com/gr4vy/sdk/operations/CreateFullTransactionRefund.java: id: f5764d3d54b9 last_write_checksum: sha1:c8c06ee13f33e6107dd9bff2f25853c588333c17 @@ -6097,8 +6097,8 @@ trackedFiles: pristine_git_object: 13ff9ac3375a0e01619523e5700b14143cbe6432 src/main/java/com/gr4vy/sdk/operations/CreateMerchantAccount.java: id: 7f9eddacabfe - last_write_checksum: sha1:b11d77bf9c108bcb10d986704baea94ca16694ce - pristine_git_object: 703eb38e5438dde4942365f4a2392b12367fa6eb + last_write_checksum: sha1:892843c7a00a4f5b644b15b84ca4a092df16439b + pristine_git_object: 78cecff5da82664ef392b2609c567c77502942bf src/main/java/com/gr4vy/sdk/operations/CreatePaymentMethod.java: id: f1f0eb1b6d9e last_write_checksum: sha1:d40fe433c9c1987e350d6cbd6907b6cd6944f1b8 @@ -6505,12 +6505,12 @@ trackedFiles: pristine_git_object: 11615a8030dd02759a7dd273a1283c0b66e40a1c src/main/java/com/gr4vy/sdk/utils/EventStream.java: id: 60725c8056ea - last_write_checksum: sha1:8fe8cafb129c1537d2b7d450a5ea17d513428f4d - pristine_git_object: ca53aa3b13a344878592aefb3f1aacfb489f8816 + last_write_checksum: sha1:0151af70951d5b05129c039f1871c791f868ed2a + pristine_git_object: 6b4e53216f9a13afc2d59c869550abbe119d20a6 src/main/java/com/gr4vy/sdk/utils/EventStreamMessage.java: id: 1e2b9de76fc5 - last_write_checksum: sha1:f11ce589f3da16da78626b476634b4ca44aae979 - pristine_git_object: 33859527c3a1ea4df45237bf41ed9c4cf19c5b39 + last_write_checksum: sha1:825d0eece083305f65de25ee26dc40d674e1178a + pristine_git_object: 84484936a52d915be64435519fc6068d98b1a03b src/main/java/com/gr4vy/sdk/utils/Exceptions.java: id: 03f18de679e4 last_write_checksum: sha1:1accf82f3ade51c50c1375ec845de555e674589e @@ -6629,8 +6629,8 @@ trackedFiles: pristine_git_object: df92c61bb0010c80d2700f712f082b34b9f7eab0 src/main/java/com/gr4vy/sdk/utils/RequestBody.java: id: efa677061666 - last_write_checksum: sha1:10a97d9be8d824050f8a9ab2d407b76d3679a040 - pristine_git_object: 2824b555c140f67692c79e9311cc2e648cd700cd + last_write_checksum: sha1:907f8932702a7e54b7d4db720f32ce9f3a6b755d + pristine_git_object: 814ddd25140b0c40b161abdc2aa0bf115c8ab6c6 src/main/java/com/gr4vy/sdk/utils/RequestMetadata.java: id: 125ab30c9af8 last_write_checksum: sha1:00f95e4c1241b99313a42b972b55fd5f2adf15a4 @@ -6657,8 +6657,8 @@ trackedFiles: pristine_git_object: 3acfd50ff4ea75e45a8f5662eafc4dea9390c514 src/main/java/com/gr4vy/sdk/utils/Security.java: id: 8f93474a370e - last_write_checksum: sha1:38b344115f18077336d3997fb0e0f9f22c8f46d2 - pristine_git_object: 93ea182e6e72c37eadd7ac89693f71134e7d9934 + last_write_checksum: sha1:3cb0c57c59bf6fbfa337a14defa91234e0311a77 + pristine_git_object: a20fca31d1e204e0cf780445d4d265455ea71f41 src/main/java/com/gr4vy/sdk/utils/SecurityMetadata.java: id: 23577fb2f4b9 last_write_checksum: sha1:02f5a9ebde25eb03d947711d81d580766f146295 @@ -6673,8 +6673,8 @@ trackedFiles: pristine_git_object: e1fe7ac912b1a68b08f0ce9d0f864187dc31e335 src/main/java/com/gr4vy/sdk/utils/SpeakeasyHTTPClient.java: id: 0de92f79b812 - last_write_checksum: sha1:7c17364d48d0f22a5359236b44b3ef1a5fe2deed - pristine_git_object: 9c41e0e94c88956b684871eabadadab4072c67cb + last_write_checksum: sha1:c4f41db94c10a906e4b40a8a252f60a28d6f52e3 + pristine_git_object: a9bf6989df8a4b729487d341535cb6daa3e62262 src/main/java/com/gr4vy/sdk/utils/SpeakeasyLogger.java: id: aca34c990da1 last_write_checksum: sha1:3edd8dee894ddc5d16ed93adce32dc02ce4734f4 @@ -6685,8 +6685,8 @@ trackedFiles: pristine_git_object: 2f2631b48f396591edf2cbbd35ececc7e8c5b0c2 src/main/java/com/gr4vy/sdk/utils/StreamingParser.java: id: 03416eb36f6e - last_write_checksum: sha1:1d2d29719f755dc08b7d8dcb5c603abea2bbd8c0 - pristine_git_object: 6d1b9dbf04b971fda500f2b8d2622d4555268fa5 + last_write_checksum: sha1:f246b0a1b9bafe06afa404d24f2f4a390f1a44a0 + pristine_git_object: 2ba11a146c8a736583d285b0f78a1546d0110ade src/main/java/com/gr4vy/sdk/utils/TypedObject.java: id: d4d333168d77 last_write_checksum: sha1:c31d9862599e112c453acdbfbd1ca5a3080cbeb2 @@ -6705,8 +6705,8 @@ trackedFiles: pristine_git_object: 1381df61cea0f4f9c967cfc339dae3505fa15357 src/main/java/com/gr4vy/sdk/utils/Utils.java: id: 3e329f0c996a - last_write_checksum: sha1:d62ca9bd2d76317f2801102700971518301c4ef9 - pristine_git_object: 98503612266d79a775d62d36dcdfea10f001764d + last_write_checksum: sha1:6e4ec81d73c5c1819eb1bc083e282796db9ff0e7 + pristine_git_object: d37522606c0fd19f3a911aa9db8b839e2149e6e4 src/main/java/com/gr4vy/sdk/utils/pagination/AsyncPaginator.java: id: 48a0072a494a last_write_checksum: sha1:af6f2e37643dba5fa9efa1f9f099dd263e3c1cae @@ -6737,8 +6737,8 @@ trackedFiles: pristine_git_object: 400a7a43aae025440c917398543479672ebf35f3 src/main/java/com/gr4vy/sdk/utils/reactive/EventStream.java: id: e71a394f0e02 - last_write_checksum: sha1:315eda5365df4e911991d34cc4f76b7149879cbb - pristine_git_object: a5eae41519e7548e935d26079e20d5e0eb26357f + last_write_checksum: sha1:e8f5c49f8ba09f1fea649b2285661a66bdda6920 + pristine_git_object: 9263cb1fa42de1828cf32fd91e8d5e9faf0f4314 src/main/java/com/gr4vy/sdk/utils/reactive/ReactiveUtils.java: id: ea90c2761076 last_write_checksum: sha1:c4297711f3d8992b2f6ad73cc44b9f57796308e0 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 976bf7c0..fd5c7e7f 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 2.16.23 + version: 2.16.24 additionalDependencies: - testImplementation:org.junit.jupiter:junit-jupiter:5.10.0 - implementation:com.auth0:java-jwt:4.5.0 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 5ddf31f6..d5374d8d 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.704.0 +speakeasyVersion: 1.709.1 sources: Gr4vy: sourceNamespace: openapi @@ -9,11 +9,11 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:3e620d191a89fe7b71d213223fd07fdb0b85e972b391c41310e51842ebbe102d - sourceBlobDigest: sha256:fee63726df3a2e7234b066623df5796d8cf5483a52404e2735f567da55adcb58 + sourceRevisionDigest: sha256:0f770779fc33417a253f443b47954e1ab43c44ecc77ed14462d62474e2750a12 + sourceBlobDigest: sha256:8f83bc6698ed80b39bbaff361399d73fd0a5bc505a95be7b14bb82321c89ade6 tags: - latest - - speakeasy-sdk-regen-1770290467 + - speakeasy-sdk-regen-1770644634 - 1.0.0 targets: gr-4-vy: @@ -26,10 +26,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:3e620d191a89fe7b71d213223fd07fdb0b85e972b391c41310e51842ebbe102d - sourceBlobDigest: sha256:fee63726df3a2e7234b066623df5796d8cf5483a52404e2735f567da55adcb58 + sourceRevisionDigest: sha256:0f770779fc33417a253f443b47954e1ab43c44ecc77ed14462d62474e2750a12 + sourceBlobDigest: sha256:8f83bc6698ed80b39bbaff361399d73fd0a5bc505a95be7b14bb82321c89ade6 codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:5af83f4d5a978f0c5f4fa7a4c47525df8353d2d9b3d3599db45b69bb98ef7b80 + codeSamplesRevisionDigest: sha256:15387c6914d448bfbcc366852996e64fe7f011f4d4287d59c89f531e230d419d workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index bba57229..3da0d04d 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.gr4vy:sdk:2.16.23' +implementation 'com.gr4vy:sdk:2.16.24' ``` Maven: @@ -66,7 +66,7 @@ Maven: com.gr4vy sdk - 2.16.23 + 2.16.24 ``` diff --git a/RELEASES.md b/RELEASES.md index 1564a789..9761df85 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1068,4 +1068,14 @@ Based on: ### Generated - [java v2.16.23] . ### Releases -- [Maven Central v2.16.23] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.23 - . \ No newline at end of file +- [Maven Central v2.16.23] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.23 - . + +## 2026-02-09 13:43:32 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.709.1 (2.812.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v2.16.24] . +### Releases +- [Maven Central v2.16.24] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.24 - . \ No newline at end of file diff --git a/docs/models/components/CartItem.md b/docs/models/components/CartItem.md index 8f849167..f5dc579a 100644 --- a/docs/models/components/CartItem.md +++ b/docs/models/components/CartItem.md @@ -17,10 +17,10 @@ | `imageUrl` | *JsonNullable\* | :heavy_minus_sign: | The URL for the image of the item. | https://example.com/images/go-pro-hd.jpg | | `categories` | List\<*String*> | :heavy_minus_sign: | A list of strings containing product categories for the item. | [
"camera",
"travel",
"gear"
] | | `productType` | [JsonNullable\](../../models/components/ProductType.md) | :heavy_minus_sign: | The product type of the cart item. | physical | -| `sellerCountry` | *JsonNullable\* | :heavy_minus_sign: | The seller country of the cart item. | US | +| `sellerCountry` | *JsonNullable\* | :heavy_minus_sign: | The seller country of the cart item. | **Example 1:** US
**Example 2:** GB | | `taxExempt` | *JsonNullable\* | :heavy_minus_sign: | Whether the item is exempt of tax. | false | -| `unitOfMeasure` | *JsonNullable\* | :heavy_minus_sign: | The unit of measure or the unit of measure code. | feet | -| `commodityCode` | *JsonNullable\* | :heavy_minus_sign: | Item commodity code. Generally a UNSPSC code. | 43211503 | +| `unitOfMeasure` | *JsonNullable\* | :heavy_minus_sign: | The unit of measure or the unit of measure code. | **Example 1:** feet
**Example 2:** kg | +| `commodityCode` | *JsonNullable\* | :heavy_minus_sign: | Item commodity code. Generally a UNSPSC code. | **Example 1:** 43211503
**Example 2:** 84111502 | | `description` | *JsonNullable\* | :heavy_minus_sign: | Brief item description. | A brief description of an interesting item. | | `dutyAmount` | *JsonNullable\* | :heavy_minus_sign: | Item import or export duties represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99` | 1299 | | `shippingAmount` | *JsonNullable\* | :heavy_minus_sign: | Freight/shipping amount represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99` | 1299 | \ No newline at end of file diff --git a/docs/models/components/CheckoutSession.md b/docs/models/components/CheckoutSession.md index 8c044422..de6e3642 100644 --- a/docs/models/components/CheckoutSession.md +++ b/docs/models/components/CheckoutSession.md @@ -10,7 +10,7 @@ | `buyer` | [JsonNullable\](../../models/components/GuestBuyer.md) | :heavy_minus_sign: | Provide buyer details for the transaction. No buyer resource will be created on Gr4vy when used. | | | `airline` | [JsonNullable\](../../models/components/Airline.md) | :heavy_minus_sign: | The airline addendum data which describes the airline booking associated with this transaction. | | | `amount` | *JsonNullable\* | :heavy_minus_sign: | The total amount for this transaction. | | -| `currency` | *JsonNullable\* | :heavy_minus_sign: | The currency code for this transaction. | EUR | +| `currency` | *JsonNullable\* | :heavy_minus_sign: | The currency code for this transaction. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | | `paymentServiceId` | *JsonNullable\* | :heavy_minus_sign: | The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped. | | | `type` | *Optional\* | :heavy_minus_sign: | Always `checkout-session` | checkout-session | | `id` | *String* | :heavy_check_mark: | The ID for the checkout session. | 4137b1cf-39ac-42a8-bad6-1c680d5dab6b | diff --git a/docs/models/components/CheckoutSessionCreate.md b/docs/models/components/CheckoutSessionCreate.md index 4479f55c..612b8786 100644 --- a/docs/models/components/CheckoutSessionCreate.md +++ b/docs/models/components/CheckoutSessionCreate.md @@ -10,6 +10,6 @@ | `buyer` | [JsonNullable\](../../models/components/GuestBuyer.md) | :heavy_minus_sign: | Provide buyer details for the transaction. No buyer resource will be created on Gr4vy when used. | | | `airline` | [JsonNullable\](../../models/components/Airline.md) | :heavy_minus_sign: | The airline addendum data which describes the airline booking associated with this transaction. | | | `amount` | *JsonNullable\* | :heavy_minus_sign: | The total amount for this transaction. | | -| `currency` | *JsonNullable\* | :heavy_minus_sign: | The currency code for this transaction. | EUR | +| `currency` | *JsonNullable\* | :heavy_minus_sign: | The currency code for this transaction. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | | `paymentServiceId` | *JsonNullable\* | :heavy_minus_sign: | The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped. | | | `expiresIn` | *Optional\* | :heavy_minus_sign: | The time in seconds when this checkout session expires. | | \ No newline at end of file diff --git a/docs/models/components/DigitalWalletCreate.md b/docs/models/components/DigitalWalletCreate.md index 7ce5bd01..812f1059 100644 --- a/docs/models/components/DigitalWalletCreate.md +++ b/docs/models/components/DigitalWalletCreate.md @@ -11,6 +11,6 @@ Request body for registering a new digital wallet | `merchantName` | *String* | :heavy_check_mark: | N/A | | | `merchantDisplayName` | *JsonNullable\* | :heavy_minus_sign: | N/A | | | `merchantUrl` | *JsonNullable\* | :heavy_minus_sign: | N/A | | -| `merchantCountryCode` | *JsonNullable\* | :heavy_minus_sign: | N/A | DE | +| `merchantCountryCode` | *JsonNullable\* | :heavy_minus_sign: | N/A | **Example 1:** DE
**Example 2:** GB
**Example 3:** US | | `domainNames` | List\<*String*> | :heavy_minus_sign: | N/A | | | `acceptTermsAndConditions` | *boolean* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/components/DigitalWalletUpdate.md b/docs/models/components/DigitalWalletUpdate.md index 5fba0982..e886b039 100644 --- a/docs/models/components/DigitalWalletUpdate.md +++ b/docs/models/components/DigitalWalletUpdate.md @@ -5,10 +5,10 @@ Request body for editing a registered digital wallet ## Fields -| Field | Type | Required | Description | Example | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `merchantName` | *JsonNullable\* | :heavy_minus_sign: | N/A | | -| `domainNames` | List\<*String*> | :heavy_minus_sign: | N/A | | -| `merchantDisplayName` | *JsonNullable\* | :heavy_minus_sign: | N/A | | -| `merchantUrl` | *JsonNullable\* | :heavy_minus_sign: | N/A | | -| `merchantCountryCode` | *JsonNullable\* | :heavy_minus_sign: | N/A | DE | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `merchantName` | *JsonNullable\* | :heavy_minus_sign: | N/A | | +| `domainNames` | List\<*String*> | :heavy_minus_sign: | N/A | | +| `merchantDisplayName` | *JsonNullable\* | :heavy_minus_sign: | N/A | | +| `merchantUrl` | *JsonNullable\* | :heavy_minus_sign: | N/A | | +| `merchantCountryCode` | *JsonNullable\* | :heavy_minus_sign: | N/A | **Example 1:** DE
**Example 2:** GB
**Example 3:** US | \ No newline at end of file diff --git a/docs/models/components/ForterAntiFraudOptionsCartItemBeneficiaryAddress.md b/docs/models/components/ForterAntiFraudOptionsCartItemBeneficiaryAddress.md index 9a99ef3b..eb789225 100644 --- a/docs/models/components/ForterAntiFraudOptionsCartItemBeneficiaryAddress.md +++ b/docs/models/components/ForterAntiFraudOptionsCartItemBeneficiaryAddress.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `country` | *String* | :heavy_check_mark: | The country code of the beneficiary's address. | DE | -| `address1` | *JsonNullable\* | :heavy_minus_sign: | First line of the beneficiary's address. | | -| `address2` | *JsonNullable\* | :heavy_minus_sign: | Second line of the beneficiary's address. | | -| `zip` | *JsonNullable\* | :heavy_minus_sign: | Zip or postal code of the beneficiary's address. | | -| `region` | *JsonNullable\* | :heavy_minus_sign: | State or region of the beneficiary's address. | | -| `company` | *JsonNullable\* | :heavy_minus_sign: | Company name associated with the beneficiary's address. | | -| `city` | *JsonNullable\* | :heavy_minus_sign: | City of the beneficiary's address. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `country` | *String* | :heavy_check_mark: | The country code of the beneficiary's address. | **Example 1:** DE
**Example 2:** GB
**Example 3:** US | +| `address1` | *JsonNullable\* | :heavy_minus_sign: | First line of the beneficiary's address. | | +| `address2` | *JsonNullable\* | :heavy_minus_sign: | Second line of the beneficiary's address. | | +| `zip` | *JsonNullable\* | :heavy_minus_sign: | Zip or postal code of the beneficiary's address. | | +| `region` | *JsonNullable\* | :heavy_minus_sign: | State or region of the beneficiary's address. | | +| `company` | *JsonNullable\* | :heavy_minus_sign: | Company name associated with the beneficiary's address. | | +| `city` | *JsonNullable\* | :heavy_minus_sign: | City of the beneficiary's address. | | \ No newline at end of file diff --git a/docs/models/components/ForterAntiFraudOptionsDiscountCouponDiscountAmount.md b/docs/models/components/ForterAntiFraudOptionsDiscountCouponDiscountAmount.md index bc61e0c1..71efe40d 100644 --- a/docs/models/components/ForterAntiFraudOptionsDiscountCouponDiscountAmount.md +++ b/docs/models/components/ForterAntiFraudOptionsDiscountCouponDiscountAmount.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `amountUsd` | *JsonNullable\* | :heavy_minus_sign: | The discount amount in USD. | | -| `amountLocalCurrency` | *JsonNullable\* | :heavy_minus_sign: | The discount amount in local currency. | | -| `currency` | *JsonNullable\* | :heavy_minus_sign: | The currency code for the discount amount. | EUR | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `amountUsd` | *JsonNullable\* | :heavy_minus_sign: | The discount amount in USD. | | +| `amountLocalCurrency` | *JsonNullable\* | :heavy_minus_sign: | The discount amount in local currency. | | +| `currency` | *JsonNullable\* | :heavy_minus_sign: | The currency code for the discount amount. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | \ No newline at end of file diff --git a/docs/models/components/GoCardlessOptions.md b/docs/models/components/GoCardlessOptions.md index fb4716bd..3ee9064e 100644 --- a/docs/models/components/GoCardlessOptions.md +++ b/docs/models/components/GoCardlessOptions.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `purposeCode` | [JsonNullable\](../../models/components/PurposeCode.md) | :heavy_minus_sign: | Specifies the high-level purpose of a mandate and/or payment using a set of pre-defined categories. Required for the PayTo scheme, optional for all others | mortgage | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `purposeCode` | [JsonNullable\](../../models/components/PurposeCode.md) | :heavy_minus_sign: | Specifies the high-level purpose of a mandate and/or payment using a set of pre-defined categories. Required for the PayTo scheme, optional for all others | **Example 1:** mortgage
**Example 2:** utility
**Example 3:** loan
**Example 4:** dependant_support
**Example 5:** gambling
**Example 6:** retail
**Example 7:** salary
**Example 8:** personal
**Example 9:** government
**Example 10:** pension
**Example 11:** tax
**Example 12:** other | \ No newline at end of file diff --git a/docs/models/components/MerchantAccount.md b/docs/models/components/MerchantAccount.md index e4f6d165..808010c5 100644 --- a/docs/models/components/MerchantAccount.md +++ b/docs/models/components/MerchantAccount.md @@ -24,6 +24,6 @@ | `amexNetworkTokensAppId` | *JsonNullable\* | :heavy_minus_sign: | Application ID provided for American Express after onboarding to use Network Tokens. | id-12345 | | `mastercardNetworkTokensRequestorId` | *JsonNullable\* | :heavy_minus_sign: | Requestor ID provided for Mastercard after onboarding to use Network Tokens. | id-12345 | | `mastercardNetworkTokensAppId` | *JsonNullable\* | :heavy_minus_sign: | Application ID provided for Mastercard after onboarding to use Network Tokens. | id-12345 | -| `asyncNetworkTokensEnabled` | *Optional\* | :heavy_minus_sign: | When enabled network tokens will be generated asynchronously and only used on subsequent transactions to speed up transaction processing. | true | +| `asyncNetworkTokensEnabled` | *Optional\* | :heavy_minus_sign: | When enabled network tokens will be generated asynchronously and only used on subsequent transactions to speed up transaction processing. | **Example 1:** true
**Example 2:** false | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date this merchant account was created at. | 2013-07-16T19:23:00.000+00:00 | | `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date this merchant account was last updated at. | 2013-07-16T19:23:00.000+00:00 | \ No newline at end of file diff --git a/docs/models/components/MerchantAccountCreate.md b/docs/models/components/MerchantAccountCreate.md index 2c3c53b9..40bdcf54 100644 --- a/docs/models/components/MerchantAccountCreate.md +++ b/docs/models/components/MerchantAccountCreate.md @@ -21,6 +21,6 @@ | `amexNetworkTokensAppId` | *JsonNullable\* | :heavy_minus_sign: | Application ID provided for American Express after onboarding to use Network Tokens. | id-12345 | | `mastercardNetworkTokensRequestorId` | *JsonNullable\* | :heavy_minus_sign: | Requestor ID provided for Mastercard after onboarding to use Network Tokens. | id-12345 | | `mastercardNetworkTokensAppId` | *JsonNullable\* | :heavy_minus_sign: | Application ID provided for Mastercard after onboarding to use Network Tokens. | id-12345 | -| `asyncNetworkTokensEnabled` | *Optional\* | :heavy_minus_sign: | When enabled network tokens will be generated asynchronously and only used on subsequent transactions to speed up transaction processing. | true | +| `asyncNetworkTokensEnabled` | *Optional\* | :heavy_minus_sign: | When enabled network tokens will be generated asynchronously and only used on subsequent transactions to speed up transaction processing. | **Example 1:** true
**Example 2:** false | | `id` | *String* | :heavy_check_mark: | The ID for the merchant account. | merchant-12345 | | `displayName` | *String* | :heavy_check_mark: | The display name for the merchant account. | Example | \ No newline at end of file diff --git a/docs/models/components/MerchantAccountThreeDSConfiguration.md b/docs/models/components/MerchantAccountThreeDSConfiguration.md index 43adb72c..fa353627 100644 --- a/docs/models/components/MerchantAccountThreeDSConfiguration.md +++ b/docs/models/components/MerchantAccountThreeDSConfiguration.md @@ -17,5 +17,5 @@ | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time when this 3DS configuration was first created in our system. | 2013-07-16T19:23:00.000+00:00 | | `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time when this 3DS configuration was last updated in our system. | 2013-07-16T19:23:00.000+00:00 | | `scheme` | [CardScheme](../../models/components/CardScheme.md) | :heavy_check_mark: | N/A | visa | -| `currency` | *Optional\* | :heavy_check_mark: | ISO 4217 currency code (3 characters). If null, the configuration applies to all currencies. | USD | +| `currency` | *Optional\* | :heavy_check_mark: | ISO 4217 currency code (3 characters). If null, the configuration applies to all currencies. | **Example 1:** USD
**Example 2:** EUR
**Example 3:** GBP | | `metadata` | Map\ | :heavy_check_mark: | Additional information about the 3DS configuration, stored as key-value pairs. | | \ No newline at end of file diff --git a/docs/models/components/MerchantAccountThreeDSConfigurationCreate.md b/docs/models/components/MerchantAccountThreeDSConfigurationCreate.md index a17d57a9..21882309 100644 --- a/docs/models/components/MerchantAccountThreeDSConfigurationCreate.md +++ b/docs/models/components/MerchantAccountThreeDSConfigurationCreate.md @@ -12,5 +12,5 @@ | `merchantCategoryCode` | *String* | :heavy_check_mark: | Merchant category code to use when calling 3DS through this scheme. | 1234 | | `merchantUrl` | *String* | :heavy_check_mark: | URL to send when calling 3DS through this scheme. | https://example.com | | `scheme` | [CardScheme](../../models/components/CardScheme.md) | :heavy_check_mark: | N/A | visa | -| `currency` | *JsonNullable\* | :heavy_minus_sign: | ISO 4217 currency code (3 characters). If left null, the configuration will apply to all currencies. | USD | +| `currency` | *JsonNullable\* | :heavy_minus_sign: | ISO 4217 currency code (3 characters). If left null, the configuration will apply to all currencies. | **Example 1:** USD
**Example 2:** EUR
**Example 3:** GBP | | `metadata` | Map\ | :heavy_check_mark: | Any additional information about the 3DS configuration that you would like to store as key-value pairs. | | \ No newline at end of file diff --git a/docs/models/components/MerchantAccountThreeDSConfigurationUpdate.md b/docs/models/components/MerchantAccountThreeDSConfigurationUpdate.md index 0ae24814..0eca6c54 100644 --- a/docs/models/components/MerchantAccountThreeDSConfigurationUpdate.md +++ b/docs/models/components/MerchantAccountThreeDSConfigurationUpdate.md @@ -12,5 +12,5 @@ | `merchantCategoryCode` | *JsonNullable\* | :heavy_minus_sign: | Merchant category code to use when calling 3DS through this scheme. | 1234 | | `merchantUrl` | *JsonNullable\* | :heavy_minus_sign: | URL to send when calling 3DS through this scheme. | https://example.com | | `scheme` | [JsonNullable\](../../models/components/CardScheme.md) | :heavy_minus_sign: | The card scheme for this 3DS configuration | visa | -| `currency` | *JsonNullable\* | :heavy_minus_sign: | ISO 4217 currency code (3 characters). If left null, the configuration will apply to all currencies. | USD | +| `currency` | *JsonNullable\* | :heavy_minus_sign: | ISO 4217 currency code (3 characters). If left null, the configuration will apply to all currencies. | **Example 1:** USD
**Example 2:** EUR
**Example 3:** GBP | | `metadata` | Map\ | :heavy_minus_sign: | Any additional information about the 3DS configuration that you would like to store as key-value pairs. | | \ No newline at end of file diff --git a/docs/models/components/MerchantAccountUpdate.md b/docs/models/components/MerchantAccountUpdate.md index c2c20874..2c6a2085 100644 --- a/docs/models/components/MerchantAccountUpdate.md +++ b/docs/models/components/MerchantAccountUpdate.md @@ -21,5 +21,5 @@ | `amexNetworkTokensAppId` | *JsonNullable\* | :heavy_minus_sign: | Application ID provided for American Express after onboarding to use Network Tokens. | id-12345 | | `mastercardNetworkTokensRequestorId` | *JsonNullable\* | :heavy_minus_sign: | Requestor ID provided for Mastercard after onboarding to use Network Tokens. | id-12345 | | `mastercardNetworkTokensAppId` | *JsonNullable\* | :heavy_minus_sign: | Application ID provided for Mastercard after onboarding to use Network Tokens. | id-12345 | -| `asyncNetworkTokensEnabled` | *Optional\* | :heavy_minus_sign: | When enabled network tokens will be generated asynchronously and only used on subsequent transactions to speed up transaction processing. | true | +| `asyncNetworkTokensEnabled` | *Optional\* | :heavy_minus_sign: | When enabled network tokens will be generated asynchronously and only used on subsequent transactions to speed up transaction processing. | **Example 1:** true
**Example 2:** false | | `displayName` | *JsonNullable\* | :heavy_minus_sign: | The display name for the merchant account. | Example | \ No newline at end of file diff --git a/docs/models/components/PaymentLink.md b/docs/models/components/PaymentLink.md index 15cfd9d3..9a4b8b00 100644 --- a/docs/models/components/PaymentLink.md +++ b/docs/models/components/PaymentLink.md @@ -3,36 +3,36 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | The unique identifier for the payment link. | a1b2c3d4-5678-90ab-cdef-1234567890ab | -| `type` | *Optional\* | :heavy_minus_sign: | Always `payment-link`. | payment-link | -| `url` | *String* | :heavy_check_mark: | The URL for the payment link. | https://example.com/link/a1b2c3d4-5678-90ab-cdef-1234567890ab | -| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The expiration date and time for the payment link. | 2024-06-01T00:00:00.000Z | -| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant reference for the payment link. | external-12345 | -| `statementDescriptor` | [JsonNullable\](../../models/components/StatementDescriptor.md) | :heavy_minus_sign: | The statement descriptor for the payment link. | | -| `locale` | *JsonNullable\* | :heavy_minus_sign: | The locale for the payment link. | en | -| `merchantName` | *JsonNullable\* | :heavy_minus_sign: | The merchant's display name. | ACME Inc. | -| `merchantUrl` | *JsonNullable\* | :heavy_minus_sign: | The merchant's website URL. | https://merchant.example.com | -| `merchantBannerUrl` | *JsonNullable\* | :heavy_minus_sign: | The merchant's banner image URL. | https://merchant.example.com/banner.png | -| `merchantColor` | *JsonNullable\* | :heavy_minus_sign: | The merchant's brand color. | #FF5733 | -| `merchantMessage` | *JsonNullable\* | :heavy_minus_sign: | A message from the merchant. | Thank you for your purchase! | -| `merchantTermsAndConditionsUrl` | *JsonNullable\* | :heavy_minus_sign: | URL to the merchant's terms and conditions. | https://merchant.example.com/terms | -| `merchantFaviconUrl` | *JsonNullable\* | :heavy_minus_sign: | URL to the merchant's favicon. | https://merchant.example.com/favicon.ico | -| `amount` | *long* | :heavy_check_mark: | The amount for the payment link. | 1299 | -| `country` | *String* | :heavy_check_mark: | The country code for the payment link. | DE | -| `currency` | *String* | :heavy_check_mark: | The currency code for the payment link. | EUR | -| `intent` | [TransactionIntent](../../models/components/TransactionIntent.md) | :heavy_check_mark: | N/A | | -| `returnUrl` | *JsonNullable\* | :heavy_minus_sign: | The return URL after payment completion. | https://merchant.example.com/return | -| `cartItems` | List\<[CartItem](../../models/components/CartItem.md)> | :heavy_check_mark: | The cart items for the payment link. | [
{
"amount": {
"currency": "USD",
"value": 500
},
"name": "Widget",
"quantity": 2
}
] | -| `metadata` | Map\ | :heavy_minus_sign: | Arbitrary metadata for the payment link. | {
"order_id": "ORD-12345"
} | -| `paymentSource` | [TransactionPaymentSource](../../models/components/TransactionPaymentSource.md) | :heavy_check_mark: | The way payment method information made it to this transaction. | | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time the payment link was created. | 2024-05-30T12:34:56.000Z | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time the payment link was last updated. | 2024-05-30T13:00:00.000Z | -| `status` | [PaymentLinkStatus](../../models/components/PaymentLinkStatus.md) | :heavy_check_mark: | N/A | | -| `buyer` | [JsonNullable\](../../models/components/TransactionBuyer.md) | :heavy_minus_sign: | The buyer associated with the payment link. | | -| `shippingDetails` | [JsonNullable\](../../models/components/ShippingDetails.md) | :heavy_minus_sign: | The shipping details for the payment link. | | -| `connectionOptions` | Map\> | :heavy_minus_sign: | The connection options for the payment link. | | -| `store` | *Optional\* | :heavy_minus_sign: | Whether the payment method was stored. | | -| `buyerId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the buyer to associate with the stored payment method. | a1b2c3d4-5678-90ab-cdef-1234567890ab | -| `installmentCount` | *JsonNullable\* | :heavy_minus_sign: | The number of installments a buyer is required to make. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `id` | *String* | :heavy_check_mark: | The unique identifier for the payment link. | a1b2c3d4-5678-90ab-cdef-1234567890ab | +| `type` | *Optional\* | :heavy_minus_sign: | Always `payment-link`. | payment-link | +| `url` | *String* | :heavy_check_mark: | The URL for the payment link. | https://example.com/link/a1b2c3d4-5678-90ab-cdef-1234567890ab | +| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The expiration date and time for the payment link. | 2024-06-01T00:00:00.000Z | +| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant reference for the payment link. | external-12345 | +| `statementDescriptor` | [JsonNullable\](../../models/components/StatementDescriptor.md) | :heavy_minus_sign: | The statement descriptor for the payment link. | | +| `locale` | *JsonNullable\* | :heavy_minus_sign: | The locale for the payment link. | **Example 1:** en
**Example 2:** en-GB
**Example 3:** pt
**Example 4:** pt-BR
**Example 5:** es | +| `merchantName` | *JsonNullable\* | :heavy_minus_sign: | The merchant's display name. | ACME Inc. | +| `merchantUrl` | *JsonNullable\* | :heavy_minus_sign: | The merchant's website URL. | https://merchant.example.com | +| `merchantBannerUrl` | *JsonNullable\* | :heavy_minus_sign: | The merchant's banner image URL. | https://merchant.example.com/banner.png | +| `merchantColor` | *JsonNullable\* | :heavy_minus_sign: | The merchant's brand color. | #FF5733 | +| `merchantMessage` | *JsonNullable\* | :heavy_minus_sign: | A message from the merchant. | Thank you for your purchase! | +| `merchantTermsAndConditionsUrl` | *JsonNullable\* | :heavy_minus_sign: | URL to the merchant's terms and conditions. | https://merchant.example.com/terms | +| `merchantFaviconUrl` | *JsonNullable\* | :heavy_minus_sign: | URL to the merchant's favicon. | https://merchant.example.com/favicon.ico | +| `amount` | *long* | :heavy_check_mark: | The amount for the payment link. | 1299 | +| `country` | *String* | :heavy_check_mark: | The country code for the payment link. | **Example 1:** DE
**Example 2:** GB
**Example 3:** US | +| `currency` | *String* | :heavy_check_mark: | The currency code for the payment link. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | +| `intent` | [TransactionIntent](../../models/components/TransactionIntent.md) | :heavy_check_mark: | N/A | | +| `returnUrl` | *JsonNullable\* | :heavy_minus_sign: | The return URL after payment completion. | https://merchant.example.com/return | +| `cartItems` | List\<[CartItem](../../models/components/CartItem.md)> | :heavy_check_mark: | The cart items for the payment link. | [
{
"amount": {
"currency": "USD",
"value": 500
},
"name": "Widget",
"quantity": 2
}
] | +| `metadata` | Map\ | :heavy_minus_sign: | Arbitrary metadata for the payment link. | {
"order_id": "ORD-12345"
} | +| `paymentSource` | [TransactionPaymentSource](../../models/components/TransactionPaymentSource.md) | :heavy_check_mark: | The way payment method information made it to this transaction. | | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time the payment link was created. | 2024-05-30T12:34:56.000Z | +| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time the payment link was last updated. | 2024-05-30T13:00:00.000Z | +| `status` | [PaymentLinkStatus](../../models/components/PaymentLinkStatus.md) | :heavy_check_mark: | N/A | | +| `buyer` | [JsonNullable\](../../models/components/TransactionBuyer.md) | :heavy_minus_sign: | The buyer associated with the payment link. | | +| `shippingDetails` | [JsonNullable\](../../models/components/ShippingDetails.md) | :heavy_minus_sign: | The shipping details for the payment link. | | +| `connectionOptions` | Map\> | :heavy_minus_sign: | The connection options for the payment link. | | +| `store` | *Optional\* | :heavy_minus_sign: | Whether the payment method was stored. | | +| `buyerId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the buyer to associate with the stored payment method. | a1b2c3d4-5678-90ab-cdef-1234567890ab | +| `installmentCount` | *JsonNullable\* | :heavy_minus_sign: | The number of installments a buyer is required to make. | | \ No newline at end of file diff --git a/docs/models/components/PaymentLinkCreate.md b/docs/models/components/PaymentLinkCreate.md index 9253d026..cbf48615 100644 --- a/docs/models/components/PaymentLinkCreate.md +++ b/docs/models/components/PaymentLinkCreate.md @@ -10,7 +10,7 @@ | `connectionOptions` | [JsonNullable\](../../models/components/TransactionConnectionOptions.md) | :heavy_minus_sign: | Connection options for the payment link. | | | `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant reference for the payment link. | external-12345 | | `statementDescriptor` | [JsonNullable\](../../models/components/StatementDescriptor.md) | :heavy_minus_sign: | The statement descriptor for the payment link. | | -| `locale` | *JsonNullable\* | :heavy_minus_sign: | The locale for the payment link. | en | +| `locale` | *JsonNullable\* | :heavy_minus_sign: | The locale for the payment link. | **Example 1:** en
**Example 2:** en-GB
**Example 3:** pt
**Example 4:** pt-BR
**Example 5:** es | | `merchantName` | *JsonNullable\* | :heavy_minus_sign: | The merchant's display name. | ACME Inc. | | `merchantUrl` | *JsonNullable\* | :heavy_minus_sign: | The merchant's website URL. | https://merchant.example.com | | `merchantBannerUrl` | *JsonNullable\* | :heavy_minus_sign: | The merchant's banner image URL. | https://merchant.example.com/banner.png | @@ -19,8 +19,8 @@ | `merchantTermsAndConditionsUrl` | *JsonNullable\* | :heavy_minus_sign: | URL to the merchant's terms and conditions. | https://merchant.example.com/terms | | `merchantFaviconUrl` | *JsonNullable\* | :heavy_minus_sign: | URL to the merchant's favicon. | https://merchant.example.com/favicon.ico | | `amount` | *long* | :heavy_check_mark: | The amount for the payment link. | 1299 | -| `country` | *String* | :heavy_check_mark: | The country code for the payment link. | DE | -| `currency` | *String* | :heavy_check_mark: | The currency code for the payment link. | EUR | +| `country` | *String* | :heavy_check_mark: | The country code for the payment link. | **Example 1:** DE
**Example 2:** GB
**Example 3:** US | +| `currency` | *String* | :heavy_check_mark: | The currency code for the payment link. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | | `intent` | [Optional\](../../models/components/TransactionIntent.md) | :heavy_minus_sign: | N/A | | | `returnUrl` | *JsonNullable\* | :heavy_minus_sign: | The return URL after payment completion. | https://merchant.example.com/return | | `cartItems` | List\<[CartItem](../../models/components/CartItem.md)> | :heavy_minus_sign: | The cart items for the payment link. | | diff --git a/docs/models/components/PaymentService.md b/docs/models/components/PaymentService.md index aef95392..352cd8e6 100644 --- a/docs/models/components/PaymentService.md +++ b/docs/models/components/PaymentService.md @@ -9,7 +9,7 @@ | `id` | *Optional\* | :heavy_minus_sign: | N/A | fffd152a-9532-4087-9a4f-de58754210f0 | | `merchantAccountId` | *String* | :heavy_check_mark: | The ID of the merchant account this job belongs to. | default | | `paymentServiceDefinitionId` | *String* | :heavy_check_mark: | The definition ID of the service that has been configured. | stripe-card | -| `active` | *Optional\* | :heavy_minus_sign: | Defines if this payment service is currently active. | true | +| `active` | *Optional\* | :heavy_minus_sign: | Defines if this payment service is currently active. | **Example 1:** true
**Example 2:** false | | `method` | [Method](../../models/components/Method.md) | :heavy_check_mark: | N/A | | | `displayName` | *String* | :heavy_check_mark: | The display name for the payment service. | Stripe | | `position` | *long* | :heavy_check_mark: | Deprecated field used to define the order in which to process payment services | 1 | diff --git a/docs/models/components/PaymentServiceConfiguration.md b/docs/models/components/PaymentServiceConfiguration.md index c3d7472f..42ec552f 100644 --- a/docs/models/components/PaymentServiceConfiguration.md +++ b/docs/models/components/PaymentServiceConfiguration.md @@ -6,8 +6,8 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | | `approvalUiTarget` | [ApprovalTarget](../../models/components/ApprovalTarget.md) | :heavy_check_mark: | N/A | any | -| `approvalUiHeight` | *String* | :heavy_check_mark: | Height of the approval interface in either pixels or view height (vh). | 100px | -| `approvalUiWidth` | *String* | :heavy_check_mark: | Width of the approval interface in either pixels or view width (vw). | 100px | +| `approvalUiHeight` | *String* | :heavy_check_mark: | Height of the approval interface in either pixels or view height (vh). | **Example 1:** 100px
**Example 2:** 50vh | +| `approvalUiWidth` | *String* | :heavy_check_mark: | Width of the approval interface in either pixels or view width (vw). | **Example 1:** 100px
**Example 2:** 50vw | | `cartItemsLimit` | *long* | :heavy_check_mark: | The maximum number of cart items supported by this connector before we will truncate the list. | 100 | | `cartItemsRequired` | *boolean* | :heavy_check_mark: | Defines if cart items are required by this connector. | true | | `cartItemsShouldMatchAmount` | *boolean* | :heavy_check_mark: | Defines if the cart items sum value should match the transaction amount. | true | \ No newline at end of file diff --git a/docs/models/components/PaymentServiceCreate.md b/docs/models/components/PaymentServiceCreate.md index 52178677..18b07b4e 100644 --- a/docs/models/components/PaymentServiceCreate.md +++ b/docs/models/components/PaymentServiceCreate.md @@ -14,7 +14,7 @@ Request body for activating a payment service | `position` | *JsonNullable\* | :heavy_minus_sign: | Deprecated field used to define the order in which to process payment services | 1 | | `acceptedCurrencies` | List\<*String*> | :heavy_check_mark: | A list of currencies for which this service is enabled, in ISO 4217 three-letter code format. | [
"USD",
"EUR",
"GBP"
] | | `acceptedCountries` | List\<*String*> | :heavy_check_mark: | A list of countries for which this service is enabled, in ISO two-letter code format. | [
"US",
"DE",
"GB"
] | -| `active` | *JsonNullable\* | :heavy_minus_sign: | Defines if this payment service is currently active. | true | +| `active` | *JsonNullable\* | :heavy_minus_sign: | Defines if this payment service is currently active. | **Example 1:** true
**Example 2:** false | | `threeDSecureEnabled` | *Optional\* | :heavy_minus_sign: | Defines if this payment service has 3DS enabled. | true | | `merchantProfile` | Map\ | :heavy_minus_sign: | An object containing a key for each supported card schemes, and for each key an object with the 3DS profile for this service for that scheme. | | | `paymentMethodTokenizationEnabled` | *JsonNullable\* | :heavy_minus_sign: | Defines if this payment service support payment method tokenization. | true | diff --git a/docs/models/components/PaymentServiceDefinition.md b/docs/models/components/PaymentServiceDefinition.md index 5f18f1e1..496fc51c 100644 --- a/docs/models/components/PaymentServiceDefinition.md +++ b/docs/models/components/PaymentServiceDefinition.md @@ -5,14 +5,14 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *String* | :heavy_check_mark: | The definition ID of the payment service that can be configured. This is the underlying provider followed by a dash followed by the method. | adyen-ideal | +| `id` | *String* | :heavy_check_mark: | The definition ID of the payment service that can be configured. This is the underlying provider followed by a dash followed by the method. | **Example 1:** adyen-ideal
**Example 2:** stripe-card | | `type` | *Optional\* | :heavy_minus_sign: | Always `payment-service-definition`. | payment-service-definition | -| `displayName` | *String* | :heavy_check_mark: | A human friendly name for this service. | iDEAL | +| `displayName` | *String* | :heavy_check_mark: | A human friendly name for this service. | **Example 1:** iDEAL
**Example 2:** Stripe | | `method` | [Method](../../models/components/Method.md) | :heavy_check_mark: | N/A | | | `fields` | List\<[DefinitionField](../../models/components/DefinitionField.md)> | :heavy_check_mark: | A list of credentials and related fields which can be configured for this service. | | | `reportingFields` | List\<[DefinitionField](../../models/components/DefinitionField.md)> | :heavy_check_mark: | A list of reporting fields which can be configured for this service. | | | `supportedCurrencies` | List\<*String*> | :heavy_check_mark: | A list of three-letter ISO currency codes that this service supports. | [
"USD",
"GBP",
"EUR",
"AUD"
] | -| `supportedCountries` | List\<*String*> | :heavy_check_mark: | A list of two-letter ISO country codes that this service supports. | US | +| `supportedCountries` | List\<*String*> | :heavy_check_mark: | A list of two-letter ISO country codes that this service supports. | **Example 1:** US
**Example 2:** GB
**Example 3:** DE
**Example 4:** AUD | | `mode` | [Mode](../../models/components/Mode.md) | :heavy_check_mark: | N/A | card | | `iconUrl` | *JsonNullable\* | :heavy_minus_sign: | An icon to display for the payment service. | https://example.com/icons/adyen-ideal.svg | | `supportedFeatures` | Map\ | :heavy_check_mark: | Features supported by the payment service. | | diff --git a/docs/models/components/PaymentServiceUpdate.md b/docs/models/components/PaymentServiceUpdate.md index 53b0affe..b2ae44f0 100644 --- a/docs/models/components/PaymentServiceUpdate.md +++ b/docs/models/components/PaymentServiceUpdate.md @@ -13,7 +13,7 @@ Request body for updating a Payment Service | `position` | *JsonNullable\* | :heavy_minus_sign: | Deprecated field used to define the order in which to process payment services | 1 | | `acceptedCurrencies` | List\<*String*> | :heavy_minus_sign: | A list of currencies for which this service is enabled, in ISO 4217 three-letter code format. | [
"USD",
"EUR",
"GBP"
] | | `acceptedCountries` | List\<*String*> | :heavy_minus_sign: | A list of countries for which this service is enabled, in ISO two-letter code format. | [
"US",
"DE",
"GB"
] | -| `active` | *JsonNullable\* | :heavy_minus_sign: | Defines if this payment service is currently active. | true | +| `active` | *JsonNullable\* | :heavy_minus_sign: | Defines if this payment service is currently active. | **Example 1:** true
**Example 2:** false | | `threeDSecureEnabled` | *JsonNullable\* | :heavy_minus_sign: | Defines if this payment service has 3DS enabled. | true | | `merchantProfile` | Map\ | :heavy_minus_sign: | An object containing a key for each supported card schemes, and for each key an object with the 3DS profile for this service for that scheme. | | | `paymentMethodTokenizationEnabled` | *JsonNullable\* | :heavy_minus_sign: | Defines if this payment service support payment method tokenization. | true | diff --git a/docs/models/components/PayoutCreate.md b/docs/models/components/PayoutCreate.md index c494db55..7edde3c9 100644 --- a/docs/models/components/PayoutCreate.md +++ b/docs/models/components/PayoutCreate.md @@ -10,7 +10,7 @@ Represents the data required to create a new payout. | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | | `amount` | *long* | :heavy_check_mark: | The monetary amount for this payout, in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for $12.99. | 1299 | -| `currency` | *String* | :heavy_check_mark: | The ISO-4217 currency code for this payout. | EUR | +| `currency` | *String* | :heavy_check_mark: | The ISO-4217 currency code for this payout. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | | `paymentServiceId` | *String* | :heavy_check_mark: | The ID of the payment service to use for the payout. | ed8bd87d-85ad-40cf-8e8f-007e21e55aad | | `paymentMethod` | [PayoutCreatePaymentMethod](../../models/components/PayoutCreatePaymentMethod.md) | :heavy_check_mark: | The type of payment method to send funds too. | | | `category` | [JsonNullable\](../../models/components/PayoutCategory.md) | :heavy_minus_sign: | The type of payout to process. | online_gambling | diff --git a/docs/models/components/PayoutMerchant.md b/docs/models/components/PayoutMerchant.md index b0d346ac..7858d59a 100644 --- a/docs/models/components/PayoutMerchant.md +++ b/docs/models/components/PayoutMerchant.md @@ -7,7 +7,7 @@ | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | `name` | *String* | :heavy_check_mark: | The name of the merchant. | Acme Inc | | `identificationNumber` | *String* | :heavy_check_mark: | Unique value which identifies a merchant for processing transactions, also known as a MID. | 12345 | -| `phoneNumber` | *String* | :heavy_check_mark: | The phone number for the merchant which should be formatted according to the E164 number standard. | +14155552671 | +| `phoneNumber` | *String* | :heavy_check_mark: | The phone number for the merchant which should be formatted according to the E164 number standard. | **Example 1:** +14155552671
**Example 2:** +442071838750 | | `url` | *String* | :heavy_check_mark: | Merchant website URL. | https://example.com | | `statementDescriptor` | *String* | :heavy_check_mark: | Value to explain charges or payments on bank statements. | Winnings | | `merchantCategoryCode` | *String* | :heavy_check_mark: | Merchant classification for the type of goods or services it provides. | 123456 | diff --git a/docs/models/components/PayoutMerchantSummary.md b/docs/models/components/PayoutMerchantSummary.md index 75b4d063..e0445a96 100644 --- a/docs/models/components/PayoutMerchantSummary.md +++ b/docs/models/components/PayoutMerchantSummary.md @@ -12,7 +12,7 @@ Represents a summary of a merchant. | `type` | *Optional\* | :heavy_minus_sign: | Always `merchant`. | merchant | | `name` | *String* | :heavy_check_mark: | The name of the merchant. | Acme Inc | | `identificationNumber` | *String* | :heavy_check_mark: | Unique value which identifies a merchant for processing transactions, also known as a MID. | 12345 | -| `phoneNumber` | *String* | :heavy_check_mark: | The phone number for the merchant which should be formatted according to the E164 number standard. | +14155552671 | +| `phoneNumber` | *String* | :heavy_check_mark: | The phone number for the merchant which should be formatted according to the E164 number standard. | **Example 1:** +14155552671
**Example 2:** +442071838750 | | `url` | *String* | :heavy_check_mark: | Merchant website URL. | https://example.com | | `statementDescriptor` | *JsonNullable\* | :heavy_minus_sign: | Value to explain charges or payments on bank statements. | Winnings | | `merchantCategoryCode` | *String* | :heavy_check_mark: | Merchant classification for the type of goods or services it provides. | 1234 | diff --git a/docs/models/components/PayoutSummary.md b/docs/models/components/PayoutSummary.md index f54a1827..5b4187c4 100644 --- a/docs/models/components/PayoutSummary.md +++ b/docs/models/components/PayoutSummary.md @@ -15,7 +15,7 @@ Represents a summary of a payout. | `buyer` | [JsonNullable\](../../models/components/TransactionBuyer.md) | :heavy_minus_sign: | The buyer used for this payout. | | | `category` | [JsonNullable\](../../models/components/PayoutCategory.md) | :heavy_minus_sign: | The type of payout to process. | online_gambling | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date this payout was created at. | 2013-07-16T19:23:00.000+00:00 | -| `currency` | *String* | :heavy_check_mark: | A supported ISO-4217 currency code. | EUR | +| `currency` | *String* | :heavy_check_mark: | A supported ISO-4217 currency code. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | | `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant identifier for this payout. | payout-12345 | | `merchant` | [JsonNullable\](../../models/components/PayoutMerchantSummary.md) | :heavy_minus_sign: | The merchant details associated to this payout. | | | `merchantAccountId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the merchant account this payout was created for. | default | diff --git a/docs/models/components/PaypalShippingOptionsItem.md b/docs/models/components/PaypalShippingOptionsItem.md index 050e7f11..5f9c0b66 100644 --- a/docs/models/components/PaypalShippingOptionsItem.md +++ b/docs/models/components/PaypalShippingOptionsItem.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `id` | *String* | :heavy_check_mark: | A unique ID that identifies a payer-selected shipping option. | | -| `label` | *String* | :heavy_check_mark: | A description that the payer sees, which helps them choose an appropriate shipping option. | Free Shipping | +| `label` | *String* | :heavy_check_mark: | A description that the payer sees, which helps them choose an appropriate shipping option. | **Example 1:** Free Shipping
**Example 2:** USPS Priority Shipping
**Example 3:** Expédition prioritaire USPS
**Example 4:** USPS yōuxiān fā huò | | `selected` | *boolean* | :heavy_check_mark: | If the API request sets selected = true, it represents the shipping option that the payee or merchant expects to be pre-selected for the payer when they first view the shipping.options in the PayPal Checkout experience. Only one shipping.option can be set to selected=true. | | -| `type` | [JsonNullable\](../../models/components/PaypalShippingOptionsItemType.md) | :heavy_minus_sign: | A classification for the method of purchase fulfillment. | SHIPPING | +| `type` | [JsonNullable\](../../models/components/PaypalShippingOptionsItemType.md) | :heavy_minus_sign: | A classification for the method of purchase fulfillment. | **Example 1:** SHIPPING
**Example 2:** PICKUP
**Example 3:** PICKUP_IN_STORE
**Example 4:** PICKUP_FROM_PERSON | | `amount` | [JsonNullable\](../../models/components/PaypalShippingOptionsItemAmount.md) | :heavy_minus_sign: | The shipping cost for the selected option. | | \ No newline at end of file diff --git a/docs/models/components/PaypalShippingOptionsItemAmount.md b/docs/models/components/PaypalShippingOptionsItemAmount.md index 50d9c293..44eae688 100644 --- a/docs/models/components/PaypalShippingOptionsItemAmount.md +++ b/docs/models/components/PaypalShippingOptionsItemAmount.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `currencyCode` | *String* | :heavy_check_mark: | The three-character ISO currency code. | EUR | -| `value` | *String* | :heavy_check_mark: | The amount value, which might include a decimal portion. | 10.00 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `currencyCode` | *String* | :heavy_check_mark: | The three-character ISO currency code. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | +| `value` | *String* | :heavy_check_mark: | The amount value, which might include a decimal portion. | 10.00 | \ No newline at end of file diff --git a/docs/models/components/RedirectPaymentMethodCreate.md b/docs/models/components/RedirectPaymentMethodCreate.md index dd6741bb..98be6328 100644 --- a/docs/models/components/RedirectPaymentMethodCreate.md +++ b/docs/models/components/RedirectPaymentMethodCreate.md @@ -7,10 +7,10 @@ Create a transaction for an APM/LPM that requires a redirect. | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `method` | [RedirectPaymentMethodCreateMethod](../../models/components/RedirectPaymentMethodCreateMethod.md) | :heavy_check_mark: | The method to use, this can be any of the methods that support redirect requests. | paypal | +| `method` | [RedirectPaymentMethodCreateMethod](../../models/components/RedirectPaymentMethodCreateMethod.md) | :heavy_check_mark: | The method to use, this can be any of the methods that support redirect requests. | **Example 1:** paypal
**Example 2:** zippay | | `buyerId` | *JsonNullable\* | :heavy_minus_sign: | The `id` of a stored buyer to use Use this instead of the `buyer_external_identifier`. | fe26475d-ec3e-4884-9553-f7356683f7f9 | | `buyerExternalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The `external_identifier` of a stored buyer to use. Use this instead of the `buyer_id`. | buyer-12345 | -| `country` | *String* | :heavy_check_mark: | The 2-letter ISO code of the country to use this payment method for. This is used to select the payment service to use. | DE | -| `currency` | *String* | :heavy_check_mark: | The ISO-4217 currency code to use this payment method for. This is used to select the payment service to use. | EUR | +| `country` | *String* | :heavy_check_mark: | The 2-letter ISO code of the country to use this payment method for. This is used to select the payment service to use. | **Example 1:** DE
**Example 2:** GB
**Example 3:** US | +| `currency` | *String* | :heavy_check_mark: | The ISO-4217 currency code to use this payment method for. This is used to select the payment service to use. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | | `redirectUrl` | *String* | :heavy_check_mark: | The redirect URL to redirect a buyer to after they have authorized the payment method. | https://example.com/callback | | `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant identifier for this payment method. | payment-method-12345 | \ No newline at end of file diff --git a/docs/models/components/Refund.md b/docs/models/components/Refund.md index d8a8da8e..d2d07684 100644 --- a/docs/models/components/Refund.md +++ b/docs/models/components/Refund.md @@ -10,7 +10,7 @@ | `transactionId` | *String* | :heavy_check_mark: | The ID of the transaction associated with this refund. | 7099948d-7286-47e4-aad8-b68f7eb44591 | | `paymentServiceRefundId` | *JsonNullable\* | :heavy_minus_sign: | The payment service's unique ID for the refund. | refund_xYqd43gySMtori | | `status` | [RefundStatus](../../models/components/RefundStatus.md) | :heavy_check_mark: | N/A | | -| `currency` | *String* | :heavy_check_mark: | The ISO 4217 currency code for this refund. Will always match that of the associated transaction. | EUR | +| `currency` | *String* | :heavy_check_mark: | The ISO 4217 currency code for this refund. Will always match that of the associated transaction. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | | `amount` | *long* | :heavy_check_mark: | The amount of this refund, in the smallest currency unit (for example, cents or pence). | 1299 | | `reason` | *JsonNullable\* | :heavy_minus_sign: | The reason for this refund. Could be a multiline string. | Refund due to user request. | | `targetType` | [RefundTargetType](../../models/components/RefundTargetType.md) | :heavy_check_mark: | N/A | | diff --git a/docs/models/components/Settlement.md b/docs/models/components/Settlement.md index f6fd127b..a67b046b 100644 --- a/docs/models/components/Settlement.md +++ b/docs/models/components/Settlement.md @@ -13,7 +13,7 @@ A settlement record for a transaction. | `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time the record was last updated, in ISO 8601 format. | 2024-06-01T12:00:00.000Z | | `postedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time the record was posted, in ISO 8601 format. | 2024-06-01T12:00:00.000Z | | `ingestedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time the record was ingested, in ISO 8601 format. | 2024-06-01T12:00:00.000Z | -| `currency` | *String* | :heavy_check_mark: | ISO 4217 currency code. | EUR | +| `currency` | *String* | :heavy_check_mark: | ISO 4217 currency code. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | | `amount` | *long* | :heavy_check_mark: | The total amount in the smallest currency unit (e.g. cents). | 1100 | | `exchangeRate` | *JsonNullable\* | :heavy_minus_sign: | The exchange rate, if applicable. | 1 | | `commission` | *long* | :heavy_check_mark: | The commission amount deducted in the smallest currency unit. | 100 | diff --git a/docs/models/components/ThreeDSecureScenarioOutcome.md b/docs/models/components/ThreeDSecureScenarioOutcome.md index 358067a8..2ab26f55 100644 --- a/docs/models/components/ThreeDSecureScenarioOutcome.md +++ b/docs/models/components/ThreeDSecureScenarioOutcome.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `version` | *String* | :heavy_check_mark: | The version of 3DS which will be simulated. | 2.2.0 | +| `version` | *String* | :heavy_check_mark: | The version of 3DS which will be simulated. | **Example 1:** 2.2.0
**Example 2:** 2.3.1 | | `authentication` | [ThreeDSecureScenarioOutcomeAuthentication](../../models/components/ThreeDSecureScenarioOutcomeAuthentication.md) | :heavy_check_mark: | N/A | | | `result` | [JsonNullable\](../../models/components/ThreeDSecureScenarioOutcomeResult.md) | :heavy_minus_sign: | 3DS result value. Required if authentication status is "C". | {
"transaction_status": "Y"
} | \ No newline at end of file diff --git a/docs/models/components/ThreeDSecureScenarioOutcomeAuthentication.md b/docs/models/components/ThreeDSecureScenarioOutcomeAuthentication.md index 5e56c89b..34a4cae3 100644 --- a/docs/models/components/ThreeDSecureScenarioOutcomeAuthentication.md +++ b/docs/models/components/ThreeDSecureScenarioOutcomeAuthentication.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `transactionStatus` | [ThreeDSecureScenarioOutcomeAuthenticationTransactionStatus](../../models/components/ThreeDSecureScenarioOutcomeAuthenticationTransactionStatus.md) | :heavy_check_mark: | 3DS transaction status. | Y | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | +| `transactionStatus` | [ThreeDSecureScenarioOutcomeAuthenticationTransactionStatus](../../models/components/ThreeDSecureScenarioOutcomeAuthenticationTransactionStatus.md) | :heavy_check_mark: | 3DS transaction status. | **Example 1:** Y
**Example 2:** N
**Example 3:** A
**Example 4:** R
**Example 5:** U
**Example 6:** C
**Example 7:** timeout | \ No newline at end of file diff --git a/docs/models/components/ThreeDSecureScenarioOutcomeResult.md b/docs/models/components/ThreeDSecureScenarioOutcomeResult.md index 94bf8fdb..662c6bfa 100644 --- a/docs/models/components/ThreeDSecureScenarioOutcomeResult.md +++ b/docs/models/components/ThreeDSecureScenarioOutcomeResult.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `transactionStatus` | [ThreeDSecureScenarioOutcomeResultTransactionStatus](../../models/components/ThreeDSecureScenarioOutcomeResultTransactionStatus.md) | :heavy_check_mark: | 3DS result. | Y | \ No newline at end of file +| `transactionStatus` | [ThreeDSecureScenarioOutcomeResultTransactionStatus](../../models/components/ThreeDSecureScenarioOutcomeResultTransactionStatus.md) | :heavy_check_mark: | 3DS result. | **Example 1:** Y
**Example 2:** N
**Example 3:** timeout | \ No newline at end of file diff --git a/docs/models/components/Transaction.md b/docs/models/components/Transaction.md index 3e58aadb..fbd4f8fe 100644 --- a/docs/models/components/Transaction.md +++ b/docs/models/components/Transaction.md @@ -11,7 +11,7 @@ A full transaction resource. | `id` | *String* | :heavy_check_mark: | The ID for the transaction. | 7099948d-7286-47e4-aad8-b68f7eb44591 | | `reconciliationId` | *String* | :heavy_check_mark: | The base62 encoded transaction ID. This represents a shorter version of this transaction's `id` which is sent to payment services, anti-fraud services, and other connectors. You can use this ID to reconcile a payment service's transaction against our system. This ID is sent instead of the transaction ID because not all services support 36 digit identifiers. | default | | `merchantAccountId` | *String* | :heavy_check_mark: | The ID of the merchant account this transaction belongs to. | default | -| `currency` | *String* | :heavy_check_mark: | The currency code for this transaction. | EUR | +| `currency` | *String* | :heavy_check_mark: | The currency code for this transaction. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | | `amount` | *long* | :heavy_check_mark: | The total amount for this transaction across all funding sources including gift cards. | 1299 | | `status` | [TransactionStatus](../../models/components/TransactionStatus.md) | :heavy_check_mark: | N/A | | | `authorizedAmount` | *long* | :heavy_check_mark: | The amount for this transaction that has been authorized for the `payment_method`. This can be less than the `amount` if gift cards were used. | 1299 | @@ -64,7 +64,7 @@ A full transaction resource. | `multiTender` | *boolean* | :heavy_check_mark: | The outcome of the original intent of a transaction. This allows you to understand if the intent of the transaction (e.g. `capture` or `authorize`) has been achieved when dealing with multiple payment instruments. | true | | `accountFundingTransaction` | *boolean* | :heavy_check_mark: | Marks the transaction as an AFT. Requires the payment service to support this feature, and might `recipient` and `buyer` data | true | | `recipient` | [JsonNullable\](../../models/components/Recipient.md) | :heavy_minus_sign: | The recipient of any account to account funding. For use with AFTs. | | -| `merchantAdviceCode` | *JsonNullable\* | :heavy_minus_sign: | An optional merchant advice code which provides insight into the type of transaction or reason why the payment failed. | 02 | +| `merchantAdviceCode` | *JsonNullable\* | :heavy_minus_sign: | An optional merchant advice code which provides insight into the type of transaction or reason why the payment failed. | **Example 1:** 02
**Example 2:** 21 | | `installmentCount` | *JsonNullable\* | :heavy_minus_sign: | The number of installments for this transaction, if applicable. | 3 | | `sessionToken` | *JsonNullable\* | :heavy_minus_sign: | A session token that can be used to fetch session data for direct client integrations. | j3CZf9Eg6nUygMAVA6PXsVWGHiccj | | `taxAmount` | *JsonNullable\* | :heavy_minus_sign: | The sales tax amount for this transaction, represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99` | 1299 | diff --git a/docs/models/components/TransactionCreate.md b/docs/models/components/TransactionCreate.md index 7a33352d..ef552169 100644 --- a/docs/models/components/TransactionCreate.md +++ b/docs/models/components/TransactionCreate.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `amount` | *long* | :heavy_check_mark: | The monetary amount for this transaction, in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`. If the `intent` is set to `capture`, an amount greater than zero must be supplied. All gift card amounts are subtracted from this amount before the remainder is charged to the provided `payment_method`. | 1299 | -| `currency` | *String* | :heavy_check_mark: | A supported ISO 4217 currency code. For redirect requests, this value must match the one specified for `currency` in `payment_method`. | EUR | +| `currency` | *String* | :heavy_check_mark: | A supported ISO 4217 currency code. For redirect requests, this value must match the one specified for `currency` in `payment_method`. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | | `country` | *JsonNullable\* | :heavy_minus_sign: | The 2-letter ISO code of the country where the transaction is processed. This is also used to filter the payment services that can process the transaction. If this value is provided for redirect requests and it's not `null`, it must match the one specified for `country` in `payment_method`. Otherwise, the value specified for `country` in `payment_method` will be assumed implicitly. | US | | `paymentMethod` | [JsonNullable\](../../models/components/TransactionCreatePaymentMethod.md) | :heavy_minus_sign: | The optional payment method to use for this transaction. This field is required if no `gift_cards` have been added. | | | `buyer` | [JsonNullable\](../../models/components/GuestBuyer.md) | :heavy_minus_sign: | Guest buyer details provided inline rather than creating a buyer resource beforehand and using the `buyer_id` or `buyer_external_identifier` keys. No buyer resource will be created on Gr4vy when used. | | diff --git a/docs/models/components/TransactionSummary.md b/docs/models/components/TransactionSummary.md index abe1427c..bb6812ad 100644 --- a/docs/models/components/TransactionSummary.md +++ b/docs/models/components/TransactionSummary.md @@ -11,7 +11,7 @@ A transaction, summarised | `id` | *String* | :heavy_check_mark: | The ID for the transaction. | 7099948d-7286-47e4-aad8-b68f7eb44591 | | `reconciliationId` | *String* | :heavy_check_mark: | The base62 encoded transaction ID. This represents a shorter version of this transaction's `id` which is sent to payment services, anti-fraud services, and other connectors. You can use this ID to reconcile a payment service's transaction against our system. This ID is sent instead of the transaction ID because not all services support 36 digit identifiers. | default | | `merchantAccountId` | *String* | :heavy_check_mark: | The ID of the merchant account this transaction belongs to. | default | -| `currency` | *String* | :heavy_check_mark: | The currency code for this transaction. | EUR | +| `currency` | *String* | :heavy_check_mark: | The currency code for this transaction. | **Example 1:** EUR
**Example 2:** GBP
**Example 3:** USD | | `amount` | *long* | :heavy_check_mark: | The total amount for this transaction across all funding sources including gift cards. | 1299 | | `status` | [TransactionStatus](../../models/components/TransactionStatus.md) | :heavy_check_mark: | N/A | | | `authorizedAmount` | *long* | :heavy_check_mark: | The amount for this transaction that has been authorized for the `payment_method`. This can be less than the `amount` if gift cards were used. | 1299 | diff --git a/docs/models/operations/ListThreeDsConfigurationsRequest.md b/docs/models/operations/ListThreeDsConfigurationsRequest.md index 2061f041..dc8f7f58 100644 --- a/docs/models/operations/ListThreeDsConfigurationsRequest.md +++ b/docs/models/operations/ListThreeDsConfigurationsRequest.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `merchantAccountId` | *String* | :heavy_check_mark: | The ID of the merchant account. | merchant-12345 | -| `currency` | *JsonNullable\* | :heavy_minus_sign: | ISO 4217 currency code (3 characters) to filter 3DS configurations. | USD | \ No newline at end of file +| `currency` | *JsonNullable\* | :heavy_minus_sign: | ISO 4217 currency code (3 characters) to filter 3DS configurations. | **Example 1:** USD
**Example 2:** EUR
**Example 3:** GBP | \ No newline at end of file diff --git a/docs/sdks/threedsconfiguration/README.md b/docs/sdks/threedsconfiguration/README.md index 486e2a77..b0a1fbf0 100644 --- a/docs/sdks/threedsconfiguration/README.md +++ b/docs/sdks/threedsconfiguration/README.md @@ -127,7 +127,7 @@ public class Application { | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `merchantAccountId` | *String* | :heavy_check_mark: | The ID of the merchant account. | merchant-12345 | -| `currency` | *JsonNullable\* | :heavy_minus_sign: | ISO 4217 currency code (3 characters) to filter 3DS configurations. | USD | +| `currency` | *JsonNullable\* | :heavy_minus_sign: | ISO 4217 currency code (3 characters) to filter 3DS configurations. | **Example 1:** USD
**Example 2:** EUR
**Example 3:** GBP | ### Response diff --git a/gradle.properties b/gradle.properties index 891ffd5d..abba4823 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.gr4vy artifactId=sdk -version=2.16.23 +version=2.16.24 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java index 804b7096..44ecb2ea 100644 --- a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java +++ b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java @@ -22,8 +22,8 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "1.0.0"; - public static final String SDK_VERSION = "2.16.23"; - public static final String GEN_VERSION = "2.806.4"; + public static final String SDK_VERSION = "2.16.24"; + public static final String GEN_VERSION = "2.812.2"; private static final String BASE_PACKAGE = "com.gr4vy.sdk"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/com/gr4vy/sdk/operations/CreateClickToPayDigitalWalletSession.java b/src/main/java/com/gr4vy/sdk/operations/CreateClickToPayDigitalWalletSession.java index 3ca87f45..564fe300 100644 --- a/src/main/java/com/gr4vy/sdk/operations/CreateClickToPayDigitalWalletSession.java +++ b/src/main/java/com/gr4vy/sdk/operations/CreateClickToPayDigitalWalletSession.java @@ -108,7 +108,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "", "json", false); if (serializedRequestBody == null) { diff --git a/src/main/java/com/gr4vy/sdk/operations/CreateMerchantAccount.java b/src/main/java/com/gr4vy/sdk/operations/CreateMerchantAccount.java index 703eb38e..78cecff5 100644 --- a/src/main/java/com/gr4vy/sdk/operations/CreateMerchantAccount.java +++ b/src/main/java/com/gr4vy/sdk/operations/CreateMerchantAccount.java @@ -108,7 +108,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "", "json", false); if (serializedRequestBody == null) { diff --git a/src/main/java/com/gr4vy/sdk/utils/EventStream.java b/src/main/java/com/gr4vy/sdk/utils/EventStream.java index ca53aa3b..6b4e5321 100644 --- a/src/main/java/com/gr4vy/sdk/utils/EventStream.java +++ b/src/main/java/com/gr4vy/sdk/utils/EventStream.java @@ -74,6 +74,8 @@ public final class EventStream implements Iterable, AutoCloseable { private final TypeReference typeReference; private final ObjectMapper mapper; private final Optional terminalMessage; + private boolean terminated = false; + private boolean closed = false; // Internal use only public EventStream(InputStream in, TypeReference typeReference, ObjectMapper mapper, Optional terminalMessage) { @@ -93,17 +95,25 @@ public EventStream(InputStream in, TypeReference typeReference, ObjectMapper * @throws IOException when parsing the next message. */ public Optional next() throws IOException { - Optional result = parser.next() // - .filter(x -> { - boolean isTerminal = terminalMessage.map(sentinel -> sentinel.equals(x.data())).orElse(false); - if (isTerminal && logger.isTraceEnabled()) { - logger.trace("Terminal message encountered in EventStream"); - } - return !isTerminal; - }) - .map(x -> Utils.asType(x, mapper, typeReference)); - - if (logger.isTraceEnabled() && result.isPresent()) { + if (terminated) { + return Optional.empty(); + } + Optional message = parser.next(); + if (message.isEmpty()) { + terminated = true; + return Optional.empty(); + } + EventStreamMessage msg = message.get(); + boolean isTerminal = terminalMessage.flatMap(sentinel -> msg.data().map(sentinel::equals)).orElse(false); + if (isTerminal) { + terminated = true; + if (logger.isTraceEnabled()) { + logger.trace("Terminal message encountered in EventStream"); + } + return Optional.empty(); + } + Optional result = Optional.of(Utils.asType(msg, mapper, typeReference)); + if (logger.isTraceEnabled()) { logger.trace("EventStream item processed"); } return result; @@ -162,10 +172,15 @@ public Stream stream() { @Override public void close() throws IOException { + closed = true; logger.debug("EventStream closed"); parser.close(); } + public boolean isClosed() { + return closed; + } + static class EventIterator implements Iterator { private final EventStream stream; private Optional next = Optional.empty(); diff --git a/src/main/java/com/gr4vy/sdk/utils/EventStreamMessage.java b/src/main/java/com/gr4vy/sdk/utils/EventStreamMessage.java index 33859527..84484936 100644 --- a/src/main/java/com/gr4vy/sdk/utils/EventStreamMessage.java +++ b/src/main/java/com/gr4vy/sdk/utils/EventStreamMessage.java @@ -6,16 +6,13 @@ import java.util.Optional; public class EventStreamMessage { - + private final Optional event; private final Optional id; private final Optional retryMs; - private final String data; + private final Optional data; - public EventStreamMessage(Optional event, Optional id, Optional retryMs, String data) { - if (data == null) { - throw new IllegalArgumentException("data cannot be null"); - } + public EventStreamMessage(Optional event, Optional id, Optional retryMs, Optional data) { this.event = event; this.id = id; this.retryMs = retryMs; @@ -34,23 +31,21 @@ public Optional retryMs() { return retryMs; } - public String data() { + public Optional data() { return data; } public boolean isEmpty() { - return !event.isPresent() && !id().isPresent() && !retryMs().isPresent() && data.isEmpty(); + return !event.isPresent() && !id().isPresent() && !retryMs().isPresent() && !data.isPresent(); } - + @Override public String toString() { StringBuilder b = new StringBuilder(); event.ifPresent(value -> b.append("event: " + value + "\n")); id.ifPresent(value -> b.append("id: " + value + "\n")); retryMs.ifPresent(value -> b.append("retry: " + value + "\n")); - if (!data.isEmpty()) { - b.append("data: " + data); - } + data.ifPresent(value -> b.append("data: " + value)); return b.toString(); } } diff --git a/src/main/java/com/gr4vy/sdk/utils/RequestBody.java b/src/main/java/com/gr4vy/sdk/utils/RequestBody.java index 2824b555..814ddd25 100644 --- a/src/main/java/com/gr4vy/sdk/utils/RequestBody.java +++ b/src/main/java/com/gr4vy/sdk/utils/RequestBody.java @@ -47,6 +47,14 @@ public static SerializedBody serialize(Object request, String requestField, Stri request); } + // If no requestField specified, the request object IS the body — serialize it directly + // without attempting any field lookup. This is the case when an operation has no + // parameters alongside the body (i.e. IsRequestBody=true at the callsite). + if (requestField == null || requestField.isEmpty()) { + return serializeContentType(requestField, SERIALIZATION_METHOD_TO_CONTENT_TYPE.get(serializationMethod), + request); + } + Field reqField = null; try { diff --git a/src/main/java/com/gr4vy/sdk/utils/Security.java b/src/main/java/com/gr4vy/sdk/utils/Security.java index 93ea182e..a20fca31 100644 --- a/src/main/java/com/gr4vy/sdk/utils/Security.java +++ b/src/main/java/com/gr4vy/sdk/utils/Security.java @@ -141,8 +141,11 @@ private static void parseSecuritySchemeValue(HTTPRequest request, SecurityMetada case "bearer": request.addHeader(securityMetadata.name, Utils.prefixBearer(Utils.valToString(value))); break; + case "basic": + request.addHeader(securityMetadata.name, Utils.valToString(value)); + break; case "custom": - // customers are expected to consume the security object and transform requests + // customers are expected to consume the security object and transform requests // in their own BeforeRequest hook. break; default: diff --git a/src/main/java/com/gr4vy/sdk/utils/SpeakeasyHTTPClient.java b/src/main/java/com/gr4vy/sdk/utils/SpeakeasyHTTPClient.java index 9c41e0e9..a9bf6989 100644 --- a/src/main/java/com/gr4vy/sdk/utils/SpeakeasyHTTPClient.java +++ b/src/main/java/com/gr4vy/sdk/utils/SpeakeasyHTTPClient.java @@ -157,16 +157,21 @@ private HttpRequest logRequest(HttpRequest request, boolean logBody) { } private static HttpResponse logResponse(HttpResponse response, boolean logBody) throws IOException { + String contentType = response.headers().firstValue("Content-Type").orElse("application/octet-stream"); + log("Received response: " + response); + log("Response headers: " + redactHeaders(response.headers())); + + // skip caching for streaming responses - they may hang + if (contentType.startsWith("text/event-stream") || contentType.startsWith("application/x-ndjson")) { + return response; + } + // make the response re-readable by loading the response body into a byte array // and allowing the InputStream to be read many times response = Utils.cache(response); - log("Received response: " + response); - log("Response headers: " + redactHeaders(response.headers())); + // only log the response body if logBody is true and the content type is JSON or plain text - if (logBody && response.headers() // - .firstValue("Content-Type") // - .filter(x -> x.equals("application/json") || x.equals("text/plain")) // - .isPresent()) { + if (logBody && (contentType.startsWith("application/json") || contentType.startsWith("text/plain"))) { // the response is re-readable so we can read and close it without // affecting later processing of the response. diff --git a/src/main/java/com/gr4vy/sdk/utils/StreamingParser.java b/src/main/java/com/gr4vy/sdk/utils/StreamingParser.java index 6d1b9dbf..2ba11a14 100644 --- a/src/main/java/com/gr4vy/sdk/utils/StreamingParser.java +++ b/src/main/java/com/gr4vy/sdk/utils/StreamingParser.java @@ -6,8 +6,6 @@ import java.nio.ByteBuffer; import java.nio.charset.StandardCharsets; import java.util.Optional; -import java.util.regex.Matcher; -import java.util.regex.Pattern; /** * Generic streaming parser that handles byte buffer management and delegates @@ -208,36 +206,37 @@ public Optional processContent(String content) { */ private static class SSEContentProcessor implements StreamContentProcessor { private static final String BYTE_ORDER_MARK = "\uFEFF"; - private static final Pattern LINE_PATTERN = Pattern.compile("^([a-zA-Z]+): ?(.*)$"); private static final char LINEFEED = '\n'; - // Message boundary patterns private static final byte CR = '\r'; private static final byte LF = '\n'; - private static final byte[] CRLF_CRLF = {CR, LF, CR, LF}; // \r\n\r\n - private static final byte[] CRLF_LF = {CR, LF, LF}; // \r\n\n - private static final byte[] LF_CRLF = {LF, CR, LF}; // \n\r\n - private static final byte[] LF_LF = {LF, LF}; // \n\n + private static final byte[][] BOUNDARY_PATTERNS = { + {CR, LF}, + {LF}, + {CR} + }; + + private Optional eventId = Optional.empty(); @Override public BoundaryInfo findBoundary(byte[] data, int limit) { - for (int i = 0; i < limit; i++) { - // Need at least 2 bytes for any boundary pattern - if (i + 1 >= limit) { - continue; - } - // Check longest patterns first to avoid partial matches - if (matchesPattern(data, i, limit, CRLF_CRLF)) { - return new BoundaryInfo(i, CRLF_CRLF.length); - } - if (matchesPattern(data, i, limit, CRLF_LF)) { - return new BoundaryInfo(i, CRLF_LF.length); - } - if (matchesPattern(data, i, limit, LF_CRLF)) { - return new BoundaryInfo(i, LF_CRLF.length); - } - if (matchesPattern(data, i, limit, LF_LF)) { - return new BoundaryInfo(i, LF_LF.length); + int lineStart = 0, i = lineStart; + while (i < limit) { + for (byte[] pattern : BOUNDARY_PATTERNS) { + if (matchesPattern(data, i, limit, pattern)) { + if (i == lineStart) { // empty line + int boundStart = i; + while (boundStart > 0 && (data[boundStart - 1] == CR || data[boundStart - 1] == LF)) { + boundStart--; + } + int boundLength = (lineStart - boundStart) + pattern.length; + return new BoundaryInfo(boundStart, boundLength); + } + lineStart = i + pattern.length; + i = lineStart - 1; + break; + } } + i++; } return new BoundaryInfo(-1, 0); } @@ -262,45 +261,52 @@ public String sanitizeContent(String rawContent, boolean isFirst) { private EventStreamMessage parseMessage(String text) { String[] lines = text.split("\n"); Optional event = Optional.empty(); - Optional id = Optional.empty(); Optional retryMs = Optional.empty(); - StringBuilder data = new StringBuilder(); - boolean firstData = true; + Optional data = Optional.empty(); for (String line : lines) { - // Skip comment lines if (line.startsWith(":")) { continue; } - Matcher m = LINE_PATTERN.matcher(line); - if (m.find()) { - String key = m.group(1).toLowerCase(); - String value = m.group(2); - switch (key) { - case "event": - event = Optional.of(value); - break; - case "id": - id = Optional.of(value); - break; - case "retry": - try { - retryMs = Optional.of(Integer.parseInt(value)); - } catch (NumberFormatException e) { - // ignore invalid retry values - } - break; - case "data": - if (!firstData) { - data.append(LINEFEED); - } - firstData = false; - data.append(value); - break; - // ignore unknown fields + String key; + String value; + int colonIndex = line.indexOf(':'); + if (colonIndex >= 0) { + key = line.substring(0, colonIndex); + value = line.substring(colonIndex + 1); + if (value.startsWith(" ")) { + value = value.substring(1); } + } else { + key = line; + value = ""; + } + switch (key) { + case "event": + event = Optional.of(value); + break; + case "id": + if (value.indexOf('\0') < 0) { + eventId = Optional.of(value); + } + break; + case "retry": + try { + retryMs = Optional.of(Integer.parseInt(value)); + } catch (NumberFormatException e) { + // ignore invalid retry values + } + break; + case "data": + if (data.isEmpty()) { + data = Optional.of(new StringBuilder()); + } else { + data.get().append(LINEFEED); + } + data.get().append(value); + break; } } - return new EventStreamMessage(event, id, retryMs, data.toString()); + return new EventStreamMessage(event, eventId, retryMs, data.map(StringBuilder::toString)); } } diff --git a/src/main/java/com/gr4vy/sdk/utils/Utils.java b/src/main/java/com/gr4vy/sdk/utils/Utils.java index 98503612..d3752260 100644 --- a/src/main/java/com/gr4vy/sdk/utils/Utils.java +++ b/src/main/java/com/gr4vy/sdk/utils/Utils.java @@ -983,13 +983,18 @@ public static String json(EventStreamMessage m, ObjectMapper mapper, boolean dat m.event().ifPresent(value -> node.set("event", new TextNode(value))); m.id().ifPresent(value -> node.set("id", new TextNode(value))); m.retryMs().ifPresent(value -> node.set("retry", new IntNode(value))); - // data is always present (but may be an empty string) - if (dataIsPlainText || m.data().trim().isEmpty()) { - node.set("data", new TextNode(m.data())); - } else { - JsonNode tree = mapper.readTree(m.data()); - node.set("data", tree); - } + m.data().ifPresent(data -> { + if (dataIsPlainText) { + node.set("data", new TextNode(data)); + } else { + try { + JsonNode tree = mapper.readTree(data); + node.set("data", tree); + } catch (JsonProcessingException e) { + node.set("data", new TextNode(data)); + } + } + }); return mapper.writeValueAsString(node); } diff --git a/src/main/java/com/gr4vy/sdk/utils/reactive/EventStream.java b/src/main/java/com/gr4vy/sdk/utils/reactive/EventStream.java index a5eae415..9263cb1f 100644 --- a/src/main/java/com/gr4vy/sdk/utils/reactive/EventStream.java +++ b/src/main/java/com/gr4vy/sdk/utils/reactive/EventStream.java @@ -334,17 +334,13 @@ public StreamingParser createParser() { @Override public ItemT processItem(EventStreamMessage message, ObjectMapper objectMapper, TypeReference typeReference) { - // Skip empty data messages - if (message.data().isEmpty()) { - return null; - } return Utils.asType(message, objectMapper, typeReference); } @Override public boolean shouldStop(EventStreamMessage message) { // Check if this is a terminal message - return terminalMessage != null && terminalMessage.equals(message.data()); + return terminalMessage != null && message.data().map(terminalMessage::equals).orElse(false); } }