Skip to content

Commit

Permalink
feat: 0.17.1 (#33)
Browse files Browse the repository at this point in the history
waiting for gr4vy/gr4vy-openapi#424

- update models
- add checkout_sessions endpoints
- add transaction_history_events endpoints
  • Loading branch information
steve-gr4vy authored Nov 2, 2023
1 parent 93fc7f5 commit 2d463ee
Show file tree
Hide file tree
Showing 46 changed files with 7,748 additions and 56 deletions.
62 changes: 58 additions & 4 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ 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/AntiFraudTransactionStatusUpdateErrorEvent.java
src/main/java/com/gr4vy/api/model/AntiFraudTransactionStatusUpdateErrorEventContext.java
src/main/java/com/gr4vy/api/model/AntiFraudTransactionStatusUpdateEvent.java
src/main/java/com/gr4vy/api/model/AntiFraudTransactionStatusUpdateEventContext.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
Expand All @@ -64,11 +68,14 @@ src/main/java/com/gr4vy/api/model/BuyerUpdate.java
src/main/java/com/gr4vy/api/model/Buyers.java
src/main/java/com/gr4vy/api/model/CardDetails.java
src/main/java/com/gr4vy/api/model/CardRequest.java
src/main/java/com/gr4vy/api/model/CardScheme.java
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/CheckoutSessionPaymentMethod.java
src/main/java/com/gr4vy/api/model/CheckoutSessionPaymentMethodDetails.java
src/main/java/com/gr4vy/api/model/CheckoutSessionRequest.java
src/main/java/com/gr4vy/api/model/CheckoutSessionUpdateRequest.java
src/main/java/com/gr4vy/api/model/Connection.java
Expand All @@ -83,6 +90,13 @@ src/main/java/com/gr4vy/api/model/ConnectionOptionsPaypalPaypalAdditionalData.ja
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
src/main/java/com/gr4vy/api/model/DigitalWalletApplePayTokenDecrypted.java
src/main/java/com/gr4vy/api/model/DigitalWalletApplePayTokenDecryptedContext.java
src/main/java/com/gr4vy/api/model/DigitalWalletClickToPayFields.java
src/main/java/com/gr4vy/api/model/DigitalWalletClickToPayTokenDecrypted.java
src/main/java/com/gr4vy/api/model/DigitalWalletClickToPayTokenDecryptedContext.java
src/main/java/com/gr4vy/api/model/DigitalWalletGooglePayTokenDecrypted.java
src/main/java/com/gr4vy/api/model/DigitalWalletGooglePayTokenDecryptedContext.java
src/main/java/com/gr4vy/api/model/DigitalWalletRequest.java
src/main/java/com/gr4vy/api/model/DigitalWalletUpdate.java
src/main/java/com/gr4vy/api/model/DigitalWallets.java
Expand All @@ -96,6 +110,16 @@ src/main/java/com/gr4vy/api/model/Error404PendingCreation.java
src/main/java/com/gr4vy/api/model/Error409DuplicateRecord.java
src/main/java/com/gr4vy/api/model/ErrorDetail.java
src/main/java/com/gr4vy/api/model/ErrorGeneric.java
src/main/java/com/gr4vy/api/model/GiftCardService.java
src/main/java/com/gr4vy/api/model/GiftCardServiceCreateRequest.java
src/main/java/com/gr4vy/api/model/GiftCardServiceCreateRequestFields.java
src/main/java/com/gr4vy/api/model/GiftCardServiceDefinition.java
src/main/java/com/gr4vy/api/model/GiftCardServiceDefinitionFields.java
src/main/java/com/gr4vy/api/model/GiftCardServiceFields.java
src/main/java/com/gr4vy/api/model/GiftCardServiceUpdateRequest.java
src/main/java/com/gr4vy/api/model/GiftCardServiceUpdateRequestFields.java
src/main/java/com/gr4vy/api/model/GiftCardServiceVerifyRequest.java
src/main/java/com/gr4vy/api/model/GiftCardServiceVerifyRequestFields.java
src/main/java/com/gr4vy/api/model/GooglePayRequest.java
src/main/java/com/gr4vy/api/model/GooglePayRequestAssuranceDetails.java
src/main/java/com/gr4vy/api/model/GooglePaySessionRequest.java
Expand All @@ -109,6 +133,8 @@ 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/PaymentConnectorExternalTransactionRequest.java
src/main/java/com/gr4vy/api/model/PaymentConnectorExternalTransactionRequestContext.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
Expand Down Expand Up @@ -143,10 +169,8 @@ src/main/java/com/gr4vy/api/model/PaymentOptionsRequest.java
src/main/java/com/gr4vy/api/model/PaymentService.java
src/main/java/com/gr4vy/api/model/PaymentServiceDefinition.java
src/main/java/com/gr4vy/api/model/PaymentServiceDefinitionConfiguration.java
src/main/java/com/gr4vy/api/model/PaymentServiceDefinitionFields.java
src/main/java/com/gr4vy/api/model/PaymentServiceDefinitionSupportedFeatures.java
src/main/java/com/gr4vy/api/model/PaymentServiceDefinitions.java
src/main/java/com/gr4vy/api/model/PaymentServiceFields.java
src/main/java/com/gr4vy/api/model/PaymentServiceRequest.java
src/main/java/com/gr4vy/api/model/PaymentServiceRequestFields.java
src/main/java/com/gr4vy/api/model/PaymentServiceSnapshot.java
Expand Down Expand Up @@ -213,6 +237,7 @@ 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/TransactionHistoryEvents.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 All @@ -231,6 +256,8 @@ src/main/java/com/gr4vy/api/openapi/BuyersApi.java
src/main/java/com/gr4vy/api/openapi/CardSchemeDefinitionsApi.java
src/main/java/com/gr4vy/api/openapi/CheckoutSessionsApi.java
src/main/java/com/gr4vy/api/openapi/DigitalWalletsApi.java
src/main/java/com/gr4vy/api/openapi/GiftCardServiceDefinitionsApi.java
src/main/java/com/gr4vy/api/openapi/GiftCardServicesApi.java
src/main/java/com/gr4vy/api/openapi/MerchantAccountsApi.java
src/main/java/com/gr4vy/api/openapi/PaymentMethodDefinitionsApi.java
src/main/java/com/gr4vy/api/openapi/PaymentMethodsApi.java
Expand All @@ -254,6 +281,10 @@ 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/AntiFraudTransactionStatusUpdateErrorEventContextTest.java
src/test/java/com/gr4vy/api/model/AntiFraudTransactionStatusUpdateErrorEventTest.java
src/test/java/com/gr4vy/api/model/AntiFraudTransactionStatusUpdateEventContextTest.java
src/test/java/com/gr4vy/api/model/AntiFraudTransactionStatusUpdateEventTest.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
Expand Down Expand Up @@ -281,8 +312,11 @@ src/test/java/com/gr4vy/api/model/CardDetailsTest.java
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/CardSchemeTest.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/CheckoutSessionPaymentMethodDetailsTest.java
src/test/java/com/gr4vy/api/model/CheckoutSessionPaymentMethodTest.java
src/test/java/com/gr4vy/api/model/CheckoutSessionRequestTest.java
src/test/java/com/gr4vy/api/model/CheckoutSessionTest.java
src/test/java/com/gr4vy/api/model/CheckoutSessionUpdateRequestTest.java
Expand All @@ -297,6 +331,13 @@ 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
src/test/java/com/gr4vy/api/model/CryptogramTest.java
src/test/java/com/gr4vy/api/model/DigitalWalletApplePayTokenDecryptedContextTest.java
src/test/java/com/gr4vy/api/model/DigitalWalletApplePayTokenDecryptedTest.java
src/test/java/com/gr4vy/api/model/DigitalWalletClickToPayFieldsTest.java
src/test/java/com/gr4vy/api/model/DigitalWalletClickToPayTokenDecryptedContextTest.java
src/test/java/com/gr4vy/api/model/DigitalWalletClickToPayTokenDecryptedTest.java
src/test/java/com/gr4vy/api/model/DigitalWalletGooglePayTokenDecryptedContextTest.java
src/test/java/com/gr4vy/api/model/DigitalWalletGooglePayTokenDecryptedTest.java
src/test/java/com/gr4vy/api/model/DigitalWalletRequestTest.java
src/test/java/com/gr4vy/api/model/DigitalWalletTest.java
src/test/java/com/gr4vy/api/model/DigitalWalletUpdateTest.java
Expand All @@ -311,6 +352,16 @@ src/test/java/com/gr4vy/api/model/Error404PendingCreationTest.java
src/test/java/com/gr4vy/api/model/Error409DuplicateRecordTest.java
src/test/java/com/gr4vy/api/model/ErrorDetailTest.java
src/test/java/com/gr4vy/api/model/ErrorGenericTest.java
src/test/java/com/gr4vy/api/model/GiftCardServiceCreateRequestFieldsTest.java
src/test/java/com/gr4vy/api/model/GiftCardServiceCreateRequestTest.java
src/test/java/com/gr4vy/api/model/GiftCardServiceDefinitionFieldsTest.java
src/test/java/com/gr4vy/api/model/GiftCardServiceDefinitionTest.java
src/test/java/com/gr4vy/api/model/GiftCardServiceFieldsTest.java
src/test/java/com/gr4vy/api/model/GiftCardServiceTest.java
src/test/java/com/gr4vy/api/model/GiftCardServiceUpdateRequestFieldsTest.java
src/test/java/com/gr4vy/api/model/GiftCardServiceUpdateRequestTest.java
src/test/java/com/gr4vy/api/model/GiftCardServiceVerifyRequestFieldsTest.java
src/test/java/com/gr4vy/api/model/GiftCardServiceVerifyRequestTest.java
src/test/java/com/gr4vy/api/model/GooglePayRequestAssuranceDetailsTest.java
src/test/java/com/gr4vy/api/model/GooglePayRequestTest.java
src/test/java/com/gr4vy/api/model/GooglePaySessionRequestTest.java
Expand All @@ -324,6 +375,8 @@ 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/PaymentConnectorExternalTransactionRequestContextTest.java
src/test/java/com/gr4vy/api/model/PaymentConnectorExternalTransactionRequestTest.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
Expand Down Expand Up @@ -356,11 +409,9 @@ src/test/java/com/gr4vy/api/model/PaymentOptionTest.java
src/test/java/com/gr4vy/api/model/PaymentOptionsRequestTest.java
src/test/java/com/gr4vy/api/model/PaymentOptionsTest.java
src/test/java/com/gr4vy/api/model/PaymentServiceDefinitionConfigurationTest.java
src/test/java/com/gr4vy/api/model/PaymentServiceDefinitionFieldsTest.java
src/test/java/com/gr4vy/api/model/PaymentServiceDefinitionSupportedFeaturesTest.java
src/test/java/com/gr4vy/api/model/PaymentServiceDefinitionTest.java
src/test/java/com/gr4vy/api/model/PaymentServiceDefinitionsTest.java
src/test/java/com/gr4vy/api/model/PaymentServiceFieldsTest.java
src/test/java/com/gr4vy/api/model/PaymentServiceRequestFieldsTest.java
src/test/java/com/gr4vy/api/model/PaymentServiceRequestTest.java
src/test/java/com/gr4vy/api/model/PaymentServiceSnapshotTest.java
Expand Down Expand Up @@ -427,6 +478,7 @@ 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/TransactionHistoryEventsTest.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 All @@ -446,6 +498,8 @@ src/test/java/com/gr4vy/api/openapi/BuyersApiTest.java
src/test/java/com/gr4vy/api/openapi/CardSchemeDefinitionsApiTest.java
src/test/java/com/gr4vy/api/openapi/CheckoutSessionsApiTest.java
src/test/java/com/gr4vy/api/openapi/DigitalWalletsApiTest.java
src/test/java/com/gr4vy/api/openapi/GiftCardServiceDefinitionsApiTest.java
src/test/java/com/gr4vy/api/openapi/GiftCardServicesApiTest.java
src/test/java/com/gr4vy/api/openapi/MerchantAccountsApiTest.java
src/test/java/com/gr4vy/api/openapi/PaymentMethodDefinitionsApiTest.java
src/test/java/com/gr4vy/api/openapi/PaymentMethodsApiTest.java
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Add the `gr4vy-java` dependency to your pom.xml:
<dependency>
<groupId>com.github.gr4vy</groupId>
<artifactId>gr4vy-java</artifactId>
<version>0.17.0</version>
<version>0.17.1</version>
</dependency>
```

Expand Down
15 changes: 14 additions & 1 deletion openapi-generator-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
rm -rf api
docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli:v5.1.1 generate \
-i https://raw.githubusercontent.com/gr4vy/gr4vy-openapi/sdks/openapi.v1.json \
-i https://gr4vy.github.io/gr4vy-openapi/openapi.sdks.v1.json \
-g java \
--git-user-id gr4vy \
--git-repo-id gr4vy-java \
Expand Down Expand Up @@ -31,3 +31,16 @@ var1='private String previousSchemeTransactionId = "null";'
rep1='private String previousSchemeTransactionId = null;'
sed -i '' "s/$var1/$rep1/g" src/main/java/com/gr4vy/api/model/*.java

var1='AnyOfCardSchemestring'
rep1='CardScheme'
sed -i '' "s/$var1/$rep1/g" src/main/java/com/gr4vy/api/model/CheckoutSessionPaymentMethod.java

var1='DigitalWalletFields'
rep1='DigitalWalletClickToPayFields'
sed -i '' "s/$var1/$rep1/g" src/main/java/com/gr4vy/api/model/DigitalWallet.java

var1='AnyOfBINLookupRequestThreeDSecureAuthenticationRequestEventThreeDSecureSuccessEventThreeDSecureRequestErrorEventThreeDSecurePreparationRequestEventThreeDSecureResultRequestEventAntiFraudDecisionEventAntiFraudDecisionErrorEventAntiFraudDecisionSkippedEventAntiFraudTransactionStatusUpdateEventAntiFraudTransactionStatusUpdateErrorEventAntiFraudWebhookEventDigitalWalletApplePayTokenDecryptedDigitalWalletClickToPayTokenDecryptedDigitalWalletGooglePayTokenDecryptedPaymentConnectorResponseTransactionAuthorizationSucceededEventPaymentConnectorResponseTransactionDeclinedEventPaymentConnectorResponseTransactionAuthorizationFailedEventPaymentConnectorResponseTransactionCaptureDeclinedEventPaymentConnectorResponseTransactionCaptureFailedEventPaymentConnectorResponseTransactionCaptureSucceededEventPaymentConnectorResponseTransactionVoidDeclinedEventPaymentConnectorResponseTransactionVoidFailedEventPaymentConnectorResponseTransactionVoidSucceededEventPaymentConnectorExternalTransactionRequest'
rep1='TransactionHistoryEvent'
sed -i '' "s/$var1/$rep1/g" src/main/java/com/gr4vy/api/model/TransactionHistoryEvents.java


2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>gr4vy</artifactId>
<packaging>jar</packaging>
<name>gr4vy</name>
<version>0.17.0</version>
<version>0.17.1</version>
<url>https://gr4vy.com</url>
<description>Gr4vy Java SDK</description>

Expand Down
Loading

0 comments on commit 2d463ee

Please sign in to comment.