Skip to content

Commit

Permalink
chore: Regenerate based on OpenAPI spec (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbetta authored Feb 8, 2024
1 parent 7d760cc commit 0a21e26
Show file tree
Hide file tree
Showing 23 changed files with 2,603 additions and 35 deletions.
20 changes: 20 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ 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/ConnectionOptionsCybersourceCard.java
src/main/java/com/gr4vy/api/model/ConnectionOptionsForterAntiFraud.java
src/main/java/com/gr4vy/api/model/ConnectionOptionsForterAntiFraudAddress.java
src/main/java/com/gr4vy/api/model/ConnectionOptionsForterAntiFraudBasicItemData.java
Expand All @@ -101,6 +102,7 @@ src/main/java/com/gr4vy/api/model/ConnectionOptionsForterAntiFraudTotalDiscountC
src/main/java/com/gr4vy/api/model/ConnectionOptionsPaypalPaypal.java
src/main/java/com/gr4vy/api/model/ConnectionOptionsPaypalPaypalAdditionalData.java
src/main/java/com/gr4vy/api/model/ConnectionOptionsStripeCard.java
src/main/java/com/gr4vy/api/model/ConnectionOptionsStripeCardStripeConnect.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 All @@ -122,6 +124,7 @@ src/main/java/com/gr4vy/api/model/Error403Forbidden.java
src/main/java/com/gr4vy/api/model/Error404NotFound.java
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/Error429TooManyRequests.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/GiftCard.java
Expand Down Expand Up @@ -164,6 +167,13 @@ src/main/java/com/gr4vy/api/model/MerchantAccounts.java
src/main/java/com/gr4vy/api/model/MerchantProfile.java
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/NetworkTokenCryptogramProvisionFailed.java
src/main/java/com/gr4vy/api/model/NetworkTokenCryptogramProvisionFailedContext.java
src/main/java/com/gr4vy/api/model/NetworkTokenCryptogramProvisionSucceeded.java
src/main/java/com/gr4vy/api/model/NetworkTokenCryptogramProvisionSucceededContext.java
src/main/java/com/gr4vy/api/model/NetworkTokenProvisionFailed.java
src/main/java/com/gr4vy/api/model/NetworkTokenProvisionFailedContext.java
src/main/java/com/gr4vy/api/model/NetworkTokenProvisionSucceeded.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
Expand Down Expand Up @@ -365,6 +375,7 @@ 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/ConnectionOptionsCybersourceCardTest.java
src/test/java/com/gr4vy/api/model/ConnectionOptionsForterAntiFraudAddressTest.java
src/test/java/com/gr4vy/api/model/ConnectionOptionsForterAntiFraudBasicItemDataTest.java
src/test/java/com/gr4vy/api/model/ConnectionOptionsForterAntiFraudBeneficiariesTest.java
Expand All @@ -378,6 +389,7 @@ src/test/java/com/gr4vy/api/model/ConnectionOptionsForterAntiFraudTotalDiscountC
src/test/java/com/gr4vy/api/model/ConnectionOptionsForterAntiFraudTotalDiscountTest.java
src/test/java/com/gr4vy/api/model/ConnectionOptionsPaypalPaypalAdditionalDataTest.java
src/test/java/com/gr4vy/api/model/ConnectionOptionsPaypalPaypalTest.java
src/test/java/com/gr4vy/api/model/ConnectionOptionsStripeCardStripeConnectTest.java
src/test/java/com/gr4vy/api/model/ConnectionOptionsStripeCardTest.java
src/test/java/com/gr4vy/api/model/ConnectionOptionsTest.java
src/test/java/com/gr4vy/api/model/ConnectionTest.java
Expand All @@ -402,6 +414,7 @@ src/test/java/com/gr4vy/api/model/Error403ForbiddenTest.java
src/test/java/com/gr4vy/api/model/Error404NotFoundTest.java
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/Error429TooManyRequestsTest.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/GiftCardBalanceNewRequestTest.java
Expand Down Expand Up @@ -443,6 +456,13 @@ src/test/java/com/gr4vy/api/model/MerchantAccountUpdateTest.java
src/test/java/com/gr4vy/api/model/MerchantAccountsTest.java
src/test/java/com/gr4vy/api/model/MerchantProfileSchemeTest.java
src/test/java/com/gr4vy/api/model/MerchantProfileTest.java
src/test/java/com/gr4vy/api/model/NetworkTokenCryptogramProvisionFailedContextTest.java
src/test/java/com/gr4vy/api/model/NetworkTokenCryptogramProvisionFailedTest.java
src/test/java/com/gr4vy/api/model/NetworkTokenCryptogramProvisionSucceededContextTest.java
src/test/java/com/gr4vy/api/model/NetworkTokenCryptogramProvisionSucceededTest.java
src/test/java/com/gr4vy/api/model/NetworkTokenProvisionFailedContextTest.java
src/test/java/com/gr4vy/api/model/NetworkTokenProvisionFailedTest.java
src/test/java/com/gr4vy/api/model/NetworkTokenProvisionSucceededTest.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
Expand Down
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.24.0</version>
<version>0.25.0</version>
<url>https://gr4vy.com</url>
<description>Gr4vy Java SDK</description>

Expand Down
34 changes: 32 additions & 2 deletions src/main/java/com/gr4vy/api/model/ConnectionOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.google.gson.stream.JsonWriter;
import com.gr4vy.api.model.ConnectionOptionsAdyenCard;
import com.gr4vy.api.model.ConnectionOptionsCybersourceAntiFraud;
import com.gr4vy.api.model.ConnectionOptionsCybersourceCard;
import com.gr4vy.api.model.ConnectionOptionsForterAntiFraud;
import com.gr4vy.api.model.ConnectionOptionsPaypalPaypal;
import com.gr4vy.api.model.ConnectionOptionsStripeCard;
Expand All @@ -34,6 +35,10 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ConnectionOptions {
public static final String SERIALIZED_NAME_CYBERSOURCE_CARD = "cybersource-card";
@SerializedName(SERIALIZED_NAME_CYBERSOURCE_CARD)
private ConnectionOptionsCybersourceCard cybersourceCard;

public static final String SERIALIZED_NAME_CYBERSOURCE_ANTI_FRAUD = "cybersource-anti-fraud";
@SerializedName(SERIALIZED_NAME_CYBERSOURCE_ANTI_FRAUD)
private ConnectionOptionsCybersourceAntiFraud cybersourceAntiFraud;
Expand All @@ -59,6 +64,29 @@ public class ConnectionOptions {
private ConnectionOptionsStripeCard stripeCard;


public ConnectionOptions cybersourceCard(ConnectionOptionsCybersourceCard cybersourceCard) {

this.cybersourceCard = cybersourceCard;
return this;
}

/**
* Get cybersourceCard
* @return cybersourceCard
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")

public ConnectionOptionsCybersourceCard getCybersourceCard() {
return cybersourceCard;
}


public void setCybersourceCard(ConnectionOptionsCybersourceCard cybersourceCard) {
this.cybersourceCard = cybersourceCard;
}


public ConnectionOptions cybersourceAntiFraud(ConnectionOptionsCybersourceAntiFraud cybersourceAntiFraud) {

this.cybersourceAntiFraud = cybersourceAntiFraud;
Expand Down Expand Up @@ -206,7 +234,8 @@ public boolean equals(Object o) {
return false;
}
ConnectionOptions connectionOptions = (ConnectionOptions) o;
return Objects.equals(this.cybersourceAntiFraud, connectionOptions.cybersourceAntiFraud) &&
return Objects.equals(this.cybersourceCard, connectionOptions.cybersourceCard) &&
Objects.equals(this.cybersourceAntiFraud, connectionOptions.cybersourceAntiFraud) &&
Objects.equals(this.forterAntiFraud, connectionOptions.forterAntiFraud) &&
Objects.equals(this.adyenCard, connectionOptions.adyenCard) &&
Objects.equals(this.paypalPaypal, connectionOptions.paypalPaypal) &&
Expand All @@ -216,13 +245,14 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(cybersourceAntiFraud, forterAntiFraud, adyenCard, paypalPaypal, paypalPaypalpaylater, stripeCard);
return Objects.hash(cybersourceCard, cybersourceAntiFraud, forterAntiFraud, adyenCard, paypalPaypal, paypalPaypalpaylater, stripeCard);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConnectionOptions {\n");
sb.append(" cybersourceCard: ").append(toIndentedString(cybersourceCard)).append("\n");
sb.append(" cybersourceAntiFraud: ").append(toIndentedString(cybersourceAntiFraud)).append("\n");
sb.append(" forterAntiFraud: ").append(toIndentedString(forterAntiFraud)).append("\n");
sb.append(" adyenCard: ").append(toIndentedString(adyenCard)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
/*
* Gr4vy API
* Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change.
*
* The version of the OpenAPI document: 1.1.0-beta
* Contact: code@gr4vy.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


package com.gr4vy.api.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
* Additional options for Cybersource payment gateway.
*/
@ApiModel(description = "Additional options for Cybersource payment gateway.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ConnectionOptionsCybersourceCard {
public static final String SERIALIZED_NAME_META_KEY_MERCHANT_ID = "meta_key_merchant_id";
@SerializedName(SERIALIZED_NAME_META_KEY_MERCHANT_ID)
private String metaKeyMerchantId;


public ConnectionOptionsCybersourceCard metaKeyMerchantId(String metaKeyMerchantId) {

this.metaKeyMerchantId = metaKeyMerchantId;
return this;
}

/**
* An override for the merchant ID configured for the connector, used in combination with meta keys.
* @return metaKeyMerchantId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An override for the merchant ID configured for the connector, used in combination with meta keys.")

public String getMetaKeyMerchantId() {
return metaKeyMerchantId;
}


public void setMetaKeyMerchantId(String metaKeyMerchantId) {
this.metaKeyMerchantId = metaKeyMerchantId;
}


@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ConnectionOptionsCybersourceCard connectionOptionsCybersourceCard = (ConnectionOptionsCybersourceCard) o;
return Objects.equals(this.metaKeyMerchantId, connectionOptionsCybersourceCard.metaKeyMerchantId);
}

@Override
public int hashCode() {
return Objects.hash(metaKeyMerchantId);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConnectionOptionsCybersourceCard {\n");
sb.append(" metaKeyMerchantId: ").append(toIndentedString(metaKeyMerchantId)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}

}

34 changes: 32 additions & 2 deletions src/main/java/com/gr4vy/api/model/ConnectionOptionsStripeCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.gr4vy.api.model.ConnectionOptionsStripeCardStripeConnect;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
Expand All @@ -34,6 +35,10 @@ public class ConnectionOptionsStripeCard {
@SerializedName(SERIALIZED_NAME_ERROR_ON_REQUIRES_ACTION)
private Boolean errorOnRequiresAction = false;

public static final String SERIALIZED_NAME_STRIPE_CONNECT = "stripe_connect";
@SerializedName(SERIALIZED_NAME_STRIPE_CONNECT)
private ConnectionOptionsStripeCardStripeConnect stripeConnect;


public ConnectionOptionsStripeCard errorOnRequiresAction(Boolean errorOnRequiresAction) {

Expand All @@ -58,6 +63,29 @@ public void setErrorOnRequiresAction(Boolean errorOnRequiresAction) {
}


public ConnectionOptionsStripeCard stripeConnect(ConnectionOptionsStripeCardStripeConnect stripeConnect) {

this.stripeConnect = stripeConnect;
return this;
}

/**
* Get stripeConnect
* @return stripeConnect
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")

public ConnectionOptionsStripeCardStripeConnect getStripeConnect() {
return stripeConnect;
}


public void setStripeConnect(ConnectionOptionsStripeCardStripeConnect stripeConnect) {
this.stripeConnect = stripeConnect;
}


@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -67,19 +95,21 @@ public boolean equals(Object o) {
return false;
}
ConnectionOptionsStripeCard connectionOptionsStripeCard = (ConnectionOptionsStripeCard) o;
return Objects.equals(this.errorOnRequiresAction, connectionOptionsStripeCard.errorOnRequiresAction);
return Objects.equals(this.errorOnRequiresAction, connectionOptionsStripeCard.errorOnRequiresAction) &&
Objects.equals(this.stripeConnect, connectionOptionsStripeCard.stripeConnect);
}

@Override
public int hashCode() {
return Objects.hash(errorOnRequiresAction);
return Objects.hash(errorOnRequiresAction, stripeConnect);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConnectionOptionsStripeCard {\n");
sb.append(" errorOnRequiresAction: ").append(toIndentedString(errorOnRequiresAction)).append("\n");
sb.append(" stripeConnect: ").append(toIndentedString(stripeConnect)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
Loading

0 comments on commit 0a21e26

Please sign in to comment.