Skip to content

Commit

Permalink
feat: Add new checkout session endpoints + missing params (#23)
Browse files Browse the repository at this point in the history
Re [TA-4928](https://gr4vy.atlassian.net/browse/TA-4928) updates API for
use with new checkout session enhancements.

Also adds a few missing properties in latest OpenAPI updates.

[TA-4928]:
https://gr4vy.atlassian.net/browse/TA-4928?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
  • Loading branch information
cbetta authored Aug 9, 2023
1 parent ee0e3f8 commit f37fc83
Show file tree
Hide file tree
Showing 222 changed files with 14,607 additions and 278 deletions.
88 changes: 80 additions & 8 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,17 @@ src/main/java/com/gr4vy/api/auth/HttpBearerAuth.java
src/main/java/com/gr4vy/api/model/APIKeyPairCreate.java
src/main/java/com/gr4vy/api/model/APIKeyPairUpdate.java
src/main/java/com/gr4vy/api/model/Address.java
src/main/java/com/gr4vy/api/model/AntiFraudDecisionTransactionEvent.java
src/main/java/com/gr4vy/api/model/AntiFraudDecisionTransactionEventContext.java
src/main/java/com/gr4vy/api/model/AntiFraudDecisionErrorEvent.java
src/main/java/com/gr4vy/api/model/AntiFraudDecisionErrorEventContext.java
src/main/java/com/gr4vy/api/model/AntiFraudDecisionEvent.java
src/main/java/com/gr4vy/api/model/AntiFraudDecisionEventContext.java
src/main/java/com/gr4vy/api/model/AntiFraudDecisionSkippedEvent.java
src/main/java/com/gr4vy/api/model/AntiFraudDecisionSkippedEventContext.java
src/main/java/com/gr4vy/api/model/AntiFraudServiceCreate.java
src/main/java/com/gr4vy/api/model/AntiFraudServiceUpdate.java
src/main/java/com/gr4vy/api/model/AntiFraudServiceUpdateFields.java
src/main/java/com/gr4vy/api/model/AntiFraudWebhookEvent.java
src/main/java/com/gr4vy/api/model/AntiFraudWebhookEventContext.java
src/main/java/com/gr4vy/api/model/ApiLog.java
src/main/java/com/gr4vy/api/model/ApiLogResponseBody.java
src/main/java/com/gr4vy/api/model/ApiLogResponseBodyDetails.java
Expand All @@ -60,15 +66,18 @@ src/main/java/com/gr4vy/api/model/CardSchemeDefinition.java
src/main/java/com/gr4vy/api/model/CardSchemeDefinitions.java
src/main/java/com/gr4vy/api/model/CartItem.java
src/main/java/com/gr4vy/api/model/CheckoutSession.java
src/main/java/com/gr4vy/api/model/CheckoutSessionCreateRequest.java
src/main/java/com/gr4vy/api/model/CheckoutSessionFieldsPaymentMethod.java
src/main/java/com/gr4vy/api/model/CheckoutSessionRequest.java
src/main/java/com/gr4vy/api/model/CheckoutSessionSecureFieldsUpdate.java
src/main/java/com/gr4vy/api/model/CheckoutSessionUpdateRequest.java
src/main/java/com/gr4vy/api/model/Connection.java
src/main/java/com/gr4vy/api/model/ConnectionDefinition.java
src/main/java/com/gr4vy/api/model/ConnectionDefinitions.java
src/main/java/com/gr4vy/api/model/ConnectionOptions.java
src/main/java/com/gr4vy/api/model/ConnectionOptionsAdyenCard.java
src/main/java/com/gr4vy/api/model/ConnectionOptionsCybersourceAntiFraud.java
src/main/java/com/gr4vy/api/model/ConnectionOptionsForterAntiFraud.java
src/main/java/com/gr4vy/api/model/Connections.java
src/main/java/com/gr4vy/api/model/Cryptogram.java
src/main/java/com/gr4vy/api/model/DigitalWallet.java
Expand Down Expand Up @@ -98,6 +107,23 @@ src/main/java/com/gr4vy/api/model/MerchantProfileScheme.java
src/main/java/com/gr4vy/api/model/NetworkToken.java
src/main/java/com/gr4vy/api/model/NetworkTokenRequest.java
src/main/java/com/gr4vy/api/model/NetworkTokens.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionAuthorizationFailedEvent.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionAuthorizationFailedEventContext.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionAuthorizationSucceededEvent.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionCaptureDeclinedEvent.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionCaptureDeclinedEventContext.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionCaptureFailedEvent.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionCaptureSucceededEvent.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionCaptureSucceededEventContext.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionDeclinedEvent.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionDeclinedEventContext.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionVoidDeclinedEvent.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionVoidDeclinedEventContext.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionVoidFailedEvent.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionVoidFailedEventContext.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionVoidSucceededEvent.java
src/main/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionVoidSucceededEventContext.java
src/main/java/com/gr4vy/api/model/PaymentMethod.java
src/main/java/com/gr4vy/api/model/PaymentMethodDefinition.java
src/main/java/com/gr4vy/api/model/PaymentMethodDefinitions.java
Expand Down Expand Up @@ -160,21 +186,30 @@ src/main/java/com/gr4vy/api/model/ShippingDetailUpdateRequest.java
src/main/java/com/gr4vy/api/model/ShippingDetails.java
src/main/java/com/gr4vy/api/model/StatementDescriptor.java
src/main/java/com/gr4vy/api/model/TaxId.java
src/main/java/com/gr4vy/api/model/ThreeDSecureAuthenticationRequestEvent.java
src/main/java/com/gr4vy/api/model/ThreeDSecureAuthenticationRequestEventContext.java
src/main/java/com/gr4vy/api/model/ThreeDSecureData.java
src/main/java/com/gr4vy/api/model/ThreeDSecureDataV1.java
src/main/java/com/gr4vy/api/model/ThreeDSecureDataV1AllOf.java
src/main/java/com/gr4vy/api/model/ThreeDSecureDataV1V2.java
src/main/java/com/gr4vy/api/model/ThreeDSecureDataV2.java
src/main/java/com/gr4vy/api/model/ThreeDSecureDataV2AllOf.java
src/main/java/com/gr4vy/api/model/ThreeDSecureError.java
src/main/java/com/gr4vy/api/model/ThreeDSecureSuccessTransactionEvent.java
src/main/java/com/gr4vy/api/model/ThreeDSecureSuccessTransactionEventContext.java
src/main/java/com/gr4vy/api/model/ThreeDSecurePreparationRequestEvent.java
src/main/java/com/gr4vy/api/model/ThreeDSecurePreparationRequestEventContext.java
src/main/java/com/gr4vy/api/model/ThreeDSecureRequestErrorEvent.java
src/main/java/com/gr4vy/api/model/ThreeDSecureRequestErrorEventContext.java
src/main/java/com/gr4vy/api/model/ThreeDSecureResultRequestEvent.java
src/main/java/com/gr4vy/api/model/ThreeDSecureResultRequestEventContext.java
src/main/java/com/gr4vy/api/model/ThreeDSecureSuccessEvent.java
src/main/java/com/gr4vy/api/model/ThreeDSecureSuccessEventContext.java
src/main/java/com/gr4vy/api/model/ThreeDSecureSummary.java
src/main/java/com/gr4vy/api/model/TokenizedRequest.java
src/main/java/com/gr4vy/api/model/Transaction.java
src/main/java/com/gr4vy/api/model/TransactionCaptureRequest.java
src/main/java/com/gr4vy/api/model/TransactionCardRequest.java
src/main/java/com/gr4vy/api/model/TransactionCheckoutSessionRequest.java
src/main/java/com/gr4vy/api/model/TransactionHistoryEvent.java
src/main/java/com/gr4vy/api/model/TransactionPaymentMethodRequest.java
src/main/java/com/gr4vy/api/model/TransactionRedirectRequest.java
src/main/java/com/gr4vy/api/model/TransactionRefundRequest.java
Expand Down Expand Up @@ -203,14 +238,21 @@ src/main/java/com/gr4vy/api/openapi/ReportsApi.java
src/main/java/com/gr4vy/api/openapi/RolesApi.java
src/main/java/com/gr4vy/api/openapi/TokensApi.java
src/main/java/com/gr4vy/api/openapi/TransactionsApi.java
src/main/java/com/gr4vy/api/openapi/VaultForwardApi.java
src/test/java/com/gr4vy/api/model/APIKeyPairCreateTest.java
src/test/java/com/gr4vy/api/model/APIKeyPairUpdateTest.java
src/test/java/com/gr4vy/api/model/AddressTest.java
src/test/java/com/gr4vy/api/model/AntiFraudDecisionTransactionEventContextTest.java
src/test/java/com/gr4vy/api/model/AntiFraudDecisionTransactionEventTest.java
src/test/java/com/gr4vy/api/model/AntiFraudDecisionErrorEventContextTest.java
src/test/java/com/gr4vy/api/model/AntiFraudDecisionErrorEventTest.java
src/test/java/com/gr4vy/api/model/AntiFraudDecisionEventContextTest.java
src/test/java/com/gr4vy/api/model/AntiFraudDecisionEventTest.java
src/test/java/com/gr4vy/api/model/AntiFraudDecisionSkippedEventContextTest.java
src/test/java/com/gr4vy/api/model/AntiFraudDecisionSkippedEventTest.java
src/test/java/com/gr4vy/api/model/AntiFraudServiceCreateTest.java
src/test/java/com/gr4vy/api/model/AntiFraudServiceUpdateFieldsTest.java
src/test/java/com/gr4vy/api/model/AntiFraudServiceUpdateTest.java
src/test/java/com/gr4vy/api/model/AntiFraudWebhookEventContextTest.java
src/test/java/com/gr4vy/api/model/AntiFraudWebhookEventTest.java
src/test/java/com/gr4vy/api/model/ApiLogResponseBodyDetailsTest.java
src/test/java/com/gr4vy/api/model/ApiLogResponseBodyTest.java
src/test/java/com/gr4vy/api/model/ApiLogTest.java
Expand All @@ -235,14 +277,17 @@ src/test/java/com/gr4vy/api/model/CardRequestTest.java
src/test/java/com/gr4vy/api/model/CardSchemeDefinitionTest.java
src/test/java/com/gr4vy/api/model/CardSchemeDefinitionsTest.java
src/test/java/com/gr4vy/api/model/CartItemTest.java
src/test/java/com/gr4vy/api/model/CheckoutSessionCreateRequestTest.java
src/test/java/com/gr4vy/api/model/CheckoutSessionFieldsPaymentMethodTest.java
src/test/java/com/gr4vy/api/model/CheckoutSessionRequestTest.java
src/test/java/com/gr4vy/api/model/CheckoutSessionSecureFieldsUpdateTest.java
src/test/java/com/gr4vy/api/model/CheckoutSessionTest.java
src/test/java/com/gr4vy/api/model/CheckoutSessionUpdateRequestTest.java
src/test/java/com/gr4vy/api/model/ConnectionDefinitionTest.java
src/test/java/com/gr4vy/api/model/ConnectionDefinitionsTest.java
src/test/java/com/gr4vy/api/model/ConnectionOptionsAdyenCardTest.java
src/test/java/com/gr4vy/api/model/ConnectionOptionsCybersourceAntiFraudTest.java
src/test/java/com/gr4vy/api/model/ConnectionOptionsForterAntiFraudTest.java
src/test/java/com/gr4vy/api/model/ConnectionOptionsTest.java
src/test/java/com/gr4vy/api/model/ConnectionTest.java
src/test/java/com/gr4vy/api/model/ConnectionsTest.java
Expand Down Expand Up @@ -274,6 +319,23 @@ src/test/java/com/gr4vy/api/model/MerchantProfileTest.java
src/test/java/com/gr4vy/api/model/NetworkTokenRequestTest.java
src/test/java/com/gr4vy/api/model/NetworkTokenTest.java
src/test/java/com/gr4vy/api/model/NetworkTokensTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionAuthorizationFailedEventContextTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionAuthorizationFailedEventTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionAuthorizationSucceededEventContextTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionAuthorizationSucceededEventTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionCaptureDeclinedEventContextTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionCaptureDeclinedEventTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionCaptureFailedEventTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionCaptureSucceededEventContextTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionCaptureSucceededEventTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionDeclinedEventContextTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionDeclinedEventTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionVoidDeclinedEventContextTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionVoidDeclinedEventTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionVoidFailedEventContextTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionVoidFailedEventTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionVoidSucceededEventContextTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorResponseTransactionVoidSucceededEventTest.java
src/test/java/com/gr4vy/api/model/PaymentMethodDefinitionTest.java
src/test/java/com/gr4vy/api/model/PaymentMethodDefinitionsTest.java
src/test/java/com/gr4vy/api/model/PaymentMethodDetailsCardTest.java
Expand Down Expand Up @@ -336,20 +398,29 @@ src/test/java/com/gr4vy/api/model/ShippingDetailUpdateRequestTest.java
src/test/java/com/gr4vy/api/model/ShippingDetailsTest.java
src/test/java/com/gr4vy/api/model/StatementDescriptorTest.java
src/test/java/com/gr4vy/api/model/TaxIdTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureAuthenticationRequestEventContextTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureAuthenticationRequestEventTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureDataTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureDataV1AllOfTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureDataV1Test.java
src/test/java/com/gr4vy/api/model/ThreeDSecureDataV1V2Test.java
src/test/java/com/gr4vy/api/model/ThreeDSecureDataV2AllOfTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureDataV2Test.java
src/test/java/com/gr4vy/api/model/ThreeDSecureErrorTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureSuccessTransactionEventContextTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureSuccessTransactionEventTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecurePreparationRequestEventContextTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecurePreparationRequestEventTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureRequestErrorEventContextTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureRequestErrorEventTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureResultRequestEventContextTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureResultRequestEventTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureSuccessEventContextTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureSuccessEventTest.java
src/test/java/com/gr4vy/api/model/ThreeDSecureSummaryTest.java
src/test/java/com/gr4vy/api/model/TokenizedRequestTest.java
src/test/java/com/gr4vy/api/model/TransactionCaptureRequestTest.java
src/test/java/com/gr4vy/api/model/TransactionCardRequestTest.java
src/test/java/com/gr4vy/api/model/TransactionCheckoutSessionRequestTest.java
src/test/java/com/gr4vy/api/model/TransactionHistoryEventTest.java
src/test/java/com/gr4vy/api/model/TransactionPaymentMethodRequestTest.java
src/test/java/com/gr4vy/api/model/TransactionRedirectRequestTest.java
src/test/java/com/gr4vy/api/model/TransactionRefundRequestTest.java
Expand Down Expand Up @@ -379,3 +450,4 @@ src/test/java/com/gr4vy/api/openapi/ReportsApiTest.java
src/test/java/com/gr4vy/api/openapi/RolesApiTest.java
src/test/java/com/gr4vy/api/openapi/TokensApiTest.java
src/test/java/com/gr4vy/api/openapi/TransactionsApiTest.java
src/test/java/com/gr4vy/api/openapi/VaultForwardApiTest.java
6 changes: 6 additions & 0 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<filteredResources>
<filter>
Expand Down
28 changes: 28 additions & 0 deletions bin/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 3

steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'

- name: Install dependencies & run tests
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
run: mvn install
32 changes: 32 additions & 0 deletions bin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
*.class

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear

# exclude jar for gradle wrapper
!gradle/wrapper/*.jar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

# build files
**/target
target
.gradle
build
.settings/
*.pem
.classpath
.travis.yml
build.*
gradle*
settings.gradle
git_push.sh

#ide files
*.idea
9 changes: 9 additions & 0 deletions bin/.openapi-generator-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"apiPackage": "com.gr4vy.api.openapi",
"modelPackage": "com.gr4vy.api.model",
"artifactId": "openapi",
"apiDocs": false,
"modelDocs": false,
"apiTests": false,
"modelTests": false
}
30 changes: 30 additions & 0 deletions bin/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md

README.md
src/main/java/com/gr4vy/sdk/*
src/test/*
docs/
pom.xml
.gitignore
Loading

0 comments on commit f37fc83

Please sign in to comment.