Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI-64 update template by new attribute CustomerIpAddress #70

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>io.conekta</groupId>
<artifactId>ct-conekta-java</artifactId>
<version>6.1.2</version>
<version>6.1.3</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -57,7 +57,7 @@ Add this dependency to your project's build file:
}
dependencies {
implementation "io.conekta:ct-conekta-java:6.1.2"
implementation "io.conekta:ct-conekta-java:6.1.3"
}
```

Expand All @@ -71,7 +71,7 @@ mvn clean package

Then manually install the following JARs:

- `target/ct-conekta-java-6.1.2.jar`
- `target/ct-conekta-java-6.1.3.jar`
- `target/lib/*.jar`

## Usage
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.1.2
6.1.3
38 changes: 37 additions & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12300,6 +12300,7 @@ components:
expires_at: 1656634070
store_name: OXXO
reference: 98000013217610
customer_ip_address: 0.0.0.0
object: charge
description: Payment from order
status: paid
Expand Down Expand Up @@ -12362,6 +12363,7 @@ components:
type: card
token_id: tok_2897348234
payment_source_id: src_2tLkkyfMPh6v7pFry
customer_ip_address: 0.0.0.0
reference_id: string
currency: MXN
customer_info:
Expand Down Expand Up @@ -14481,6 +14483,11 @@ components:
format: int64
nullable: true
type: integer
canceled_reason:
description: Reason for cancellation. This field appears when the subscription
status is 'canceled'.
example: user_cancelation
type: string
card_id:
example: src_2tKcHxhTz7xU5SymL
type: string
Expand Down Expand Up @@ -15190,7 +15197,7 @@ components:
type: string
return_url:
description: Indicates the redirection callback upon completion of the 3DS2
flow.
flow. Do not use this parameter if your order has a checkout parameter
example: https://my-website.com
format: uri
type: string
Expand Down Expand Up @@ -15447,6 +15454,9 @@ components:
format: int8
type: integer
type: array
three_ds_mode:
description: "Indicates the 3DS2 mode for the order, either smart or strict."
type: string
name:
description: Reason for charge
example: Payment Link Name 1594138857
Expand Down Expand Up @@ -15889,6 +15899,9 @@ components:
store_name:
example: OXXO
type: string
customer_ip_address:
example: 0.0.0.0
type: string
title: charge_data_payment_method_cash_response
type: object
payment_method_card:
Expand Down Expand Up @@ -15938,6 +15951,11 @@ components:
description: Name of the cardholder
example: Fulanito Perez
type: string
customer_ip_address:
description: Optional field used to capture the customer's IP address
for fraud prevention and security monitoring purposes
example: 0.0.0.0
type: string
title: charge_data_payment_method_card_response
type: object
payment_method_bank_transfer:
Expand Down Expand Up @@ -15994,6 +16012,9 @@ components:
tracking_code:
nullable: true
type: string
customer_ip_address:
example: 0.0.0.0
type: string
title: charge_data_payment_method_bank_transfer_response
type: object
company_payout_destination_response:
Expand Down Expand Up @@ -16215,6 +16236,11 @@ components:
description: Card number
example: "4242424242424242"
type: string
customer_ip_address:
description: Optional field used to capture the customer's IP address
for fraud prevention and security monitoring purposes
example: 0.0.0.0
type: string
required:
- cvc
- exp_month
Expand Down Expand Up @@ -17729,11 +17755,21 @@ components:
payment_source_id:
example: src_2tLkkyfMPh6v7pFry
type: string
cvc:
description: "Optional, It is a value that allows identifying the security\
\ code of the card. Only for PCI merchants"
example: "123"
type: string
contract_id:
description: Optional id sent to indicate the bank contract for recurrent
card charges.
example: S781317595
type: string
customer_ip_address:
description: Optional field used to capture the customer's IP address for
fraud prevention and security monitoring purposes
example: 0.0.0.0
type: string
required:
- type
title: payment_method_general_request
Expand Down
4 changes: 2 additions & 2 deletions config-java.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"developerOrganization": "Conekta, Inc.",
"developerOrganizationUrl": "https://www.conekta.io",
"artifactUrl": "https://developers.conekta.com/",
"artifactVersion": "6.1.2",
"artifactVersion": "6.1.3",
"modelPackage": "com.conekta.model",
"licenseName": "MIT License",
"invokerPackage": "com.conekta",
Expand Down Expand Up @@ -36,6 +36,6 @@
"disallowAdditionalPropertiesIfNotPresent": true,
"useOneOfDiscriminatorLookup": true,
"serializationLibrary": "jackson",
"httpUserAgent": "Conekta/v2 JavaBindings/6.1.2",
"httpUserAgent": "Conekta/v2 JavaBindings/6.1.3",
"openApiNullable" : false
}
1 change: 1 addition & 0 deletions docs/Checkout.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ It is a sub-resource of the Order model that can be stipulated in order to confi
|**expiresAt** | **Long** | It is the time when the link will expire. It is expressed in seconds since the Unix epoch. The valid range is from 2 to 365 days (the valid range will be taken from the next day of the creation date at 00:01 hrs) | |
|**monthlyInstallmentsEnabled** | **Boolean** | This flag allows you to specify if months without interest will be active. | [optional] |
|**monthlyInstallmentsOptions** | **List&lt;Integer&gt;** | This field allows you to specify the number of months without interest. | [optional] |
|**threeDsMode** | **String** | Indicates the 3DS2 mode for the order, either smart or strict. | [optional] |
|**name** | **String** | Reason for charge | |
|**needsShippingContact** | **Boolean** | This flag allows you to fill in the shipping information at checkout. | [optional] |
|**onDemandEnabled** | **Boolean** | This flag allows you to specify if the link will be on demand. | [optional] |
Expand Down
2 changes: 1 addition & 1 deletion docs/OrderRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ a order
|**needsShippingContact** | **Boolean** | Allows you to fill out the shipping information at checkout | [optional] |
|**preAuthorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional] |
|**processingMode** | **String** | Indicates the processing mode for the order, either ecommerce, recurrent or validation. | [optional] |
|**returnUrl** | **URI** | Indicates the redirection callback upon completion of the 3DS2 flow. | [optional] |
|**returnUrl** | **URI** | Indicates the redirection callback upon completion of the 3DS2 flow. Do not use this parameter if your order has a checkout parameter | [optional] |
|**shippingContact** | [**CustomerShippingContacts**](CustomerShippingContacts.md) | | [optional] |
|**shippingLines** | [**List&lt;ShippingRequest&gt;**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.1.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] |
|**taxLines** | [**List&lt;OrderTaxRequest&gt;**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.1.0/reference/orderscreatetaxes) that are applied to the order. | [optional] |
Expand Down
1 change: 1 addition & 0 deletions docs/PaymentMethodBankTransfer.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
|**receivingAccountTaxId** | **String** | | [optional] |
|**referenceNumber** | **String** | | [optional] |
|**trackingCode** | **String** | | [optional] |
|**customerIpAddress** | **String** | | [optional] |



1 change: 1 addition & 0 deletions docs/PaymentMethodCard.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
|**issuer** | **String** | Issuer of the card | [optional] |
|**last4** | **String** | Last 4 digits of the card | [optional] |
|**name** | **String** | Name of the cardholder | [optional] |
|**customerIpAddress** | **String** | Optional field used to capture the customer&#39;s IP address for fraud prevention and security monitoring purposes | [optional] |



1 change: 1 addition & 0 deletions docs/PaymentMethodCardRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
|**expYear** | **String** | Card expiration year | |
|**name** | **String** | Cardholder name | |
|**number** | **String** | Card number | |
|**customerIpAddress** | **String** | Optional field used to capture the customer&#39;s IP address for fraud prevention and security monitoring purposes | [optional] |



1 change: 1 addition & 0 deletions docs/PaymentMethodCash.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
|**serviceName** | **String** | | [optional] |
|**store** | **String** | | [optional] |
|**storeName** | **String** | | [optional] |
|**customerIpAddress** | **String** | | [optional] |



2 changes: 2 additions & 0 deletions docs/PaymentMethodGeneralRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ Payment method used in the charge. Go to the [payment methods](https://developer
|**type** | **String** | Type of payment method | |
|**tokenId** | **String** | | [optional] |
|**paymentSourceId** | **String** | | [optional] |
|**cvc** | **String** | Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants | [optional] |
|**contractId** | **String** | Optional id sent to indicate the bank contract for recurrent card charges. | [optional] |
|**customerIpAddress** | **String** | Optional field used to capture the customer&#39;s IP address for fraud prevention and security monitoring purposes | [optional] |



1 change: 1 addition & 0 deletions docs/SubscriptionResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ subscription model
|**billingCycleStart** | **Long** | | [optional] |
|**billingCycleEnd** | **Long** | | [optional] |
|**canceledAt** | **Long** | | [optional] |
|**canceledReason** | **String** | Reason for cancellation. This field appears when the subscription status is &#39;canceled&#39;. | [optional] |
|**cardId** | **String** | | [optional] |
|**chargeId** | **String** | | [optional] |
|**createdAt** | **Long** | | [optional] |
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>ct-conekta-java</artifactId>
<packaging>jar</packaging>
<name>ct-conekta-java</name>
<version>6.1.2</version>
<version>6.1.3</version>
<url>https://developers.conekta.com/</url>
<description>This is a java library that allows interaction with https://api.conekta.io API.</description>
<scm>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/conekta/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class ApiClient extends JavaTimeFormatter {

private JSONObject getConektaUserAgent() {
JSONObject userAgent = new JSONObject();
userAgent.put("bindings_version", "6.1.2");
userAgent.put("bindings_version", "6.1.3");
userAgent.put("lang", "java");
userAgent.put("lang_version", System.getProperty("java.version"));
userAgent.put("publisher", "conekta");
Expand Down Expand Up @@ -138,7 +138,7 @@ public ApiClient(Map<String, Authentication> authMap) {
this.dateFormat = new RFC3339DateFormat();

// Set default User-Agent.
setUserAgent("Conekta/v2 JavaBindings/6.1.2");
setUserAgent("Conekta/v2 JavaBindings/6.1.3");

// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<>();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/conekta/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
public class Configuration {
public static final String VERSION = "6.1.2";
public static final String VERSION = "6.1.3";

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
33 changes: 32 additions & 1 deletion src/main/java/com/conekta/model/Checkout.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
Checkout.JSON_PROPERTY_EXPIRES_AT,
Checkout.JSON_PROPERTY_MONTHLY_INSTALLMENTS_ENABLED,
Checkout.JSON_PROPERTY_MONTHLY_INSTALLMENTS_OPTIONS,
Checkout.JSON_PROPERTY_THREE_DS_MODE,
Checkout.JSON_PROPERTY_NAME,
Checkout.JSON_PROPERTY_NEEDS_SHIPPING_CONTACT,
Checkout.JSON_PROPERTY_ON_DEMAND_ENABLED,
Expand All @@ -60,6 +61,9 @@ public class Checkout {
public static final String JSON_PROPERTY_MONTHLY_INSTALLMENTS_OPTIONS = "monthly_installments_options";
private List<Integer> monthlyInstallmentsOptions = new ArrayList<>();

public static final String JSON_PROPERTY_THREE_DS_MODE = "three_ds_mode";
private String threeDsMode;

public static final String JSON_PROPERTY_NAME = "name";
private String name;

Expand Down Expand Up @@ -200,6 +204,31 @@ public void setMonthlyInstallmentsOptions(List<Integer> monthlyInstallmentsOptio
}


public Checkout threeDsMode(String threeDsMode) {
this.threeDsMode = threeDsMode;
return this;
}

/**
* Indicates the 3DS2 mode for the order, either smart or strict.
* @return threeDsMode
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_THREE_DS_MODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getThreeDsMode() {
return threeDsMode;
}


@JsonProperty(JSON_PROPERTY_THREE_DS_MODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setThreeDsMode(String threeDsMode) {
this.threeDsMode = threeDsMode;
}


public Checkout name(String name) {
this.name = name;
return this;
Expand Down Expand Up @@ -391,6 +420,7 @@ public boolean equals(Object o) {
Objects.equals(this.expiresAt, checkout.expiresAt) &&
Objects.equals(this.monthlyInstallmentsEnabled, checkout.monthlyInstallmentsEnabled) &&
Objects.equals(this.monthlyInstallmentsOptions, checkout.monthlyInstallmentsOptions) &&
Objects.equals(this.threeDsMode, checkout.threeDsMode) &&
Objects.equals(this.name, checkout.name) &&
Objects.equals(this.needsShippingContact, checkout.needsShippingContact) &&
Objects.equals(this.onDemandEnabled, checkout.onDemandEnabled) &&
Expand All @@ -402,7 +432,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(allowedPaymentMethods, expiresAt, monthlyInstallmentsEnabled, monthlyInstallmentsOptions, name, needsShippingContact, onDemandEnabled, orderTemplate, paymentsLimitCount, recurrent, type);
return Objects.hash(allowedPaymentMethods, expiresAt, monthlyInstallmentsEnabled, monthlyInstallmentsOptions, threeDsMode, name, needsShippingContact, onDemandEnabled, orderTemplate, paymentsLimitCount, recurrent, type);
}

@Override
Expand All @@ -413,6 +443,7 @@ public String toString() {
sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
sb.append(" monthlyInstallmentsEnabled: ").append(toIndentedString(monthlyInstallmentsEnabled)).append("\n");
sb.append(" monthlyInstallmentsOptions: ").append(toIndentedString(monthlyInstallmentsOptions)).append("\n");
sb.append(" threeDsMode: ").append(toIndentedString(threeDsMode)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" needsShippingContact: ").append(toIndentedString(needsShippingContact)).append("\n");
sb.append(" onDemandEnabled: ").append(toIndentedString(onDemandEnabled)).append("\n");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/conekta/model/OrderRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ public OrderRequest returnUrl(URI returnUrl) {
}

/**
* Indicates the redirection callback upon completion of the 3DS2 flow.
* Indicates the redirection callback upon completion of the 3DS2 flow. Do not use this parameter if your order has a checkout parameter
* @return returnUrl
**/
@javax.annotation.Nullable
Expand Down
Loading
Loading