├── .openapi-generator └── VERSION ├── gradle.properties ├── docs ├── EventTypes.md ├── EmailCheckoutRequest.md ├── Payout.md ├── SmsCheckoutRequest.md ├── UpdatePaymentMethods.md ├── OrderCaptureRequest.md ├── PayoutMethod.md ├── CustomerInfoJustCustomerId.md ├── Details.md ├── OrdersResponse.md ├── ChargeUpdateRequest.md ├── PaymentMethod.md ├── CustomerPaymentMethodRequest.md ├── CustomerInfoJustCustomerIdResponse.md ├── WebhookKeyRequest.md ├── WebhookKeyUpdateRequest.md ├── TokenCheckout.md ├── CustomerAntifraudInfo.md ├── Token.md ├── PaymentMethodCashRequest.md ├── PaymentMethodSpeiRequest.md ├── CustomerAntifraudInfoResponse.md ├── Page.md ├── UpdateCustomerAntifraudInfo.md ├── SubscriptionRequest.md ├── ApiKeyRequest.md ├── BalanceCommonField.md ├── Pagination.md ├── SubscriptionUpdateRequest.md ├── OrderRefundRequest.md ├── UpdateOrderDiscountLinesRequest.md ├── DetailsError.md ├── CustomerInfo.md ├── CreateRiskRulesData.md ├── PaymentMethodResponse.md ├── ApiKeyUpdateRequest.md ├── Error.md ├── ChargeResponseChannel.md ├── OrderNextActionResponse.md ├── UpdateOrderTaxRequest.md ├── OrderTaxRequest.md ├── ChargeRequest.md ├── OrderRequestCustomerInfo.md ├── OrderResponseCharges.md ├── OrderUpdateRequestCustomerInfo.md ├── CheckoutOrderTemplateCustomerInfo.md ├── ChargesOrderResponse.md ├── OrderResponseDiscountLines.md ├── OrderDiscountLinesRequest.md ├── PaymentMethodSpeiRecurrent.md ├── BlacklistRuleResponse.md ├── CustomerFiscalEntitiesResponse.md ├── CustomerResponseShippingContacts.md ├── WhitelistlistRuleResponse.md ├── ChargeResponseRefundsData.md ├── OrderCustomerInfoResponse.md ├── PaymentMethodTokenRequest.md ├── DeletedBlacklistRuleResponse.md ├── DeletedWhitelistRuleResponse.md ├── CustomerFiscalEntitiesRequest.md ├── OrderNextActionResponseRedirectToUrl.md ├── CustomerUpdateFiscalEntitiesRequest.md ├── GetOrdersResponse.md ├── OrderResponseCustomerInfo.md ├── WebhookRequest.md ├── EventsResendResponse.md ├── RiskRulesList.md ├── CustomerPaymentMethodsRequest.md ├── GetEventsResponse.md ├── GetPlansResponse.md ├── UpdateOrderTaxResponse.md ├── GetApiKeysResponse.md ├── GetChargesResponse.md ├── PayoutOrderResponseCustomerInfo.md ├── CheckoutsResponse.md ├── CreateCustomerPaymentMethodsRequest.md ├── CustomersResponse.md ├── GetCompaniesResponse.md ├── GetWebhooksResponse.md ├── GetWebhookKeysResponse.md ├── OrderResponseProducts.md ├── PayoutOrdersResponse.md ├── SubscriptionEventsResponse.md ├── WebhookLog.md ├── GetTransfersResponse.md ├── LogsResponse.md ├── TokenResponse.md ├── CustomerShippingContactsResponseAddress.md ├── DiscountLinesResponse.md ├── ChargeResponseRefunds.md ├── GetOrderDiscountLinesResponse.md ├── GetTransactionsResponse.md ├── DiscountLinesDataResponse.md ├── CustomerPaymentMethodsResponse.md ├── PaymentMethodCashResponse.md ├── GetPaymentMethodResponse.md ├── CustomerAddress.md ├── EventResponse.md ├── WebhookUpdateRequest.md ├── CustomerShippingContactsAddress.md ├── FiscalEntityAddress.md ├── RiskRulesData.md ├── UpdateProduct.md ├── ShippingRequest.md ├── PaymentMethodCardRequest.md ├── PlanUpdateRequest.md ├── WebhookResponse.md ├── OrderFiscalEntityRequest.md ├── PlanResponse.md ├── OrderUpdateFiscalEntityRequest.md ├── OrderFiscalEntityAddressResponse.md ├── CustomerUpdateShippingContacts.md ├── WebhookKeyCreateResponse.md ├── CustomerFiscalEntitiesDataResponse.md ├── WebhookKeyDeleteResponse.md ├── CreateCustomerFiscalEntitiesResponse.md ├── PayoutOrderPayoutsItem.md ├── UpdateCustomerFiscalEntitiesResponse.md ├── PayoutOrder.md ├── TokenCard.md ├── ShippingOrderResponse.md ├── TransferMethodResponse.md ├── TransferDestinationResponse.md ├── WebhookKeyResponse.md ├── CompanyFiscalInfoAddressResponse.md ├── CustomerShippingContacts.md ├── CompanyPayoutDestinationResponse.md ├── PaymentMethodCardResponse.md ├── PaymentMethodCash.md ├── CompanyFiscalInfoResponse.md ├── OrderResponseShippingContact.md ├── CustomerShippingContactsResponse.md ├── OrderFiscalEntityResponse.md ├── CheckoutOrderTemplate.md ├── DeleteApiKeysResponse.md ├── CustomerShippingContactsDataResponse.md ├── ApiKeyResponseOnDelete.md ├── PaymentMethodGeneralRequest.md ├── CompanyResponse.md ├── CustomerPaymentMethodsData.md ├── Product.md ├── CreateCustomerPaymentMethodsResponse.md ├── GetCustomerPaymentMethodDataResponse.md ├── UpdateCustomerPaymentMethodsResponse.md ├── TransfersResponse.md ├── TransactionResponse.md ├── TransferResponse.md ├── PlanRequest.md ├── SubscriptionResponse.md ├── ApiKeyResponse.md ├── ChargeRequestPaymentMethod.md ├── PaymentMethodCard.md ├── LogResponse.md ├── CheckoutRequest.md ├── ChargeOrderResponse.md ├── LogsResponseData.md ├── PaymentMethodBankTransfer.md ├── ProductDataResponse.md ├── ProductOrderResponse.md ├── ChargeResponse.md ├── ChargesDataResponse.md ├── ChargesOrderResponseAllOfData.md ├── PayoutOrderResponse.md ├── ApiKeyCreateResponse.md ├── BalanceResponse.md ├── BalancesApi.md ├── CheckoutResponse.md ├── Checkout.md ├── CustomerResponse.md ├── TokensApi.md ├── OrderResponseCheckout.md ├── OrderUpdateRequest.md ├── Customer.md ├── TokenResponseCheckout.md ├── UpdateCustomer.md └── OrderResponse.md ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── src ├── main │ ├── AndroidManifest.xml │ └── java │ │ └── io │ │ └── conekta │ │ ├── HttpPatch.java │ │ ├── ApiException.java │ │ ├── model │ │ ├── EventTypes.java │ │ ├── OasAnyTypeNotMapped.java │ │ ├── UpdatePaymentMethods.java │ │ ├── EmailCheckoutRequest.java │ │ ├── Details.java │ │ ├── OrderCaptureRequest.java │ │ ├── OrdersResponse.java │ │ ├── WebhookKeyRequest.java │ │ ├── SmsCheckoutRequest.java │ │ ├── PayoutMethod.java │ │ ├── WebhookKeyUpdateRequest.java │ │ ├── CustomerInfoJustCustomerId.java │ │ ├── CustomerInfoJustCustomerIdResponse.java │ │ ├── Payout.java │ │ ├── ChargeUpdateRequest.java │ │ ├── TokenCheckout.java │ │ ├── CustomerPaymentMethodRequest.java │ │ ├── PaymentMethod.java │ │ ├── Token.java │ │ ├── PaymentMethodCashRequest.java │ │ ├── PaymentMethodSpeiRequest.java │ │ ├── ApiKeyRequest.java │ │ ├── BalanceCommonField.java │ │ ├── Pagination.java │ │ ├── Page.java │ │ ├── CustomerAntifraudInfo.java │ │ └── ApiKeyUpdateRequest.java │ │ ├── Pair.java │ │ └── EncryptedTypeAdapter.java └── test │ └── java │ └── io │ └── conekta │ ├── BaseTest.java │ ├── CustomerApiTest.java │ └── TokensApiTest.java ├── settings.gradle ├── Makefile ├── examples └── Token.java ├── .gitignore ├── .github └── workflows │ └── build.yml ├── .openapi-generator-ignore ├── templates ├── OasAnyTypeNotMapped.mustache └── jsonUtil.mustache ├── config.json └── git_push.sh /.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 7.9.0 2 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | android.useAndroidX=true 2 | android.enableJetifier=true 3 | -------------------------------------------------------------------------------- /docs/EventTypes.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # EventTypes 4 | 5 | ## Enum 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/conekta/conekta-android/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /docs/EmailCheckoutRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # EmailCheckoutRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **email** | **String** | | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /docs/Payout.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Payout 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **payoutMethod** | [**PayoutMethod**](PayoutMethod.md) | | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/SmsCheckoutRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SmsCheckoutRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **phonenumber** | **String** | | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/UpdatePaymentMethods.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # UpdatePaymentMethods 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **name** | **String** | | [optional] 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/OrderCaptureRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderCaptureRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | Amount to capture | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/PayoutMethod.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PayoutMethod 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | The type of the payout method. | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/CustomerInfoJustCustomerId.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerInfoJustCustomerId 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **customerId** | **String** | | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/Details.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Details 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **details** | [**List<DetailsError>**](DetailsError.md) | | [optional] 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/OrdersResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrdersResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **data** | [**List<OrderResponse>**](OrderResponse.md) | | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /docs/ChargeUpdateRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ChargeUpdateRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **referenceId** | **String** | custom reference id | [optional] 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/PaymentMethod.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethod 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | | [optional] 10 | **_object** | **String** | | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/CustomerPaymentMethodRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerPaymentMethodRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | Type of payment method | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/CustomerInfoJustCustomerIdResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerInfoJustCustomerIdResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **customerId** | **String** | | [optional] 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/WebhookKeyRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # WebhookKeyRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **active** | **Boolean** | Indicates if the webhook key is active | [optional] 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/WebhookKeyUpdateRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # WebhookKeyUpdateRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **active** | **Boolean** | Indicates if the webhook key is active | [optional] 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/TokenCheckout.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TokenCheckout 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **returnsControlOn** | **String** | It is a value that allows identifying the returns control on. | [optional] 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/CustomerAntifraudInfo.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerAntifraudInfo 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **accountCreatedAt** | **Long** | | [optional] 10 | **firstPaidAt** | **Long** | | [optional] 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/Token.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Token 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **card** | [**TokenCard**](TokenCard.md) | | [optional] 10 | **checkout** | [**TokenCheckout**](TokenCheckout.md) | | [optional] 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/PaymentMethodCashRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethodCashRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | Type of payment method | 10 | **expiresAt** | **Long** | | [optional] 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/PaymentMethodSpeiRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethodSpeiRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | Type of payment method | 10 | **expiresAt** | **Long** | | [optional] 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/CustomerAntifraudInfoResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerAntifraudInfoResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **firstPaidAt** | **Integer** | | [optional] 10 | **accountCreatedAt** | **Long** | | [optional] 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/Page.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Page 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **nextPageUrl** | **String** | URL of the next page. | [optional] 10 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/UpdateCustomerAntifraudInfo.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # UpdateCustomerAntifraudInfo 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **accountCreatedAt** | **Long** | | [optional] 10 | **firstPaidAt** | **Integer** | | [optional] 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/SubscriptionRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SubscriptionRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **planId** | **String** | | 10 | **cardId** | **String** | | [optional] 11 | **trialEnd** | **Integer** | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/ApiKeyRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ApiKeyRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **description** | **String** | A name or brief explanation of what this api key is used for | [optional] 10 | **role** | **String** | | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/BalanceCommonField.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # BalanceCommonField 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | The balance's amount | [optional] 10 | **currency** | **String** | The balance's currency | [optional] 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/Pagination.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Pagination 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/SubscriptionUpdateRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SubscriptionUpdateRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **planId** | **String** | | [optional] 10 | **cardId** | **String** | | [optional] 11 | **trialEnd** | **Integer** | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/OrderRefundRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderRefundRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Integer** | Amount to be refunded in cents | 10 | **expiresAt** | **Long** | | [optional] 11 | **reason** | **String** | Reason for the refund | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/UpdateOrderDiscountLinesRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # UpdateOrderDiscountLinesRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | | [optional] 10 | **code** | **String** | Discount code. | [optional] 11 | **type** | **String** | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/DetailsError.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DetailsError 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **code** | **String** | | [optional] 10 | **param** | **String** | | [optional] 11 | **message** | **String** | | [optional] 12 | **debugMessage** | **String** | | [optional] 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/CustomerInfo.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerInfo 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **name** | **String** | | 10 | **email** | **String** | | 11 | **phone** | **String** | | 12 | **corporate** | **Boolean** | | [optional] 13 | **_object** | **String** | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/CreateRiskRulesData.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CreateRiskRulesData 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **description** | **String** | Description of the rule | 10 | **field** | **String** | Field to be used for the rule | 11 | **value** | **String** | Value to be used for the rule | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/PaymentMethodResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethodResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | | 10 | **id** | **String** | | 11 | **_object** | **String** | | 12 | **createdAt** | **Long** | | 13 | **parentId** | **String** | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | repositories { 3 | gradlePluginPortal() 4 | google() 5 | mavenCentral() 6 | } 7 | } 8 | 9 | dependencyResolutionManagement { 10 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) 11 | repositories { 12 | google() 13 | mavenCentral() 14 | } 15 | } 16 | 17 | rootProject.name = "conektasdk" 18 | -------------------------------------------------------------------------------- /docs/ApiKeyUpdateRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ApiKeyUpdateRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **active** | **Boolean** | Indicates if the webhook key is active | [optional] 10 | **description** | **String** | A name or brief explanation of what this api key is used for | [optional] 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/Error.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Error 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **details** | [**List<DetailsError>**](DetailsError.md) | | [optional] 10 | **logId** | **String** | log id | [optional] 11 | **type** | **String** | | [optional] 12 | **_object** | **String** | | [optional] 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/ChargeResponseChannel.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ChargeResponseChannel 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **segment** | **String** | | [optional] 10 | **checkoutRequestId** | **String** | | [optional] 11 | **checkoutRequestType** | **String** | | [optional] 12 | **id** | **String** | | [optional] 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/test/java/io/conekta/BaseTest.java: -------------------------------------------------------------------------------- 1 | package io.conekta; 2 | 3 | public class BaseTest { 4 | private static final String defaultBasePath = "http://localhost:3000"; 5 | public static String getBasePath(){ 6 | String basePath = System.getenv("BASE_PATH"); 7 | if (basePath == null || basePath.isEmpty()) { 8 | return defaultBasePath; 9 | } 10 | return basePath; 11 | } 12 | } -------------------------------------------------------------------------------- /docs/OrderNextActionResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderNextActionResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **redirectToUrl** | [**OrderNextActionResponseRedirectToUrl**](OrderNextActionResponseRedirectToUrl.md) | | [optional] 10 | **type** | **String** | Indicates the type of action to be taken | [optional] 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/UpdateOrderTaxRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # UpdateOrderTaxRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | The amount to be collected for tax in cents | [optional] 10 | **description** | **String** | description or tax's name | [optional] 11 | **metadata** | **Map<String, Object>** | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/OrderTaxRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderTaxRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | The amount to be collected for tax in cents | 10 | **description** | **String** | description or tax's name | 11 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/ChargeRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ChargeRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Integer** | Amount to be charged in cents | [optional] 10 | **paymentMethod** | [**ChargeRequestPaymentMethod**](ChargeRequestPaymentMethod.md) | | 11 | **referenceId** | **String** | Custom reference to add to the charge | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/OrderRequestCustomerInfo.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderRequestCustomerInfo 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **name** | **String** | | 10 | **email** | **String** | | 11 | **phone** | **String** | | 12 | **corporate** | **Boolean** | | [optional] 13 | **_object** | **String** | | [optional] 14 | **customerId** | **String** | | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/OrderResponseCharges.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderResponseCharges 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **data** | [**List<ChargesDataResponse>**](ChargesDataResponse.md) | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/OrderUpdateRequestCustomerInfo.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderUpdateRequestCustomerInfo 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **name** | **String** | | 10 | **email** | **String** | | 11 | **phone** | **String** | | 12 | **corporate** | **Boolean** | | [optional] 13 | **_object** | **String** | | [optional] 14 | **customerId** | **String** | | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/CheckoutOrderTemplateCustomerInfo.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CheckoutOrderTemplateCustomerInfo 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **name** | **String** | | 10 | **email** | **String** | | 11 | **phone** | **String** | | 12 | **corporate** | **Boolean** | | [optional] 13 | **_object** | **String** | | [optional] 14 | **customerId** | **String** | | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/ChargesOrderResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ChargesOrderResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **data** | [**List<ChargesOrderResponseAllOfData>**](ChargesOrderResponseAllOfData.md) | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/OrderResponseDiscountLines.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderResponseDiscountLines 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **data** | [**List<DiscountLinesDataResponse>**](DiscountLinesDataResponse.md) | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/OrderDiscountLinesRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderDiscountLinesRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | The amount to be deducted from the total sum of all payments, in cents. | 10 | **code** | **String** | Discount code. | 11 | **type** | **String** | It can be 'loyalty', 'campaign', 'coupon' o 'sign' | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/PaymentMethodSpeiRecurrent.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethodSpeiRecurrent 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | | 10 | **id** | **String** | | 11 | **_object** | **String** | | 12 | **createdAt** | **Long** | | 13 | **parentId** | **String** | | [optional] 14 | **reference** | **String** | | [optional] 15 | **expiresAt** | **String** | | [optional] 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/BlacklistRuleResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # BlacklistRuleResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **id** | **String** | Blacklist rule id | [optional] 10 | **field** | **String** | field used for blacklists rule | [optional] 11 | **value** | **String** | value used for blacklists rule | [optional] 12 | **description** | **String** | use an description for blacklisted rule | [optional] 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/CustomerFiscalEntitiesResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerFiscalEntitiesResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **data** | [**List<CustomerFiscalEntitiesDataResponse>**](CustomerFiscalEntitiesDataResponse.md) | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/CustomerResponseShippingContacts.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerResponseShippingContacts 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **data** | [**List<CustomerShippingContactsDataResponse>**](CustomerShippingContactsDataResponse.md) | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/WhitelistlistRuleResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # WhitelistlistRuleResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **id** | **String** | Whitelist rule id | [optional] 10 | **field** | **String** | field used for whitelists rule | [optional] 11 | **value** | **String** | value used for whitelists rule | [optional] 12 | **description** | **String** | use an description for whitelisted rule | [optional] 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | ./gradlew test 3 | build: 4 | ./gradlew clean build -x lintDebug 5 | deploy: 6 | ./gradlew publish -x lintDebug 7 | android: 8 | rm -rf src/main/kotlin && \ 9 | rm -rf docs && \ 10 | docker run --rm \ 11 | -v ${PWD}:/local openapitools/openapi-generator-cli:v7.9.0 generate \ 12 | -i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \ 13 | -g android \ 14 | -o /local \ 15 | -c /local/config.json \ 16 | --global-property apiDocs=true,apiTests=true,modelTests=false 17 | -------------------------------------------------------------------------------- /docs/ChargeResponseRefundsData.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ChargeResponseRefundsData 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | | 10 | **authCode** | **String** | | [optional] 11 | **createdAt** | **Long** | | 12 | **expiresAt** | **Long** | refund expiration date | [optional] 13 | **id** | **String** | | 14 | **_object** | **String** | | 15 | **status** | **String** | refund status | [optional] 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/OrderCustomerInfoResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderCustomerInfoResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **customerCustomReference** | **String** | Custom reference | [optional] 10 | **name** | **String** | | [optional] 11 | **email** | **String** | | [optional] 12 | **phone** | **String** | | [optional] 13 | **corporate** | **Boolean** | | [optional] 14 | **_object** | **String** | | [optional] 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/PaymentMethodTokenRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethodTokenRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | Type of payment method | 10 | **tokenId** | **String** | Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/DeletedBlacklistRuleResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DeletedBlacklistRuleResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **id** | **String** | Blacklist rule id | [optional] 10 | **field** | **String** | field used for blacklists rule deleted | [optional] 11 | **value** | **String** | value used for blacklists rule deleted | [optional] 12 | **description** | **String** | use an description for blacklisted rule | [optional] 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/DeletedWhitelistRuleResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DeletedWhitelistRuleResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **id** | **String** | Whitelist rule id | [optional] 10 | **field** | **String** | field used for whitelists rule deleted | [optional] 11 | **value** | **String** | value used for whitelists rule deleted | [optional] 12 | **description** | **String** | use an description for whitelisted rule | [optional] 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/CustomerFiscalEntitiesRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerFiscalEntitiesRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **address** | [**CustomerAddress**](CustomerAddress.md) | | 10 | **taxId** | **String** | | [optional] 11 | **email** | **String** | | [optional] 12 | **phone** | **String** | | [optional] 13 | **metadata** | **Map<String, Object>** | | [optional] 14 | **companyName** | **String** | | [optional] 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/OrderNextActionResponseRedirectToUrl.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderNextActionResponseRedirectToUrl 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **url** | [**URI**](URI.md) | pay.conekta.com/{id} Indicates the url of the Conekta component to authenticate the flow through 3DS2. | [optional] 10 | **returnUrl** | [**URI**](URI.md) | Indicates the url to which the 3DS2 flow returns at the end, when the integration is redirected. | [optional] 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/CustomerUpdateFiscalEntitiesRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerUpdateFiscalEntitiesRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **address** | [**CustomerAddress**](CustomerAddress.md) | | [optional] 10 | **taxId** | **String** | | [optional] 11 | **email** | **String** | | [optional] 12 | **phone** | **String** | | [optional] 13 | **metadata** | **Map<String, Object>** | | [optional] 14 | **companyName** | **String** | | [optional] 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/GetOrdersResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetOrdersResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **data** | [**List<OrderResponse>**](OrderResponse.md) | | 10 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 11 | **_object** | **String** | Object type, in this case is list | 12 | **nextPageUrl** | **String** | URL of the next page. | [optional] 13 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/OrderResponseCustomerInfo.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderResponseCustomerInfo 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **customerCustomReference** | **String** | Custom reference | [optional] 10 | **name** | **String** | | [optional] 11 | **email** | **String** | | [optional] 12 | **phone** | **String** | | [optional] 13 | **corporate** | **Boolean** | | [optional] 14 | **_object** | **String** | | [optional] 15 | **customerId** | **String** | | [optional] 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/WebhookRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # WebhookRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **url** | **String** | Here you must place the URL of your Webhook remember that you must program what you will do with the events received. Also do not forget to handle the HTTPS protocol for greater security. | 10 | **synchronous** | **Boolean** | It is a value that allows to decide if the events will be synchronous or asynchronous. We recommend asynchronous = false | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/EventsResendResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # EventsResendResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **failedAttempts** | **Integer** | | [optional] 10 | **id** | **String** | | [optional] 11 | **lastAttemptedAt** | **Integer** | | [optional] 12 | **lastHttpResponseStatus** | **Integer** | | [optional] 13 | **responseData** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 14 | **url** | [**URI**](URI.md) | | [optional] 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/RiskRulesList.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # RiskRulesList 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<RiskRulesData>**](RiskRulesData.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/CustomerPaymentMethodsRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerPaymentMethodsRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | Type of payment method | 10 | **tokenId** | **String** | Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | 11 | **expiresAt** | **Long** | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/GetEventsResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetEventsResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<EventResponse>**](EventResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/GetPlansResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetPlansResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<PlanResponse>**](PlanResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/UpdateOrderTaxResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # UpdateOrderTaxResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | The amount to be collected for tax in cents | 10 | **description** | **String** | description or tax's name | 11 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 12 | **id** | **String** | | 13 | **_object** | **String** | | [optional] 14 | **parentId** | **String** | | [optional] 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/GetApiKeysResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetApiKeysResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **nextPageUrl** | **String** | URL of the next page. | [optional] 10 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 11 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 12 | **_object** | **String** | Object type, in this case is list | 13 | **data** | [**List<ApiKeyResponse>**](ApiKeyResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/GetChargesResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetChargesResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<ChargeResponse>**](ChargeResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/PayoutOrderResponseCustomerInfo.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PayoutOrderResponseCustomerInfo 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **customerCustomReference** | **String** | Custom reference | [optional] 10 | **name** | **String** | | [optional] 11 | **email** | **String** | | [optional] 12 | **phone** | **String** | | [optional] 13 | **corporate** | **Boolean** | | [optional] 14 | **_object** | **String** | | [optional] 15 | **id** | **String** | The id of the customer. | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/CheckoutsResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CheckoutsResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<CheckoutResponse>**](CheckoutResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/CreateCustomerPaymentMethodsRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CreateCustomerPaymentMethodsRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | Type of payment method | 10 | **tokenId** | **String** | Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | 11 | **expiresAt** | **Long** | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/CustomersResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomersResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<CustomerResponse>**](CustomerResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/GetCompaniesResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetCompaniesResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<CompanyResponse>**](CompanyResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/GetWebhooksResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetWebhooksResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<WebhookResponse>**](WebhookResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/GetWebhookKeysResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetWebhookKeysResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<WebhookKeyResponse>**](WebhookKeyResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/OrderResponseProducts.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderResponseProducts 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<ProductDataResponse>**](ProductDataResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/PayoutOrdersResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PayoutOrdersResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<PayoutOrderResponse>**](PayoutOrderResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/SubscriptionEventsResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SubscriptionEventsResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<EventResponse>**](EventResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/WebhookLog.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # WebhookLog 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **failedAttempts** | **Integer** | | [optional] 10 | **id** | **String** | | [optional] 11 | **lastAttemptedAt** | **Integer** | | [optional] 12 | **lastHttpResponseStatus** | **Integer** | | [optional] 13 | **_object** | **String** | | [optional] 14 | **responseData** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 15 | **url** | [**URI**](URI.md) | | [optional] 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/GetTransfersResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetTransfersResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<TransfersResponse>**](TransfersResponse.md) | Transfers | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/LogsResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # LogsResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | True, if there are more pages. | [optional] [readonly] 10 | **_object** | **String** | The object type | [optional] [readonly] 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<LogsResponseData>**](LogsResponseData.md) | set to page results. | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/TokenResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TokenResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **checkout** | [**TokenResponseCheckout**](TokenResponseCheckout.md) | | [optional] 10 | **id** | **String** | Unique identifier for the token generated by Conekta. | 11 | **livemode** | **Boolean** | Indicates whether the token is in live mode or test mode. | 12 | **_object** | **String** | Indicates the type of object, in this case token | 13 | **used** | **Boolean** | Indicates if the token has been used | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/CustomerShippingContactsResponseAddress.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerShippingContactsResponseAddress 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **_object** | **String** | | [optional] 10 | **street1** | **String** | | [optional] 11 | **street2** | **String** | | [optional] 12 | **postalCode** | **String** | | [optional] 13 | **city** | **String** | | [optional] 14 | **state** | **String** | | [optional] 15 | **country** | **String** | | [optional] 16 | **residential** | **Boolean** | | [optional] 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/DiscountLinesResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DiscountLinesResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | The amount to be deducted from the total sum of all payments, in cents. | 10 | **code** | **String** | Discount code. | 11 | **type** | **String** | It can be 'loyalty', 'campaign', 'coupon' o 'sign' | 12 | **id** | **String** | The discount line id | 13 | **_object** | **String** | The object name | 14 | **parentId** | **String** | The order id | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/ChargeResponseRefunds.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ChargeResponseRefunds 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<ChargeResponseRefundsData>**](ChargeResponseRefundsData.md) | refunds | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/GetOrderDiscountLinesResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetOrderDiscountLinesResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<DiscountLinesResponse>**](DiscountLinesResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/GetTransactionsResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetTransactionsResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<TransactionResponse>**](TransactionResponse.md) | Transactions | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/DiscountLinesDataResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DiscountLinesDataResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | The amount to be deducted from the total sum of all payments, in cents. | 10 | **code** | **String** | Discount code. | 11 | **type** | **String** | It can be 'loyalty', 'campaign', 'coupon' o 'sign' | 12 | **id** | **String** | The discount line id | 13 | **_object** | **String** | The object name | 14 | **parentId** | **String** | The order id | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /examples/Token.java: -------------------------------------------------------------------------------- 1 | package examples; 2 | import io.conekta.model.Token; 3 | import io.conekta.model.TokenCard; 4 | import io.conekta.model.TokenResponse; 5 | import io.conekta.TokensApi; 6 | 7 | public class Token { 8 | TokensApi instance = new TokensApi(); 9 | instance.setApiKey( "key_xxx" ); 10 | 11 | Token token = new Token(); 12 | TokenCard card = new TokenCard(); 13 | card.setCvc("123"); 14 | card.setExpYear("29"); 15 | card.setName("fran carrero"); 16 | card.setNumber("5475040095304607"); 17 | token.setCard(card); 18 | 19 | TokenResponse response = instance.createToken(token, "es"); 20 | } -------------------------------------------------------------------------------- /docs/CustomerPaymentMethodsResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerPaymentMethodsResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<CustomerPaymentMethodsData>**](CustomerPaymentMethodsData.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/PaymentMethodCashResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethodCashResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | | 10 | **id** | **String** | | 11 | **_object** | **String** | | 12 | **createdAt** | **Long** | | 13 | **parentId** | **String** | | [optional] 14 | **reference** | **String** | | [optional] 15 | **barcode** | **String** | | [optional] 16 | **barcodeUrl** | **String** | | [optional] 17 | **expiresAt** | **Long** | | [optional] 18 | **provider** | **String** | | [optional] 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/GetPaymentMethodResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetPaymentMethodResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **hasMore** | **Boolean** | Indicates if there are more pages to be requested | 10 | **_object** | **String** | Object type, in this case is list | 11 | **nextPageUrl** | **String** | URL of the next page. | [optional] 12 | **previousPageUrl** | **String** | Url of the previous page. | [optional] 13 | **data** | [**List<GetCustomerPaymentMethodDataResponse>**](GetCustomerPaymentMethodDataResponse.md) | | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/CustomerAddress.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerAddress 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **street1** | **String** | | 10 | **street2** | **String** | | [optional] 11 | **postalCode** | **String** | | 12 | **city** | **String** | | 13 | **state** | **String** | | [optional] 14 | **country** | **String** | this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | [optional] 15 | **residential** | **Boolean** | | [optional] 16 | **externalNumber** | **String** | | [optional] 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | 16 | # Gradle files 17 | .gradle/ 18 | build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Android Studio Navigation editor temp files 30 | .navigation/ 31 | 32 | # Android Studio captures folder 33 | captures/ 34 | 35 | # Intellij 36 | *.iml 37 | 38 | #Keystore files 39 | *.jks 40 | .idea/ 41 | local.properties 42 | -------------------------------------------------------------------------------- /docs/EventResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # EventResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **createdAt** | **Long** | | [optional] 10 | **data** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 11 | **id** | **String** | | [optional] 12 | **livemode** | **Boolean** | | [optional] 13 | **_object** | **String** | | [optional] 14 | **type** | **String** | | [optional] 15 | **webhookLogs** | [**List<WebhookLog>**](WebhookLog.md) | | [optional] 16 | **webhookStatus** | **String** | | [optional] 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/WebhookUpdateRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # WebhookUpdateRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **url** | **String** | Here you must place the URL of your Webhook remember that you must program what you will do with the events received. Also do not forget to handle the HTTPS protocol for greater security. | 10 | **synchronous** | **Boolean** | It is a value that allows to decide if the events will be synchronous or asynchronous. We recommend asynchronous = false | [optional] 11 | **events** | **List<String>** | | [optional] 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/CustomerShippingContactsAddress.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerShippingContactsAddress 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **street1** | **String** | | [optional] 10 | **street2** | **String** | | [optional] 11 | **postalCode** | **String** | | [optional] 12 | **city** | **String** | | [optional] 13 | **state** | **String** | | [optional] 14 | **country** | **String** | this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | [optional] 15 | **residential** | **Boolean** | | [optional] 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/FiscalEntityAddress.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # FiscalEntityAddress 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **street1** | **String** | Street name and number | 10 | **street2** | **String** | Street name and number | [optional] 11 | **postalCode** | **String** | Postal code | 12 | **city** | **String** | City | 13 | **state** | **String** | State | [optional] 14 | **country** | **String** | this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | 15 | **externalNumber** | **String** | External number | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/RiskRulesData.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # RiskRulesData 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **id** | **String** | rule id | [optional] 10 | **field** | **String** | field to be used for the rule | [optional] 11 | **createdAt** | **String** | rule creation date | [optional] 12 | **value** | **String** | value to be used for the rule | [optional] 13 | **isGlobal** | **Boolean** | if the rule is global | [optional] 14 | **isTest** | **Boolean** | if the rule is test | [optional] 15 | **description** | **String** | description of the rule | [optional] 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/UpdateProduct.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # UpdateProduct 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **antifraudInfo** | **Map<String, Object>** | | [optional] 10 | **description** | **String** | | [optional] 11 | **sku** | **String** | | [optional] 12 | **name** | **String** | | [optional] 13 | **unitPrice** | **Long** | | [optional] 14 | **quantity** | **Integer** | | [optional] 15 | **tags** | **List<String>** | | [optional] 16 | **brand** | **String** | | [optional] 17 | **metadata** | **Map<String, String>** | | [optional] 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/ShippingRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ShippingRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | Shipping amount in cents | 10 | **carrier** | **String** | Carrier name for the shipment | [optional] 11 | **trackingNumber** | **String** | Tracking number can be used to track the shipment | [optional] 12 | **method** | **String** | Method of shipment | [optional] 13 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | Hash where the user can send additional information for each 'shipping'. | [optional] 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/PaymentMethodCardRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethodCardRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | Type of payment method | 10 | **cvc** | **String** | Card security code | 11 | **expMonth** | **String** | Card expiration month | 12 | **expYear** | **String** | Card expiration year | 13 | **name** | **String** | Cardholder name | 14 | **number** | **String** | Card number | 15 | **customerIpAddress** | **String** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional] 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/PlanUpdateRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PlanUpdateRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Integer** | The amount in cents that will be charged on the interval specified. | [optional] 10 | **currency** | **String** | ISO 4217 for currencies, for the Mexican peso it is MXN/USD | [optional] 11 | **expiryCount** | **Integer** | Number of repetitions of the frequency NUMBER OF CHARGES TO BE MADE, considering the interval and frequency, this evolves over time, but is subject to the expiration count. | [optional] 12 | **name** | **String** | The name of the plan. | [optional] 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/WebhookResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # WebhookResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **deleted** | **Boolean** | | [optional] 10 | **developmentEnabled** | **Boolean** | | [optional] 11 | **id** | **String** | | [optional] 12 | **livemode** | **Boolean** | | [optional] 13 | **_object** | **String** | | [optional] 14 | **productionEnabled** | **Boolean** | | [optional] 15 | **status** | **String** | | [optional] 16 | **subscribedEvents** | **List<String>** | | [optional] 17 | **synchronous** | **Boolean** | | [optional] 18 | **url** | **String** | | [optional] 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/OrderFiscalEntityRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderFiscalEntityRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **address** | [**FiscalEntityAddress**](FiscalEntityAddress.md) | | 10 | **email** | **String** | Email of the fiscal entity | [optional] 11 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | Metadata associated with the fiscal entity | [optional] 12 | **name** | **String** | Name of the fiscal entity | [optional] 13 | **phone** | **String** | Phone of the fiscal entity | [optional] 14 | **taxId** | **String** | Tax ID of the fiscal entity | [optional] 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/PlanResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PlanResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Integer** | | [optional] 10 | **createdAt** | **Long** | | [optional] 11 | **currency** | **String** | | [optional] 12 | **expiryCount** | **Integer** | | [optional] 13 | **frequency** | **Integer** | | [optional] 14 | **id** | **String** | | [optional] 15 | **interval** | **String** | | [optional] 16 | **livemode** | **Boolean** | | [optional] 17 | **name** | **String** | | [optional] 18 | **_object** | **String** | | [optional] 19 | **trialPeriodDays** | **Integer** | | [optional] 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/OrderUpdateFiscalEntityRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderUpdateFiscalEntityRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **address** | [**FiscalEntityAddress**](FiscalEntityAddress.md) | | 10 | **email** | **String** | Email of the fiscal entity | [optional] 11 | **name** | **String** | Name of the fiscal entity | [optional] 12 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | Metadata associated with the fiscal entity | [optional] 13 | **phone** | **String** | Phone of the fiscal entity | [optional] 14 | **taxId** | **String** | Tax ID of the fiscal entity | [optional] 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/OrderFiscalEntityAddressResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderFiscalEntityAddressResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **street1** | **String** | Street name and number | 10 | **street2** | **String** | Street name and number | [optional] 11 | **postalCode** | **String** | Postal code | 12 | **city** | **String** | City | 13 | **state** | **String** | State | [optional] 14 | **country** | **String** | this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | 15 | **externalNumber** | **String** | External number | 16 | **_object** | **String** | | [optional] 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/CustomerUpdateShippingContacts.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerUpdateShippingContacts 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **phone** | **String** | Phone contact | [optional] 10 | **receiver** | **String** | Name of the person who will receive the order | [optional] 11 | **betweenStreets** | **String** | The street names between which the order will be delivered. | [optional] 12 | **address** | [**CustomerShippingContactsAddress**](CustomerShippingContactsAddress.md) | | [optional] 13 | **parentId** | **String** | | [optional] 14 | **_default** | **Boolean** | | [optional] 15 | **deleted** | **Boolean** | | [optional] 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/WebhookKeyCreateResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # WebhookKeyCreateResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **active** | **Boolean** | Indicates if the webhook key is active | [optional] 10 | **createdAt** | **Long** | Unix timestamp in seconds with the creation date of the webhook key | [optional] 11 | **id** | **String** | Unique identifier of the webhook key | [optional] 12 | **livemode** | **Boolean** | Indicates if the webhook key is in live mode | [optional] 13 | **_object** | **String** | Object name, value is webhook_key | [optional] 14 | **publicKey** | **String** | Public key to be used in the webhook | [optional] 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/CustomerFiscalEntitiesDataResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerFiscalEntitiesDataResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **address** | [**CustomerAddress**](CustomerAddress.md) | | 10 | **taxId** | **String** | | [optional] 11 | **email** | **String** | | [optional] 12 | **phone** | **String** | | [optional] 13 | **metadata** | **Map<String, Object>** | | [optional] 14 | **companyName** | **String** | | [optional] 15 | **id** | **String** | | 16 | **_object** | **String** | | 17 | **createdAt** | **Long** | | 18 | **parentId** | **String** | | [optional] 19 | **_default** | **Boolean** | | [optional] 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/WebhookKeyDeleteResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # WebhookKeyDeleteResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **active** | **Boolean** | Indicates if the webhook key is active | [optional] 10 | **createdAt** | **Long** | Unix timestamp in seconds with the creation date of the webhook key | [optional] 11 | **deleted** | **Boolean** | Indicates if the webhook key is deleted | [optional] 12 | **id** | **String** | Unique identifier of the webhook key | [optional] 13 | **livemode** | **Boolean** | Indicates if the webhook key is in live mode | [optional] 14 | **_object** | **String** | Object name, value is webhook_key | [optional] 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/CreateCustomerFiscalEntitiesResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CreateCustomerFiscalEntitiesResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **address** | [**CustomerAddress**](CustomerAddress.md) | | 10 | **taxId** | **String** | | [optional] 11 | **email** | **String** | | [optional] 12 | **phone** | **String** | | [optional] 13 | **metadata** | **Map<String, Object>** | | [optional] 14 | **companyName** | **String** | | [optional] 15 | **id** | **String** | | 16 | **_object** | **String** | | 17 | **createdAt** | **Long** | | 18 | **parentId** | **String** | | [optional] 19 | **_default** | **Boolean** | | [optional] 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/PayoutOrderPayoutsItem.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PayoutOrderPayoutsItem 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Integer** | The amount of the payout. | 10 | **currency** | **String** | The currency in which the payout is made. | 11 | **expiresAt** | **Long** | The expiration date of the payout. | [optional] 12 | **id** | **String** | The id of the payout. | 13 | **livemode** | **Boolean** | The live mode of the payout. | 14 | **_object** | **String** | The object of the payout. | 15 | **payoutOrderId** | **String** | The id of the payout order. | [optional] 16 | **status** | **String** | The status of the payout. | [optional] 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/UpdateCustomerFiscalEntitiesResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # UpdateCustomerFiscalEntitiesResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **address** | [**CustomerAddress**](CustomerAddress.md) | | 10 | **taxId** | **String** | | [optional] 11 | **email** | **String** | | [optional] 12 | **phone** | **String** | | [optional] 13 | **metadata** | **Map<String, Object>** | | [optional] 14 | **companyName** | **String** | | [optional] 15 | **id** | **String** | | 16 | **_object** | **String** | | 17 | **createdAt** | **Long** | | 18 | **parentId** | **String** | | [optional] 19 | **_default** | **Boolean** | | [optional] 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/HttpPatch.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Conekta API 3 | * Conekta sdk 4 | * 5 | * The version of the OpenAPI document: 2.1.0 6 | * Contact: engineering@conekta.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | package io.conekta; 14 | 15 | import org.apache.http.client.methods.*; 16 | 17 | public class HttpPatch extends HttpPost { 18 | public static final String METHOD_PATCH = "PATCH"; 19 | 20 | public HttpPatch(final String url) { 21 | super(url); 22 | } 23 | 24 | @Override 25 | public String getMethod() { 26 | return METHOD_PATCH; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /docs/PayoutOrder.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PayoutOrder 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **allowedPayoutMethods** | **List<String>** | The payout methods that are allowed for the payout order. | 10 | **amount** | **Integer** | The amount of the payout order. | 11 | **currency** | **String** | The currency in which the payout order is made. | 12 | **customerInfo** | [**CustomerInfoJustCustomerId**](CustomerInfoJustCustomerId.md) | | 13 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | The metadata of the payout order. | [optional] 14 | **payout** | [**Payout**](Payout.md) | | 15 | **reason** | **String** | The reason for the payout order. | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/TokenCard.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TokenCard 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **cvc** | **String** | It is a value that allows identifying the security code of the card. | 10 | **deviceFingerprint** | **String** | It is a value that allows identifying the device fingerprint. | [optional] 11 | **expMonth** | **String** | It is a value that allows identifying the expiration month of the card. | 12 | **expYear** | **String** | It is a value that allows identifying the expiration year of the card. | 13 | **name** | **String** | It is a value that allows identifying the name of the cardholder. | 14 | **number** | **String** | It is a value that allows identifying the number of the card. | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/ShippingOrderResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ShippingOrderResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | Shipping amount in cents | 10 | **carrier** | **String** | Carrier name for the shipment | [optional] 11 | **trackingNumber** | **String** | Tracking number can be used to track the shipment | [optional] 12 | **method** | **String** | Method of shipment | [optional] 13 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | Hash where the user can send additional information for each 'shipping'. | [optional] 14 | **id** | **String** | | [optional] 15 | **_object** | **String** | | [optional] 16 | **parentId** | **String** | | [optional] 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/TransferMethodResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TransferMethodResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **accountHolder** | **String** | Name of the account holder. | [optional] 10 | **accountNumber** | **String** | Account number of the bank account. | [optional] 11 | **bank** | **String** | Name of the bank. | [optional] 12 | **createdAt** | **Long** | Date and time of creation of the transfer. | [optional] 13 | **id** | **String** | Unique identifier of the transfer. | [optional] 14 | **_object** | **String** | Object name, which is bank_transfer_payout_method. | [optional] 15 | **payeeId** | **String** | Unique identifier of the payee. | [optional] 16 | **type** | **String** | Type of the payee. | [optional] 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/TransferDestinationResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TransferDestinationResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **accountHolder** | **String** | Name of the account holder. | [optional] 10 | **accountNumber** | **String** | Account number of the bank account. | [optional] 11 | **bank** | **String** | Name of the bank. | [optional] 12 | **createdAt** | **Long** | Date and time of creation of the transfer. | [optional] 13 | **id** | **String** | Unique identifier of the transfer. | [optional] 14 | **_object** | **String** | Object name, which is bank_transfer_payout_method. | [optional] 15 | **payeeId** | **String** | Unique identifier of the payee. | [optional] 16 | **type** | **String** | Type of the payee. | [optional] 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/WebhookKeyResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # WebhookKeyResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **id** | **String** | Unique identifier of the webhook key | [optional] 10 | **active** | **Boolean** | Indicates if the webhook key is active | [optional] 11 | **createdAt** | **Long** | Unix timestamp in seconds with the creation date of the webhook key | [optional] 12 | **deactivatedAt** | **Long** | Unix timestamp in seconds with the deactivation date of the webhook key | [optional] 13 | **publicKey** | **String** | Public key to be used in the webhook | [optional] 14 | **livemode** | **Boolean** | Indicates if the webhook key is in live mode | [optional] 15 | **_object** | **String** | Object name, value is webhook_key | [optional] 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/CompanyFiscalInfoAddressResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CompanyFiscalInfoAddressResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **_object** | [**_objectEnum**](#_objectEnum) | The resource's type | [optional] 10 | **street1** | **String** | Street Address | [optional] 11 | **street2** | **String** | Colonia | [optional] 12 | **city** | **String** | City | [optional] 13 | **state** | **String** | State | [optional] 14 | **country** | **String** | Country | [optional] 15 | **postalCode** | **String** | Postal code | [optional] 16 | **externalNumber** | **String** | Street number | [optional] 17 | **internalNumber** | **String** | Unit / apartment number | [optional] 18 | 19 | 20 | ## Enum: _objectEnum 21 | 22 | Name | Value 23 | ---- | ----- 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /docs/CustomerShippingContacts.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerShippingContacts 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **phone** | **String** | Phone contact | [optional] 10 | **receiver** | **String** | Name of the person who will receive the order | [optional] 11 | **betweenStreets** | **String** | The street names between which the order will be delivered. | [optional] 12 | **address** | [**CustomerShippingContactsAddress**](CustomerShippingContactsAddress.md) | | 13 | **parentId** | **String** | | [optional] 14 | **_default** | **Boolean** | | [optional] 15 | **deleted** | **Boolean** | | [optional] 16 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | Metadata associated with the shipping contact | [optional] 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/CompanyPayoutDestinationResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CompanyPayoutDestinationResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **_object** | [**_objectEnum**](#_objectEnum) | The resource's type | [optional] 10 | **currency** | **String** | currency of the receiving account | [optional] 11 | **accountHolderName** | **String** | Name of the account holder | [optional] 12 | **bank** | **String** | Name of the bank | [optional] 13 | **type** | [**TypeEnum**](#TypeEnum) | Type of the payout destination | [optional] 14 | **accountNumber** | **String** | Account number of the receiving account | [optional] 15 | 16 | 17 | ## Enum: _objectEnum 18 | 19 | Name | Value 20 | ---- | ----- 21 | 22 | 23 | ## Enum: TypeEnum 24 | 25 | Name | Value 26 | ---- | ----- 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /docs/PaymentMethodCardResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethodCardResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | | 10 | **id** | **String** | | 11 | **_object** | **String** | | 12 | **createdAt** | **Long** | | 13 | **parentId** | **String** | | [optional] 14 | **last4** | **String** | | [optional] 15 | **bin** | **String** | | [optional] 16 | **cardType** | **String** | | [optional] 17 | **expMonth** | **String** | | [optional] 18 | **expYear** | **String** | | [optional] 19 | **brand** | **String** | | [optional] 20 | **name** | **String** | | [optional] 21 | **_default** | **Boolean** | | [optional] 22 | **visibleOnCheckout** | **Boolean** | | [optional] 23 | **paymentSourceStatus** | **String** | | [optional] 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /docs/PaymentMethodCash.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethodCash 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | | [optional] 10 | **_object** | **String** | | 11 | **agreement** | **String** | Agreement ID | [optional] 12 | **authCode** | **Integer** | | [optional] 13 | **cashierId** | **String** | | [optional] 14 | **reference** | **String** | | [optional] 15 | **barcodeUrl** | **String** | | [optional] 16 | **expiresAt** | **Long** | | [optional] 17 | **productType** | **String** | Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. | [optional] 18 | **serviceName** | **String** | | [optional] 19 | **store** | **String** | | [optional] 20 | **storeName** | **String** | | [optional] 21 | **customerIpAddress** | **String** | | [optional] 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /docs/CompanyFiscalInfoResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CompanyFiscalInfoResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **_object** | [**_objectEnum**](#_objectEnum) | The resource's type | [optional] 10 | **taxId** | **String** | Tax ID of the company | [optional] 11 | **legalEntityName** | **String** | Legal name of the company | [optional] 12 | **businessType** | **String** | Business type of the company | [optional] 13 | **phone** | **String** | Phone number of the company | [optional] 14 | **physicalPersonBusinessType** | **String** | Business type if 'persona_fisica' | [optional] 15 | **address** | [**CompanyFiscalInfoAddressResponse**](CompanyFiscalInfoAddressResponse.md) | | [optional] 16 | 17 | 18 | ## Enum: _objectEnum 19 | 20 | Name | Value 21 | ---- | ----- 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /docs/OrderResponseShippingContact.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderResponseShippingContact 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **phone** | **String** | | [optional] 10 | **receiver** | **String** | | [optional] 11 | **betweenStreets** | **String** | | [optional] 12 | **address** | [**CustomerShippingContactsResponseAddress**](CustomerShippingContactsResponseAddress.md) | | [optional] 13 | **parentId** | **String** | | [optional] 14 | **_default** | **Boolean** | | [optional] 15 | **id** | **String** | | [optional] 16 | **createdAt** | **Long** | | [optional] 17 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | Metadata associated with the shipping contact | [optional] 18 | **_object** | **String** | | [optional] 19 | **deleted** | **Boolean** | | [optional] 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/CustomerShippingContactsResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerShippingContactsResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **phone** | **String** | | [optional] 10 | **receiver** | **String** | | [optional] 11 | **betweenStreets** | **String** | | [optional] 12 | **address** | [**CustomerShippingContactsResponseAddress**](CustomerShippingContactsResponseAddress.md) | | [optional] 13 | **parentId** | **String** | | [optional] 14 | **_default** | **Boolean** | | [optional] 15 | **id** | **String** | | [optional] 16 | **createdAt** | **Long** | | [optional] 17 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | Metadata associated with the shipping contact | [optional] 18 | **_object** | **String** | | [optional] 19 | **deleted** | **Boolean** | | [optional] 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/OrderFiscalEntityResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderFiscalEntityResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **address** | [**OrderFiscalEntityAddressResponse**](OrderFiscalEntityAddressResponse.md) | | 10 | **email** | **String** | Email of the fiscal entity | [optional] 11 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | Metadata associated with the fiscal entity | [optional] 12 | **name** | **String** | Name of the fiscal entity | [optional] 13 | **taxId** | **String** | Tax ID of the fiscal entity | [optional] 14 | **id** | **String** | ID of the fiscal entity | 15 | **createdAt** | **Long** | The time at which the object was created in seconds since the Unix epoch | 16 | **_object** | **String** | | 17 | **phone** | **String** | Phone of the fiscal entity | [optional] 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/CheckoutOrderTemplate.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CheckoutOrderTemplate 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **currency** | **String** | It is the currency in which the order will be created. It must be a valid ISO 4217 currency code. | 10 | **customerInfo** | [**CheckoutOrderTemplateCustomerInfo**](CheckoutOrderTemplateCustomerInfo.md) | | [optional] 11 | **lineItems** | [**List<Product>**](Product.md) | They are the products to buy. Each contains the \"unit price\" and \"quantity\" parameters that are used to calculate the total amount of the order. | 12 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | It is a set of key-value pairs that you can attach to the order. It can be used to store additional information about the order in a structured format. | [optional] 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/DeleteApiKeysResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # DeleteApiKeysResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **active** | **Boolean** | Indicates if the api key is active | [optional] 10 | **createdAt** | **Long** | Unix timestamp in seconds of when the api key was created | [optional] 11 | **description** | **String** | A name or brief explanation of what this api key is used for | [optional] 12 | **livemode** | **Boolean** | Indicates if the api key is in production | [optional] 13 | **prefix** | **String** | The first few characters of the authentication_token | [optional] 14 | **id** | **String** | Unique identifier of the api key | [optional] 15 | **_object** | **String** | Object name, value is 'api_key' | [optional] 16 | **deleted** | **Boolean** | | [optional] 17 | **role** | **String** | Indicates if the api key is private or public | [optional] 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/CustomerShippingContactsDataResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerShippingContactsDataResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **phone** | **String** | Phone contact | [optional] 10 | **receiver** | **String** | Name of the person who will receive the order | [optional] 11 | **betweenStreets** | **String** | The street names between which the order will be delivered. | [optional] 12 | **address** | [**CustomerShippingContactsAddress**](CustomerShippingContactsAddress.md) | | 13 | **parentId** | **String** | | [optional] 14 | **_default** | **Boolean** | | [optional] 15 | **deleted** | **Boolean** | | [optional] 16 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | Metadata associated with the shipping contact | [optional] 17 | **id** | **String** | | 18 | **_object** | **String** | | 19 | **createdAt** | **Long** | | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | pull_request: 7 | branches: [ master ] 8 | jobs: 9 | build: 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - name: Checkout code 14 | uses: actions/checkout@v2 15 | 16 | - name: Set up JDK 17 | uses: actions/setup-java@v2 18 | with: 19 | java-version: '11' 20 | distribution: 'temurin' 21 | - name: Run Mockoon CLI 22 | uses: mockoon/cli-action@v2 23 | with: 24 | version: 'latest' 25 | data-file: 'https://raw.githubusercontent.com/conekta/openapi/main/mocks/conekta_api.json' 26 | port: 3000 27 | - name: Build 28 | run: | 29 | make build 30 | - name: test 31 | run: | 32 | make test 33 | - name: Archive artifacts 34 | uses: actions/upload-artifact@v4 35 | with: 36 | name: app 37 | path: app/build/outputs/aar/conektasdk-debug.aar 38 | -------------------------------------------------------------------------------- /docs/ApiKeyResponseOnDelete.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ApiKeyResponseOnDelete 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **active** | **Boolean** | Indicates if the api key is active | [optional] 10 | **createdAt** | **Long** | Unix timestamp in seconds of when the api key was created | [optional] 11 | **description** | **String** | A name or brief explanation of what this api key is used for | [optional] 12 | **livemode** | **Boolean** | Indicates if the api key is in production | [optional] 13 | **prefix** | **String** | The first few characters of the authentication_token | [optional] 14 | **id** | **String** | Unique identifier of the api key | [optional] 15 | **_object** | **String** | Object name, value is 'api_key' | [optional] 16 | **deleted** | **Boolean** | Indicates if the api key was deleted | [optional] 17 | **role** | **String** | Indicates if the api key is private or public | [optional] 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/PaymentMethodGeneralRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethodGeneralRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **expiresAt** | **Long** | Method expiration date as unix timestamp | [optional] 10 | **monthlyInstallments** | **Integer** | How many months without interest to apply, it can be 3, 6, 9, 12 or 18 | [optional] 11 | **type** | **String** | Type of payment method | 12 | **tokenId** | **String** | | [optional] 13 | **paymentSourceId** | **String** | | [optional] 14 | **cvc** | **String** | Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants | [optional] 15 | **contractId** | **String** | Optional id sent to indicate the bank contract for recurrent card charges. | [optional] 16 | **customerIpAddress** | **String** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional] 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/test/java/io/conekta/CustomerApiTest.java: -------------------------------------------------------------------------------- 1 | package io.conekta; 2 | 3 | import io.conekta.model.Customer; 4 | import io.conekta.model.CustomerResponse; 5 | import org.junit.Before; 6 | import org.junit.Test; 7 | 8 | import static org.junit.Assert.assertEquals; 9 | 10 | public class CustomerApiTest { 11 | CustomersApi instance = new CustomersApi(); 12 | String apiKey = "key_xxx"; 13 | @Before 14 | public void config (){ 15 | instance.setBasePath(BaseTest.getBasePath()); 16 | instance.setApiKey( apiKey ); 17 | } 18 | 19 | @Test 20 | public void CreateCustomerTest() throws ApiException { 21 | Customer customer = new Customer(); 22 | customer.setName("test dot"); 23 | customer.setEmail("test@conekta.com"); 24 | customer.setPhone("+573143159054"); 25 | 26 | CustomerResponse response= instance.createCustomer(customer, "es", null); 27 | 28 | assertEquals("cus_2tXyF9BwPG14UMkkg", response.getId()); 29 | 30 | } 31 | } -------------------------------------------------------------------------------- /docs/CompanyResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CompanyResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **id** | **String** | The child company's unique identifier | [optional] 10 | **createdAt** | **Long** | The resource's creation date (unix timestamp) | [optional] 11 | **name** | **String** | The child company's name | [optional] 12 | **_object** | [**_objectEnum**](#_objectEnum) | The resource's type | [optional] 13 | **parentCompanyId** | **String** | Id of the parent company | [optional] 14 | **useParentFiscalData** | **Boolean** | Whether the parent company's fiscal data is to be used for liquidation and tax purposes | [optional] 15 | **payoutDestination** | [**CompanyPayoutDestinationResponse**](CompanyPayoutDestinationResponse.md) | | [optional] 16 | **fiscalInfo** | [**CompanyFiscalInfoResponse**](CompanyFiscalInfoResponse.md) | | [optional] 17 | 18 | 19 | ## Enum: _objectEnum 20 | 21 | Name | Value 22 | ---- | ----- 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/CustomerPaymentMethodsData.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerPaymentMethodsData 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | | 10 | **id** | **String** | | 11 | **_object** | **String** | | 12 | **createdAt** | **Long** | | 13 | **parentId** | **String** | | [optional] 14 | **reference** | **String** | | [optional] 15 | **barcode** | **String** | | [optional] 16 | **barcodeUrl** | **String** | | [optional] 17 | **expiresAt** | **String** | | [optional] 18 | **provider** | **String** | | [optional] 19 | **last4** | **String** | | [optional] 20 | **bin** | **String** | | [optional] 21 | **cardType** | **String** | | [optional] 22 | **expMonth** | **String** | | [optional] 23 | **expYear** | **String** | | [optional] 24 | **brand** | **String** | | [optional] 25 | **name** | **String** | | [optional] 26 | **_default** | **Boolean** | | [optional] 27 | **visibleOnCheckout** | **Boolean** | | [optional] 28 | **paymentSourceStatus** | **String** | | [optional] 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /docs/Product.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Product 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **antifraudInfo** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 10 | **brand** | **String** | The brand of the item. | [optional] 11 | **description** | **String** | Short description of the item | [optional] 12 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional] 13 | **name** | **String** | The name of the item. It will be displayed in the order. | 14 | **quantity** | **Integer** | The quantity of the item in the order. | 15 | **sku** | **String** | The stock keeping unit for the item. It is used to identify the item in the order. | [optional] 16 | **tags** | **List<String>** | List of tags for the item. It is used to identify the item in the order. | [optional] 17 | **unitPrice** | **Integer** | The price of the item in cents. | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/CreateCustomerPaymentMethodsResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CreateCustomerPaymentMethodsResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | | 10 | **id** | **String** | | 11 | **_object** | **String** | | 12 | **createdAt** | **Long** | | 13 | **parentId** | **String** | | [optional] 14 | **reference** | **String** | | [optional] 15 | **barcode** | **String** | | [optional] 16 | **barcodeUrl** | **String** | | [optional] 17 | **expiresAt** | **String** | | [optional] 18 | **provider** | **String** | | [optional] 19 | **last4** | **String** | | [optional] 20 | **bin** | **String** | | [optional] 21 | **cardType** | **String** | | [optional] 22 | **expMonth** | **String** | | [optional] 23 | **expYear** | **String** | | [optional] 24 | **brand** | **String** | | [optional] 25 | **name** | **String** | | [optional] 26 | **_default** | **Boolean** | | [optional] 27 | **visibleOnCheckout** | **Boolean** | | [optional] 28 | **paymentSourceStatus** | **String** | | [optional] 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /docs/GetCustomerPaymentMethodDataResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # GetCustomerPaymentMethodDataResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | | 10 | **id** | **String** | | 11 | **_object** | **String** | | 12 | **createdAt** | **Long** | | 13 | **parentId** | **String** | | [optional] 14 | **reference** | **String** | | [optional] 15 | **barcode** | **String** | | [optional] 16 | **barcodeUrl** | **String** | | [optional] 17 | **expiresAt** | **String** | | [optional] 18 | **provider** | **String** | | [optional] 19 | **last4** | **String** | | [optional] 20 | **bin** | **String** | | [optional] 21 | **cardType** | **String** | | [optional] 22 | **expMonth** | **String** | | [optional] 23 | **expYear** | **String** | | [optional] 24 | **brand** | **String** | | [optional] 25 | **name** | **String** | | [optional] 26 | **_default** | **Boolean** | | [optional] 27 | **visibleOnCheckout** | **Boolean** | | [optional] 28 | **paymentSourceStatus** | **String** | | [optional] 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /docs/UpdateCustomerPaymentMethodsResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # UpdateCustomerPaymentMethodsResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | | 10 | **id** | **String** | | 11 | **_object** | **String** | | 12 | **createdAt** | **Long** | | 13 | **parentId** | **String** | | [optional] 14 | **reference** | **String** | | [optional] 15 | **barcode** | **String** | | [optional] 16 | **barcodeUrl** | **String** | | [optional] 17 | **expiresAt** | **String** | | [optional] 18 | **provider** | **String** | | [optional] 19 | **last4** | **String** | | [optional] 20 | **bin** | **String** | | [optional] 21 | **cardType** | **String** | | [optional] 22 | **expMonth** | **String** | | [optional] 23 | **expYear** | **String** | | [optional] 24 | **brand** | **String** | | [optional] 25 | **name** | **String** | | [optional] 26 | **_default** | **Boolean** | | [optional] 27 | **visibleOnCheckout** | **Boolean** | | [optional] 28 | **paymentSourceStatus** | **String** | | [optional] 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /docs/TransfersResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TransfersResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | Amount in cents of the transfer. | [optional] 10 | **createdAt** | **Long** | Date and time of creation of the transfer. | [optional] 11 | **currency** | **String** | The currency of the transfer. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) | [optional] 12 | **id** | **String** | Unique identifier of the transfer. | [optional] 13 | **livemode** | **Boolean** | Indicates whether the transfer was created in live mode or test mode. | [optional] 14 | **method** | [**TransferMethodResponse**](TransferMethodResponse.md) | | [optional] 15 | **_object** | **String** | Object name, which is transfer. | [optional] 16 | **statementDescription** | **String** | Description of the transfer. | [optional] 17 | **statementReference** | **String** | Reference number of the transfer. | [optional] 18 | **status** | **String** | Code indicating transfer status. | [optional] 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/TransactionResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TransactionResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | The amount of the transaction. | 10 | **charge** | **String** | Randomly assigned unique order identifier associated with the charge. | 11 | **createdAt** | **Long** | Date and time of creation of the transaction in Unix format. | 12 | **currency** | **String** | The currency of the transaction. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) | 13 | **fee** | **Long** | The amount to be deducted for taxes and commissions. | 14 | **id** | **String** | Unique identifier of the transaction. | 15 | **livemode** | **Boolean** | Indicates whether the transaction was created in live mode or test mode. | 16 | **net** | **Long** | The net amount after deducting commissions and taxes. | 17 | **_object** | **String** | Object name, which is transaction. | 18 | **status** | **String** | Code indicating transaction status. | 19 | **type** | **String** | Transaction Type | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | pom.xml 25 | .gitignore -------------------------------------------------------------------------------- /src/main/java/io/conekta/ApiException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Conekta API 3 | * Conekta sdk 4 | * 5 | * The version of the OpenAPI document: 2.1.0 6 | * Contact: engineering@conekta.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | package io.conekta; 14 | 15 | public class ApiException extends Exception { 16 | int code = 0; 17 | String message = null; 18 | 19 | public ApiException() {} 20 | 21 | public ApiException(int code, String message) { 22 | this.code = code; 23 | this.message = message; 24 | } 25 | 26 | public int getCode() { 27 | return code; 28 | } 29 | 30 | public void setCode(int code) { 31 | this.code = code; 32 | } 33 | 34 | public String getMessage() { 35 | return message; 36 | } 37 | 38 | public void setMessage(String message) { 39 | this.message = message; 40 | } 41 | 42 | @Override 43 | public String toString() { 44 | return "ApiException{" + 45 | "code=" + code + 46 | ", message=" + message + 47 | '}'; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /docs/TransferResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TransferResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Long** | Amount in cents of the transfer. | [optional] 10 | **createdAt** | **Long** | Date and time of creation of the transfer in Unix format. | [optional] 11 | **currency** | **String** | The currency of the transfer. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) | [optional] 12 | **id** | **String** | Unique identifier of the transfer. | [optional] 13 | **livemode** | **Boolean** | Indicates whether the transfer was created in live mode or test mode. | [optional] 14 | **destination** | [**TransferDestinationResponse**](TransferDestinationResponse.md) | | [optional] 15 | **_object** | **String** | Object name, which is transfer. | [optional] 16 | **statementDescription** | **String** | Description of the transfer. | [optional] 17 | **statementReference** | **String** | Reference number of the transfer. | [optional] 18 | **status** | **String** | Code indicating transfer status. | [optional] 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/PlanRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PlanRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Integer** | The amount in cents that will be charged on the interval specified. | 10 | **currency** | **String** | ISO 4217 for currencies, for the Mexican peso it is MXN/USD | [optional] 11 | **expiryCount** | **Integer** | Number of repetitions of the frequency NUMBER OF CHARGES TO BE MADE, considering the interval and frequency, this evolves over time, but is subject to the expiration count. | [optional] 12 | **frequency** | **Integer** | Frequency of the charge, which together with the interval, can be every 3 weeks, every 4 months, every 2 years, every 5 fortnights | 13 | **id** | **String** | internal reference id | [optional] 14 | **interval** | [**IntervalEnum**](#IntervalEnum) | The interval of time between each charge. | 15 | **name** | **String** | The name of the plan. | 16 | **trialPeriodDays** | **Integer** | The number of days the customer will have a free trial. | [optional] 17 | 18 | 19 | ## Enum: IntervalEnum 20 | 21 | Name | Value 22 | ---- | ----- 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/SubscriptionResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # SubscriptionResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **billingCycleStart** | **Long** | | [optional] 10 | **billingCycleEnd** | **Long** | | [optional] 11 | **canceledAt** | **Long** | | [optional] 12 | **canceledReason** | **String** | Reason for cancellation. This field appears when the subscription status is 'canceled'. | [optional] 13 | **cardId** | **String** | | [optional] 14 | **chargeId** | **String** | | [optional] 15 | **createdAt** | **Long** | | [optional] 16 | **customerCustomReference** | **String** | | [optional] 17 | **customerId** | **String** | | [optional] 18 | **id** | **String** | | [optional] 19 | **lastBillingCycleOrderId** | **String** | | [optional] 20 | **_object** | **String** | | [optional] 21 | **pausedAt** | **Long** | | [optional] 22 | **planId** | **String** | | [optional] 23 | **status** | **String** | | [optional] 24 | **subscriptionStart** | **Integer** | | [optional] 25 | **trialStart** | **Long** | | [optional] 26 | **trialEnd** | **Long** | | [optional] 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/EventTypes.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | /** 9 | * It is a parameter that allows to identify in the response, the type of event that is being generated. 10 | **/ 11 | @ApiModel(description = "It is a parameter that allows to identify in the response, the type of event that is being generated.") 12 | public class EventTypes { 13 | 14 | private static final String MXN = "MXN"; 15 | 16 | 17 | 18 | @Override 19 | public boolean equals(Object o) { 20 | if (this == o) { 21 | return true; 22 | } 23 | if (o == null || getClass() != o.getClass()) { 24 | return false; 25 | } 26 | EventTypes eventTypes = (EventTypes) o; 27 | return true; 28 | } 29 | 30 | @Override 31 | public int hashCode() { 32 | int result = 17; 33 | return result; 34 | } 35 | 36 | @Override 37 | public String toString() { 38 | StringBuilder sb = new StringBuilder(); 39 | sb.append("class EventTypes {\n"); 40 | 41 | sb.append("}"); 42 | return sb.toString(); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /docs/ApiKeyResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ApiKeyResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **active** | **Boolean** | Indicates if the api key is active | [optional] 10 | **createdAt** | **Long** | Unix timestamp in seconds of when the api key was created | [optional] 11 | **updatedAt** | **Long** | Unix timestamp in seconds of when the api key was last updated | [optional] 12 | **deactivatedAt** | **Long** | Unix timestamp in seconds of when the api key was deleted | [optional] 13 | **description** | **String** | A name or brief explanation of what this api key is used for | [optional] 14 | **id** | **String** | Unique identifier of the api key | [optional] 15 | **livemode** | **Boolean** | Indicates if the api key is in production | [optional] 16 | **deleted** | **Boolean** | Indicates if the api key was deleted | [optional] 17 | **_object** | **String** | Object name, value is 'api_key' | [optional] 18 | **prefix** | **String** | The first few characters of the authentication_token | [optional] 19 | **role** | **String** | Indicates if the api key is private or public | [optional] 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/ChargeRequestPaymentMethod.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ChargeRequestPaymentMethod 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | Type of payment method | 10 | **cvc** | **String** | Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants | 11 | **expMonth** | **String** | Card expiration month | 12 | **expYear** | **String** | Card expiration year | 13 | **name** | **String** | Cardholder name | 14 | **number** | **String** | Card number | 15 | **customerIpAddress** | **String** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional] 16 | **expiresAt** | **Long** | Method expiration date as unix timestamp | [optional] 17 | **monthlyInstallments** | **Integer** | How many months without interest to apply, it can be 3, 6, 9, 12 or 18 | [optional] 18 | **tokenId** | **String** | | [optional] 19 | **paymentSourceId** | **String** | | [optional] 20 | **contractId** | **String** | Optional id sent to indicate the bank contract for recurrent card charges. | [optional] 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /templates/OasAnyTypeNotMapped.mustache: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | public class OasAnyTypeNotMapped { 4 | 5 | private Object value; 6 | 7 | // Constructor 8 | public OasAnyTypeNotMapped(Object value) { 9 | this.value = value; 10 | } 11 | 12 | // Getter 13 | public Object getValue() { 14 | return value; 15 | } 16 | 17 | // Setter 18 | public void setValue(Object value) { 19 | this.value = value; 20 | } 21 | 22 | // toString override 23 | @Override 24 | public String toString() { 25 | return "OasAnyTypeNotMapped{" + 26 | "value=" + value + 27 | '}'; 28 | } 29 | 30 | // equals override 31 | @Override 32 | public boolean equals(Object o) { 33 | if (this == o) return true; 34 | if (o == null || getClass() != o.getClass()) return false; 35 | 36 | OasAnyTypeNotMapped that = (OasAnyTypeNotMapped) o; 37 | 38 | return value != null ? value.equals(that.value) : that.value == null; 39 | } 40 | 41 | // hashCode override 42 | @Override 43 | public int hashCode() { 44 | return value != null ? value.hashCode() : 0; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /docs/PaymentMethodCard.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethodCard 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | | [optional] 10 | **_object** | **String** | | 11 | **accountType** | **String** | Account type of the card | [optional] 12 | **authCode** | **String** | | [optional] 13 | **brand** | **String** | Brand of the card | [optional] 14 | **contractId** | **String** | Id sent for recurrent charges. | [optional] 15 | **country** | **String** | Country of the card | [optional] 16 | **expMonth** | **String** | Expiration month of the card | [optional] 17 | **expYear** | **String** | Expiration year of the card | [optional] 18 | **fraudIndicators** | [**List<OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 19 | **issuer** | **String** | Issuer of the card | [optional] 20 | **last4** | **String** | Last 4 digits of the card | [optional] 21 | **name** | **String** | Name of the cardholder | [optional] 22 | **customerIpAddress** | **String** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional] 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/OasAnyTypeNotMapped.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | public class OasAnyTypeNotMapped { 4 | 5 | private Object value; 6 | 7 | // Constructor 8 | public OasAnyTypeNotMapped(Object value) { 9 | this.value = value; 10 | } 11 | 12 | // Getter 13 | public Object getValue() { 14 | return value; 15 | } 16 | 17 | // Setter 18 | public void setValue(Object value) { 19 | this.value = value; 20 | } 21 | 22 | // toString override 23 | @Override 24 | public String toString() { 25 | return "OasAnyTypeNotMapped{" + 26 | "value=" + value + 27 | '}'; 28 | } 29 | 30 | // equals override 31 | @Override 32 | public boolean equals(Object o) { 33 | if (this == o) return true; 34 | if (o == null || getClass() != o.getClass()) return false; 35 | 36 | OasAnyTypeNotMapped that = (OasAnyTypeNotMapped) o; 37 | 38 | return value != null ? value.equals(that.value) : that.value == null; 39 | } 40 | 41 | // hashCode override 42 | @Override 43 | public int hashCode() { 44 | return value != null ? value.hashCode() : 0; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /docs/LogResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # LogResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **createdAt** | **Long** | | 10 | **id** | **String** | | 11 | **ipAddress** | **String** | | [optional] 12 | **livemode** | **Boolean** | | 13 | **loggableId** | **String** | | [optional] 14 | **loggableType** | **String** | | [optional] 15 | **method** | **String** | | [optional] 16 | **oauthTokenId** | **String** | | [optional] 17 | **queryString** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 18 | **related** | **String** | | [optional] 19 | **requestBody** | **Object** | | [optional] 20 | **requestHeaders** | **Map<String, String>** | | [optional] 21 | **responseBody** | **Object** | | [optional] 22 | **responseHeaders** | **Map<String, String>** | | [optional] 23 | **searchableTags** | **List<String>** | | [optional] 24 | **status** | **String** | | [optional] 25 | **updatedAt** | **String** | | [optional] 26 | **url** | **String** | | [optional] 27 | **userAccountId** | **String** | | [optional] 28 | **version** | **String** | | [optional] 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /docs/CheckoutRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CheckoutRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **allowedPaymentMethods** | **List<String>** | Are the payment methods available for this link | 10 | **expiresAt** | **Long** | Unix timestamp of checkout expiration | [optional] 11 | **failureUrl** | **String** | Redirection url back to the site in case of failed payment, applies only to HostedPayment. | [optional] 12 | **monthlyInstallmentsEnabled** | **Boolean** | | [optional] 13 | **monthlyInstallmentsOptions** | **List<Integer>** | | [optional] 14 | **maxFailedRetries** | **Integer** | Number of retries allowed before the checkout is marked as failed | [optional] 15 | **name** | **String** | Reason for payment | [optional] 16 | **onDemandEnabled** | **Boolean** | | [optional] 17 | **redirectionTime** | **Integer** | number of seconds to wait before redirecting to the success_url | [optional] 18 | **successUrl** | **String** | Redirection url back to the site in case of successful payment, applies only to HostedPayment | [optional] 19 | **type** | **String** | This field represents the type of checkout | [optional] 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/Pair.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Conekta API 3 | * Conekta sdk 4 | * 5 | * The version of the OpenAPI document: 2.1.0 6 | * Contact: engineering@conekta.com 7 | * 8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 9 | * https://openapi-generator.tech 10 | * Do not edit the class manually. 11 | */ 12 | 13 | package io.conekta; 14 | 15 | public class Pair { 16 | private String name = ""; 17 | private String value = ""; 18 | 19 | public Pair(String name, String value) { 20 | setName(name); 21 | setValue(value); 22 | } 23 | 24 | private void setName(String name) { 25 | if (!isValidString(name)) return; 26 | 27 | this.name = name; 28 | } 29 | 30 | private void setValue(String value) { 31 | if (!isValidString(value)) return; 32 | 33 | this.value = value; 34 | } 35 | 36 | public String getName() { 37 | return this.name; 38 | } 39 | 40 | public String getValue() { 41 | return this.value; 42 | } 43 | 44 | private boolean isValidString(String arg) { 45 | if (arg == null) return false; 46 | if (arg.trim().isEmpty()) return false; 47 | 48 | return true; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /docs/ChargeOrderResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ChargeOrderResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Integer** | | [optional] 10 | **channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] 11 | **createdAt** | **Long** | | [optional] 12 | **currency** | **String** | | [optional] 13 | **customerId** | **String** | | [optional] 14 | **description** | **String** | | [optional] 15 | **deviceFingerprint** | **String** | | [optional] 16 | **failureCode** | **String** | | [optional] 17 | **failureMessage** | **String** | | [optional] 18 | **id** | **String** | | [optional] 19 | **livemode** | **Boolean** | | [optional] 20 | **monthlyInstallments** | **Integer** | | [optional] 21 | **_object** | **String** | | [optional] 22 | **orderId** | **String** | | [optional] 23 | **paidAt** | **Integer** | | [optional] 24 | **paymentMethod** | [**ChargeOrderResponsePaymentMethod**](ChargeOrderResponsePaymentMethod.md) | | [optional] 25 | **referenceId** | **String** | Reference ID of the charge | [optional] 26 | **refunds** | **List<Object>** | | [optional] 27 | **status** | **String** | | [optional] 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /docs/LogsResponseData.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # LogsResponseData 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **createdAt** | **Long** | | [optional] 10 | **id** | **String** | | [optional] 11 | **ipAddress** | **String** | | [optional] 12 | **livemode** | **Boolean** | | [optional] 13 | **loggableId** | **String** | | [optional] 14 | **loggableType** | **String** | | [optional] 15 | **method** | **String** | | [optional] 16 | **oauthTokenId** | **String** | | [optional] 17 | **queryString** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 18 | **related** | **String** | | [optional] 19 | **requestBody** | **Object** | | [optional] 20 | **requestHeaders** | **Map<String, String>** | | [optional] 21 | **responseBody** | **Object** | | [optional] 22 | **responseHeaders** | **Map<String, String>** | | [optional] 23 | **searchableTags** | **List<String>** | | [optional] 24 | **status** | **String** | | [optional] 25 | **updatedAt** | **String** | | [optional] 26 | **url** | **String** | | [optional] 27 | **userAccountId** | **String** | | [optional] 28 | **version** | **String** | | [optional] 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /docs/PaymentMethodBankTransfer.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PaymentMethodBankTransfer 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **type** | **String** | | [optional] 10 | **_object** | **String** | | 11 | **bank** | **String** | | [optional] 12 | **clabe** | **String** | | [optional] 13 | **description** | **String** | | [optional] 14 | **executedAt** | **Integer** | | [optional] 15 | **expiresAt** | **Long** | | [optional] 16 | **issuingAccountBank** | **String** | | [optional] 17 | **issuingAccountNumber** | **String** | | [optional] 18 | **issuingAccountHolderName** | **String** | | [optional] 19 | **issuingAccountTaxId** | **String** | | [optional] 20 | **paymentAttempts** | [**List<OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 21 | **receivingAccountHolderName** | **String** | | [optional] 22 | **receivingAccountNumber** | **String** | | [optional] 23 | **receivingAccountBank** | **String** | | [optional] 24 | **receivingAccountTaxId** | **String** | | [optional] 25 | **referenceNumber** | **String** | | [optional] 26 | **trackingCode** | **String** | | [optional] 27 | **customerIpAddress** | **String** | | [optional] 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /docs/ProductDataResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ProductDataResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **antifraudInfo** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 10 | **brand** | **String** | The brand of the item. | [optional] 11 | **description** | **String** | Short description of the item | [optional] 12 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional] 13 | **name** | **String** | The name of the item. It will be displayed in the order. | 14 | **quantity** | **Integer** | The quantity of the item in the order. | 15 | **sku** | **String** | The stock keeping unit for the item. It is used to identify the item in the order. | [optional] 16 | **tags** | **List<String>** | List of tags for the item. It is used to identify the item in the order. | [optional] 17 | **unitPrice** | **Integer** | The price of the item in cents. | 18 | **id** | **String** | | [optional] 19 | **_object** | **String** | | [optional] 20 | **parentId** | **String** | | [optional] 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/ProductOrderResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ProductOrderResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **antifraudInfo** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 10 | **brand** | **String** | The brand of the item. | [optional] 11 | **description** | **String** | Short description of the item | [optional] 12 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional] 13 | **name** | **String** | The name of the item. It will be displayed in the order. | 14 | **quantity** | **Integer** | The quantity of the item in the order. | 15 | **sku** | **String** | The stock keeping unit for the item. It is used to identify the item in the order. | [optional] 16 | **tags** | **List<String>** | List of tags for the item. It is used to identify the item in the order. | [optional] 17 | **unitPrice** | **Integer** | The price of the item in cents. | 18 | **id** | **String** | | [optional] 19 | **_object** | **String** | | [optional] 20 | **parentId** | **String** | | [optional] 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/ChargeResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ChargeResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Integer** | | [optional] 10 | **channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] 11 | **createdAt** | **Long** | | [optional] 12 | **currency** | **String** | | [optional] 13 | **customerId** | **String** | | [optional] 14 | **description** | **String** | | [optional] 15 | **deviceFingerprint** | **String** | | [optional] 16 | **failureCode** | **String** | | [optional] 17 | **failureMessage** | **String** | | [optional] 18 | **id** | **String** | Charge ID | [optional] 19 | **livemode** | **Boolean** | Whether the charge was made in live mode or not | [optional] 20 | **_object** | **String** | | [optional] 21 | **orderId** | **String** | Order ID | [optional] 22 | **paidAt** | **Long** | Payment date | [optional] 23 | **paymentMethod** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] 24 | **referenceId** | **String** | Reference ID of the charge | [optional] 25 | **refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] 26 | **status** | **String** | | [optional] 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /docs/ChargesDataResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ChargesDataResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Integer** | | [optional] 10 | **channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] 11 | **createdAt** | **Long** | | [optional] 12 | **currency** | **String** | | [optional] 13 | **customerId** | **String** | | [optional] 14 | **description** | **String** | | [optional] 15 | **deviceFingerprint** | **String** | | [optional] 16 | **failureCode** | **String** | | [optional] 17 | **failureMessage** | **String** | | [optional] 18 | **id** | **String** | Charge ID | [optional] 19 | **livemode** | **Boolean** | Whether the charge was made in live mode or not | [optional] 20 | **_object** | **String** | | [optional] 21 | **orderId** | **String** | Order ID | [optional] 22 | **paidAt** | **Long** | Payment date | [optional] 23 | **paymentMethod** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] 24 | **referenceId** | **String** | Reference ID of the charge | [optional] 25 | **refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] 26 | **status** | **String** | | [optional] 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /docs/ChargesOrderResponseAllOfData.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ChargesOrderResponseAllOfData 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Integer** | | [optional] 10 | **channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] 11 | **createdAt** | **Long** | | [optional] 12 | **currency** | **String** | | [optional] 13 | **customerId** | **String** | | [optional] 14 | **description** | **String** | | [optional] 15 | **deviceFingerprint** | **String** | | [optional] 16 | **failureCode** | **String** | | [optional] 17 | **failureMessage** | **String** | | [optional] 18 | **id** | **String** | Charge ID | [optional] 19 | **livemode** | **Boolean** | Whether the charge was made in live mode or not | [optional] 20 | **_object** | **String** | | [optional] 21 | **orderId** | **String** | Order ID | [optional] 22 | **paidAt** | **Long** | Payment date | [optional] 23 | **paymentMethod** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] 24 | **referenceId** | **String** | Reference ID of the charge | [optional] 25 | **refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] 26 | **status** | **String** | | [optional] 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /docs/PayoutOrderResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # PayoutOrderResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **allowedPayoutMethods** | **List<String>** | The payout methods that are allowed for the payout order. | 10 | **amount** | **Integer** | The amount of the payout order. | 11 | **createdAt** | **Long** | The creation date of the payout order. | 12 | **currency** | **String** | The currency in which the payout order is made. | 13 | **customerInfo** | [**PayoutOrderResponseCustomerInfo**](PayoutOrderResponseCustomerInfo.md) | | 14 | **expiresAt** | **Long** | The expiration date of the payout order. | [optional] 15 | **id** | **String** | The id of the payout order. | 16 | **livemode** | **Boolean** | The live mode of the payout order. | 17 | **_object** | **String** | The object of the payout order. | 18 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | The metadata of the payout order. | [optional] 19 | **payouts** | [**List<PayoutOrderPayoutsItem>**](PayoutOrderPayoutsItem.md) | The payout information of the payout order. | 20 | **reason** | **String** | The reason for the payout order. | 21 | **status** | **String** | The status of the payout order. | [optional] 22 | **updatedAt** | **Long** | The update date of the payout order. | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/ApiKeyCreateResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # ApiKeyCreateResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **active** | **Boolean** | Indicates if the api key is active | [optional] 10 | **createdAt** | **Long** | Unix timestamp in seconds of when the api key was created | [optional] 11 | **updatedAt** | **Long** | Unix timestamp in seconds of when the api key was last updated | [optional] 12 | **deactivatedAt** | **Long** | Unix timestamp in seconds of when the api key was deleted | [optional] 13 | **description** | **String** | A name or brief explanation of what this api key is used for | [optional] 14 | **id** | **String** | Unique identifier of the api key | [optional] 15 | **livemode** | **Boolean** | Indicates if the api key is in production | [optional] 16 | **deleted** | **Boolean** | Indicates if the api key was deleted | [optional] 17 | **_object** | **String** | Object name, value is 'api_key' | [optional] 18 | **prefix** | **String** | The first few characters of the authentication_token | [optional] 19 | **role** | **String** | Indicates if the api key is private or public | [optional] 20 | **authenticationToken** | **String** | It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place. | [optional] 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/BalanceResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # BalanceResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **available** | [**List<BalanceCommonField>**](BalanceCommonField.md) | The balance's available | [optional] 10 | **cashoutRetentionAmount** | [**List<BalanceCommonField>**](BalanceCommonField.md) | The balance's cashout retention amount | [optional] 11 | **conektaRetention** | [**List<BalanceCommonField>**](BalanceCommonField.md) | The balance's conekta retention | [optional] 12 | **gateway** | [**List<BalanceCommonField>**](BalanceCommonField.md) | The balance's gateway | [optional] 13 | **pending** | [**List<BalanceCommonField>**](BalanceCommonField.md) | The balance's pending | [optional] 14 | **retained** | [**List<BalanceCommonField>**](BalanceCommonField.md) | The balance's retained | [optional] 15 | **retentionAmount** | [**List<BalanceCommonField>**](BalanceCommonField.md) | The balance's retention amount | [optional] 16 | **targetCollateralAmount** | **Object** | The balance's target collateral amount | [optional] 17 | **targetRetentionAmount** | [**List<BalanceCommonField>**](BalanceCommonField.md) | The balance's target retention amount | [optional] 18 | **temporarilyRetained** | [**List<BalanceCommonField>**](BalanceCommonField.md) | The balance's temporarily retained | [optional] 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/BalancesApi.md: -------------------------------------------------------------------------------- 1 | # BalancesApi 2 | 3 | All URIs are relative to *https://api.conekta.io* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**getBalance**](BalancesApi.md#getBalance) | **GET** /balance | Get a company's balance 8 | 9 | 10 | 11 | ## getBalance 12 | 13 | > BalanceResponse getBalance(acceptLanguage) 14 | 15 | Get a company's balance 16 | 17 | Get a company's balance 18 | 19 | ### Example 20 | 21 | ```java 22 | // Import classes: 23 | //import io.conekta.BalancesApi; 24 | 25 | BalancesApi apiInstance = new BalancesApi(); 26 | String acceptLanguage = es; // String | Use for knowing which language to use 27 | try { 28 | BalanceResponse result = apiInstance.getBalance(acceptLanguage); 29 | System.out.println(result); 30 | } catch (ApiException e) { 31 | System.err.println("Exception when calling BalancesApi#getBalance"); 32 | e.printStackTrace(); 33 | } 34 | ``` 35 | 36 | ### Parameters 37 | 38 | 39 | Name | Type | Description | Notes 40 | ------------- | ------------- | ------------- | ------------- 41 | **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] 42 | 43 | ### Return type 44 | 45 | [**BalanceResponse**](BalanceResponse.md) 46 | 47 | ### Authorization 48 | 49 | [bearerAuth](../README.md#bearerAuth) 50 | 51 | ### HTTP request headers 52 | 53 | - **Content-Type**: Not defined 54 | - **Accept**: application/vnd.conekta-v2.1.0+json 55 | 56 | -------------------------------------------------------------------------------- /docs/CheckoutResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CheckoutResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **allowedPaymentMethods** | **List<String>** | | [optional] 10 | **canNotExpire** | **Boolean** | | [optional] 11 | **emailsSent** | **Integer** | | [optional] 12 | **excludeCardNetworks** | **List<Object>** | | [optional] 13 | **expiresAt** | **Long** | | [optional] 14 | **failureUrl** | **String** | | [optional] 15 | **force3dsFlow** | **Boolean** | | [optional] 16 | **id** | **String** | | 17 | **livemode** | **Boolean** | | 18 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 19 | **monthlyInstallmentsEnabled** | **Boolean** | | [optional] 20 | **monthlyInstallmentsOptions** | **List<Integer>** | | [optional] 21 | **name** | **String** | Reason for charge | 22 | **needsShippingContact** | **Boolean** | | [optional] 23 | **_object** | **String** | | 24 | **paidPaymentsCount** | **Integer** | | [optional] 25 | **paymentsLimitCount** | **Integer** | | [optional] 26 | **recurrent** | **Boolean** | | [optional] 27 | **slug** | **String** | | [optional] 28 | **smsSent** | **Integer** | | [optional] 29 | **startsAt** | **Integer** | | [optional] 30 | **status** | **String** | | [optional] 31 | **successUrl** | **String** | | [optional] 32 | **type** | **String** | | [optional] 33 | **url** | [**URI**](URI.md) | | [optional] 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/UpdatePaymentMethods.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class UpdatePaymentMethods { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("name") 14 | private String name = null; 15 | 16 | /** 17 | * 18 | * 19 | **/ 20 | @ApiModelProperty(value = "") 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | @Override 30 | public boolean equals(Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | UpdatePaymentMethods updatePaymentMethods = (UpdatePaymentMethods) o; 38 | return (this.name == null ? updatePaymentMethods.name == null : this.name.equals(updatePaymentMethods.name)); 39 | 40 | } 41 | 42 | @Override 43 | public int hashCode() { 44 | int result = 17; 45 | result = 31 * result + (this.name == null ? 0 : this.name.hashCode()); 46 | return result; 47 | } 48 | 49 | @Override 50 | public String toString() { 51 | StringBuilder sb = new StringBuilder(); 52 | sb.append("class UpdatePaymentMethods {\n"); 53 | 54 | sb.append(" name: ").append(name).append("\n"); 55 | sb.append("}"); 56 | return sb.toString(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/EmailCheckoutRequest.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class EmailCheckoutRequest { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("email") 14 | private String email = null; 15 | 16 | /** 17 | * 18 | * 19 | **/ 20 | @ApiModelProperty(required = true, value = "") 21 | public String getEmail() { 22 | return email; 23 | } 24 | 25 | public void setEmail(String email) { 26 | this.email = email; 27 | } 28 | 29 | @Override 30 | public boolean equals(Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | EmailCheckoutRequest emailCheckoutRequest = (EmailCheckoutRequest) o; 38 | return (this.email == null ? emailCheckoutRequest.email == null : this.email.equals(emailCheckoutRequest.email)); 39 | 40 | } 41 | 42 | @Override 43 | public int hashCode() { 44 | int result = 17; 45 | result = 31 * result + (this.email == null ? 0 : this.email.hashCode()); 46 | return result; 47 | } 48 | 49 | @Override 50 | public String toString() { 51 | StringBuilder sb = new StringBuilder(); 52 | sb.append("class EmailCheckoutRequest {\n"); 53 | 54 | sb.append(" email: ").append(email).append("\n"); 55 | sb.append("}"); 56 | return sb.toString(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/Details.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | import io.conekta.model.DetailsError; 4 | import java.util.*; 5 | 6 | import io.swagger.annotations.*; 7 | import com.google.gson.annotations.SerializedName; 8 | import io.conekta.EncryptedTypeAdapter; 9 | 10 | @ApiModel(description = "") 11 | public class Details { 12 | 13 | private static final String MXN = "MXN"; 14 | 15 | @SerializedName("details") 16 | private List details = null; 17 | 18 | /** 19 | * 20 | * 21 | **/ 22 | @ApiModelProperty(value = "") 23 | public List getDetails() { 24 | return details; 25 | } 26 | 27 | public void setDetails(List details) { 28 | this.details = details; 29 | } 30 | 31 | @Override 32 | public boolean equals(Object o) { 33 | if (this == o) { 34 | return true; 35 | } 36 | if (o == null || getClass() != o.getClass()) { 37 | return false; 38 | } 39 | Details details = (Details) o; 40 | return (this.details == null ? details.details == null : this.details.equals(details.details)); 41 | 42 | } 43 | 44 | @Override 45 | public int hashCode() { 46 | int result = 17; 47 | result = 31 * result + (this.details == null ? 0 : this.details.hashCode()); 48 | return result; 49 | } 50 | 51 | @Override 52 | public String toString() { 53 | StringBuilder sb = new StringBuilder(); 54 | sb.append("class Details {\n"); 55 | 56 | sb.append(" details: ").append(details).append("\n"); 57 | sb.append("}"); 58 | return sb.toString(); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /docs/Checkout.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Checkout 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **allowedPaymentMethods** | **List<String>** | Those are the payment methods that will be available for the link | 10 | **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) | 11 | **monthlyInstallmentsEnabled** | **Boolean** | This flag allows you to specify if months without interest will be active. | [optional] 12 | **monthlyInstallmentsOptions** | **List<Integer>** | This field allows you to specify the number of months without interest. | [optional] 13 | **threeDsMode** | **String** | Indicates the 3DS2 mode for the order, either smart or strict. | [optional] 14 | **name** | **String** | Reason for charge | 15 | **needsShippingContact** | **Boolean** | This flag allows you to fill in the shipping information at checkout. | [optional] 16 | **onDemandEnabled** | **Boolean** | This flag allows you to specify if the link will be on demand. | [optional] 17 | **orderTemplate** | [**CheckoutOrderTemplate**](CheckoutOrderTemplate.md) | | 18 | **paymentsLimitCount** | **Integer** | It is the number of payments that can be made through the link. | [optional] 19 | **recurrent** | **Boolean** | false: single use. true: multiple payments | 20 | **type** | **String** | It is the type of link that will be created. It must be a valid type. | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/CustomerResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # CustomerResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **antifraudInfo** | [**CustomerAntifraudInfoResponse**](CustomerAntifraudInfoResponse.md) | | [optional] 10 | **corporate** | **Boolean** | true if the customer is a company | [optional] 11 | **createdAt** | **Long** | Creation date of the object | 12 | **customReference** | **String** | Custom reference | [optional] 13 | **defaultFiscalEntityId** | **String** | | [optional] 14 | **defaultShippingContactId** | **String** | | [optional] 15 | **defaultPaymentSourceId** | **String** | | [optional] 16 | **email** | **String** | | [optional] 17 | **fiscalEntities** | [**CustomerFiscalEntitiesResponse**](CustomerFiscalEntitiesResponse.md) | | [optional] 18 | **id** | **String** | Customer's ID | 19 | **livemode** | **Boolean** | true if the object exists in live mode or the value false if the object exists in test mode | 20 | **name** | **String** | Customer's name | 21 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 22 | **_object** | **String** | | 23 | **paymentSources** | [**CustomerPaymentMethodsResponse**](CustomerPaymentMethodsResponse.md) | | [optional] 24 | **phone** | **String** | Customer's phone number | [optional] 25 | **shippingContacts** | [**CustomerResponseShippingContacts**](CustomerResponseShippingContacts.md) | | [optional] 26 | **subscription** | [**SubscriptionResponse**](SubscriptionResponse.md) | | [optional] 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/OrderCaptureRequest.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class OrderCaptureRequest { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("amount") 14 | private Long amount = null; 15 | 16 | /** 17 | * Amount to capture 18 | * minimum: 1 19 | **/ 20 | @ApiModelProperty(required = true, value = "Amount to capture") 21 | public Long getAmount() { 22 | return amount; 23 | } 24 | 25 | public void setAmount(Long amount) { 26 | this.amount = amount; 27 | } 28 | 29 | @Override 30 | public boolean equals(Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | OrderCaptureRequest orderCaptureRequest = (OrderCaptureRequest) o; 38 | return (this.amount == null ? orderCaptureRequest.amount == null : this.amount.equals(orderCaptureRequest.amount)); 39 | 40 | } 41 | 42 | @Override 43 | public int hashCode() { 44 | int result = 17; 45 | result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); 46 | return result; 47 | } 48 | 49 | @Override 50 | public String toString() { 51 | StringBuilder sb = new StringBuilder(); 52 | sb.append("class OrderCaptureRequest {\n"); 53 | 54 | sb.append(" amount: ").append(amount).append("\n"); 55 | sb.append("}"); 56 | return sb.toString(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/OrdersResponse.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | import io.conekta.model.OrderResponse; 4 | import java.util.*; 5 | 6 | import io.swagger.annotations.*; 7 | import com.google.gson.annotations.SerializedName; 8 | import io.conekta.EncryptedTypeAdapter; 9 | 10 | @ApiModel(description = "") 11 | public class OrdersResponse { 12 | 13 | private static final String MXN = "MXN"; 14 | 15 | @SerializedName("data") 16 | private List data = null; 17 | 18 | /** 19 | * 20 | * 21 | **/ 22 | @ApiModelProperty(required = true, value = "") 23 | public List getData() { 24 | return data; 25 | } 26 | 27 | public void setData(List data) { 28 | this.data = data; 29 | } 30 | 31 | @Override 32 | public boolean equals(Object o) { 33 | if (this == o) { 34 | return true; 35 | } 36 | if (o == null || getClass() != o.getClass()) { 37 | return false; 38 | } 39 | OrdersResponse ordersResponse = (OrdersResponse) o; 40 | return (this.data == null ? ordersResponse.data == null : this.data.equals(ordersResponse.data)); 41 | 42 | } 43 | 44 | @Override 45 | public int hashCode() { 46 | int result = 17; 47 | result = 31 * result + (this.data == null ? 0 : this.data.hashCode()); 48 | return result; 49 | } 50 | 51 | @Override 52 | public String toString() { 53 | StringBuilder sb = new StringBuilder(); 54 | sb.append("class OrdersResponse {\n"); 55 | 56 | sb.append(" data: ").append(data).append("\n"); 57 | sb.append("}"); 58 | return sb.toString(); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /docs/TokensApi.md: -------------------------------------------------------------------------------- 1 | # TokensApi 2 | 3 | All URIs are relative to *https://api.conekta.io* 4 | 5 | Method | HTTP request | Description 6 | ------------- | ------------- | ------------- 7 | [**createToken**](TokensApi.md#createToken) | **POST** /tokens | Create Token 8 | 9 | 10 | 11 | ## createToken 12 | 13 | > TokenResponse createToken(token, acceptLanguage) 14 | 15 | Create Token 16 | 17 | Generate a payment token, to associate it with a card 18 | 19 | ### Example 20 | 21 | ```java 22 | // Import classes: 23 | //import io.conekta.TokensApi; 24 | 25 | TokensApi apiInstance = new TokensApi(); 26 | Token token = new Token(); // Token | requested field for token 27 | String acceptLanguage = es; // String | Use for knowing which language to use 28 | try { 29 | TokenResponse result = apiInstance.createToken(token, acceptLanguage); 30 | System.out.println(result); 31 | } catch (ApiException e) { 32 | System.err.println("Exception when calling TokensApi#createToken"); 33 | e.printStackTrace(); 34 | } 35 | ``` 36 | 37 | ### Parameters 38 | 39 | 40 | Name | Type | Description | Notes 41 | ------------- | ------------- | ------------- | ------------- 42 | **token** | [**Token**](Token.md)| requested field for token | 43 | **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] 44 | 45 | ### Return type 46 | 47 | [**TokenResponse**](TokenResponse.md) 48 | 49 | ### Authorization 50 | 51 | [bearerAuth](../README.md#bearerAuth) 52 | 53 | ### HTTP request headers 54 | 55 | - **Content-Type**: application/json 56 | - **Accept**: application/vnd.conekta-v2.1.0+json 57 | 58 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/WebhookKeyRequest.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class WebhookKeyRequest { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("active") 14 | private Boolean active = true; 15 | 16 | /** 17 | * Indicates if the webhook key is active 18 | * 19 | **/ 20 | @ApiModelProperty(value = "Indicates if the webhook key is active") 21 | public Boolean getActive() { 22 | return active; 23 | } 24 | 25 | public void setActive(Boolean active) { 26 | this.active = active; 27 | } 28 | 29 | @Override 30 | public boolean equals(Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | WebhookKeyRequest webhookKeyRequest = (WebhookKeyRequest) o; 38 | return (this.active == null ? webhookKeyRequest.active == null : this.active.equals(webhookKeyRequest.active)); 39 | 40 | } 41 | 42 | @Override 43 | public int hashCode() { 44 | int result = 17; 45 | result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); 46 | return result; 47 | } 48 | 49 | @Override 50 | public String toString() { 51 | StringBuilder sb = new StringBuilder(); 52 | sb.append("class WebhookKeyRequest {\n"); 53 | 54 | sb.append(" active: ").append(active).append("\n"); 55 | sb.append("}"); 56 | return sb.toString(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/SmsCheckoutRequest.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class SmsCheckoutRequest { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("phonenumber") 14 | private String phonenumber = null; 15 | 16 | /** 17 | * 18 | * 19 | **/ 20 | @ApiModelProperty(required = true, value = "") 21 | public String getPhonenumber() { 22 | return phonenumber; 23 | } 24 | 25 | public void setPhonenumber(String phonenumber) { 26 | this.phonenumber = phonenumber; 27 | } 28 | 29 | @Override 30 | public boolean equals(Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | SmsCheckoutRequest smsCheckoutRequest = (SmsCheckoutRequest) o; 38 | return (this.phonenumber == null ? smsCheckoutRequest.phonenumber == null : this.phonenumber.equals(smsCheckoutRequest.phonenumber)); 39 | 40 | } 41 | 42 | @Override 43 | public int hashCode() { 44 | int result = 17; 45 | result = 31 * result + (this.phonenumber == null ? 0 : this.phonenumber.hashCode()); 46 | return result; 47 | } 48 | 49 | @Override 50 | public String toString() { 51 | StringBuilder sb = new StringBuilder(); 52 | sb.append("class SmsCheckoutRequest {\n"); 53 | 54 | sb.append(" phonenumber: ").append(phonenumber).append("\n"); 55 | sb.append("}"); 56 | return sb.toString(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/test/java/io/conekta/TokensApiTest.java: -------------------------------------------------------------------------------- 1 | package io.conekta; 2 | 3 | import io.conekta.model.Token; 4 | import io.conekta.model.TokenCard; 5 | import io.conekta.model.TokenResponse; 6 | import org.junit.Before; 7 | import org.junit.Test; 8 | 9 | import static org.junit.Assert.*; 10 | public class TokensApiTest { 11 | TokensApi instance = new TokensApi(); 12 | String apiKey = "key_xxx"; 13 | @Before 14 | public void config (){ 15 | instance.setBasePath(BaseTest.getBasePath()); 16 | instance.setApiKey( apiKey ); 17 | } 18 | 19 | @Test 20 | public void CreateToken() throws ApiException { 21 | Token token = new Token(); 22 | TokenCard card = new TokenCard(); 23 | card.setCvc("123"); 24 | card.setExpYear("29"); 25 | card.setExpMonth("12"); 26 | card.setName("fran carrero"); 27 | card.setNumber("4242424242424242"); 28 | token.setCard(card); 29 | 30 | TokenResponse response = instance.createToken(token, "es"); 31 | 32 | assertEquals("tok_1toPJUcZ27AH5LsZk", response.getId()); 33 | } 34 | 35 | @Test(expected = ApiException.class) 36 | public void CreateTokenFails() throws ApiException { 37 | Token token = new Token(); 38 | TokenCard card = new TokenCard(); 39 | card.setCvc("123"); 40 | card.setExpYear("29"); 41 | card.setName("fran fail"); 42 | card.setNumber("4242424242424242"); 43 | token.setCard(card); 44 | 45 | TokenResponse response = instance.createToken(token, "en"); 46 | 47 | assertEquals("tok_2toPJUcZ27AH5LsZk", response.getId()); 48 | } 49 | } -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/PayoutMethod.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | /** 9 | * The payout method of the payout order. 10 | **/ 11 | @ApiModel(description = "The payout method of the payout order.") 12 | public class PayoutMethod { 13 | 14 | private static final String MXN = "MXN"; 15 | 16 | @SerializedName("type") 17 | private String type = null; 18 | 19 | /** 20 | * The type of the payout method. 21 | * 22 | **/ 23 | @ApiModelProperty(required = true, value = "The type of the payout method.") 24 | public String getType() { 25 | return type; 26 | } 27 | 28 | public void setType(String type) { 29 | this.type = type; 30 | } 31 | 32 | @Override 33 | public boolean equals(Object o) { 34 | if (this == o) { 35 | return true; 36 | } 37 | if (o == null || getClass() != o.getClass()) { 38 | return false; 39 | } 40 | PayoutMethod payoutMethod = (PayoutMethod) o; 41 | return (this.type == null ? payoutMethod.type == null : this.type.equals(payoutMethod.type)); 42 | 43 | } 44 | 45 | @Override 46 | public int hashCode() { 47 | int result = 17; 48 | result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); 49 | return result; 50 | } 51 | 52 | @Override 53 | public String toString() { 54 | StringBuilder sb = new StringBuilder(); 55 | sb.append("class PayoutMethod {\n"); 56 | 57 | sb.append(" type: ").append(type).append("\n"); 58 | sb.append("}"); 59 | return sb.toString(); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/WebhookKeyUpdateRequest.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class WebhookKeyUpdateRequest { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("active") 14 | private Boolean active = false; 15 | 16 | /** 17 | * Indicates if the webhook key is active 18 | * 19 | **/ 20 | @ApiModelProperty(value = "Indicates if the webhook key is active") 21 | public Boolean getActive() { 22 | return active; 23 | } 24 | 25 | public void setActive(Boolean active) { 26 | this.active = active; 27 | } 28 | 29 | @Override 30 | public boolean equals(Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | WebhookKeyUpdateRequest webhookKeyUpdateRequest = (WebhookKeyUpdateRequest) o; 38 | return (this.active == null ? webhookKeyUpdateRequest.active == null : this.active.equals(webhookKeyUpdateRequest.active)); 39 | 40 | } 41 | 42 | @Override 43 | public int hashCode() { 44 | int result = 17; 45 | result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); 46 | return result; 47 | } 48 | 49 | @Override 50 | public String toString() { 51 | StringBuilder sb = new StringBuilder(); 52 | sb.append("class WebhookKeyUpdateRequest {\n"); 53 | 54 | sb.append(" active: ").append(active).append("\n"); 55 | sb.append("}"); 56 | return sb.toString(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/CustomerInfoJustCustomerId.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class CustomerInfoJustCustomerId { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("customer_id") 14 | private String customerId = null; 15 | 16 | /** 17 | * 18 | * 19 | **/ 20 | @ApiModelProperty(required = true, value = "") 21 | public String getCustomerId() { 22 | return customerId; 23 | } 24 | 25 | public void setCustomerId(String customerId) { 26 | this.customerId = customerId; 27 | } 28 | 29 | @Override 30 | public boolean equals(Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | CustomerInfoJustCustomerId customerInfoJustCustomerId = (CustomerInfoJustCustomerId) o; 38 | return (this.customerId == null ? customerInfoJustCustomerId.customerId == null : this.customerId.equals(customerInfoJustCustomerId.customerId)); 39 | 40 | } 41 | 42 | @Override 43 | public int hashCode() { 44 | int result = 17; 45 | result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); 46 | return result; 47 | } 48 | 49 | @Override 50 | public String toString() { 51 | StringBuilder sb = new StringBuilder(); 52 | sb.append("class CustomerInfoJustCustomerId {\n"); 53 | 54 | sb.append(" customerId: ").append(customerId).append("\n"); 55 | sb.append("}"); 56 | return sb.toString(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "snapshotVersion": false, 3 | "useRuntimeException": true, 4 | "developerEmail": "core@conekta.com", 5 | "developerName": "Conekta API Core Team", 6 | "developerOrganization": "Conekta, Inc.", 7 | "developerOrganizationUrl": "https://www.conekta.io", 8 | "artifactUrl": "https://developers.conekta.com/", 9 | "artifactVersion": "6.0.1", 10 | "modelPackage": "io.conekta.model", 11 | "licenseName": "MIT License", 12 | "invokerPackage": "io.conekta", 13 | "licenseUrl": "https://www.opensource.org/licenses/mit-license.php", 14 | "apiPackage": "io.conekta", 15 | "artifactDescription": "This is a java library that allows interaction with https://api.conekta.io API.", 16 | "artifactId": "conektasdk", 17 | "groupId": "io.conekta", 18 | "useJakartaEe" : false, 19 | "scmConnection": "scm:git:git@github.com:conekta/conekta-android..git", 20 | "scmDeveloperConnection": "scm:git:git@github.com:conekta/conekta-android..git", 21 | "scmUrl": "https://github.com/conekta/conekta-android./tree/main", 22 | "library": "httpclient", 23 | "swagger1AnnotationLibrary": false, 24 | "javaxPackage": "javax", 25 | "disallowAdditionalPropertiesIfNotPresent": true, 26 | "useOneOfDiscriminatorLookup": true, 27 | "serializationLibrary": "gson", 28 | "httpUserAgent": "Conekta/v2 Android/6.0.1", 29 | "openApiNullable" : false, 30 | "apiVersion" :"application/vnd.conekta-v2.1.0+json", 31 | "templateDir": "local/templates", 32 | "androidGradleVersion": "7.3.1", 33 | "files": { 34 | "OasAnyTypeNotMapped.mustache" : { 35 | "templateType": "SupportingFiles", 36 | "destinationFilename": "OasAnyTypeNotMapped.java", 37 | "folder": "src/main/java/io/conekta/model" 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/CustomerInfoJustCustomerIdResponse.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class CustomerInfoJustCustomerIdResponse { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("customer_id") 14 | private String customerId = null; 15 | 16 | /** 17 | * 18 | * 19 | **/ 20 | @ApiModelProperty(value = "") 21 | public String getCustomerId() { 22 | return customerId; 23 | } 24 | 25 | public void setCustomerId(String customerId) { 26 | this.customerId = customerId; 27 | } 28 | 29 | @Override 30 | public boolean equals(Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | CustomerInfoJustCustomerIdResponse customerInfoJustCustomerIdResponse = (CustomerInfoJustCustomerIdResponse) o; 38 | return (this.customerId == null ? customerInfoJustCustomerIdResponse.customerId == null : this.customerId.equals(customerInfoJustCustomerIdResponse.customerId)); 39 | 40 | } 41 | 42 | @Override 43 | public int hashCode() { 44 | int result = 17; 45 | result = 31 * result + (this.customerId == null ? 0 : this.customerId.hashCode()); 46 | return result; 47 | } 48 | 49 | @Override 50 | public String toString() { 51 | StringBuilder sb = new StringBuilder(); 52 | sb.append("class CustomerInfoJustCustomerIdResponse {\n"); 53 | 54 | sb.append(" customerId: ").append(customerId).append("\n"); 55 | sb.append("}"); 56 | return sb.toString(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/Payout.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | import io.conekta.model.PayoutMethod; 4 | 5 | import io.swagger.annotations.*; 6 | import com.google.gson.annotations.SerializedName; 7 | import io.conekta.EncryptedTypeAdapter; 8 | 9 | /** 10 | * The payout information of the payout order. 11 | **/ 12 | @ApiModel(description = "The payout information of the payout order.") 13 | public class Payout { 14 | 15 | private static final String MXN = "MXN"; 16 | 17 | @SerializedName("payout_method") 18 | private PayoutMethod payoutMethod = null; 19 | 20 | /** 21 | * 22 | * 23 | **/ 24 | @ApiModelProperty(required = true, value = "") 25 | public PayoutMethod getPayoutMethod() { 26 | return payoutMethod; 27 | } 28 | 29 | public void setPayoutMethod(PayoutMethod payoutMethod) { 30 | this.payoutMethod = payoutMethod; 31 | } 32 | 33 | @Override 34 | public boolean equals(Object o) { 35 | if (this == o) { 36 | return true; 37 | } 38 | if (o == null || getClass() != o.getClass()) { 39 | return false; 40 | } 41 | Payout payout = (Payout) o; 42 | return (this.payoutMethod == null ? payout.payoutMethod == null : this.payoutMethod.equals(payout.payoutMethod)); 43 | 44 | } 45 | 46 | @Override 47 | public int hashCode() { 48 | int result = 17; 49 | result = 31 * result + (this.payoutMethod == null ? 0 : this.payoutMethod.hashCode()); 50 | return result; 51 | } 52 | 53 | @Override 54 | public String toString() { 55 | StringBuilder sb = new StringBuilder(); 56 | sb.append("class Payout {\n"); 57 | 58 | sb.append(" payoutMethod: ").append(payoutMethod).append("\n"); 59 | sb.append("}"); 60 | return sb.toString(); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/ChargeUpdateRequest.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | /** 9 | * requested field for update a charge 10 | **/ 11 | @ApiModel(description = "requested field for update a charge") 12 | public class ChargeUpdateRequest { 13 | 14 | private static final String MXN = "MXN"; 15 | 16 | @SerializedName("reference_id") 17 | private String referenceId = null; 18 | 19 | /** 20 | * custom reference id 21 | * 22 | **/ 23 | @ApiModelProperty(value = "custom reference id") 24 | public String getReferenceId() { 25 | return referenceId; 26 | } 27 | 28 | public void setReferenceId(String referenceId) { 29 | this.referenceId = referenceId; 30 | } 31 | 32 | @Override 33 | public boolean equals(Object o) { 34 | if (this == o) { 35 | return true; 36 | } 37 | if (o == null || getClass() != o.getClass()) { 38 | return false; 39 | } 40 | ChargeUpdateRequest chargeUpdateRequest = (ChargeUpdateRequest) o; 41 | return (this.referenceId == null ? chargeUpdateRequest.referenceId == null : this.referenceId.equals(chargeUpdateRequest.referenceId)); 42 | 43 | } 44 | 45 | @Override 46 | public int hashCode() { 47 | int result = 17; 48 | result = 31 * result + (this.referenceId == null ? 0 : this.referenceId.hashCode()); 49 | return result; 50 | } 51 | 52 | @Override 53 | public String toString() { 54 | StringBuilder sb = new StringBuilder(); 55 | sb.append("class ChargeUpdateRequest {\n"); 56 | 57 | sb.append(" referenceId: ").append(referenceId).append("\n"); 58 | sb.append("}"); 59 | return sb.toString(); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/TokenCheckout.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class TokenCheckout { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("returns_control_on") 14 | private String returnsControlOn = null; 15 | 16 | /** 17 | * It is a value that allows identifying the returns control on. 18 | * 19 | **/ 20 | @ApiModelProperty(value = "It is a value that allows identifying the returns control on.") 21 | public String getReturnsControlOn() { 22 | return returnsControlOn; 23 | } 24 | 25 | public void setReturnsControlOn(String returnsControlOn) { 26 | this.returnsControlOn = returnsControlOn; 27 | } 28 | 29 | @Override 30 | public boolean equals(Object o) { 31 | if (this == o) { 32 | return true; 33 | } 34 | if (o == null || getClass() != o.getClass()) { 35 | return false; 36 | } 37 | TokenCheckout tokenCheckout = (TokenCheckout) o; 38 | return (this.returnsControlOn == null ? tokenCheckout.returnsControlOn == null : this.returnsControlOn.equals(tokenCheckout.returnsControlOn)); 39 | 40 | } 41 | 42 | @Override 43 | public int hashCode() { 44 | int result = 17; 45 | result = 31 * result + (this.returnsControlOn == null ? 0 : this.returnsControlOn.hashCode()); 46 | return result; 47 | } 48 | 49 | @Override 50 | public String toString() { 51 | StringBuilder sb = new StringBuilder(); 52 | sb.append("class TokenCheckout {\n"); 53 | 54 | sb.append(" returnsControlOn: ").append(returnsControlOn).append("\n"); 55 | sb.append("}"); 56 | return sb.toString(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /templates/jsonUtil.mustache: -------------------------------------------------------------------------------- 1 | package {{invokerPackage}}; 2 | 3 | import com.google.gson.Gson; 4 | import com.google.gson.GsonBuilder; 5 | import com.google.gson.reflect.TypeToken; 6 | import java.lang.reflect.Type; 7 | import java.util.List; 8 | import {{modelPackage}}.*; 9 | import {{modelPackage}}.Error; 10 | 11 | public class JsonUtil { 12 | public static GsonBuilder gsonBuilder; 13 | 14 | static { 15 | gsonBuilder = new GsonBuilder(); 16 | gsonBuilder.setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); 17 | } 18 | 19 | public static Gson getGson() { 20 | return gsonBuilder.create(); 21 | } 22 | 23 | public static String serialize(Object obj){ 24 | return getGson().toJson(obj); 25 | } 26 | 27 | public static T deserializeToList(String jsonString, Class cls){ 28 | return getGson().fromJson(jsonString, getListTypeForDeserialization(cls)); 29 | } 30 | 31 | public static T deserializeToObject(String jsonString, Class cls){ 32 | return getGson().fromJson(jsonString, getTypeForDeserialization(cls)); 33 | } 34 | 35 | public static Type getListTypeForDeserialization(Class cls) { 36 | String className = cls.getSimpleName(); 37 | {{#models}}{{#model}} 38 | if ("{{classname}}".equalsIgnoreCase(className)) { 39 | return new TypeToken>(){}.getType(); 40 | } 41 | {{/model}}{{/models}} 42 | return new TypeToken>(){}.getType(); 43 | } 44 | 45 | public static Type getTypeForDeserialization(Class cls) { 46 | String className = cls.getSimpleName(); 47 | {{#models}}{{#model}} 48 | if ("{{classname}}".equalsIgnoreCase(className)) { 49 | return new TypeToken<{{classname}}>(){}.getType(); 50 | } 51 | {{/model}}{{/models}} 52 | return new TypeToken(){}.getType(); 53 | } 54 | 55 | }; 56 | -------------------------------------------------------------------------------- /docs/OrderResponseCheckout.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderResponseCheckout 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **allowedPaymentMethods** | **List<String>** | | [optional] 10 | **canNotExpire** | **Boolean** | | [optional] 11 | **emailsSent** | **Integer** | | [optional] 12 | **excludeCardNetworks** | **List<Object>** | | [optional] 13 | **expiresAt** | **Long** | | [optional] 14 | **failureUrl** | **String** | | [optional] 15 | **force3dsFlow** | **Boolean** | | [optional] 16 | **id** | **String** | | [optional] 17 | **isRedirectOnFailure** | **Boolean** | | [optional] 18 | **livemode** | **Boolean** | | [optional] 19 | **maxFailedRetries** | **Integer** | Number of retries allowed before the checkout is marked as failed | [optional] 20 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 21 | **monthlyInstallmentsEnabled** | **Boolean** | | [optional] 22 | **monthlyInstallmentsOptions** | **List<Integer>** | | [optional] 23 | **name** | **String** | | [optional] 24 | **needsShippingContact** | **Boolean** | | [optional] 25 | **_object** | **String** | | [optional] 26 | **onDemandEnabled** | **Boolean** | | [optional] 27 | **paidPaymentsCount** | **Integer** | | [optional] 28 | **recurrent** | **Boolean** | | [optional] 29 | **redirectionTime** | **Integer** | number of seconds to wait before redirecting to the success_url | [optional] 30 | **slug** | **String** | | [optional] 31 | **smsSent** | **Integer** | | [optional] 32 | **successUrl** | **String** | | [optional] 33 | **startsAt** | **Integer** | | [optional] 34 | **status** | **String** | | [optional] 35 | **type** | **String** | | [optional] 36 | **url** | **String** | | [optional] 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /docs/OrderUpdateRequest.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderUpdateRequest 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **charges** | [**List<ChargeRequest>**](ChargeRequest.md) | | [optional] 10 | **checkout** | [**CheckoutRequest**](CheckoutRequest.md) | | [optional] 11 | **currency** | **String** | Currency with which the payment will be made. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) | [optional] 12 | **customerInfo** | [**OrderUpdateRequestCustomerInfo**](OrderUpdateRequestCustomerInfo.md) | | [optional] 13 | **discountLines** | [**List<OrderDiscountLinesRequest>**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.1.0/reference/orderscreatediscountline) that are applied to the order. You must have at least one discount. | [optional] 14 | **fiscalEntity** | [**OrderUpdateFiscalEntityRequest**](OrderUpdateFiscalEntityRequest.md) | | [optional] 15 | **lineItems** | [**List<Product>**](Product.md) | List of [products](https://developers.conekta.com/v2.1.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | [optional] 16 | **metadata** | **Map<String, String>** | | [optional] 17 | **preAuthorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional] 18 | **shippingContact** | [**CustomerShippingContacts**](CustomerShippingContacts.md) | | [optional] 19 | **shippingLines** | [**List<ShippingRequest>**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.1.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] 20 | **taxLines** | [**List<OrderTaxRequest>**](OrderTaxRequest.md) | | [optional] 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/CustomerPaymentMethodRequest.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | /** 9 | * Contains details of the payment methods that the customer has active or has used in Conekta 10 | **/ 11 | @ApiModel(description = "Contains details of the payment methods that the customer has active or has used in Conekta") 12 | public class CustomerPaymentMethodRequest { 13 | 14 | private static final String MXN = "MXN"; 15 | 16 | @SerializedName("type") 17 | private String type = null; 18 | 19 | /** 20 | * Type of payment method 21 | * 22 | **/ 23 | @ApiModelProperty(required = true, value = "Type of payment method") 24 | public String getType() { 25 | return type; 26 | } 27 | 28 | public void setType(String type) { 29 | this.type = type; 30 | } 31 | 32 | @Override 33 | public boolean equals(Object o) { 34 | if (this == o) { 35 | return true; 36 | } 37 | if (o == null || getClass() != o.getClass()) { 38 | return false; 39 | } 40 | CustomerPaymentMethodRequest customerPaymentMethodRequest = (CustomerPaymentMethodRequest) o; 41 | return (this.type == null ? customerPaymentMethodRequest.type == null : this.type.equals(customerPaymentMethodRequest.type)); 42 | 43 | } 44 | 45 | @Override 46 | public int hashCode() { 47 | int result = 17; 48 | result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); 49 | return result; 50 | } 51 | 52 | @Override 53 | public String toString() { 54 | StringBuilder sb = new StringBuilder(); 55 | sb.append("class CustomerPaymentMethodRequest {\n"); 56 | 57 | sb.append(" type: ").append(type).append("\n"); 58 | sb.append("}"); 59 | return sb.toString(); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/EncryptedTypeAdapter.java: -------------------------------------------------------------------------------- 1 | package io.conekta; 2 | 3 | import javax.crypto.Cipher; 4 | import java.security.KeyFactory; 5 | import java.security.NoSuchAlgorithmException; 6 | import java.security.PublicKey; 7 | import java.security.spec.InvalidKeySpecException; 8 | import java.security.spec.X509EncodedKeySpec; 9 | import org.bouncycastle.util.encoders.Base64; 10 | 11 | public class EncryptedTypeAdapter { 12 | 13 | private static final String PUBLIC_KEY_PEM = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjet2Jm4iPJTqDlW64tEG\nI9/dJTJAcn3OQdHrEwNXCz0/Rewqcv/Hm+V0klsUiS9h2W5CLC42q6wGhtl9Buu5\nvefuLVyxc8klEEjrSz/5AgfZ4HvzatbVX0KQhHI1j+caOjatDHM/ih13Rj7HIJFn\nAcutRB9vyFiCVluqRhlB9/64sqGtVmxJAir7WJp4TmpPvSEqeGKQIb80Tq+FYY7f\ntpMxQpsBT8B6y4Kn95ZfDH72H3yJezs/mExVB3M/OCBg+xt/c3dXp65JsbS482c4\nKhkxxHChNn1Y/nZ8kFYzakRGhh0BMqkvkqtAwcQJK1xPx2jRELS1vj7OFfMR+3ms\nSQIDAQAB\n-----END PUBLIC KEY-----"; 14 | 15 | private PublicKey loadPublicKey(String publicKeyPem) throws NoSuchAlgorithmException, InvalidKeySpecException { 16 | byte[] keyBytes = Base64.decode(publicKeyPem.replaceAll("-----BEGIN PUBLIC KEY-----", "") 17 | .replaceAll("-----END PUBLIC KEY-----", "").replaceAll("\\s+", "")); 18 | X509EncodedKeySpec spec = new X509EncodedKeySpec(keyBytes); 19 | return KeyFactory.getInstance("RSA").generatePublic(spec); 20 | 21 | } 22 | 23 | public String encryptValue(String plainText) { 24 | try { 25 | PublicKey publicKey = loadPublicKey(PUBLIC_KEY_PEM); 26 | Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); 27 | cipher.init(Cipher.ENCRYPT_MODE, publicKey); 28 | byte[] encryptedBytes = cipher.doFinal(plainText.getBytes("UTF-8")); 29 | return Base64.toBase64String(encryptedBytes); 30 | }catch (Exception e){ 31 | return plainText; 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /docs/Customer.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Customer 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **antifraudInfo** | [**CustomerAntifraudInfo**](CustomerAntifraudInfo.md) | | [optional] 10 | **corporate** | **Boolean** | It is a value that allows identifying if the email is corporate or not. | [optional] 11 | **customReference** | **String** | It is an undefined value. | [optional] 12 | **email** | **String** | An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc). | 13 | **defaultPaymentSourceId** | **String** | It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id) | [optional] 14 | **defaultShippingContactId** | **String** | It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact) | [optional] 15 | **fiscalEntities** | [**List<CustomerFiscalEntitiesRequest>**](CustomerFiscalEntitiesRequest.md) | | [optional] 16 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 17 | **name** | **String** | Client's name | 18 | **paymentSources** | [**List<CustomerPaymentMethodsRequest>**](CustomerPaymentMethodsRequest.md) | Contains details of the payment methods that the customer has active or has used in Conekta | [optional] 19 | **phone** | **String** | Is the customer's phone number | 20 | **planId** | **String** | Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription | [optional] 21 | **shippingContacts** | [**List<CustomerShippingContacts>**](CustomerShippingContacts.md) | Contains the detail of the shipping addresses that the client has active or has used in Conekta | [optional] 22 | **subscription** | [**SubscriptionRequest**](SubscriptionRequest.md) | | [optional] 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /git_push.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ 3 | # 4 | # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" 5 | 6 | git_user_id=$1 7 | git_repo_id=$2 8 | release_note=$3 9 | git_host=$4 10 | 11 | if [ "$git_host" = "" ]; then 12 | git_host="github.com" 13 | echo "[INFO] No command line input provided. Set \$git_host to $git_host" 14 | fi 15 | 16 | if [ "$git_user_id" = "" ]; then 17 | git_user_id="GIT_USER_ID" 18 | echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" 19 | fi 20 | 21 | if [ "$git_repo_id" = "" ]; then 22 | git_repo_id="GIT_REPO_ID" 23 | echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" 24 | fi 25 | 26 | if [ "$release_note" = "" ]; then 27 | release_note="Minor update" 28 | echo "[INFO] No command line input provided. Set \$release_note to $release_note" 29 | fi 30 | 31 | # Initialize the local directory as a Git repository 32 | git init 33 | 34 | # Adds the files in the local repository and stages them for commit. 35 | git add . 36 | 37 | # Commits the tracked changes and prepares them to be pushed to a remote repository. 38 | git commit -m "$release_note" 39 | 40 | # Sets the new remote 41 | git_remote=$(git remote) 42 | if [ "$git_remote" = "" ]; then # git remote not defined 43 | 44 | if [ "$GIT_TOKEN" = "" ]; then 45 | echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." 46 | git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git 47 | else 48 | git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git 49 | fi 50 | 51 | fi 52 | 53 | git pull origin master 54 | 55 | # Pushes (Forces) the changes in the local repository up to the remote repository 56 | echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" 57 | git push origin master 2>&1 | grep -v 'To https' 58 | -------------------------------------------------------------------------------- /docs/TokenResponseCheckout.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # TokenResponseCheckout 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **allowedPaymentMethods** | **List<String>** | | [optional] 10 | **canNotExpire** | **Boolean** | Indicates if the checkout can not expire. | [optional] 11 | **emailsSent** | **Integer** | | [optional] 12 | **excludeCardNetworks** | **List<String>** | | [optional] 13 | **expiresAt** | **Long** | Date and time when the checkout expires. | [optional] 14 | **failureUrl** | **String** | URL to redirect the customer to if the payment process fails. | [optional] 15 | **force3dsFlow** | **Boolean** | Indicates if the checkout forces the 3DS flow. | [optional] 16 | **id** | **String** | | [optional] 17 | **livemode** | **Boolean** | | [optional] 18 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 19 | **monthlyInstallmentsEnabled** | **Boolean** | Indicates if the checkout allows monthly installments. | [optional] 20 | **monthlyInstallmentsOptions** | **List<Integer>** | List of monthly installments options. | [optional] 21 | **name** | **String** | | [optional] 22 | **needsShippingContact** | **Boolean** | | [optional] 23 | **_object** | **String** | Indicates the type of object, in this case checkout. | [optional] 24 | **onDemandEnabled** | **Boolean** | Indicates if the checkout allows on demand payments. | [optional] 25 | **paidPaymentsCount** | **Integer** | Number of payments that have been paid. | [optional] 26 | **recurrent** | **Boolean** | Indicates if the checkout is recurrent. | [optional] 27 | **smsSent** | **Integer** | | [optional] 28 | **startsAt** | **Long** | Date and time when the checkout starts. | [optional] 29 | **status** | **String** | Status of the checkout. | [optional] 30 | **successUrl** | **String** | URL to redirect the customer to after the payment process is completed. | [optional] 31 | **type** | **String** | Type of checkout. | [optional] 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/PaymentMethod.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class PaymentMethod { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("type") 14 | private String type = null; 15 | @SerializedName("object") 16 | private String _object = null; 17 | 18 | /** 19 | * 20 | * 21 | **/ 22 | @ApiModelProperty(value = "") 23 | public String getType() { 24 | return type; 25 | } 26 | 27 | public void setType(String type) { 28 | this.type = type; 29 | } 30 | /** 31 | * 32 | * 33 | **/ 34 | @ApiModelProperty(required = true, value = "") 35 | public String getObject() { 36 | return _object; 37 | } 38 | 39 | public void setObject(String _object) { 40 | this._object = _object; 41 | } 42 | 43 | @Override 44 | public boolean equals(Object o) { 45 | if (this == o) { 46 | return true; 47 | } 48 | if (o == null || getClass() != o.getClass()) { 49 | return false; 50 | } 51 | PaymentMethod paymentMethod = (PaymentMethod) o; 52 | return (this.type == null ? paymentMethod.type == null : this.type.equals(paymentMethod.type)) && 53 | (this._object == null ? paymentMethod._object == null : this._object.equals(paymentMethod._object)); 54 | 55 | } 56 | 57 | @Override 58 | public int hashCode() { 59 | int result = 17; 60 | result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); 61 | result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); 62 | return result; 63 | } 64 | 65 | @Override 66 | public String toString() { 67 | StringBuilder sb = new StringBuilder(); 68 | sb.append("class PaymentMethod {\n"); 69 | 70 | sb.append(" type: ").append(type).append("\n"); 71 | sb.append(" _object: ").append(_object).append("\n"); 72 | sb.append("}"); 73 | return sb.toString(); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /docs/UpdateCustomer.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # UpdateCustomer 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **antifraudInfo** | [**UpdateCustomerAntifraudInfo**](UpdateCustomerAntifraudInfo.md) | | [optional] 10 | **defaultPaymentSourceId** | **String** | It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id) | [optional] 11 | **email** | **String** | An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc). | [optional] 12 | **name** | **String** | Client's name | [optional] 13 | **phone** | **String** | Is the customer's phone number | [optional] 14 | **planId** | **String** | Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription | [optional] 15 | **defaultShippingContactId** | **String** | It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact) | [optional] 16 | **corporate** | **Boolean** | It is a value that allows identifying if the email is corporate or not. | [optional] 17 | **customReference** | **String** | It is an undefined value. | [optional] 18 | **fiscalEntities** | [**List<CustomerFiscalEntitiesRequest>**](CustomerFiscalEntitiesRequest.md) | | [optional] 19 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | | [optional] 20 | **paymentSources** | [**List<CustomerPaymentMethodsRequest>**](CustomerPaymentMethodsRequest.md) | Contains details of the payment methods that the customer has active or has used in Conekta | [optional] 21 | **shippingContacts** | [**List<CustomerShippingContacts>**](CustomerShippingContacts.md) | Contains the detail of the shipping addresses that the client has active or has used in Conekta | [optional] 22 | **subscription** | [**SubscriptionRequest**](SubscriptionRequest.md) | | [optional] 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/Token.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | import io.conekta.model.TokenCard; 4 | import io.conekta.model.TokenCheckout; 5 | 6 | import io.swagger.annotations.*; 7 | import com.google.gson.annotations.SerializedName; 8 | import io.conekta.EncryptedTypeAdapter; 9 | 10 | /** 11 | * a token 12 | **/ 13 | @ApiModel(description = "a token") 14 | public class Token { 15 | 16 | private static final String MXN = "MXN"; 17 | 18 | @SerializedName("card") 19 | private TokenCard card = null; 20 | @SerializedName("checkout") 21 | private TokenCheckout checkout = null; 22 | 23 | /** 24 | * 25 | * 26 | **/ 27 | @ApiModelProperty(value = "") 28 | public TokenCard getCard() { 29 | return card; 30 | } 31 | 32 | public void setCard(TokenCard card) { 33 | this.card = card; 34 | } 35 | /** 36 | * 37 | * 38 | **/ 39 | @ApiModelProperty(value = "") 40 | public TokenCheckout getCheckout() { 41 | return checkout; 42 | } 43 | 44 | public void setCheckout(TokenCheckout checkout) { 45 | this.checkout = checkout; 46 | } 47 | 48 | @Override 49 | public boolean equals(Object o) { 50 | if (this == o) { 51 | return true; 52 | } 53 | if (o == null || getClass() != o.getClass()) { 54 | return false; 55 | } 56 | Token token = (Token) o; 57 | return (this.card == null ? token.card == null : this.card.equals(token.card)) && 58 | (this.checkout == null ? token.checkout == null : this.checkout.equals(token.checkout)); 59 | 60 | } 61 | 62 | @Override 63 | public int hashCode() { 64 | int result = 17; 65 | result = 31 * result + (this.card == null ? 0 : this.card.hashCode()); 66 | result = 31 * result + (this.checkout == null ? 0 : this.checkout.hashCode()); 67 | return result; 68 | } 69 | 70 | @Override 71 | public String toString() { 72 | StringBuilder sb = new StringBuilder(); 73 | sb.append("class Token {\n"); 74 | 75 | sb.append(" card: ").append(card).append("\n"); 76 | sb.append(" checkout: ").append(checkout).append("\n"); 77 | sb.append("}"); 78 | return sb.toString(); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/PaymentMethodCashRequest.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class PaymentMethodCashRequest { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("type") 14 | private String type = null; 15 | @SerializedName("expires_at") 16 | private Long expiresAt = null; 17 | 18 | /** 19 | * Type of payment method 20 | * 21 | **/ 22 | @ApiModelProperty(required = true, value = "Type of payment method") 23 | public String getType() { 24 | return type; 25 | } 26 | 27 | public void setType(String type) { 28 | this.type = type; 29 | } 30 | /** 31 | * 32 | * 33 | **/ 34 | @ApiModelProperty(value = "") 35 | public Long getExpiresAt() { 36 | return expiresAt; 37 | } 38 | 39 | public void setExpiresAt(Long expiresAt) { 40 | this.expiresAt = expiresAt; 41 | } 42 | 43 | @Override 44 | public boolean equals(Object o) { 45 | if (this == o) { 46 | return true; 47 | } 48 | if (o == null || getClass() != o.getClass()) { 49 | return false; 50 | } 51 | PaymentMethodCashRequest paymentMethodCashRequest = (PaymentMethodCashRequest) o; 52 | return (this.type == null ? paymentMethodCashRequest.type == null : this.type.equals(paymentMethodCashRequest.type)) && 53 | (this.expiresAt == null ? paymentMethodCashRequest.expiresAt == null : this.expiresAt.equals(paymentMethodCashRequest.expiresAt)); 54 | 55 | } 56 | 57 | @Override 58 | public int hashCode() { 59 | int result = 17; 60 | result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); 61 | result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); 62 | return result; 63 | } 64 | 65 | @Override 66 | public String toString() { 67 | StringBuilder sb = new StringBuilder(); 68 | sb.append("class PaymentMethodCashRequest {\n"); 69 | 70 | sb.append(" type: ").append(type).append("\n"); 71 | sb.append(" expiresAt: ").append(expiresAt).append("\n"); 72 | sb.append("}"); 73 | return sb.toString(); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/PaymentMethodSpeiRequest.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class PaymentMethodSpeiRequest { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("type") 14 | private String type = null; 15 | @SerializedName("expires_at") 16 | private Long expiresAt = null; 17 | 18 | /** 19 | * Type of payment method 20 | * 21 | **/ 22 | @ApiModelProperty(required = true, value = "Type of payment method") 23 | public String getType() { 24 | return type; 25 | } 26 | 27 | public void setType(String type) { 28 | this.type = type; 29 | } 30 | /** 31 | * 32 | * 33 | **/ 34 | @ApiModelProperty(value = "") 35 | public Long getExpiresAt() { 36 | return expiresAt; 37 | } 38 | 39 | public void setExpiresAt(Long expiresAt) { 40 | this.expiresAt = expiresAt; 41 | } 42 | 43 | @Override 44 | public boolean equals(Object o) { 45 | if (this == o) { 46 | return true; 47 | } 48 | if (o == null || getClass() != o.getClass()) { 49 | return false; 50 | } 51 | PaymentMethodSpeiRequest paymentMethodSpeiRequest = (PaymentMethodSpeiRequest) o; 52 | return (this.type == null ? paymentMethodSpeiRequest.type == null : this.type.equals(paymentMethodSpeiRequest.type)) && 53 | (this.expiresAt == null ? paymentMethodSpeiRequest.expiresAt == null : this.expiresAt.equals(paymentMethodSpeiRequest.expiresAt)); 54 | 55 | } 56 | 57 | @Override 58 | public int hashCode() { 59 | int result = 17; 60 | result = 31 * result + (this.type == null ? 0 : this.type.hashCode()); 61 | result = 31 * result + (this.expiresAt == null ? 0 : this.expiresAt.hashCode()); 62 | return result; 63 | } 64 | 65 | @Override 66 | public String toString() { 67 | StringBuilder sb = new StringBuilder(); 68 | sb.append("class PaymentMethodSpeiRequest {\n"); 69 | 70 | sb.append(" type: ").append(type).append("\n"); 71 | sb.append(" expiresAt: ").append(expiresAt).append("\n"); 72 | sb.append("}"); 73 | return sb.toString(); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/ApiKeyRequest.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class ApiKeyRequest { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("description") 14 | private String description = null; 15 | @SerializedName("role") 16 | private String role = null; 17 | 18 | /** 19 | * A name or brief explanation of what this api key is used for 20 | * 21 | **/ 22 | @ApiModelProperty(value = "A name or brief explanation of what this api key is used for") 23 | public String getDescription() { 24 | return description; 25 | } 26 | 27 | public void setDescription(String description) { 28 | this.description = description; 29 | } 30 | /** 31 | * 32 | * 33 | **/ 34 | @ApiModelProperty(required = true, value = "") 35 | public String getRole() { 36 | return role; 37 | } 38 | 39 | public void setRole(String role) { 40 | this.role = role; 41 | } 42 | 43 | @Override 44 | public boolean equals(Object o) { 45 | if (this == o) { 46 | return true; 47 | } 48 | if (o == null || getClass() != o.getClass()) { 49 | return false; 50 | } 51 | ApiKeyRequest apiKeyRequest = (ApiKeyRequest) o; 52 | return (this.description == null ? apiKeyRequest.description == null : this.description.equals(apiKeyRequest.description)) && 53 | (this.role == null ? apiKeyRequest.role == null : this.role.equals(apiKeyRequest.role)); 54 | 55 | } 56 | 57 | @Override 58 | public int hashCode() { 59 | int result = 17; 60 | result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); 61 | result = 31 * result + (this.role == null ? 0 : this.role.hashCode()); 62 | return result; 63 | } 64 | 65 | @Override 66 | public String toString() { 67 | StringBuilder sb = new StringBuilder(); 68 | sb.append("class ApiKeyRequest {\n"); 69 | 70 | sb.append(" description: ").append(description).append("\n"); 71 | sb.append(" role: ").append(role).append("\n"); 72 | sb.append("}"); 73 | return sb.toString(); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/BalanceCommonField.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | /** 9 | * balance common fields model 10 | **/ 11 | @ApiModel(description = "balance common fields model") 12 | public class BalanceCommonField { 13 | 14 | private static final String MXN = "MXN"; 15 | 16 | @SerializedName("amount") 17 | private Long amount = null; 18 | @SerializedName("currency") 19 | private String currency = null; 20 | 21 | /** 22 | * The balance's amount 23 | * 24 | **/ 25 | @ApiModelProperty(value = "The balance's amount") 26 | public Long getAmount() { 27 | return amount; 28 | } 29 | 30 | public void setAmount(Long amount) { 31 | this.amount = amount; 32 | } 33 | /** 34 | * The balance's currency 35 | * 36 | **/ 37 | @ApiModelProperty(value = "The balance's currency") 38 | public String getCurrency() { 39 | return currency; 40 | } 41 | 42 | public void setCurrency(String currency) { 43 | this.currency = currency; 44 | } 45 | 46 | @Override 47 | public boolean equals(Object o) { 48 | if (this == o) { 49 | return true; 50 | } 51 | if (o == null || getClass() != o.getClass()) { 52 | return false; 53 | } 54 | BalanceCommonField balanceCommonField = (BalanceCommonField) o; 55 | return (this.amount == null ? balanceCommonField.amount == null : this.amount.equals(balanceCommonField.amount)) && 56 | (this.currency == null ? balanceCommonField.currency == null : this.currency.equals(balanceCommonField.currency)); 57 | 58 | } 59 | 60 | @Override 61 | public int hashCode() { 62 | int result = 17; 63 | result = 31 * result + (this.amount == null ? 0 : this.amount.hashCode()); 64 | result = 31 * result + (this.currency == null ? 0 : this.currency.hashCode()); 65 | return result; 66 | } 67 | 68 | @Override 69 | public String toString() { 70 | StringBuilder sb = new StringBuilder(); 71 | sb.append("class BalanceCommonField {\n"); 72 | 73 | sb.append(" amount: ").append(amount).append("\n"); 74 | sb.append(" currency: ").append(currency).append("\n"); 75 | sb.append("}"); 76 | return sb.toString(); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/Pagination.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | /** 9 | * pagination metadata 10 | **/ 11 | @ApiModel(description = "pagination metadata") 12 | public class Pagination { 13 | 14 | private static final String MXN = "MXN"; 15 | 16 | @SerializedName("has_more") 17 | private Boolean hasMore = null; 18 | @SerializedName("object") 19 | private String _object = null; 20 | 21 | /** 22 | * Indicates if there are more pages to be requested 23 | * 24 | **/ 25 | @ApiModelProperty(required = true, value = "Indicates if there are more pages to be requested") 26 | public Boolean getHasMore() { 27 | return hasMore; 28 | } 29 | 30 | public void setHasMore(Boolean hasMore) { 31 | this.hasMore = hasMore; 32 | } 33 | /** 34 | * Object type, in this case is list 35 | * 36 | **/ 37 | @ApiModelProperty(required = true, value = "Object type, in this case is list") 38 | public String getObject() { 39 | return _object; 40 | } 41 | 42 | public void setObject(String _object) { 43 | this._object = _object; 44 | } 45 | 46 | @Override 47 | public boolean equals(Object o) { 48 | if (this == o) { 49 | return true; 50 | } 51 | if (o == null || getClass() != o.getClass()) { 52 | return false; 53 | } 54 | Pagination pagination = (Pagination) o; 55 | return (this.hasMore == null ? pagination.hasMore == null : this.hasMore.equals(pagination.hasMore)) && 56 | (this._object == null ? pagination._object == null : this._object.equals(pagination._object)); 57 | 58 | } 59 | 60 | @Override 61 | public int hashCode() { 62 | int result = 17; 63 | result = 31 * result + (this.hasMore == null ? 0 : this.hasMore.hashCode()); 64 | result = 31 * result + (this._object == null ? 0 : this._object.hashCode()); 65 | return result; 66 | } 67 | 68 | @Override 69 | public String toString() { 70 | StringBuilder sb = new StringBuilder(); 71 | sb.append("class Pagination {\n"); 72 | 73 | sb.append(" hasMore: ").append(hasMore).append("\n"); 74 | sb.append(" _object: ").append(_object).append("\n"); 75 | sb.append("}"); 76 | return sb.toString(); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/Page.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | /** 9 | * page metadata 10 | **/ 11 | @ApiModel(description = "page metadata") 12 | public class Page { 13 | 14 | private static final String MXN = "MXN"; 15 | 16 | @SerializedName("next_page_url") 17 | private String nextPageUrl = null; 18 | @SerializedName("previous_page_url") 19 | private String previousPageUrl = null; 20 | 21 | /** 22 | * URL of the next page. 23 | * 24 | **/ 25 | @ApiModelProperty(value = "URL of the next page.") 26 | public String getNextPageUrl() { 27 | return nextPageUrl; 28 | } 29 | 30 | public void setNextPageUrl(String nextPageUrl) { 31 | this.nextPageUrl = nextPageUrl; 32 | } 33 | /** 34 | * Url of the previous page. 35 | * 36 | **/ 37 | @ApiModelProperty(value = "Url of the previous page.") 38 | public String getPreviousPageUrl() { 39 | return previousPageUrl; 40 | } 41 | 42 | public void setPreviousPageUrl(String previousPageUrl) { 43 | this.previousPageUrl = previousPageUrl; 44 | } 45 | 46 | @Override 47 | public boolean equals(Object o) { 48 | if (this == o) { 49 | return true; 50 | } 51 | if (o == null || getClass() != o.getClass()) { 52 | return false; 53 | } 54 | Page page = (Page) o; 55 | return (this.nextPageUrl == null ? page.nextPageUrl == null : this.nextPageUrl.equals(page.nextPageUrl)) && 56 | (this.previousPageUrl == null ? page.previousPageUrl == null : this.previousPageUrl.equals(page.previousPageUrl)); 57 | 58 | } 59 | 60 | @Override 61 | public int hashCode() { 62 | int result = 17; 63 | result = 31 * result + (this.nextPageUrl == null ? 0 : this.nextPageUrl.hashCode()); 64 | result = 31 * result + (this.previousPageUrl == null ? 0 : this.previousPageUrl.hashCode()); 65 | return result; 66 | } 67 | 68 | @Override 69 | public String toString() { 70 | StringBuilder sb = new StringBuilder(); 71 | sb.append("class Page {\n"); 72 | 73 | sb.append(" nextPageUrl: ").append(nextPageUrl).append("\n"); 74 | sb.append(" previousPageUrl: ").append(previousPageUrl).append("\n"); 75 | sb.append("}"); 76 | return sb.toString(); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /docs/OrderResponse.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # OrderResponse 4 | 5 | ## Properties 6 | 7 | Name | Type | Description | Notes 8 | ------------ | ------------- | ------------- | ------------- 9 | **amount** | **Integer** | The total amount to be collected in cents | [optional] 10 | **amountRefunded** | **Integer** | The total amount refunded in cents | [optional] 11 | **channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] 12 | **charges** | [**OrderResponseCharges**](OrderResponseCharges.md) | | [optional] 13 | **checkout** | [**OrderResponseCheckout**](OrderResponseCheckout.md) | | [optional] 14 | **createdAt** | **Long** | The time at which the object was created in seconds since the Unix epoch | [optional] 15 | **currency** | **String** | The three-letter ISO 4217 currency code. The currency of the order. | [optional] 16 | **customerInfo** | [**OrderResponseCustomerInfo**](OrderResponseCustomerInfo.md) | | [optional] 17 | **discountLines** | [**OrderResponseDiscountLines**](OrderResponseDiscountLines.md) | | [optional] 18 | **fiscalEntity** | [**OrderFiscalEntityResponse**](OrderFiscalEntityResponse.md) | | [optional] 19 | **id** | **String** | | [optional] 20 | **isRefundable** | **Boolean** | | [optional] 21 | **lineItems** | [**OrderResponseProducts**](OrderResponseProducts.md) | | [optional] 22 | **livemode** | **Boolean** | Whether the object exists in live mode or test mode | [optional] 23 | **metadata** | [**Map<String, OasAnyTypeNotMapped>**](OasAnyTypeNotMapped.md) | Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. | [optional] 24 | **nextAction** | [**OrderNextActionResponse**](OrderNextActionResponse.md) | | [optional] 25 | **_object** | **String** | String representing the object’s type. Objects of the same type share the same value. | [optional] 26 | **paymentStatus** | **String** | The payment status of the order. | [optional] 27 | **processingMode** | **String** | Indicates the processing mode for the order, either ecommerce, recurrent or validation. | [optional] 28 | **shippingContact** | [**OrderResponseShippingContact**](OrderResponseShippingContact.md) | | [optional] 29 | **updatedAt** | **Long** | The time at which the object was last updated in seconds since the Unix epoch | [optional] 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/CustomerAntifraudInfo.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class CustomerAntifraudInfo { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("account_created_at") 14 | private Long accountCreatedAt = null; 15 | @SerializedName("first_paid_at") 16 | private Long firstPaidAt = null; 17 | 18 | /** 19 | * 20 | * 21 | **/ 22 | @ApiModelProperty(value = "") 23 | public Long getAccountCreatedAt() { 24 | return accountCreatedAt; 25 | } 26 | 27 | public void setAccountCreatedAt(Long accountCreatedAt) { 28 | this.accountCreatedAt = accountCreatedAt; 29 | } 30 | /** 31 | * 32 | * 33 | **/ 34 | @ApiModelProperty(value = "") 35 | public Long getFirstPaidAt() { 36 | return firstPaidAt; 37 | } 38 | 39 | public void setFirstPaidAt(Long firstPaidAt) { 40 | this.firstPaidAt = firstPaidAt; 41 | } 42 | 43 | @Override 44 | public boolean equals(Object o) { 45 | if (this == o) { 46 | return true; 47 | } 48 | if (o == null || getClass() != o.getClass()) { 49 | return false; 50 | } 51 | CustomerAntifraudInfo customerAntifraudInfo = (CustomerAntifraudInfo) o; 52 | return (this.accountCreatedAt == null ? customerAntifraudInfo.accountCreatedAt == null : this.accountCreatedAt.equals(customerAntifraudInfo.accountCreatedAt)) && 53 | (this.firstPaidAt == null ? customerAntifraudInfo.firstPaidAt == null : this.firstPaidAt.equals(customerAntifraudInfo.firstPaidAt)); 54 | 55 | } 56 | 57 | @Override 58 | public int hashCode() { 59 | int result = 17; 60 | result = 31 * result + (this.accountCreatedAt == null ? 0 : this.accountCreatedAt.hashCode()); 61 | result = 31 * result + (this.firstPaidAt == null ? 0 : this.firstPaidAt.hashCode()); 62 | return result; 63 | } 64 | 65 | @Override 66 | public String toString() { 67 | StringBuilder sb = new StringBuilder(); 68 | sb.append("class CustomerAntifraudInfo {\n"); 69 | 70 | sb.append(" accountCreatedAt: ").append(accountCreatedAt).append("\n"); 71 | sb.append(" firstPaidAt: ").append(firstPaidAt).append("\n"); 72 | sb.append("}"); 73 | return sb.toString(); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /src/main/java/io/conekta/model/ApiKeyUpdateRequest.java: -------------------------------------------------------------------------------- 1 | package io.conekta.model; 2 | 3 | 4 | import io.swagger.annotations.*; 5 | import com.google.gson.annotations.SerializedName; 6 | import io.conekta.EncryptedTypeAdapter; 7 | 8 | @ApiModel(description = "") 9 | public class ApiKeyUpdateRequest { 10 | 11 | private static final String MXN = "MXN"; 12 | 13 | @SerializedName("active") 14 | private Boolean active = null; 15 | @SerializedName("description") 16 | private String description = null; 17 | 18 | /** 19 | * Indicates if the webhook key is active 20 | * 21 | **/ 22 | @ApiModelProperty(value = "Indicates if the webhook key is active") 23 | public Boolean getActive() { 24 | return active; 25 | } 26 | 27 | public void setActive(Boolean active) { 28 | this.active = active; 29 | } 30 | /** 31 | * A name or brief explanation of what this api key is used for 32 | * 33 | **/ 34 | @ApiModelProperty(value = "A name or brief explanation of what this api key is used for") 35 | public String getDescription() { 36 | return description; 37 | } 38 | 39 | public void setDescription(String description) { 40 | this.description = description; 41 | } 42 | 43 | @Override 44 | public boolean equals(Object o) { 45 | if (this == o) { 46 | return true; 47 | } 48 | if (o == null || getClass() != o.getClass()) { 49 | return false; 50 | } 51 | ApiKeyUpdateRequest apiKeyUpdateRequest = (ApiKeyUpdateRequest) o; 52 | return (this.active == null ? apiKeyUpdateRequest.active == null : this.active.equals(apiKeyUpdateRequest.active)) && 53 | (this.description == null ? apiKeyUpdateRequest.description == null : this.description.equals(apiKeyUpdateRequest.description)); 54 | 55 | } 56 | 57 | @Override 58 | public int hashCode() { 59 | int result = 17; 60 | result = 31 * result + (this.active == null ? 0 : this.active.hashCode()); 61 | result = 31 * result + (this.description == null ? 0 : this.description.hashCode()); 62 | return result; 63 | } 64 | 65 | @Override 66 | public String toString() { 67 | StringBuilder sb = new StringBuilder(); 68 | sb.append("class ApiKeyUpdateRequest {\n"); 69 | 70 | sb.append(" active: ").append(active).append("\n"); 71 | sb.append(" description: ").append(description).append("\n"); 72 | sb.append("}"); 73 | return sb.toString(); 74 | } 75 | } 76 | --------------------------------------------------------------------------------