diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 3d26cb0c..d2d732d2 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,24 +1,24 @@ lockVersion: 2.0.0 id: 5bbaa3a9-baa0-471b-ba6a-13fd88e8c119 management: - docChecksum: 74e7f9943eb7fc497c33f4412f22f900 + docChecksum: aae1ebc9319aa6c44c24c02439160ed0 docVersion: 1.0.0 - speakeasyVersion: 1.801.0 - generationVersion: 2.946.0 - releaseVersion: 2.19.24 - configChecksum: a9c74739cdf121bb18e972df3b76892b + speakeasyVersion: 1.806.0 + generationVersion: 2.956.1 + releaseVersion: 2.19.25 + configChecksum: 11b144e5ec6b035ff3315102cf5b8149 repoURL: https://github.com/gr4vy/gr4vy-java.git installationURL: https://github.com/gr4vy/gr4vy-java published: true persistentEdits: - generation_id: c884f1c2-886a-4d26-b25c-787122e101ee - pristine_commit_hash: 662baeae5241da87b213b4180a48a55479e3872b - pristine_tree_hash: 473905c354fbfdab568c84e1e091925ae669101d + generation_id: 72f7a6ba-04b8-40a8-a8b4-0e7cb77c9ffa + pristine_commit_hash: b4d333f2469e476774f56d27f6c0fd8dcd377afa + pristine_tree_hash: 6472e6208344a1833ca946c808f5d6e3b2d6dfb4 features: java: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.3 - core: 3.57.2 + core: 3.57.5 deprecations: 2.81.2 flattening: 2.81.1 globalSecurity: 2.83.4 @@ -30,7 +30,7 @@ features: ignores: 2.81.1 nameOverrides: 2.81.5 nullables: 0.1.1 - openEnums: 0.2.0 + openEnums: 0.2.1 pagination: 1.0.4 retries: 0.1.4 sdkHooks: 1.2.0 @@ -47,12 +47,12 @@ trackedFiles: pristine_git_object: 2dd1492d7b4e43639a052483c2652afa851289eb build.gradle: id: f07866736216 - last_write_checksum: sha1:b03603a0fa3a89f3ed97bf52de9b14b300b27ed6 - pristine_git_object: 7352f66499ad3189cea422bd903ccafb2ce79993 + last_write_checksum: sha1:5ff2ecb8b0de9458487f776b5d5170d185adbe91 + pristine_git_object: 3528a654b15fddbddbd3fa2534342156fcdebebc docs/models/components/ACHBankPaymentMethodCreate.md: id: e852a32f84bc - last_write_checksum: sha1:53177bd971f2e5fde2b1faae3cfbc6e645b799c9 - pristine_git_object: a494dd6b2f8bb945ea859eaa6f00b0b2ab1911d3 + last_write_checksum: sha1:d187f48031b07463617096bd997919bc6d43d380 + pristine_git_object: db14598c0b73114aa994311409e0de1ec4934b25 docs/models/components/AIInsightsReportSpec.md: id: cb77b89acce9 last_write_checksum: sha1:327cf2b0ebf1980a467da39cdd3cbb34ba8a0b84 @@ -211,8 +211,8 @@ trackedFiles: pristine_git_object: 5694a1bd3c8ee8599202bd12a42457e7682c53dd docs/models/components/BACSBankPaymentMethodCreate.md: id: 572409d95739 - last_write_checksum: sha1:b4399921271981be3d2187bfae1444188170bd5c - pristine_git_object: 2644c4ca8f055ba27900800ce1c95de0658098a1 + last_write_checksum: sha1:e67464fad4d0114b3780dbf2e907e92123bf7689 + pristine_git_object: fa4472f7301c9feb4f5d8c594c0e5ef18a244ff6 docs/models/components/BankAccountHolder.md: id: 6150efe95157 last_write_checksum: sha1:a1faec54701dfe05ce38e274d239dcb239d9c9f5 @@ -283,8 +283,8 @@ trackedFiles: pristine_git_object: 240f1604a2b73e3acddecb1b92d2ed70baf60b9e docs/models/components/CardScheme.md: id: 41cc326587c2 - last_write_checksum: sha1:08b361277d81106ee52c2fbe83365cff92315d7d - pristine_git_object: 08748f167ed8d736b3aa7b4e9fa18c7d7c837008 + last_write_checksum: sha1:7607d129bb21364a0287b6fde659a6850b6abba8 + pristine_git_object: 3903cfe895456bb2dd44d8b4f90cb6ad6ea0afec docs/models/components/CardSchemeDefinition.md: id: 97a732b7ded2 last_write_checksum: sha1:02e7f66db89b664a85fe3d22a331827029240e7a @@ -775,8 +775,8 @@ trackedFiles: pristine_git_object: ada3d378d3d81957b96b19e19e510b290090ec1f docs/models/components/Method.md: id: adedaeaabf7c - last_write_checksum: sha1:0fab8c49fb547c4d3a9257e1fef41c3e93e6820f - pristine_git_object: 6f90cbfa1d3b91069d5015e5c41b46eb187293bb + last_write_checksum: sha1:b5bc9d2c467344995dc9e963d8b599c76cdbc2ce + pristine_git_object: 785e977c2163ae6c2ccd868e03c799f65f492a87 docs/models/components/MockCardMerchantAdviceCodeOptions.md: id: e927a10a34ae last_write_checksum: sha1:0d601be78333ce1c701a642b9a69e88507c6c5d0 @@ -847,12 +847,12 @@ trackedFiles: pristine_git_object: 0944cd1a9127eec0e29ebaff2173d5ae6b4877ff docs/models/components/PaymentLink.md: id: 14e920f19b2f - last_write_checksum: sha1:d2340110756f208ca553503d05e93db0679062c8 - pristine_git_object: 9a4b8b008f09ad7e6543452ee9865e7d39a5bca1 + last_write_checksum: sha1:7b145a6beec4396855d0a5ca5980a189882e3ce2 + pristine_git_object: fbd46b9d289c7f7394fbbc07953a72f849db2bea docs/models/components/PaymentLinkCreate.md: id: abdc9863afe0 - last_write_checksum: sha1:b7078c2c7f5e17ed5a41f5440df0b98feea95de2 - pristine_git_object: cbf48615d1b336ece82f2b36a0e335812db7063a + last_write_checksum: sha1:8137d8de02f74098e0f0992da446f0096024cd7d + pristine_git_object: e4e6e2d2e2b6e32d810a9667a9f387bcf48d1e6e docs/models/components/PaymentLinkStatus.md: id: 025fb96de5be last_write_checksum: sha1:30a7713941cf68d3af6bf2d1f43fda7d8d996586 @@ -1195,8 +1195,8 @@ trackedFiles: pristine_git_object: 98be6328cbcf338eaa22369da773dbdbd08cc82a docs/models/components/RedirectPaymentMethodCreateMethod.md: id: d7f0c77bb644 - last_write_checksum: sha1:36c87b60d0ad9b8ea2e94092a18dfea58ce95aee - pristine_git_object: d89562a69357b98371e5f90d4da7222be426c458 + last_write_checksum: sha1:c26050234e43bc4095c34e1a9d9096b746f2723f + pristine_git_object: de6232c5442c7d9b683afe16a5b5c157b9843db2 docs/models/components/Refund.md: id: a2190313768a last_write_checksum: sha1:21f9368f68fb81aec4af2cdf0fa40370a7be635a @@ -1339,8 +1339,8 @@ trackedFiles: pristine_git_object: f94726b7d9eecc8617a9c48e9ea5570d06725a7a docs/models/components/SEPABankPaymentMethodCreate.md: id: 5591e864637a - last_write_checksum: sha1:80164f666630fa76206f3c4b623345c32e5d9c29 - pristine_git_object: 8023c4c5f2d338a4c2d236bebd7772691fb2f200 + last_write_checksum: sha1:1ce4c5801e701ece0a4e6d8a0da5e4624a0a8714 + pristine_git_object: 472effcd2a0761e94570e85a48e17157e44edf6a docs/models/components/SecCode.md: id: 582b117605ac last_write_checksum: sha1:a80da84a24b8606cb703bc41c3b7a01eb7f732af @@ -1643,8 +1643,8 @@ trackedFiles: pristine_git_object: 484ec88e1824a5d18c7eb0e2261a2e4bd3f3087d docs/models/components/UserStatus.md: id: 170fc571c0b1 - last_write_checksum: sha1:7005312816e80901684bc4959ecc822d0220cadc - pristine_git_object: 9d693861a5ca636f6bcb5ba20922abc828a80bdc + last_write_checksum: sha1:27ca67b9d949cc44d2f15e6e98e98b60c264594a + pristine_git_object: 49ebd3da4631f314a7d4c503c5264d9c109d130c docs/models/components/ValidationError.md: id: 45117dd85090 last_write_checksum: sha1:ac18b7159426c3bb2b771e7f6c92620a970a3211 @@ -2891,8 +2891,8 @@ trackedFiles: pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:fb66e79fc70726f1684e400dde178cd3949fac1d - pristine_git_object: 5fc4739c4a78ea1b24c0d6b85d16da8bb9150bc0 + last_write_checksum: sha1:3de6b7e528b89b38c9a957d189a26ec4b726b746 + pristine_git_object: 6a87c6bad91b57ff1addc3a99d115acb5086f113 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -2911,8 +2911,8 @@ trackedFiles: pristine_git_object: 5eed7ee8452842305a18a4eb967442683808226a publishing.gradle: id: 0f10e722a87d - last_write_checksum: sha1:e44807c8ef11d5f89fa62ab57b51186b3ff21317 - pristine_git_object: d58621700ee5fcb938b8d3e6afd788ad62631c66 + last_write_checksum: sha1:f08c9313f10f1518962cda227b1fc5d81e0a4658 + pristine_git_object: 206da5171f70e511518267a01f5501e9c03fcaf6 settings.gradle: id: 05efc8b16577 last_write_checksum: sha1:5043f29bd9b3303439d244b258ce82011f4ae80f @@ -3235,8 +3235,8 @@ trackedFiles: pristine_git_object: b50475cc7f6041d63c4569256e4ff1850b20d30b src/main/java/com/gr4vy/sdk/SDKConfiguration.java: id: 73a7edeaca45 - last_write_checksum: sha1:b1d63f7285dbf70b2f170e41fa088fcfeed0d882 - pristine_git_object: d44ba0c44a13549b13a28f65ff7c9ab2acb61141 + last_write_checksum: sha1:2db21484a7332ca90dcddfc93fa6e509f3e4dd4f + pristine_git_object: c62839e6401884b731c8fe12eb94998b3fc492bd src/main/java/com/gr4vy/sdk/SecuritySource.java: id: 1b6add6b9b50 last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd @@ -3271,8 +3271,8 @@ trackedFiles: pristine_git_object: 364e18f8344a6cb844bdcdee3c14a4646b206ebe src/main/java/com/gr4vy/sdk/models/components/ACHBankPaymentMethodCreate.java: id: 58956823f623 - last_write_checksum: sha1:46f2971bb0f828bd403e2e7cbfb7ad5d353c1e1b - pristine_git_object: e4944c5d76d7032b451c8f39814da153727d2f74 + last_write_checksum: sha1:d6bb1d7d5d77862808aa71d1f6f7c9da45e16b36 + pristine_git_object: f634b3f73137e746ce997122b755119ea0e2dbe6 src/main/java/com/gr4vy/sdk/models/components/AIInsightsReportSpec.java: id: 11b412cb92a0 last_write_checksum: sha1:b7754f5c01adaed74fb5e07b39c7b59a9a0d7453 @@ -3431,8 +3431,8 @@ trackedFiles: pristine_git_object: 8c7daa3632859a28642d9cf44c40a2a66e54b212 src/main/java/com/gr4vy/sdk/models/components/BACSBankPaymentMethodCreate.java: id: b460ab2abaf9 - last_write_checksum: sha1:b3fec6d22fdafe9972df064b2a608d7afd71cf4e - pristine_git_object: 7509731ef62ad25c20260f39712559ee206645ab + last_write_checksum: sha1:2ba1610902507d7f8d2f9c8253bac4493316c557 + pristine_git_object: 26c20b3206a6a0a5d0f0e864a441cd9f54ddd344 src/main/java/com/gr4vy/sdk/models/components/BankAccountHolder.java: id: fdb2b7a547af last_write_checksum: sha1:12ff0de90c658bf4e707bdcefe79a849c20a2a5a @@ -3503,8 +3503,8 @@ trackedFiles: pristine_git_object: 504d71e5e3fc4a1c93d98041345a01933cdca0d8 src/main/java/com/gr4vy/sdk/models/components/CardScheme.java: id: 2131295a05b7 - last_write_checksum: sha1:f860f8bddbce7e9756b11a9d19cb3f3bbea89c4b - pristine_git_object: 143738ce36780bca4a376e4c32e74ad0eb78dacc + last_write_checksum: sha1:2e0adbba5787ee8fb370d155c00b1bf65e2c4847 + pristine_git_object: 45319f374613a4af0bad446b0f3d569e6f5d0254 src/main/java/com/gr4vy/sdk/models/components/CardSchemeDefinition.java: id: a685790e2912 last_write_checksum: sha1:89baeb97a0fce54f0c88fc418ff4a5967b433499 @@ -3995,8 +3995,8 @@ trackedFiles: pristine_git_object: 9cbb1b174e9a001f1a288f7fc6e020c10e85141c src/main/java/com/gr4vy/sdk/models/components/Method.java: id: bac0c78cdc74 - last_write_checksum: sha1:a2bc51c0f3425baaafa14de46d5760aea69034b9 - pristine_git_object: d571f98f686ef47c5ad02be2f75cf818eda5a77e + last_write_checksum: sha1:f44d44715c42fc71eb19cc7834c272dfafa9ab0b + pristine_git_object: d90921a163db555f93c25934093a5f7885d9bd54 src/main/java/com/gr4vy/sdk/models/components/MockCardMerchantAdviceCodeOptions.java: id: 98c8ae3757dc last_write_checksum: sha1:6a077d4085feed412a73ec009f00361376631bde @@ -4067,12 +4067,12 @@ trackedFiles: pristine_git_object: 139b7ed0c639da00bf5cd42697bc0bf1b45b6e45 src/main/java/com/gr4vy/sdk/models/components/PaymentLink.java: id: 35a81283c9d3 - last_write_checksum: sha1:2b07162bb8dfa0de4ae49b3b95b5f542d3774462 - pristine_git_object: 34ef5cc2c7856051714183b4ff287ffd706b7dd3 + last_write_checksum: sha1:0836cd90aa2abb75c17428d965cf65147fd1cd57 + pristine_git_object: 361659b75266b490275a0e9664ae6cb2e5d4da3a src/main/java/com/gr4vy/sdk/models/components/PaymentLinkCreate.java: id: f4795aff8cb9 - last_write_checksum: sha1:0905b70a2df5489d9425c41385c199fef9cb8c87 - pristine_git_object: 1a6915c4c5355d1cd2b3e60185196439f3a567df + last_write_checksum: sha1:32836b657b487b421267efcef890bd3cadc58818 + pristine_git_object: 5859b34fb9405555a4cfd495a1422007707b615b src/main/java/com/gr4vy/sdk/models/components/PaymentLinkStatus.java: id: bd297c5e4aa2 last_write_checksum: sha1:2817e8cae2751ecb7a8aea9937433b20dfad689c @@ -4415,8 +4415,8 @@ trackedFiles: pristine_git_object: 2408d5886f65783ef40c40eba3b988689d681dcb src/main/java/com/gr4vy/sdk/models/components/RedirectPaymentMethodCreateMethod.java: id: 3789188383b7 - last_write_checksum: sha1:7e36680b2cfc5cf88d7641b11c9027d0e267ee8f - pristine_git_object: be3761d84b4eb1d6d042d5ef14c32c88c92c0fc4 + last_write_checksum: sha1:6835e273da1fa794cf40d123be03177ba4e80418 + pristine_git_object: e738f1ef27cd3baa6794a36845e7ef946aef46ff src/main/java/com/gr4vy/sdk/models/components/Refund.java: id: 4b22e399807b last_write_checksum: sha1:53b9d2207917491dcd78d3a2bed75d1f8a433dfa @@ -4559,8 +4559,8 @@ trackedFiles: pristine_git_object: ae31c539e6e98fdba9ec6f0b298e37554af4dab8 src/main/java/com/gr4vy/sdk/models/components/SEPABankPaymentMethodCreate.java: id: d1084d2ea48a - last_write_checksum: sha1:60d19ee1d0d289c84246467f9e8583335b248786 - pristine_git_object: 2fd6ade5a51c5775a5f24993578dfe8e4e236676 + last_write_checksum: sha1:7e216589470b611c11578d86270bd709789d62c5 + pristine_git_object: 384551595b34ed3c441b058bd4170891dc0a4842 src/main/java/com/gr4vy/sdk/models/components/SecCode.java: id: 702cc9cadfe6 last_write_checksum: sha1:14838fb79cba527d8f6f8afa8989522dc3cade84 @@ -4871,8 +4871,8 @@ trackedFiles: pristine_git_object: f68a19af2844c250c1d605bbeb3363cd55d67781 src/main/java/com/gr4vy/sdk/models/components/UserStatus.java: id: cbf208008bb0 - last_write_checksum: sha1:b32255190c42669a6580d4a83c028c665c873ade - pristine_git_object: ac13a934fdae6b9bcd95ecdd7f0db31879b2d976 + last_write_checksum: sha1:72d93f30c8e5fb1fbc377c7e31825db25945420f + pristine_git_object: 074cffe63165dd075b0208dee1c4bc70bde6afdb src/main/java/com/gr4vy/sdk/models/components/ValidationError.java: id: cd030703744d last_write_checksum: sha1:5143ae79cf43f7e51cdb08fc82514691fb3de7a2 @@ -11374,7 +11374,7 @@ examples: application/json: {"amount": 1299, "country": "DE", "currency": "EUR", "store": true} responses: "201": - application/json: {"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "type": "payment-link", "url": "https://example.com/link/a1b2c3d4-5678-90ab-cdef-1234567890ab", "amount": 1299, "country": "DE", "currency": "EUR", "intent": "capture", "cart_items": [{"name": "Widget", "quantity": 2, "unit_amount": 1299}], "payment_source": "ecommerce", "created_at": "2024-05-30T12:34:56.000Z", "updated_at": "2024-05-30T13:00:00.000Z", "status": "completed", "store": false} + application/json: {"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "type": "payment-link", "url": "https://example.com/link/a1b2c3d4-5678-90ab-cdef-1234567890ab", "amount": 1299, "country": "DE", "currency": "EUR", "intent": "capture", "cart_items": [{"name": "Widget", "quantity": 2, "unit_amount": 1299}], "airline": {}, "payment_source": "ecommerce", "created_at": "2024-05-30T12:34:56.000Z", "updated_at": "2024-05-30T13:00:00.000Z", "status": "completed", "store": false} "400": application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"} "401": @@ -11468,7 +11468,7 @@ examples: payment_link_id: "a1b2c3d4-5678-90ab-cdef-1234567890ab" responses: "200": - application/json: {"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "type": "payment-link", "url": "https://example.com/link/a1b2c3d4-5678-90ab-cdef-1234567890ab", "amount": 1299, "country": "DE", "currency": "EUR", "intent": "authorize", "cart_items": [{"name": "Widget", "quantity": 2, "unit_amount": 1299}], "payment_source": "ecommerce", "created_at": "2024-05-30T12:34:56.000Z", "updated_at": "2024-05-30T13:00:00.000Z", "status": "active", "store": false} + application/json: {"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "type": "payment-link", "url": "https://example.com/link/a1b2c3d4-5678-90ab-cdef-1234567890ab", "amount": 1299, "country": "DE", "currency": "EUR", "intent": "authorize", "cart_items": [{"name": "Widget", "quantity": 2, "unit_amount": 1299}], "airline": null, "payment_source": "ecommerce", "created_at": "2024-05-30T12:34:56.000Z", "updated_at": "2024-05-30T13:00:00.000Z", "status": "active", "store": false} "400": application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"} "401": @@ -12499,6 +12499,7 @@ examples: application/json: {"type": "error", "code": "gateway_timeout", "status": 504, "message": "Request could not be processed"} examplesVersion: 1.0.2 generatedTests: {} +releaseNotes: "## Java SDK Changes:\n* `gr4vy.buyers.paymentMethods.list()`: `response.items[]` **Changed**\n* `gr4vy.paymentMethods.list()`: `response.items[]` **Changed**\n* `gr4vy.paymentMethods.create()`: \n * `requestBody.union(RedirectPaymentMethodCreate).method` **Changed**\n * `response` **Changed**\n* `gr4vy.paymentMethods.get()`: `response` **Changed**\n* `gr4vy.paymentMethods.update()`: \n * `request.paymentMethodUpdate.schemeTransactionIdScheme.enum(dinacard)` **Added**\n * `response` **Changed**\n* `gr4vy.transactions.list()`: \n * `request.method` **Changed**\n * `response.items[].paymentMethod` **Changed**\n* `gr4vy.transactions.create()`: \n * `request.transactionCreate.paymentMethod` **Changed**\n * `response.paymentMethod` **Changed**\n* `gr4vy.transactions.get()`: `response.paymentMethod` **Changed**\n* `gr4vy.transactions.update()`: `response.paymentMethod` **Changed**\n* `gr4vy.transactions.capture()`: `response.union(Transaction).paymentMethod` **Changed**\n* `gr4vy.transactions.void()`: `response.union(Transaction).paymentMethod` **Changed**\n* `gr4vy.transactions.cancel()`: `response.transaction.paymentMethod` **Changed**\n* `gr4vy.transactions.sync()`: `response.paymentMethod` **Changed**\n* `gr4vy.transactions.incrementAuthorization()`: `response.transaction.paymentMethod` **Changed**\n* `gr4vy.paymentServiceDefinitions.list()`: `response.items[].method` **Changed**\n* `gr4vy.paymentServiceDefinitions.get()`: `response.method` **Changed**\n* `gr4vy.paymentServices.list()`: \n * `request.method` **Changed**\n * `response.items[].method` **Changed**\n* `gr4vy.paymentServices.create()`: `response.method` **Changed**\n* `gr4vy.paymentServices.get()`: `response.method` **Changed**\n* `gr4vy.paymentServices.update()`: `response.method` **Changed**\n* `gr4vy.auditLogs.list()`: `response.items[].user.status.enum(reset)` **Added**\n* `gr4vy.checkoutSessions.create()`: `response.paymentMethod.scheme.enum(dinacard)` **Added**\n* `gr4vy.checkoutSessions.update()`: `response.paymentMethod.scheme.enum(dinacard)` **Added**\n* `gr4vy.checkoutSessions.get()`: `response.paymentMethod.scheme.enum(dinacard)` **Added**\n* `gr4vy.merchantAccounts.list()`: `response.items[].loonAcceptedSchemes[].enum(dinacard)` **Added**\n* `gr4vy.merchantAccounts.create()`: \n * `request.loonAcceptedSchemes[].enum(dinacard)` **Added**\n * `response.loonAcceptedSchemes[].enum(dinacard)` **Added**\n* `gr4vy.merchantAccounts.get()`: `response.loonAcceptedSchemes[].enum(dinacard)` **Added**\n* `gr4vy.merchantAccounts.update()`: \n * `request.merchantAccountUpdate.loonAcceptedSchemes[].enum(dinacard)` **Added**\n * `response.loonAcceptedSchemes[].enum(dinacard)` **Added**\n* `gr4vy.merchantAccounts.threeDsConfiguration.create()`: \n * `request.merchantAccountThreeDsConfigurationCreate.scheme.enum(dinacard)` **Added**\n * `response.scheme.enum(dinacard)` **Added**\n* `gr4vy.merchantAccounts.threeDsConfiguration.list()`: `response.items[].scheme.enum(dinacard)` **Added**\n* `gr4vy.merchantAccounts.threeDsConfiguration.update()`: \n * `request.merchantAccountThreeDsConfigurationUpdate.scheme.enum(dinacard)` **Added**\n * `response.scheme.enum(dinacard)` **Added**\n* `gr4vy.payouts.list()`: `response.items[].paymentMethod` **Changed**\n* `gr4vy.payouts.create()`: \n * `request.payoutCreate.paymentMethod.union(PaymentMethodCard).cardScheme.enum(dinacard)` **Added**\n * `response.paymentMethod` **Changed**\n* `gr4vy.payouts.get()`: `response.paymentMethod` **Changed**\n* `gr4vy.paymentLinks.create()`: \n * `request.paymentLinkCreate.airline` **Added**\n * `response.airline` **Added**\n* `gr4vy.paymentLinks.list()`: `response.items[].airline` **Added**\n* `gr4vy.paymentLinks.get()`: `response.airline` **Added**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 3f4acddc..bba4aa56 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -15,6 +15,7 @@ generation: sharedErrorComponentsApr2025: true sharedNestedComponentsJan2026: false nameOverrideFeb2026: false + openSingleValueEnumsOct2026: false auth: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false @@ -30,7 +31,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 2.19.24 + version: 2.19.25 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 3eb9c8dc..54ee57e7 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.801.0 +speakeasyVersion: 1.806.0 sources: Gr4vy: sourceNamespace: openapi @@ -9,8 +9,8 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:465ffc9416b1595601455a4fa8524944ea636f77627333746830f8aca11ac1ae - sourceBlobDigest: sha256:cc950a1c77725a0b14ff591b1a6bdfe0d8554cf453f81524e535ac74db79bfda + sourceRevisionDigest: sha256:f9f64a44331b388ab63caae6bead7e2fd02eefa5ea5b479a0b7006791c0e2e7f + sourceBlobDigest: sha256:75d00eb3f560dbdb965176d8e8e42ce20b431ce36a6ff2a90373043ac0a6b4a9 tags: - latest - 1.0.0 @@ -25,10 +25,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:465ffc9416b1595601455a4fa8524944ea636f77627333746830f8aca11ac1ae - sourceBlobDigest: sha256:cc950a1c77725a0b14ff591b1a6bdfe0d8554cf453f81524e535ac74db79bfda + sourceRevisionDigest: sha256:f9f64a44331b388ab63caae6bead7e2fd02eefa5ea5b479a0b7006791c0e2e7f + sourceBlobDigest: sha256:75d00eb3f560dbdb965176d8e8e42ce20b431ce36a6ff2a90373043ac0a6b4a9 codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:24910c1ebd03ed10868902f8aef87f83b40a28cf9bb9517e929b95e0b854d6fc + codeSamplesRevisionDigest: sha256:d4fe4c0556c499eaedce3a5864098f14b27f7a60c57c81b216e553ca0f3f504e workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 4734e99c..70d2e12e 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.gr4vy:sdk:2.19.24' +implementation 'com.gr4vy:sdk:2.19.25' ``` Maven: @@ -67,7 +67,7 @@ Maven: com.gr4vy sdk - 2.19.24 + 2.19.25 ``` diff --git a/RELEASES.md b/RELEASES.md index 634f80e3..1d023314 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2408,4 +2408,14 @@ Based on: ### Generated - [java v2.19.24] . ### Releases -- [Maven Central v2.19.24] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.24 - . \ No newline at end of file +- [Maven Central v2.19.24] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.24 - . + +## 2026-11-03 15:26:57 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.806.0 (2.956.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v2.19.25] . +### Releases +- [Maven Central v2.19.25] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.25 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index 7352f664..3528a654 100644 --- a/build.gradle +++ b/build.gradle @@ -80,9 +80,9 @@ dependencies { implementation 'org.bouncycastle:bcpkix-jdk18on:1.80' implementation 'org.slf4j:slf4j-simple:2.0.7' api 'com.fasterxml.jackson.core:jackson-annotations:2.22' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.22.1' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.22.0' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.22.0' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.22.4' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.22.4' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.22.4' api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} implementation 'commons-io:commons-io:2.18.0' implementation 'jakarta.annotation:jakarta.annotation-api:3.0.0' diff --git a/docs/models/components/ACHBankPaymentMethodCreate.md b/docs/models/components/ACHBankPaymentMethodCreate.md index a494dd6b..db14598c 100644 --- a/docs/models/components/ACHBankPaymentMethodCreate.md +++ b/docs/models/components/ACHBankPaymentMethodCreate.md @@ -7,15 +7,15 @@ Bank Payment Method for ACH bank accounts. ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `method` | *Optional\* | :heavy_minus_sign: | Always `bank`. | bank | -| `accountHolder` | [BankAccountHolder](../../models/components/BankAccountHolder.md) | :heavy_check_mark: | N/A | | -| `buyerId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the buyer to attach the method to. | fe26475d-ec3e-4884-9553-f7356683f7f9 | -| `buyerExternalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant reference for this payment method. | payment-method-12345 | -| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant identifier for this payment method. | payment-method-12345 | -| `scheme` | *Optional\* | :heavy_minus_sign: | Always `ach`. | ach | -| `accountNumber` | *String* | :heavy_check_mark: | The account number for this ACH bank account | 123456789 | -| `routingNumber` | *String* | :heavy_check_mark: | The routing number for this ACH bank account | 000000111 | -| `isTokenized` | *Optional\* | :heavy_minus_sign: | Whether the account number is tokenized | false | -| `accountType` | [Optional\](../../models/components/AccountType.md) | :heavy_minus_sign: | Specify whether this is a `checking` or `savings` account. Defaults to `checking`. | checking | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `method` | *Optional\* | :heavy_minus_sign: | Always `bank`. | bank | +| `accountHolder` | [BankAccountHolder](../../models/components/BankAccountHolder.md) | :heavy_check_mark: | N/A | | +| `buyerId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the buyer to attach the method to. | fe26475d-ec3e-4884-9553-f7356683f7f9 | +| `buyerExternalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant reference for this payment method. | payment-method-12345 | +| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant identifier for this payment method. | payment-method-12345 | +| `scheme` | *Optional\* | :heavy_minus_sign: | Always `ach`. | ach | +| `isTokenized` | *Optional\* | :heavy_minus_sign: | Whether the account number is tokenized | false | +| `accountNumber` | *String* | :heavy_check_mark: | The account number for this ACH bank account, made up of at most 17 digits. Spaces and dashes are ignored. Any format is accepted when `is_tokenized` is `true`. | 123456789 | +| `routingNumber` | *String* | :heavy_check_mark: | The routing number for this ACH bank account, made up of 9 digits. Spaces and dashes are ignored. | 000000111 | +| `accountType` | [Optional\](../../models/components/AccountType.md) | :heavy_minus_sign: | Specify whether this is a `checking` or `savings` account. Defaults to `checking`. | checking | \ No newline at end of file diff --git a/docs/models/components/BACSBankPaymentMethodCreate.md b/docs/models/components/BACSBankPaymentMethodCreate.md index 2644c4ca..fa4472f7 100644 --- a/docs/models/components/BACSBankPaymentMethodCreate.md +++ b/docs/models/components/BACSBankPaymentMethodCreate.md @@ -7,13 +7,13 @@ Bank Payment Method for BACS bank accounts. ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `method` | *Optional\* | :heavy_minus_sign: | Always `bank`. | bank | -| `accountHolder` | [BankAccountHolder](../../models/components/BankAccountHolder.md) | :heavy_check_mark: | N/A | | -| `buyerId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the buyer to attach the method to. | fe26475d-ec3e-4884-9553-f7356683f7f9 | -| `buyerExternalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant reference for this payment method. | payment-method-12345 | -| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant identifier for this payment method. | payment-method-12345 | -| `scheme` | *Optional\* | :heavy_minus_sign: | Always `bacs`. | bacs | -| `accountNumber` | *String* | :heavy_check_mark: | The account number for this BACS bank account | 12345678 | -| `routingNumber` | *String* | :heavy_check_mark: | The sort code for this BACS bank account | 11-22-33 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `method` | *Optional\* | :heavy_minus_sign: | Always `bank`. | bank | +| `accountHolder` | [BankAccountHolder](../../models/components/BankAccountHolder.md) | :heavy_check_mark: | N/A | | +| `buyerId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the buyer to attach the method to. | fe26475d-ec3e-4884-9553-f7356683f7f9 | +| `buyerExternalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant reference for this payment method. | payment-method-12345 | +| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant identifier for this payment method. | payment-method-12345 | +| `scheme` | *Optional\* | :heavy_minus_sign: | Always `bacs`. | bacs | +| `accountNumber` | *String* | :heavy_check_mark: | The account number for this BACS bank account, made up of 8 digits. A 6 or 7 digit number is padded with leading zeros. Spaces and dashes are ignored. | 12345678 | +| `routingNumber` | *String* | :heavy_check_mark: | The sort code for this BACS bank account, made up of 6 digits. Spaces and dashes are ignored. | 11-22-33 | \ No newline at end of file diff --git a/docs/models/components/CardScheme.md b/docs/models/components/CardScheme.md index 08748f16..3903cfe8 100644 --- a/docs/models/components/CardScheme.md +++ b/docs/models/components/CardScheme.md @@ -23,6 +23,7 @@ CardScheme custom = CardScheme.of("custom_value"); | `CIRRUS` | cirrus | | `CULIANCE` | culiance | | `DANKORT` | dankort | +| `DINACARD` | dinacard | | `DINERS_CLUB` | diners-club | | `DISCOVER` | discover | | `EFTPOS_AUSTRALIA` | eftpos-australia | diff --git a/docs/models/components/Method.md b/docs/models/components/Method.md index 6f90cbfa..785e977c 100644 --- a/docs/models/components/Method.md +++ b/docs/models/components/Method.md @@ -21,14 +21,18 @@ Method custom = Method.of("custom_value"); | `AFTERPAY` | afterpay | | `ALIPAY` | alipay | | `ALIPAYHK` | alipayhk | +| `ALIPAYPLUS` | alipayplus | +| `ALMA` | alma | | `APPLEPAY` | applepay | | `ARCUSPAYNETWORK` | arcuspaynetwork | | `BACS` | bacs | | `BANCONTACT` | bancontact | | `BANK` | bank | +| `BCMCMOBILE` | bcmcmobile | | `BCP` | bcp | | `BECS` | becs | | `BITPAY` | bitpay | +| `BIZUM` | bizum | | `BLIK` | blik | | `ACH` | ach | | `BOLETO` | boleto | @@ -48,9 +52,11 @@ Method custom = Method.of("custom_value"); | `DCB` | dcb | | `DLOCAL` | dlocal | | `DUITNOW` | duitnow | +| `EBANKINGFI` | ebankingfi | | `EBANX` | ebanx | | `ECKOH` | eckoh | | `EFECTY` | efecty | +| `EFTPAD` | eftpad | | `EPS` | eps | | `EVERYDAYPAY` | everydaypay | | `GCASH` | gcash | @@ -77,7 +83,9 @@ Method custom = Method.of("custom_value"); | `LINEPAY` | linepay | | `LINKAJA` | linkaja | | `MAYBANKQRPAY` | maybankqrpay | +| `MBWAY` | mbway | | `MERCADOPAGO` | mercadopago | +| `MOBILEPAY` | mobilepay | | `MULTIBANCO` | multibanco | | `MULTIPAGO` | multipago | | `NEQUI` | nequi | @@ -96,6 +104,7 @@ Method custom = Method.of("custom_value"); | `P24` | p24 | | `PAGOEFECTIVO` | pagoefectivo | | `PAYBYBANK` | paybybank | +| `PAYBYBANKEU` | paybybankeu | | `PAYID` | payid | | `PAYMAYA` | paymaya | | `PAYSQUAD` | paysquad | @@ -114,6 +123,7 @@ Method custom = Method.of("custom_value"); | `RAZORPAY` | razorpay | | `RAPIPAGO` | rapipago | | `REDPAGOS` | redpagos | +| `RIVERTY` | riverty | | `SCALAPAY` | scalapay | | `SEPA` | sepa | | `SERVIPAG` | servipag | @@ -136,6 +146,7 @@ Method custom = Method.of("custom_value"); | `TRUEMONEY` | truemoney | | `TRUSTLY` | trustly | | `TRUSTLYEUROPE` | trustlyeurope | +| `TWINT` | twint | | `UPI` | upi | | `VENMO` | venmo | | `VIPPS` | vipps | diff --git a/docs/models/components/PaymentLink.md b/docs/models/components/PaymentLink.md index 9a4b8b00..fbd46b9d 100644 --- a/docs/models/components/PaymentLink.md +++ b/docs/models/components/PaymentLink.md @@ -25,6 +25,7 @@ | `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
}
] | +| `airline` | [Optional\](../../models/components/Airline.md) | :heavy_check_mark: | The airline addendum data which describes the airline booking associated with this payment link. | | | `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 | diff --git a/docs/models/components/PaymentLinkCreate.md b/docs/models/components/PaymentLinkCreate.md index cbf48615..e4e6e2d2 100644 --- a/docs/models/components/PaymentLinkCreate.md +++ b/docs/models/components/PaymentLinkCreate.md @@ -24,6 +24,7 @@ | `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. | | +| `airline` | [JsonNullable\](../../models/components/Airline.md) | :heavy_minus_sign: | The airline addendum data which describes the airline booking associated with this payment link. | | | `metadata` | Map\ | :heavy_minus_sign: | Arbitrary metadata for the payment link. | {
"order_id": "ORD-12345"
} | | `paymentSource` | [Optional\](../../models/components/TransactionPaymentSource.md) | :heavy_minus_sign: | The way payment method information made it to this transaction. | | | `store` | *Optional\* | :heavy_minus_sign: | Whether to store the payment method for future use. | true | diff --git a/docs/models/components/RedirectPaymentMethodCreateMethod.md b/docs/models/components/RedirectPaymentMethodCreateMethod.md index d89562a6..de6232c5 100644 --- a/docs/models/components/RedirectPaymentMethodCreateMethod.md +++ b/docs/models/components/RedirectPaymentMethodCreateMethod.md @@ -23,12 +23,16 @@ RedirectPaymentMethodCreateMethod custom = RedirectPaymentMethodCreateMethod.of( | `AFTERPAY` | afterpay | | `ALIPAY` | alipay | | `ALIPAYHK` | alipayhk | +| `ALIPAYPLUS` | alipayplus | +| `ALMA` | alma | | `ARCUSPAYNETWORK` | arcuspaynetwork | | `BACS` | bacs | | `BANCONTACT` | bancontact | +| `BCMCMOBILE` | bcmcmobile | | `BCP` | bcp | | `BECS` | becs | | `BITPAY` | bitpay | +| `BIZUM` | bizum | | `BLIK` | blik | | `BOLETO` | boleto | | `BOOST` | boost | @@ -45,9 +49,11 @@ RedirectPaymentMethodCreateMethod custom = RedirectPaymentMethodCreateMethod.of( | `DCB` | dcb | | `DLOCAL` | dlocal | | `DUITNOW` | duitnow | +| `EBANKINGFI` | ebankingfi | | `EBANX` | ebanx | | `ECKOH` | eckoh | | `EFECTY` | efecty | +| `EFTPAD` | eftpad | | `EPS` | eps | | `EVERYDAYPAY` | everydaypay | | `GCASH` | gcash | @@ -71,7 +77,9 @@ RedirectPaymentMethodCreateMethod custom = RedirectPaymentMethodCreateMethod.of( | `LINEPAY` | linepay | | `LINKAJA` | linkaja | | `MAYBANKQRPAY` | maybankqrpay | +| `MBWAY` | mbway | | `MERCADOPAGO` | mercadopago | +| `MOBILEPAY` | mobilepay | | `MULTIBANCO` | multibanco | | `MULTIPAGO` | multipago | | `NETBANKING` | netbanking | @@ -89,6 +97,7 @@ RedirectPaymentMethodCreateMethod custom = RedirectPaymentMethodCreateMethod.of( | `P24` | p24 | | `PAGOEFECTIVO` | pagoefectivo | | `PAYBYBANK` | paybybank | +| `PAYBYBANKEU` | paybybankeu | | `PAYID` | payid | | `PAYMAYA` | paymaya | | `PAYSQUAD` | paysquad | @@ -105,6 +114,7 @@ RedirectPaymentMethodCreateMethod custom = RedirectPaymentMethodCreateMethod.of( | `RAPIPAGO` | rapipago | | `RAZORPAY` | razorpay | | `REDPAGOS` | redpagos | +| `RIVERTY` | riverty | | `SCALAPAY` | scalapay | | `SEPA` | sepa | | `SERVIPAG` | servipag | @@ -127,6 +137,7 @@ RedirectPaymentMethodCreateMethod custom = RedirectPaymentMethodCreateMethod.of( | `TRUEMONEY` | truemoney | | `TRUSTLY` | trustly | | `TRUSTLYEUROPE` | trustlyeurope | +| `TWINT` | twint | | `UPI` | upi | | `VENMO` | venmo | | `VIPPS` | vipps | diff --git a/docs/models/components/SEPABankPaymentMethodCreate.md b/docs/models/components/SEPABankPaymentMethodCreate.md index 8023c4c5..472effcd 100644 --- a/docs/models/components/SEPABankPaymentMethodCreate.md +++ b/docs/models/components/SEPABankPaymentMethodCreate.md @@ -7,13 +7,13 @@ Bank Payment Method for SEPA bank accounts. ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `method` | *Optional\* | :heavy_minus_sign: | Always `bank`. | bank | -| `accountHolder` | [BankAccountHolder](../../models/components/BankAccountHolder.md) | :heavy_check_mark: | N/A | | -| `buyerId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the buyer to attach the method to. | fe26475d-ec3e-4884-9553-f7356683f7f9 | -| `buyerExternalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant reference for this payment method. | payment-method-12345 | -| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant identifier for this payment method. | payment-method-12345 | -| `scheme` | *Optional\* | :heavy_minus_sign: | Always `sepa`. | sepa | -| `accountNumber` | *String* | :heavy_check_mark: | The IBAN for this SEPA bank account | ES1234567891234 | -| `routingNumber` | *JsonNullable\* | :heavy_minus_sign: | The BIC for this SEPA bank account | ABC123456 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `method` | *Optional\* | :heavy_minus_sign: | Always `bank`. | bank | +| `accountHolder` | [BankAccountHolder](../../models/components/BankAccountHolder.md) | :heavy_check_mark: | N/A | | +| `buyerId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the buyer to attach the method to. | fe26475d-ec3e-4884-9553-f7356683f7f9 | +| `buyerExternalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant reference for this payment method. | payment-method-12345 | +| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant identifier for this payment method. | payment-method-12345 | +| `scheme` | *Optional\* | :heavy_minus_sign: | Always `sepa`. | sepa | +| `accountNumber` | *String* | :heavy_check_mark: | The IBAN for this SEPA bank account. Spaces are ignored and it is not case sensitive. | NL91ABNA0417164300 | +| `routingNumber` | *JsonNullable\* | :heavy_minus_sign: | The BIC for this SEPA bank account, of 8 or 11 characters. Spaces are ignored and it is not case sensitive. | ABNANL2A | \ No newline at end of file diff --git a/docs/models/components/UserStatus.md b/docs/models/components/UserStatus.md index 9d693861..49ebd3da 100644 --- a/docs/models/components/UserStatus.md +++ b/docs/models/components/UserStatus.md @@ -18,4 +18,5 @@ UserStatus custom = UserStatus.of("custom_value"); | --------- | --------- | | `ACTIVE` | active | | `PENDING` | pending | -| `DELETED` | deleted | \ No newline at end of file +| `DELETED` | deleted | +| `RESET` | reset | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 5fc4739c..6a87c6ba 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.gr4vy artifactId=sdk -version=2.19.24 +version=2.19.25 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/publishing.gradle b/publishing.gradle index d5862170..206da517 100644 --- a/publishing.gradle +++ b/publishing.gradle @@ -47,7 +47,7 @@ afterEvaluate { description = config.description url = 'https://github.com/gr4vy/gr4vy-java' scm { - url = 'github.com/gr4vy/gr4vy-java' + url = 'https://github.com/gr4vy/gr4vy-java' connection = 'scm:git:ssh://git@github.com/gr4vy/gr4vy-java.git' } licenses { diff --git a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java index d44ba0c4..c62839e6 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.19.24"; - public static final String GEN_VERSION = "2.946.0"; + public static final String SDK_VERSION = "2.19.25"; + public static final String GEN_VERSION = "2.956.1"; 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/models/components/ACHBankPaymentMethodCreate.java b/src/main/java/com/gr4vy/sdk/models/components/ACHBankPaymentMethodCreate.java index e4944c5d..f634b3f7 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/ACHBankPaymentMethodCreate.java +++ b/src/main/java/com/gr4vy/sdk/models/components/ACHBankPaymentMethodCreate.java @@ -66,24 +66,25 @@ public class ACHBankPaymentMethodCreate { private Optional scheme; /** - * The account number for this ACH bank account + * Whether the account number is tokenized + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("is_tokenized") + private Optional isTokenized; + + /** + * The account number for this ACH bank account, made up of at most 17 digits. Spaces and dashes are + * ignored. Any format is accepted when `is_tokenized` is `true`. */ @JsonProperty("account_number") private String accountNumber; /** - * The routing number for this ACH bank account + * The routing number for this ACH bank account, made up of 9 digits. Spaces and dashes are ignored. */ @JsonProperty("routing_number") private String routingNumber; - /** - * Whether the account number is tokenized - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("is_tokenized") - private Optional isTokenized; - /** * Specify whether this is a `checking` or `savings` account. Defaults to `checking`. */ @@ -97,17 +98,17 @@ public ACHBankPaymentMethodCreate( @JsonProperty("buyer_id") JsonNullable buyerId, @JsonProperty("buyer_external_identifier") JsonNullable buyerExternalIdentifier, @JsonProperty("external_identifier") JsonNullable externalIdentifier, + @JsonProperty("is_tokenized") Optional isTokenized, @JsonProperty("account_number") String accountNumber, @JsonProperty("routing_number") String routingNumber, - @JsonProperty("is_tokenized") Optional isTokenized, @JsonProperty("account_type") Optional accountType) { Utils.checkNotNull(accountHolder, "accountHolder"); Utils.checkNotNull(buyerId, "buyerId"); Utils.checkNotNull(buyerExternalIdentifier, "buyerExternalIdentifier"); Utils.checkNotNull(externalIdentifier, "externalIdentifier"); + Utils.checkNotNull(isTokenized, "isTokenized"); Utils.checkNotNull(accountNumber, "accountNumber"); Utils.checkNotNull(routingNumber, "routingNumber"); - Utils.checkNotNull(isTokenized, "isTokenized"); Utils.checkNotNull(accountType, "accountType"); this.method = Builder._SINGLETON_VALUE_Method.value(); this.accountHolder = accountHolder; @@ -115,9 +116,9 @@ public ACHBankPaymentMethodCreate( this.buyerExternalIdentifier = buyerExternalIdentifier; this.externalIdentifier = externalIdentifier; this.scheme = Builder._SINGLETON_VALUE_Scheme.value(); + this.isTokenized = isTokenized; this.accountNumber = accountNumber; this.routingNumber = routingNumber; - this.isTokenized = isTokenized; this.accountType = accountType; } @@ -126,8 +127,8 @@ public ACHBankPaymentMethodCreate( String accountNumber, String routingNumber) { this(accountHolder, JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), accountNumber, routingNumber, - Optional.empty(), Optional.empty()); + JsonNullable.undefined(), Optional.empty(), accountNumber, + routingNumber, Optional.empty()); } /** @@ -176,27 +177,28 @@ public Optional scheme() { } /** - * The account number for this ACH bank account + * Whether the account number is tokenized */ @JsonIgnore - public String accountNumber() { - return accountNumber; + public Optional isTokenized() { + return isTokenized; } /** - * The routing number for this ACH bank account + * The account number for this ACH bank account, made up of at most 17 digits. Spaces and dashes are + * ignored. Any format is accepted when `is_tokenized` is `true`. */ @JsonIgnore - public String routingNumber() { - return routingNumber; + public String accountNumber() { + return accountNumber; } /** - * Whether the account number is tokenized + * The routing number for this ACH bank account, made up of 9 digits. Spaces and dashes are ignored. */ @JsonIgnore - public Optional isTokenized() { - return isTokenized; + public String routingNumber() { + return routingNumber; } /** @@ -274,39 +276,40 @@ public ACHBankPaymentMethodCreate withExternalIdentifier(JsonNullable ex } /** - * The account number for this ACH bank account + * Whether the account number is tokenized */ - public ACHBankPaymentMethodCreate withAccountNumber(String accountNumber) { - Utils.checkNotNull(accountNumber, "accountNumber"); - this.accountNumber = accountNumber; + public ACHBankPaymentMethodCreate withIsTokenized(boolean isTokenized) { + Utils.checkNotNull(isTokenized, "isTokenized"); + this.isTokenized = Optional.ofNullable(isTokenized); return this; } + /** - * The routing number for this ACH bank account + * Whether the account number is tokenized */ - public ACHBankPaymentMethodCreate withRoutingNumber(String routingNumber) { - Utils.checkNotNull(routingNumber, "routingNumber"); - this.routingNumber = routingNumber; + public ACHBankPaymentMethodCreate withIsTokenized(Optional isTokenized) { + Utils.checkNotNull(isTokenized, "isTokenized"); + this.isTokenized = isTokenized; return this; } /** - * Whether the account number is tokenized + * The account number for this ACH bank account, made up of at most 17 digits. Spaces and dashes are + * ignored. Any format is accepted when `is_tokenized` is `true`. */ - public ACHBankPaymentMethodCreate withIsTokenized(boolean isTokenized) { - Utils.checkNotNull(isTokenized, "isTokenized"); - this.isTokenized = Optional.ofNullable(isTokenized); + public ACHBankPaymentMethodCreate withAccountNumber(String accountNumber) { + Utils.checkNotNull(accountNumber, "accountNumber"); + this.accountNumber = accountNumber; return this; } - /** - * Whether the account number is tokenized + * The routing number for this ACH bank account, made up of 9 digits. Spaces and dashes are ignored. */ - public ACHBankPaymentMethodCreate withIsTokenized(Optional isTokenized) { - Utils.checkNotNull(isTokenized, "isTokenized"); - this.isTokenized = isTokenized; + public ACHBankPaymentMethodCreate withRoutingNumber(String routingNumber) { + Utils.checkNotNull(routingNumber, "routingNumber"); + this.routingNumber = routingNumber; return this; } @@ -345,9 +348,9 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.buyerExternalIdentifier, other.buyerExternalIdentifier) && Utils.enhancedDeepEquals(this.externalIdentifier, other.externalIdentifier) && Utils.enhancedDeepEquals(this.scheme, other.scheme) && + Utils.enhancedDeepEquals(this.isTokenized, other.isTokenized) && Utils.enhancedDeepEquals(this.accountNumber, other.accountNumber) && Utils.enhancedDeepEquals(this.routingNumber, other.routingNumber) && - Utils.enhancedDeepEquals(this.isTokenized, other.isTokenized) && Utils.enhancedDeepEquals(this.accountType, other.accountType); } @@ -356,7 +359,7 @@ public int hashCode() { return Utils.enhancedHash( method, accountHolder, buyerId, buyerExternalIdentifier, externalIdentifier, scheme, - accountNumber, routingNumber, isTokenized, + isTokenized, accountNumber, routingNumber, accountType); } @@ -369,9 +372,9 @@ public String toString() { "buyerExternalIdentifier", buyerExternalIdentifier, "externalIdentifier", externalIdentifier, "scheme", scheme, + "isTokenized", isTokenized, "accountNumber", accountNumber, "routingNumber", routingNumber, - "isTokenized", isTokenized, "accountType", accountType); } @@ -386,12 +389,12 @@ public final static class Builder { private JsonNullable externalIdentifier = JsonNullable.undefined(); + private Optional isTokenized; + private String accountNumber; private String routingNumber; - private Optional isTokenized; - private Optional accountType; private Builder() { @@ -464,40 +467,41 @@ public Builder externalIdentifier(JsonNullable externalIdentifier) { /** - * The account number for this ACH bank account + * Whether the account number is tokenized */ - public Builder accountNumber(String accountNumber) { - Utils.checkNotNull(accountNumber, "accountNumber"); - this.accountNumber = accountNumber; + public Builder isTokenized(boolean isTokenized) { + Utils.checkNotNull(isTokenized, "isTokenized"); + this.isTokenized = Optional.ofNullable(isTokenized); return this; } - /** - * The routing number for this ACH bank account + * Whether the account number is tokenized */ - public Builder routingNumber(String routingNumber) { - Utils.checkNotNull(routingNumber, "routingNumber"); - this.routingNumber = routingNumber; + public Builder isTokenized(Optional isTokenized) { + Utils.checkNotNull(isTokenized, "isTokenized"); + this.isTokenized = isTokenized; return this; } /** - * Whether the account number is tokenized + * The account number for this ACH bank account, made up of at most 17 digits. Spaces and dashes are + * ignored. Any format is accepted when `is_tokenized` is `true`. */ - public Builder isTokenized(boolean isTokenized) { - Utils.checkNotNull(isTokenized, "isTokenized"); - this.isTokenized = Optional.ofNullable(isTokenized); + public Builder accountNumber(String accountNumber) { + Utils.checkNotNull(accountNumber, "accountNumber"); + this.accountNumber = accountNumber; return this; } + /** - * Whether the account number is tokenized + * The routing number for this ACH bank account, made up of 9 digits. Spaces and dashes are ignored. */ - public Builder isTokenized(Optional isTokenized) { - Utils.checkNotNull(isTokenized, "isTokenized"); - this.isTokenized = isTokenized; + public Builder routingNumber(String routingNumber) { + Utils.checkNotNull(routingNumber, "routingNumber"); + this.routingNumber = routingNumber; return this; } @@ -530,8 +534,8 @@ public ACHBankPaymentMethodCreate build() { return new ACHBankPaymentMethodCreate( accountHolder, buyerId, buyerExternalIdentifier, - externalIdentifier, accountNumber, routingNumber, - isTokenized, accountType); + externalIdentifier, isTokenized, accountNumber, + routingNumber, accountType); } diff --git a/src/main/java/com/gr4vy/sdk/models/components/BACSBankPaymentMethodCreate.java b/src/main/java/com/gr4vy/sdk/models/components/BACSBankPaymentMethodCreate.java index 7509731e..26c20b32 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/BACSBankPaymentMethodCreate.java +++ b/src/main/java/com/gr4vy/sdk/models/components/BACSBankPaymentMethodCreate.java @@ -64,13 +64,14 @@ public class BACSBankPaymentMethodCreate { private Optional scheme; /** - * The account number for this BACS bank account + * The account number for this BACS bank account, made up of 8 digits. A 6 or 7 digit number is padded + * with leading zeros. Spaces and dashes are ignored. */ @JsonProperty("account_number") private String accountNumber; /** - * The sort code for this BACS bank account + * The sort code for this BACS bank account, made up of 6 digits. Spaces and dashes are ignored. */ @JsonProperty("routing_number") private String routingNumber; @@ -153,7 +154,8 @@ public Optional scheme() { } /** - * The account number for this BACS bank account + * The account number for this BACS bank account, made up of 8 digits. A 6 or 7 digit number is padded + * with leading zeros. Spaces and dashes are ignored. */ @JsonIgnore public String accountNumber() { @@ -161,7 +163,7 @@ public String accountNumber() { } /** - * The sort code for this BACS bank account + * The sort code for this BACS bank account, made up of 6 digits. Spaces and dashes are ignored. */ @JsonIgnore public String routingNumber() { @@ -234,7 +236,8 @@ public BACSBankPaymentMethodCreate withExternalIdentifier(JsonNullable e } /** - * The account number for this BACS bank account + * The account number for this BACS bank account, made up of 8 digits. A 6 or 7 digit number is padded + * with leading zeros. Spaces and dashes are ignored. */ public BACSBankPaymentMethodCreate withAccountNumber(String accountNumber) { Utils.checkNotNull(accountNumber, "accountNumber"); @@ -243,7 +246,7 @@ public BACSBankPaymentMethodCreate withAccountNumber(String accountNumber) { } /** - * The sort code for this BACS bank account + * The sort code for this BACS bank account, made up of 6 digits. Spaces and dashes are ignored. */ public BACSBankPaymentMethodCreate withRoutingNumber(String routingNumber) { Utils.checkNotNull(routingNumber, "routingNumber"); @@ -377,7 +380,8 @@ public Builder externalIdentifier(JsonNullable externalIdentifier) { /** - * The account number for this BACS bank account + * The account number for this BACS bank account, made up of 8 digits. A 6 or 7 digit number is padded + * with leading zeros. Spaces and dashes are ignored. */ public Builder accountNumber(String accountNumber) { Utils.checkNotNull(accountNumber, "accountNumber"); @@ -387,7 +391,7 @@ public Builder accountNumber(String accountNumber) { /** - * The sort code for this BACS bank account + * The sort code for this BACS bank account, made up of 6 digits. Spaces and dashes are ignored. */ public Builder routingNumber(String routingNumber) { Utils.checkNotNull(routingNumber, "routingNumber"); diff --git a/src/main/java/com/gr4vy/sdk/models/components/CardScheme.java b/src/main/java/com/gr4vy/sdk/models/components/CardScheme.java index 143738ce..45319f37 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/CardScheme.java +++ b/src/main/java/com/gr4vy/sdk/models/components/CardScheme.java @@ -27,6 +27,7 @@ public class CardScheme { public static final CardScheme CIRRUS = new CardScheme("cirrus"); public static final CardScheme CULIANCE = new CardScheme("culiance"); public static final CardScheme DANKORT = new CardScheme("dankort"); + public static final CardScheme DINACARD = new CardScheme("dinacard"); public static final CardScheme DINERS_CLUB = new CardScheme("diners-club"); public static final CardScheme DISCOVER = new CardScheme("discover"); public static final CardScheme EFTPOS_AUSTRALIA = new CardScheme("eftpos-australia"); @@ -125,6 +126,7 @@ private static final Map createValuesMap() { map.put("cirrus", CIRRUS); map.put("culiance", CULIANCE); map.put("dankort", DANKORT); + map.put("dinacard", DINACARD); map.put("diners-club", DINERS_CLUB); map.put("discover", DISCOVER); map.put("eftpos-australia", EFTPOS_AUSTRALIA); @@ -155,6 +157,7 @@ private static final Map createEnumsMap() { map.put("cirrus", CardSchemeEnum.CIRRUS); map.put("culiance", CardSchemeEnum.CULIANCE); map.put("dankort", CardSchemeEnum.DANKORT); + map.put("dinacard", CardSchemeEnum.DINACARD); map.put("diners-club", CardSchemeEnum.DINERS_CLUB); map.put("discover", CardSchemeEnum.DISCOVER); map.put("eftpos-australia", CardSchemeEnum.EFTPOS_AUSTRALIA); @@ -186,6 +189,7 @@ public enum CardSchemeEnum { CIRRUS("cirrus"), CULIANCE("culiance"), DANKORT("dankort"), + DINACARD("dinacard"), DINERS_CLUB("diners-club"), DISCOVER("discover"), EFTPOS_AUSTRALIA("eftpos-australia"), diff --git a/src/main/java/com/gr4vy/sdk/models/components/Method.java b/src/main/java/com/gr4vy/sdk/models/components/Method.java index d571f98f..d90921a1 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/Method.java +++ b/src/main/java/com/gr4vy/sdk/models/components/Method.java @@ -25,14 +25,18 @@ public class Method { public static final Method AFTERPAY = new Method("afterpay"); public static final Method ALIPAY = new Method("alipay"); public static final Method ALIPAYHK = new Method("alipayhk"); + public static final Method ALIPAYPLUS = new Method("alipayplus"); + public static final Method ALMA = new Method("alma"); public static final Method APPLEPAY = new Method("applepay"); public static final Method ARCUSPAYNETWORK = new Method("arcuspaynetwork"); public static final Method BACS = new Method("bacs"); public static final Method BANCONTACT = new Method("bancontact"); public static final Method BANK = new Method("bank"); + public static final Method BCMCMOBILE = new Method("bcmcmobile"); public static final Method BCP = new Method("bcp"); public static final Method BECS = new Method("becs"); public static final Method BITPAY = new Method("bitpay"); + public static final Method BIZUM = new Method("bizum"); public static final Method BLIK = new Method("blik"); public static final Method ACH = new Method("ach"); public static final Method BOLETO = new Method("boleto"); @@ -52,9 +56,11 @@ public class Method { public static final Method DCB = new Method("dcb"); public static final Method DLOCAL = new Method("dlocal"); public static final Method DUITNOW = new Method("duitnow"); + public static final Method EBANKINGFI = new Method("ebankingfi"); public static final Method EBANX = new Method("ebanx"); public static final Method ECKOH = new Method("eckoh"); public static final Method EFECTY = new Method("efecty"); + public static final Method EFTPAD = new Method("eftpad"); public static final Method EPS = new Method("eps"); public static final Method EVERYDAYPAY = new Method("everydaypay"); public static final Method GCASH = new Method("gcash"); @@ -81,7 +87,9 @@ public class Method { public static final Method LINEPAY = new Method("linepay"); public static final Method LINKAJA = new Method("linkaja"); public static final Method MAYBANKQRPAY = new Method("maybankqrpay"); + public static final Method MBWAY = new Method("mbway"); public static final Method MERCADOPAGO = new Method("mercadopago"); + public static final Method MOBILEPAY = new Method("mobilepay"); public static final Method MULTIBANCO = new Method("multibanco"); public static final Method MULTIPAGO = new Method("multipago"); public static final Method NEQUI = new Method("nequi"); @@ -100,6 +108,7 @@ public class Method { public static final Method P24 = new Method("p24"); public static final Method PAGOEFECTIVO = new Method("pagoefectivo"); public static final Method PAYBYBANK = new Method("paybybank"); + public static final Method PAYBYBANKEU = new Method("paybybankeu"); public static final Method PAYID = new Method("payid"); public static final Method PAYMAYA = new Method("paymaya"); public static final Method PAYSQUAD = new Method("paysquad"); @@ -118,6 +127,7 @@ public class Method { public static final Method RAZORPAY = new Method("razorpay"); public static final Method RAPIPAGO = new Method("rapipago"); public static final Method REDPAGOS = new Method("redpagos"); + public static final Method RIVERTY = new Method("riverty"); public static final Method SCALAPAY = new Method("scalapay"); public static final Method SEPA = new Method("sepa"); public static final Method SERVIPAG = new Method("servipag"); @@ -140,6 +150,7 @@ public class Method { public static final Method TRUEMONEY = new Method("truemoney"); public static final Method TRUSTLY = new Method("trustly"); public static final Method TRUSTLYEUROPE = new Method("trustlyeurope"); + public static final Method TWINT = new Method("twint"); public static final Method UPI = new Method("upi"); public static final Method VENMO = new Method("venmo"); public static final Method VIPPS = new Method("vipps"); @@ -227,14 +238,18 @@ private static final Map createValuesMap() { map.put("afterpay", AFTERPAY); map.put("alipay", ALIPAY); map.put("alipayhk", ALIPAYHK); + map.put("alipayplus", ALIPAYPLUS); + map.put("alma", ALMA); map.put("applepay", APPLEPAY); map.put("arcuspaynetwork", ARCUSPAYNETWORK); map.put("bacs", BACS); map.put("bancontact", BANCONTACT); map.put("bank", BANK); + map.put("bcmcmobile", BCMCMOBILE); map.put("bcp", BCP); map.put("becs", BECS); map.put("bitpay", BITPAY); + map.put("bizum", BIZUM); map.put("blik", BLIK); map.put("ach", ACH); map.put("boleto", BOLETO); @@ -254,9 +269,11 @@ private static final Map createValuesMap() { map.put("dcb", DCB); map.put("dlocal", DLOCAL); map.put("duitnow", DUITNOW); + map.put("ebankingfi", EBANKINGFI); map.put("ebanx", EBANX); map.put("eckoh", ECKOH); map.put("efecty", EFECTY); + map.put("eftpad", EFTPAD); map.put("eps", EPS); map.put("everydaypay", EVERYDAYPAY); map.put("gcash", GCASH); @@ -283,7 +300,9 @@ private static final Map createValuesMap() { map.put("linepay", LINEPAY); map.put("linkaja", LINKAJA); map.put("maybankqrpay", MAYBANKQRPAY); + map.put("mbway", MBWAY); map.put("mercadopago", MERCADOPAGO); + map.put("mobilepay", MOBILEPAY); map.put("multibanco", MULTIBANCO); map.put("multipago", MULTIPAGO); map.put("nequi", NEQUI); @@ -302,6 +321,7 @@ private static final Map createValuesMap() { map.put("p24", P24); map.put("pagoefectivo", PAGOEFECTIVO); map.put("paybybank", PAYBYBANK); + map.put("paybybankeu", PAYBYBANKEU); map.put("payid", PAYID); map.put("paymaya", PAYMAYA); map.put("paysquad", PAYSQUAD); @@ -320,6 +340,7 @@ private static final Map createValuesMap() { map.put("razorpay", RAZORPAY); map.put("rapipago", RAPIPAGO); map.put("redpagos", REDPAGOS); + map.put("riverty", RIVERTY); map.put("scalapay", SCALAPAY); map.put("sepa", SEPA); map.put("servipag", SERVIPAG); @@ -342,6 +363,7 @@ private static final Map createValuesMap() { map.put("truemoney", TRUEMONEY); map.put("trustly", TRUSTLY); map.put("trustlyeurope", TRUSTLYEUROPE); + map.put("twint", TWINT); map.put("upi", UPI); map.put("venmo", VENMO); map.put("vipps", VIPPS); @@ -361,14 +383,18 @@ private static final Map createEnumsMap() { map.put("afterpay", MethodEnum.AFTERPAY); map.put("alipay", MethodEnum.ALIPAY); map.put("alipayhk", MethodEnum.ALIPAYHK); + map.put("alipayplus", MethodEnum.ALIPAYPLUS); + map.put("alma", MethodEnum.ALMA); map.put("applepay", MethodEnum.APPLEPAY); map.put("arcuspaynetwork", MethodEnum.ARCUSPAYNETWORK); map.put("bacs", MethodEnum.BACS); map.put("bancontact", MethodEnum.BANCONTACT); map.put("bank", MethodEnum.BANK); + map.put("bcmcmobile", MethodEnum.BCMCMOBILE); map.put("bcp", MethodEnum.BCP); map.put("becs", MethodEnum.BECS); map.put("bitpay", MethodEnum.BITPAY); + map.put("bizum", MethodEnum.BIZUM); map.put("blik", MethodEnum.BLIK); map.put("ach", MethodEnum.ACH); map.put("boleto", MethodEnum.BOLETO); @@ -388,9 +414,11 @@ private static final Map createEnumsMap() { map.put("dcb", MethodEnum.DCB); map.put("dlocal", MethodEnum.DLOCAL); map.put("duitnow", MethodEnum.DUITNOW); + map.put("ebankingfi", MethodEnum.EBANKINGFI); map.put("ebanx", MethodEnum.EBANX); map.put("eckoh", MethodEnum.ECKOH); map.put("efecty", MethodEnum.EFECTY); + map.put("eftpad", MethodEnum.EFTPAD); map.put("eps", MethodEnum.EPS); map.put("everydaypay", MethodEnum.EVERYDAYPAY); map.put("gcash", MethodEnum.GCASH); @@ -417,7 +445,9 @@ private static final Map createEnumsMap() { map.put("linepay", MethodEnum.LINEPAY); map.put("linkaja", MethodEnum.LINKAJA); map.put("maybankqrpay", MethodEnum.MAYBANKQRPAY); + map.put("mbway", MethodEnum.MBWAY); map.put("mercadopago", MethodEnum.MERCADOPAGO); + map.put("mobilepay", MethodEnum.MOBILEPAY); map.put("multibanco", MethodEnum.MULTIBANCO); map.put("multipago", MethodEnum.MULTIPAGO); map.put("nequi", MethodEnum.NEQUI); @@ -436,6 +466,7 @@ private static final Map createEnumsMap() { map.put("p24", MethodEnum.P24); map.put("pagoefectivo", MethodEnum.PAGOEFECTIVO); map.put("paybybank", MethodEnum.PAYBYBANK); + map.put("paybybankeu", MethodEnum.PAYBYBANKEU); map.put("payid", MethodEnum.PAYID); map.put("paymaya", MethodEnum.PAYMAYA); map.put("paysquad", MethodEnum.PAYSQUAD); @@ -454,6 +485,7 @@ private static final Map createEnumsMap() { map.put("razorpay", MethodEnum.RAZORPAY); map.put("rapipago", MethodEnum.RAPIPAGO); map.put("redpagos", MethodEnum.REDPAGOS); + map.put("riverty", MethodEnum.RIVERTY); map.put("scalapay", MethodEnum.SCALAPAY); map.put("sepa", MethodEnum.SEPA); map.put("servipag", MethodEnum.SERVIPAG); @@ -476,6 +508,7 @@ private static final Map createEnumsMap() { map.put("truemoney", MethodEnum.TRUEMONEY); map.put("trustly", MethodEnum.TRUSTLY); map.put("trustlyeurope", MethodEnum.TRUSTLYEUROPE); + map.put("twint", MethodEnum.TWINT); map.put("upi", MethodEnum.UPI); map.put("venmo", MethodEnum.VENMO); map.put("vipps", MethodEnum.VIPPS); @@ -496,14 +529,18 @@ public enum MethodEnum { AFTERPAY("afterpay"), ALIPAY("alipay"), ALIPAYHK("alipayhk"), + ALIPAYPLUS("alipayplus"), + ALMA("alma"), APPLEPAY("applepay"), ARCUSPAYNETWORK("arcuspaynetwork"), BACS("bacs"), BANCONTACT("bancontact"), BANK("bank"), + BCMCMOBILE("bcmcmobile"), BCP("bcp"), BECS("becs"), BITPAY("bitpay"), + BIZUM("bizum"), BLIK("blik"), ACH("ach"), BOLETO("boleto"), @@ -523,9 +560,11 @@ public enum MethodEnum { DCB("dcb"), DLOCAL("dlocal"), DUITNOW("duitnow"), + EBANKINGFI("ebankingfi"), EBANX("ebanx"), ECKOH("eckoh"), EFECTY("efecty"), + EFTPAD("eftpad"), EPS("eps"), EVERYDAYPAY("everydaypay"), GCASH("gcash"), @@ -552,7 +591,9 @@ public enum MethodEnum { LINEPAY("linepay"), LINKAJA("linkaja"), MAYBANKQRPAY("maybankqrpay"), + MBWAY("mbway"), MERCADOPAGO("mercadopago"), + MOBILEPAY("mobilepay"), MULTIBANCO("multibanco"), MULTIPAGO("multipago"), NEQUI("nequi"), @@ -571,6 +612,7 @@ public enum MethodEnum { P24("p24"), PAGOEFECTIVO("pagoefectivo"), PAYBYBANK("paybybank"), + PAYBYBANKEU("paybybankeu"), PAYID("payid"), PAYMAYA("paymaya"), PAYSQUAD("paysquad"), @@ -589,6 +631,7 @@ public enum MethodEnum { RAZORPAY("razorpay"), RAPIPAGO("rapipago"), REDPAGOS("redpagos"), + RIVERTY("riverty"), SCALAPAY("scalapay"), SEPA("sepa"), SERVIPAG("servipag"), @@ -611,6 +654,7 @@ public enum MethodEnum { TRUEMONEY("truemoney"), TRUSTLY("trustly"), TRUSTLYEUROPE("trustlyeurope"), + TWINT("twint"), UPI("upi"), VENMO("venmo"), VIPPS("vipps"), diff --git a/src/main/java/com/gr4vy/sdk/models/components/PaymentLink.java b/src/main/java/com/gr4vy/sdk/models/components/PaymentLink.java index 34ef5cc2..361659b7 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/PaymentLink.java +++ b/src/main/java/com/gr4vy/sdk/models/components/PaymentLink.java @@ -157,6 +157,13 @@ public class PaymentLink { @JsonProperty("cart_items") private Optional> cartItems; + /** + * The airline addendum data which describes the airline booking associated with this payment link. + */ + @JsonInclude(Include.ALWAYS) + @JsonProperty("airline") + private Optional airline; + /** * Arbitrary metadata for the payment link. */ @@ -249,6 +256,7 @@ public PaymentLink( @JsonProperty("intent") TransactionIntent intent, @JsonProperty("return_url") JsonNullable returnUrl, @JsonProperty("cart_items") Optional> cartItems, + @JsonProperty("airline") Optional airline, @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("payment_source") TransactionPaymentSource paymentSource, @JsonProperty("created_at") OffsetDateTime createdAt, @@ -279,6 +287,7 @@ public PaymentLink( Utils.checkNotNull(intent, "intent"); Utils.checkNotNull(returnUrl, "returnUrl"); Utils.checkNotNull(cartItems, "cartItems"); + Utils.checkNotNull(airline, "airline"); Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(paymentSource, "paymentSource"); Utils.checkNotNull(createdAt, "createdAt"); @@ -310,6 +319,7 @@ public PaymentLink( this.intent = intent; this.returnUrl = returnUrl; this.cartItems = cartItems; + this.airline = airline; this.metadata = metadata; this.paymentSource = paymentSource; this.createdAt = createdAt; @@ -340,10 +350,11 @@ public PaymentLink( JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), amount, country, currency, intent, JsonNullable.undefined(), - Optional.empty(), JsonNullable.undefined(), paymentSource, - createdAt, updatedAt, status, - JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined()); + Optional.empty(), Optional.empty(), JsonNullable.undefined(), + paymentSource, createdAt, updatedAt, + status, JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined()); } /** @@ -505,6 +516,15 @@ public Optional> cartItems() { return (Optional>) cartItems; } + /** + * The airline addendum data which describes the airline booking associated with this payment link. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional airline() { + return (Optional) airline; + } + /** * Arbitrary metadata for the payment link. */ @@ -885,6 +905,25 @@ public PaymentLink withCartItems(Optional> cartItems) { return this; } + /** + * The airline addendum data which describes the airline booking associated with this payment link. + */ + public PaymentLink withAirline(Airline airline) { + Utils.checkNotNull(airline, "airline"); + this.airline = Optional.ofNullable(airline); + return this; + } + + + /** + * The airline addendum data which describes the airline booking associated with this payment link. + */ + public PaymentLink withAirline(Optional airline) { + Utils.checkNotNull(airline, "airline"); + this.airline = airline; + return this; + } + /** * Arbitrary metadata for the payment link. */ @@ -1075,6 +1114,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.intent, other.intent) && Utils.enhancedDeepEquals(this.returnUrl, other.returnUrl) && Utils.enhancedDeepEquals(this.cartItems, other.cartItems) && + Utils.enhancedDeepEquals(this.airline, other.airline) && Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.paymentSource, other.paymentSource) && Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && @@ -1097,11 +1137,11 @@ public int hashCode() { merchantBannerUrl, merchantColor, merchantMessage, merchantTermsAndConditionsUrl, merchantFaviconUrl, amount, country, currency, intent, - returnUrl, cartItems, metadata, - paymentSource, createdAt, updatedAt, - status, buyer, shippingDetails, - connectionOptions, store, buyerId, - installmentCount); + returnUrl, cartItems, airline, + metadata, paymentSource, createdAt, + updatedAt, status, buyer, + shippingDetails, connectionOptions, store, + buyerId, installmentCount); } @Override @@ -1127,6 +1167,7 @@ public String toString() { "intent", intent, "returnUrl", returnUrl, "cartItems", cartItems, + "airline", airline, "metadata", metadata, "paymentSource", paymentSource, "createdAt", createdAt, @@ -1181,6 +1222,8 @@ public final static class Builder { private Optional> cartItems = Optional.empty(); + private Optional airline = Optional.empty(); + private JsonNullable> metadata = JsonNullable.undefined(); private TransactionPaymentSource paymentSource; @@ -1512,6 +1555,25 @@ public Builder cartItems(Optional> cartItems) { } + /** + * The airline addendum data which describes the airline booking associated with this payment link. + */ + public Builder airline(Airline airline) { + Utils.checkNotNull(airline, "airline"); + this.airline = Optional.ofNullable(airline); + return this; + } + + /** + * The airline addendum data which describes the airline booking associated with this payment link. + */ + public Builder airline(Optional airline) { + Utils.checkNotNull(airline, "airline"); + this.airline = airline; + return this; + } + + /** * Arbitrary metadata for the payment link. */ @@ -1693,10 +1755,11 @@ public PaymentLink build() { merchantColor, merchantMessage, merchantTermsAndConditionsUrl, merchantFaviconUrl, amount, country, currency, intent, returnUrl, - cartItems, metadata, paymentSource, - createdAt, updatedAt, status, - buyer, shippingDetails, connectionOptions, - store, buyerId, installmentCount); + cartItems, airline, metadata, + paymentSource, createdAt, updatedAt, + status, buyer, shippingDetails, + connectionOptions, store, buyerId, + installmentCount); } diff --git a/src/main/java/com/gr4vy/sdk/models/components/PaymentLinkCreate.java b/src/main/java/com/gr4vy/sdk/models/components/PaymentLinkCreate.java index 1a6915c4..5859b34f 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/PaymentLinkCreate.java +++ b/src/main/java/com/gr4vy/sdk/models/components/PaymentLinkCreate.java @@ -153,6 +153,13 @@ public class PaymentLinkCreate { @JsonProperty("cart_items") private JsonNullable> cartItems; + /** + * The airline addendum data which describes the airline booking associated with this payment link. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("airline") + private JsonNullable airline; + /** * Arbitrary metadata for the payment link. */ @@ -211,6 +218,7 @@ public PaymentLinkCreate( @JsonProperty("intent") Optional intent, @JsonProperty("return_url") JsonNullable returnUrl, @JsonProperty("cart_items") JsonNullable> cartItems, + @JsonProperty("airline") JsonNullable airline, @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("payment_source") Optional paymentSource, @JsonProperty("store") Optional store, @@ -235,6 +243,7 @@ public PaymentLinkCreate( Utils.checkNotNull(intent, "intent"); Utils.checkNotNull(returnUrl, "returnUrl"); Utils.checkNotNull(cartItems, "cartItems"); + Utils.checkNotNull(airline, "airline"); Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(paymentSource, "paymentSource"); Utils.checkNotNull(store, "store"); @@ -259,6 +268,7 @@ public PaymentLinkCreate( this.intent = intent; this.returnUrl = returnUrl; this.cartItems = cartItems; + this.airline = airline; this.metadata = metadata; this.paymentSource = paymentSource; this.store = store; @@ -276,8 +286,9 @@ public PaymentLinkCreate( JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), amount, country, currency, Optional.empty(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined()); + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined()); } /** @@ -434,6 +445,15 @@ public JsonNullable> cartItems() { return (JsonNullable>) cartItems; } + /** + * The airline addendum data which describes the airline booking associated with this payment link. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable airline() { + return (JsonNullable) airline; + } + /** * Arbitrary metadata for the payment link. */ @@ -793,6 +813,24 @@ public PaymentLinkCreate withCartItems(JsonNullable> ca return this; } + /** + * The airline addendum data which describes the airline booking associated with this payment link. + */ + public PaymentLinkCreate withAirline(Airline airline) { + Utils.checkNotNull(airline, "airline"); + this.airline = JsonNullable.of(airline); + return this; + } + + /** + * The airline addendum data which describes the airline booking associated with this payment link. + */ + public PaymentLinkCreate withAirline(JsonNullable airline) { + Utils.checkNotNull(airline, "airline"); + this.airline = airline; + return this; + } + /** * Arbitrary metadata for the payment link. */ @@ -918,6 +956,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.intent, other.intent) && Utils.enhancedDeepEquals(this.returnUrl, other.returnUrl) && Utils.enhancedDeepEquals(this.cartItems, other.cartItems) && + Utils.enhancedDeepEquals(this.airline, other.airline) && Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.paymentSource, other.paymentSource) && Utils.enhancedDeepEquals(this.store, other.store) && @@ -934,8 +973,9 @@ public int hashCode() { merchantColor, merchantMessage, merchantTermsAndConditionsUrl, merchantFaviconUrl, amount, country, currency, intent, returnUrl, - cartItems, metadata, paymentSource, - store, buyerId, installmentCount); + cartItems, airline, metadata, + paymentSource, store, buyerId, + installmentCount); } @Override @@ -960,6 +1000,7 @@ public String toString() { "intent", intent, "returnUrl", returnUrl, "cartItems", cartItems, + "airline", airline, "metadata", metadata, "paymentSource", paymentSource, "store", store, @@ -1008,6 +1049,8 @@ public final static class Builder { private JsonNullable> cartItems = JsonNullable.undefined(); + private JsonNullable airline = JsonNullable.undefined(); + private JsonNullable> metadata = JsonNullable.undefined(); private Optional paymentSource = Optional.empty(); @@ -1351,6 +1394,25 @@ public Builder cartItems(JsonNullable> cartItems) { } + /** + * The airline addendum data which describes the airline booking associated with this payment link. + */ + public Builder airline(Airline airline) { + Utils.checkNotNull(airline, "airline"); + this.airline = JsonNullable.of(airline); + return this; + } + + /** + * The airline addendum data which describes the airline booking associated with this payment link. + */ + public Builder airline(JsonNullable airline) { + Utils.checkNotNull(airline, "airline"); + this.airline = airline; + return this; + } + + /** * Arbitrary metadata for the payment link. */ @@ -1461,8 +1523,9 @@ public PaymentLinkCreate build() { merchantColor, merchantMessage, merchantTermsAndConditionsUrl, merchantFaviconUrl, amount, country, currency, intent, returnUrl, - cartItems, metadata, paymentSource, - store, buyerId, installmentCount); + cartItems, airline, metadata, + paymentSource, store, buyerId, + installmentCount); } diff --git a/src/main/java/com/gr4vy/sdk/models/components/RedirectPaymentMethodCreateMethod.java b/src/main/java/com/gr4vy/sdk/models/components/RedirectPaymentMethodCreateMethod.java index be3761d8..e738f1ef 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/RedirectPaymentMethodCreateMethod.java +++ b/src/main/java/com/gr4vy/sdk/models/components/RedirectPaymentMethodCreateMethod.java @@ -30,12 +30,16 @@ public class RedirectPaymentMethodCreateMethod { public static final RedirectPaymentMethodCreateMethod AFTERPAY = new RedirectPaymentMethodCreateMethod("afterpay"); public static final RedirectPaymentMethodCreateMethod ALIPAY = new RedirectPaymentMethodCreateMethod("alipay"); public static final RedirectPaymentMethodCreateMethod ALIPAYHK = new RedirectPaymentMethodCreateMethod("alipayhk"); + public static final RedirectPaymentMethodCreateMethod ALIPAYPLUS = new RedirectPaymentMethodCreateMethod("alipayplus"); + public static final RedirectPaymentMethodCreateMethod ALMA = new RedirectPaymentMethodCreateMethod("alma"); public static final RedirectPaymentMethodCreateMethod ARCUSPAYNETWORK = new RedirectPaymentMethodCreateMethod("arcuspaynetwork"); public static final RedirectPaymentMethodCreateMethod BACS = new RedirectPaymentMethodCreateMethod("bacs"); public static final RedirectPaymentMethodCreateMethod BANCONTACT = new RedirectPaymentMethodCreateMethod("bancontact"); + public static final RedirectPaymentMethodCreateMethod BCMCMOBILE = new RedirectPaymentMethodCreateMethod("bcmcmobile"); public static final RedirectPaymentMethodCreateMethod BCP = new RedirectPaymentMethodCreateMethod("bcp"); public static final RedirectPaymentMethodCreateMethod BECS = new RedirectPaymentMethodCreateMethod("becs"); public static final RedirectPaymentMethodCreateMethod BITPAY = new RedirectPaymentMethodCreateMethod("bitpay"); + public static final RedirectPaymentMethodCreateMethod BIZUM = new RedirectPaymentMethodCreateMethod("bizum"); public static final RedirectPaymentMethodCreateMethod BLIK = new RedirectPaymentMethodCreateMethod("blik"); public static final RedirectPaymentMethodCreateMethod BOLETO = new RedirectPaymentMethodCreateMethod("boleto"); public static final RedirectPaymentMethodCreateMethod BOOST = new RedirectPaymentMethodCreateMethod("boost"); @@ -52,9 +56,11 @@ public class RedirectPaymentMethodCreateMethod { public static final RedirectPaymentMethodCreateMethod DCB = new RedirectPaymentMethodCreateMethod("dcb"); public static final RedirectPaymentMethodCreateMethod DLOCAL = new RedirectPaymentMethodCreateMethod("dlocal"); public static final RedirectPaymentMethodCreateMethod DUITNOW = new RedirectPaymentMethodCreateMethod("duitnow"); + public static final RedirectPaymentMethodCreateMethod EBANKINGFI = new RedirectPaymentMethodCreateMethod("ebankingfi"); public static final RedirectPaymentMethodCreateMethod EBANX = new RedirectPaymentMethodCreateMethod("ebanx"); public static final RedirectPaymentMethodCreateMethod ECKOH = new RedirectPaymentMethodCreateMethod("eckoh"); public static final RedirectPaymentMethodCreateMethod EFECTY = new RedirectPaymentMethodCreateMethod("efecty"); + public static final RedirectPaymentMethodCreateMethod EFTPAD = new RedirectPaymentMethodCreateMethod("eftpad"); public static final RedirectPaymentMethodCreateMethod EPS = new RedirectPaymentMethodCreateMethod("eps"); public static final RedirectPaymentMethodCreateMethod EVERYDAYPAY = new RedirectPaymentMethodCreateMethod("everydaypay"); public static final RedirectPaymentMethodCreateMethod GCASH = new RedirectPaymentMethodCreateMethod("gcash"); @@ -78,7 +84,9 @@ public class RedirectPaymentMethodCreateMethod { public static final RedirectPaymentMethodCreateMethod LINEPAY = new RedirectPaymentMethodCreateMethod("linepay"); public static final RedirectPaymentMethodCreateMethod LINKAJA = new RedirectPaymentMethodCreateMethod("linkaja"); public static final RedirectPaymentMethodCreateMethod MAYBANKQRPAY = new RedirectPaymentMethodCreateMethod("maybankqrpay"); + public static final RedirectPaymentMethodCreateMethod MBWAY = new RedirectPaymentMethodCreateMethod("mbway"); public static final RedirectPaymentMethodCreateMethod MERCADOPAGO = new RedirectPaymentMethodCreateMethod("mercadopago"); + public static final RedirectPaymentMethodCreateMethod MOBILEPAY = new RedirectPaymentMethodCreateMethod("mobilepay"); public static final RedirectPaymentMethodCreateMethod MULTIBANCO = new RedirectPaymentMethodCreateMethod("multibanco"); public static final RedirectPaymentMethodCreateMethod MULTIPAGO = new RedirectPaymentMethodCreateMethod("multipago"); public static final RedirectPaymentMethodCreateMethod NETBANKING = new RedirectPaymentMethodCreateMethod("netbanking"); @@ -96,6 +104,7 @@ public class RedirectPaymentMethodCreateMethod { public static final RedirectPaymentMethodCreateMethod P24 = new RedirectPaymentMethodCreateMethod("p24"); public static final RedirectPaymentMethodCreateMethod PAGOEFECTIVO = new RedirectPaymentMethodCreateMethod("pagoefectivo"); public static final RedirectPaymentMethodCreateMethod PAYBYBANK = new RedirectPaymentMethodCreateMethod("paybybank"); + public static final RedirectPaymentMethodCreateMethod PAYBYBANKEU = new RedirectPaymentMethodCreateMethod("paybybankeu"); public static final RedirectPaymentMethodCreateMethod PAYID = new RedirectPaymentMethodCreateMethod("payid"); public static final RedirectPaymentMethodCreateMethod PAYMAYA = new RedirectPaymentMethodCreateMethod("paymaya"); public static final RedirectPaymentMethodCreateMethod PAYSQUAD = new RedirectPaymentMethodCreateMethod("paysquad"); @@ -112,6 +121,7 @@ public class RedirectPaymentMethodCreateMethod { public static final RedirectPaymentMethodCreateMethod RAPIPAGO = new RedirectPaymentMethodCreateMethod("rapipago"); public static final RedirectPaymentMethodCreateMethod RAZORPAY = new RedirectPaymentMethodCreateMethod("razorpay"); public static final RedirectPaymentMethodCreateMethod REDPAGOS = new RedirectPaymentMethodCreateMethod("redpagos"); + public static final RedirectPaymentMethodCreateMethod RIVERTY = new RedirectPaymentMethodCreateMethod("riverty"); public static final RedirectPaymentMethodCreateMethod SCALAPAY = new RedirectPaymentMethodCreateMethod("scalapay"); public static final RedirectPaymentMethodCreateMethod SEPA = new RedirectPaymentMethodCreateMethod("sepa"); public static final RedirectPaymentMethodCreateMethod SERVIPAG = new RedirectPaymentMethodCreateMethod("servipag"); @@ -134,6 +144,7 @@ public class RedirectPaymentMethodCreateMethod { public static final RedirectPaymentMethodCreateMethod TRUEMONEY = new RedirectPaymentMethodCreateMethod("truemoney"); public static final RedirectPaymentMethodCreateMethod TRUSTLY = new RedirectPaymentMethodCreateMethod("trustly"); public static final RedirectPaymentMethodCreateMethod TRUSTLYEUROPE = new RedirectPaymentMethodCreateMethod("trustlyeurope"); + public static final RedirectPaymentMethodCreateMethod TWINT = new RedirectPaymentMethodCreateMethod("twint"); public static final RedirectPaymentMethodCreateMethod UPI = new RedirectPaymentMethodCreateMethod("upi"); public static final RedirectPaymentMethodCreateMethod VENMO = new RedirectPaymentMethodCreateMethod("venmo"); public static final RedirectPaymentMethodCreateMethod VIPPS = new RedirectPaymentMethodCreateMethod("vipps"); @@ -221,12 +232,16 @@ private static final Map createValues map.put("afterpay", AFTERPAY); map.put("alipay", ALIPAY); map.put("alipayhk", ALIPAYHK); + map.put("alipayplus", ALIPAYPLUS); + map.put("alma", ALMA); map.put("arcuspaynetwork", ARCUSPAYNETWORK); map.put("bacs", BACS); map.put("bancontact", BANCONTACT); + map.put("bcmcmobile", BCMCMOBILE); map.put("bcp", BCP); map.put("becs", BECS); map.put("bitpay", BITPAY); + map.put("bizum", BIZUM); map.put("blik", BLIK); map.put("boleto", BOLETO); map.put("boost", BOOST); @@ -243,9 +258,11 @@ private static final Map createValues map.put("dcb", DCB); map.put("dlocal", DLOCAL); map.put("duitnow", DUITNOW); + map.put("ebankingfi", EBANKINGFI); map.put("ebanx", EBANX); map.put("eckoh", ECKOH); map.put("efecty", EFECTY); + map.put("eftpad", EFTPAD); map.put("eps", EPS); map.put("everydaypay", EVERYDAYPAY); map.put("gcash", GCASH); @@ -269,7 +286,9 @@ private static final Map createValues map.put("linepay", LINEPAY); map.put("linkaja", LINKAJA); map.put("maybankqrpay", MAYBANKQRPAY); + map.put("mbway", MBWAY); map.put("mercadopago", MERCADOPAGO); + map.put("mobilepay", MOBILEPAY); map.put("multibanco", MULTIBANCO); map.put("multipago", MULTIPAGO); map.put("netbanking", NETBANKING); @@ -287,6 +306,7 @@ private static final Map createValues map.put("p24", P24); map.put("pagoefectivo", PAGOEFECTIVO); map.put("paybybank", PAYBYBANK); + map.put("paybybankeu", PAYBYBANKEU); map.put("payid", PAYID); map.put("paymaya", PAYMAYA); map.put("paysquad", PAYSQUAD); @@ -303,6 +323,7 @@ private static final Map createValues map.put("rapipago", RAPIPAGO); map.put("razorpay", RAZORPAY); map.put("redpagos", REDPAGOS); + map.put("riverty", RIVERTY); map.put("scalapay", SCALAPAY); map.put("sepa", SEPA); map.put("servipag", SERVIPAG); @@ -325,6 +346,7 @@ private static final Map createValues map.put("truemoney", TRUEMONEY); map.put("trustly", TRUSTLY); map.put("trustlyeurope", TRUSTLYEUROPE); + map.put("twint", TWINT); map.put("upi", UPI); map.put("venmo", VENMO); map.put("vipps", VIPPS); @@ -344,12 +366,16 @@ private static final Map createEn map.put("afterpay", RedirectPaymentMethodCreateMethodEnum.AFTERPAY); map.put("alipay", RedirectPaymentMethodCreateMethodEnum.ALIPAY); map.put("alipayhk", RedirectPaymentMethodCreateMethodEnum.ALIPAYHK); + map.put("alipayplus", RedirectPaymentMethodCreateMethodEnum.ALIPAYPLUS); + map.put("alma", RedirectPaymentMethodCreateMethodEnum.ALMA); map.put("arcuspaynetwork", RedirectPaymentMethodCreateMethodEnum.ARCUSPAYNETWORK); map.put("bacs", RedirectPaymentMethodCreateMethodEnum.BACS); map.put("bancontact", RedirectPaymentMethodCreateMethodEnum.BANCONTACT); + map.put("bcmcmobile", RedirectPaymentMethodCreateMethodEnum.BCMCMOBILE); map.put("bcp", RedirectPaymentMethodCreateMethodEnum.BCP); map.put("becs", RedirectPaymentMethodCreateMethodEnum.BECS); map.put("bitpay", RedirectPaymentMethodCreateMethodEnum.BITPAY); + map.put("bizum", RedirectPaymentMethodCreateMethodEnum.BIZUM); map.put("blik", RedirectPaymentMethodCreateMethodEnum.BLIK); map.put("boleto", RedirectPaymentMethodCreateMethodEnum.BOLETO); map.put("boost", RedirectPaymentMethodCreateMethodEnum.BOOST); @@ -366,9 +392,11 @@ private static final Map createEn map.put("dcb", RedirectPaymentMethodCreateMethodEnum.DCB); map.put("dlocal", RedirectPaymentMethodCreateMethodEnum.DLOCAL); map.put("duitnow", RedirectPaymentMethodCreateMethodEnum.DUITNOW); + map.put("ebankingfi", RedirectPaymentMethodCreateMethodEnum.EBANKINGFI); map.put("ebanx", RedirectPaymentMethodCreateMethodEnum.EBANX); map.put("eckoh", RedirectPaymentMethodCreateMethodEnum.ECKOH); map.put("efecty", RedirectPaymentMethodCreateMethodEnum.EFECTY); + map.put("eftpad", RedirectPaymentMethodCreateMethodEnum.EFTPAD); map.put("eps", RedirectPaymentMethodCreateMethodEnum.EPS); map.put("everydaypay", RedirectPaymentMethodCreateMethodEnum.EVERYDAYPAY); map.put("gcash", RedirectPaymentMethodCreateMethodEnum.GCASH); @@ -392,7 +420,9 @@ private static final Map createEn map.put("linepay", RedirectPaymentMethodCreateMethodEnum.LINEPAY); map.put("linkaja", RedirectPaymentMethodCreateMethodEnum.LINKAJA); map.put("maybankqrpay", RedirectPaymentMethodCreateMethodEnum.MAYBANKQRPAY); + map.put("mbway", RedirectPaymentMethodCreateMethodEnum.MBWAY); map.put("mercadopago", RedirectPaymentMethodCreateMethodEnum.MERCADOPAGO); + map.put("mobilepay", RedirectPaymentMethodCreateMethodEnum.MOBILEPAY); map.put("multibanco", RedirectPaymentMethodCreateMethodEnum.MULTIBANCO); map.put("multipago", RedirectPaymentMethodCreateMethodEnum.MULTIPAGO); map.put("netbanking", RedirectPaymentMethodCreateMethodEnum.NETBANKING); @@ -410,6 +440,7 @@ private static final Map createEn map.put("p24", RedirectPaymentMethodCreateMethodEnum.P24); map.put("pagoefectivo", RedirectPaymentMethodCreateMethodEnum.PAGOEFECTIVO); map.put("paybybank", RedirectPaymentMethodCreateMethodEnum.PAYBYBANK); + map.put("paybybankeu", RedirectPaymentMethodCreateMethodEnum.PAYBYBANKEU); map.put("payid", RedirectPaymentMethodCreateMethodEnum.PAYID); map.put("paymaya", RedirectPaymentMethodCreateMethodEnum.PAYMAYA); map.put("paysquad", RedirectPaymentMethodCreateMethodEnum.PAYSQUAD); @@ -426,6 +457,7 @@ private static final Map createEn map.put("rapipago", RedirectPaymentMethodCreateMethodEnum.RAPIPAGO); map.put("razorpay", RedirectPaymentMethodCreateMethodEnum.RAZORPAY); map.put("redpagos", RedirectPaymentMethodCreateMethodEnum.REDPAGOS); + map.put("riverty", RedirectPaymentMethodCreateMethodEnum.RIVERTY); map.put("scalapay", RedirectPaymentMethodCreateMethodEnum.SCALAPAY); map.put("sepa", RedirectPaymentMethodCreateMethodEnum.SEPA); map.put("servipag", RedirectPaymentMethodCreateMethodEnum.SERVIPAG); @@ -448,6 +480,7 @@ private static final Map createEn map.put("truemoney", RedirectPaymentMethodCreateMethodEnum.TRUEMONEY); map.put("trustly", RedirectPaymentMethodCreateMethodEnum.TRUSTLY); map.put("trustlyeurope", RedirectPaymentMethodCreateMethodEnum.TRUSTLYEUROPE); + map.put("twint", RedirectPaymentMethodCreateMethodEnum.TWINT); map.put("upi", RedirectPaymentMethodCreateMethodEnum.UPI); map.put("venmo", RedirectPaymentMethodCreateMethodEnum.VENMO); map.put("vipps", RedirectPaymentMethodCreateMethodEnum.VIPPS); @@ -468,12 +501,16 @@ public enum RedirectPaymentMethodCreateMethodEnum { AFTERPAY("afterpay"), ALIPAY("alipay"), ALIPAYHK("alipayhk"), + ALIPAYPLUS("alipayplus"), + ALMA("alma"), ARCUSPAYNETWORK("arcuspaynetwork"), BACS("bacs"), BANCONTACT("bancontact"), + BCMCMOBILE("bcmcmobile"), BCP("bcp"), BECS("becs"), BITPAY("bitpay"), + BIZUM("bizum"), BLIK("blik"), BOLETO("boleto"), BOOST("boost"), @@ -490,9 +527,11 @@ public enum RedirectPaymentMethodCreateMethodEnum { DCB("dcb"), DLOCAL("dlocal"), DUITNOW("duitnow"), + EBANKINGFI("ebankingfi"), EBANX("ebanx"), ECKOH("eckoh"), EFECTY("efecty"), + EFTPAD("eftpad"), EPS("eps"), EVERYDAYPAY("everydaypay"), GCASH("gcash"), @@ -516,7 +555,9 @@ public enum RedirectPaymentMethodCreateMethodEnum { LINEPAY("linepay"), LINKAJA("linkaja"), MAYBANKQRPAY("maybankqrpay"), + MBWAY("mbway"), MERCADOPAGO("mercadopago"), + MOBILEPAY("mobilepay"), MULTIBANCO("multibanco"), MULTIPAGO("multipago"), NETBANKING("netbanking"), @@ -534,6 +575,7 @@ public enum RedirectPaymentMethodCreateMethodEnum { P24("p24"), PAGOEFECTIVO("pagoefectivo"), PAYBYBANK("paybybank"), + PAYBYBANKEU("paybybankeu"), PAYID("payid"), PAYMAYA("paymaya"), PAYSQUAD("paysquad"), @@ -550,6 +592,7 @@ public enum RedirectPaymentMethodCreateMethodEnum { RAPIPAGO("rapipago"), RAZORPAY("razorpay"), REDPAGOS("redpagos"), + RIVERTY("riverty"), SCALAPAY("scalapay"), SEPA("sepa"), SERVIPAG("servipag"), @@ -572,6 +615,7 @@ public enum RedirectPaymentMethodCreateMethodEnum { TRUEMONEY("truemoney"), TRUSTLY("trustly"), TRUSTLYEUROPE("trustlyeurope"), + TWINT("twint"), UPI("upi"), VENMO("venmo"), VIPPS("vipps"), diff --git a/src/main/java/com/gr4vy/sdk/models/components/SEPABankPaymentMethodCreate.java b/src/main/java/com/gr4vy/sdk/models/components/SEPABankPaymentMethodCreate.java index 2fd6ade5..38455159 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/SEPABankPaymentMethodCreate.java +++ b/src/main/java/com/gr4vy/sdk/models/components/SEPABankPaymentMethodCreate.java @@ -64,13 +64,14 @@ public class SEPABankPaymentMethodCreate { private Optional scheme; /** - * The IBAN for this SEPA bank account + * The IBAN for this SEPA bank account. Spaces are ignored and it is not case sensitive. */ @JsonProperty("account_number") private String accountNumber; /** - * The BIC for this SEPA bank account + * The BIC for this SEPA bank account, of 8 or 11 characters. Spaces are ignored and it is not case + * sensitive. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("routing_number") @@ -153,7 +154,7 @@ public Optional scheme() { } /** - * The IBAN for this SEPA bank account + * The IBAN for this SEPA bank account. Spaces are ignored and it is not case sensitive. */ @JsonIgnore public String accountNumber() { @@ -161,7 +162,8 @@ public String accountNumber() { } /** - * The BIC for this SEPA bank account + * The BIC for this SEPA bank account, of 8 or 11 characters. Spaces are ignored and it is not case + * sensitive. */ @JsonIgnore public JsonNullable routingNumber() { @@ -234,7 +236,7 @@ public SEPABankPaymentMethodCreate withExternalIdentifier(JsonNullable e } /** - * The IBAN for this SEPA bank account + * The IBAN for this SEPA bank account. Spaces are ignored and it is not case sensitive. */ public SEPABankPaymentMethodCreate withAccountNumber(String accountNumber) { Utils.checkNotNull(accountNumber, "accountNumber"); @@ -243,7 +245,8 @@ public SEPABankPaymentMethodCreate withAccountNumber(String accountNumber) { } /** - * The BIC for this SEPA bank account + * The BIC for this SEPA bank account, of 8 or 11 characters. Spaces are ignored and it is not case + * sensitive. */ public SEPABankPaymentMethodCreate withRoutingNumber(String routingNumber) { Utils.checkNotNull(routingNumber, "routingNumber"); @@ -252,7 +255,8 @@ public SEPABankPaymentMethodCreate withRoutingNumber(String routingNumber) { } /** - * The BIC for this SEPA bank account + * The BIC for this SEPA bank account, of 8 or 11 characters. Spaces are ignored and it is not case + * sensitive. */ public SEPABankPaymentMethodCreate withRoutingNumber(JsonNullable routingNumber) { Utils.checkNotNull(routingNumber, "routingNumber"); @@ -386,7 +390,7 @@ public Builder externalIdentifier(JsonNullable externalIdentifier) { /** - * The IBAN for this SEPA bank account + * The IBAN for this SEPA bank account. Spaces are ignored and it is not case sensitive. */ public Builder accountNumber(String accountNumber) { Utils.checkNotNull(accountNumber, "accountNumber"); @@ -396,7 +400,8 @@ public Builder accountNumber(String accountNumber) { /** - * The BIC for this SEPA bank account + * The BIC for this SEPA bank account, of 8 or 11 characters. Spaces are ignored and it is not case + * sensitive. */ public Builder routingNumber(String routingNumber) { Utils.checkNotNull(routingNumber, "routingNumber"); @@ -405,7 +410,8 @@ public Builder routingNumber(String routingNumber) { } /** - * The BIC for this SEPA bank account + * The BIC for this SEPA bank account, of 8 or 11 characters. Spaces are ignored and it is not case + * sensitive. */ public Builder routingNumber(JsonNullable routingNumber) { Utils.checkNotNull(routingNumber, "routingNumber"); diff --git a/src/main/java/com/gr4vy/sdk/models/components/UserStatus.java b/src/main/java/com/gr4vy/sdk/models/components/UserStatus.java index ac13a934..074cffe6 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/UserStatus.java +++ b/src/main/java/com/gr4vy/sdk/models/components/UserStatus.java @@ -23,6 +23,7 @@ public class UserStatus { public static final UserStatus ACTIVE = new UserStatus("active"); public static final UserStatus PENDING = new UserStatus("pending"); public static final UserStatus DELETED = new UserStatus("deleted"); + public static final UserStatus RESET = new UserStatus("reset"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -99,6 +100,7 @@ private static final Map createValuesMap() { map.put("active", ACTIVE); map.put("pending", PENDING); map.put("deleted", DELETED); + map.put("reset", RESET); return map; } @@ -107,6 +109,7 @@ private static final Map createEnumsMap() { map.put("active", UserStatusEnum.ACTIVE); map.put("pending", UserStatusEnum.PENDING); map.put("deleted", UserStatusEnum.DELETED); + map.put("reset", UserStatusEnum.RESET); return map; } @@ -115,7 +118,8 @@ public enum UserStatusEnum { ACTIVE("active"), PENDING("pending"), - DELETED("deleted"),; + DELETED("deleted"), + RESET("reset"),; private final String value;