From bf4175bf3690686da5a3523b3d98aac3c8f5df1f Mon Sep 17 00:00:00 2001 From: Franklin Carrero Date: Tue, 26 Nov 2024 09:54:26 -0500 Subject: [PATCH] Update sdk (#35) * beta 1 * using kotlin * kotlin * mockkon * ignore model test * fix java version * java 11 * kotlin * kotlin * java 8 * java 11 * using android * changes * config java 11 * fix models * chore: Update build process to use Makefile and Gradle 7.3.1 * 6.0.0 beta version * Remove OasAnyTypeNotMapped class This commit removes the OasAnyTypeNotMapped class from the codebase. The class was no longer needed and has been deleted. * Update artifact and user agent versions - Updated the artifact version in config.json and README.md from "6.0.0-beta" to "6.0.0-SNAPSHOT". - Updated the user agent version in ApiInvoker.java from "6.0.0-beta" to "6.0.0-SNAPSHOT". * Fix null return in ApiInvoker and JsonUtil - In ApiInvoker, changed the return value from an empty string to null when the parameter is null. - In JsonUtil, removed the serialization of null values. Created a new test file CustomerApiTest.java for testing the creation of a customer. * .gitignore and add Token.java gradle.properties, and AndroidManifest.xml - Updated .gitignore to ignore local.properties instead of gradle.properties - Added Token.java file with code for creating a token using Conekta API - Created gradle.properties file with AndroidX and Jetifier configuration - Modified AndroidManifest.xml to include the org.apache.http.legacy library * chore: Update dependencies and add new fields - Updated OpenAPI generator version to 7.9.0 - Added `org.bouncycastle:bcprov-jdk15on:1.70` as a new dependency in the `build.gradle` file - Added `customerIpAddress` field to the following classes: - ChargeOrderResponsePaymentMethod - ChargeRequestPaymentMethod - ChargeResponsePaymentMethod - PaymentMethodBankTransfer - PaymentMethodCard - PaymentMethodCardRequest - PaymentMethodCash - PaymentMethodGeneralRequest * chore: Update code and dependencies - Updated version to 6.0.1-SNAPSHOT in build.gradle - Updated artifactVersion to 6.0.1-SNAPSHOT in config.json - Added new files ChargesOrderResponse.java and ChargesOrderResponseAllOfData.java - Added new method ordersCreateCharges() in ChargesApi.java - Updated httpUserAgent to "Conekta/v2 Android/6.0.1-SNAPSHOT" in config.json * Refactor metadata initialization in Product, ProductDataResponse, and ProductOrderResponse classes - Initialize the metadata field with an empty HashMap instead of an empty Map - This change ensures that the metadata field is always initialized correctly * Update publishing credentials and add deploy task to Makefile - Update the publishing credentials in build.gradle to use environment variables if available, otherwise fallback to project properties. - Add a new deploy task to the Makefile that runs `./gradlew publish`. - These changes ensure that the publishing process is more secure and streamlined. * Add dependency on "bundleReleaseAar" task for publishing to OSSRH repository This commit adds a dependency on the "bundleReleaseAar" task for the "publishMavenJavaPublicationToOSSRHRepository" task in the build.gradle file. This ensures that the AAR bundle is generated before publishing to the OSSRH repository. * Update artifact upload action to version 4 The code changes update the artifact upload action from version 2 to version 4 in the build workflow. This ensures that the correct version of the action is used for archiving artifacts. * Refactor Makefile for better readability and consistency - Removed unnecessary blank lines - Fixed indentation issues - Replaced tabs with spaces for consistent formatting * feat: Add new API endpoint for canceling a payout order This commit adds a new API endpoint `cancelPayoutOrderById` to the `PayoutOrdersApi` class. This endpoint allows users to cancel a payout order by providing the ID of the resource. The method is a PUT request and is located at `/payout_orders/{id}/cancel`. The commit also includes updates to the documentation, specifically in the `PayoutOrdersApi.md` file, where the new endpoint is described along with its parameters and return type. Additionally, there are some changes made to other files such as `Makefile`, `README.md`, `EncryptedTypeAdapter.java`, `ApiKeyCreateResponse.java`, `ApiKeyRequest.java`, `ApiKeyResponse.java`, `ApiKeyResponseOnDelete.java`, `ApiKeyUpdateRequest.java`, and `BalanceCommonField.java`. These changes include code refactoring, imports optimization, and minor updates to class descriptions. These changes aim to improve code readability and maintainability. * Refactor TokenCard setters to encrypt sensitive data - Encrypt the expiration month, year, and cardholder name using the `EncryptedTypeAdapter` class in the setters for `expMonth`, `expYear`, and `name` respectively. This ensures that sensitive information is stored securely. * Change language parameter in createToken method to "en" instead of "es" - Update TokensApiTest.java - Change language parameter in createToken method from "es" to "en" --- .codeclimate.yml | 12 - .github/workflows/build.yml | 37 + .gitignore | 48 +- .idea/.name | 1 - .idea/assetWizardSettings.xml | 14 - .idea/caches/build_file_checksums.ser | Bin 596 -> 0 bytes .idea/codeStyles/Project.xml | 29 - .idea/compiler.xml | 22 - .idea/copyright/profiles_settings.xml | 3 - .idea/encodings.xml | 7 - .idea/gradle.xml | 27 - .idea/misc.xml | 33 - .idea/modules.xml | 10 - .idea/runConfigurations.xml | 12 - .idea/vcs.xml | 6 - .openapi-generator-ignore | 25 + .openapi-generator/FILES | 417 +++++ .openapi-generator/VERSION | 1 + CHANGELOG | 2 - Makefile | 16 + README.md | 722 ++++---- app/.gitignore | 1 - app/app.iml | 173 -- app/build.gradle | 45 - app/libs/conektasdk-release.aar | Bin 18532 -> 0 bytes app/proguard-rules.pro | 17 - .../conekta/helloconekta/ApplicationTest.java | 25 - app/src/main/AndroidManifest.xml | 29 - .../java/io/conekta/helloconekta/Form.java | 273 --- app/src/main/res/drawable-hdpi/card_chip.png | Bin 3769 -> 0 bytes .../res/drawable-hdpi/conekta_logo_01.png | Bin 36625 -> 0 bytes app/src/main/res/drawable-mdpi/card_chip.png | Bin 2089 -> 0 bytes .../res/drawable-mdpi/conekta_logo_01.png | Bin 26232 -> 0 bytes app/src/main/res/drawable-xhdpi/card_chip.png | Bin 4941 -> 0 bytes .../res/drawable-xhdpi/conekta_logo_01.png | Bin 13099 -> 0 bytes .../main/res/drawable-xxhdpi/card_chip.png | Bin 11957 -> 0 bytes .../res/drawable-xxhdpi/conekta_logo_01.png | Bin 66919 -> 0 bytes .../main/res/drawable-xxxhdpi/card_chip.png | Bin 20154 -> 0 bytes .../res/drawable-xxxhdpi/conekta_logo_01.png | Bin 92644 -> 0 bytes app/src/main/res/drawable/card_bg.xml | 7 - .../main/res/drawable/pin_medium_button.xml | 23 - app/src/main/res/layout/activity_form.xml | 347 ---- app/src/main/res/menu/menu_form.xml | 6 - app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 3418 -> 0 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 2206 -> 0 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 4842 -> 0 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 7718 -> 0 bytes app/src/main/res/values-w820dp/dimens.xml | 6 - app/src/main/res/values/dimens.xml | 5 - app/src/main/res/values/strings.xml | 25 - app/src/main/res/values/styles.xml | 8 - build.gradle | 110 +- conekta-android.iml | 19 - conektasdk/.gitignore | 1 - conektasdk/build.gradle | 43 - conektasdk/conektasdk.iml | 155 -- conektasdk/gradle.properties | 3 - conektasdk/proguard-rules.pro | 17 - .../conekta/conektasdk/ApplicationTest.java | 27 - conektasdk/src/main/AndroidManifest.xml | 9 - .../main/java/io/conekta/conektasdk/Card.java | 72 - .../java/io/conekta/conektasdk/Conekta.java | 109 -- .../io/conekta/conektasdk/Connection.java | 92 -- .../java/io/conekta/conektasdk/Token.java | 83 - conektasdk/src/main/res/values/strings.xml | 3 - .../conekta/conektasdk/ExampleUnitTest.java | 15 - config.json | 40 + docs/AntifraudApi.md | 294 ++++ docs/ApiKeyCreateResponse.md | 24 + docs/ApiKeyRequest.md | 14 + docs/ApiKeyResponse.md | 23 + docs/ApiKeyResponseOnDelete.md | 21 + docs/ApiKeyUpdateRequest.md | 14 + docs/ApiKeysApi.md | 267 +++ docs/BalanceCommonField.md | 14 + docs/BalanceResponse.md | 22 + docs/BalancesApi.md | 55 + docs/BlacklistRuleResponse.md | 16 + docs/ChargeOrderResponse.md | 31 + docs/ChargeOrderResponsePaymentMethod.md | 50 + docs/ChargeRequest.md | 15 + docs/ChargeRequestPaymentMethod.md | 24 + docs/ChargeResponse.md | 30 + docs/ChargeResponseChannel.md | 16 + docs/ChargeResponsePaymentMethod.md | 50 + docs/ChargeResponseRefunds.md | 17 + docs/ChargeResponseRefundsData.md | 19 + docs/ChargeUpdateRequest.md | 13 + docs/ChargesApi.md | 220 +++ docs/ChargesDataResponse.md | 30 + docs/ChargesOrderResponse.md | 15 + docs/ChargesOrderResponseAllOfData.md | 30 + docs/Checkout.md | 24 + docs/CheckoutOrderTemplate.md | 16 + docs/CheckoutOrderTemplateCustomerInfo.md | 18 + docs/CheckoutRequest.md | 23 + docs/CheckoutResponse.md | 37 + docs/CheckoutsResponse.md | 17 + docs/CompaniesApi.md | 110 ++ docs/CompanyFiscalInfoAddressResponse.md | 27 + docs/CompanyFiscalInfoResponse.md | 25 + docs/CompanyPayoutDestinationResponse.md | 30 + docs/CompanyResponse.md | 26 + docs/CreateCustomerFiscalEntitiesResponse.md | 23 + docs/CreateCustomerPaymentMethodsRequest.md | 15 + docs/CreateCustomerPaymentMethodsResponse.md | 32 + docs/CreateRiskRulesData.md | 15 + docs/Customer.md | 26 + docs/CustomerAddress.md | 20 + docs/CustomerAntifraudInfo.md | 14 + docs/CustomerAntifraudInfoResponse.md | 14 + docs/CustomerFiscalEntitiesDataResponse.md | 23 + docs/CustomerFiscalEntitiesRequest.md | 18 + docs/CustomerFiscalEntitiesResponse.md | 15 + docs/CustomerInfo.md | 17 + docs/CustomerInfoJustCustomerId.md | 13 + docs/CustomerInfoJustCustomerIdResponse.md | 13 + docs/CustomerPaymentMethodRequest.md | 13 + docs/CustomerPaymentMethodsData.md | 32 + docs/CustomerPaymentMethodsRequest.md | 15 + docs/CustomerPaymentMethodsResponse.md | 17 + docs/CustomerResponse.md | 30 + docs/CustomerResponseShippingContacts.md | 15 + docs/CustomerShippingContacts.md | 20 + docs/CustomerShippingContactsAddress.md | 19 + docs/CustomerShippingContactsDataResponse.md | 23 + docs/CustomerShippingContactsResponse.md | 23 + ...CustomerShippingContactsResponseAddress.md | 20 + docs/CustomerUpdateFiscalEntitiesRequest.md | 18 + docs/CustomerUpdateShippingContacts.md | 19 + docs/CustomersApi.md | 379 +++++ docs/CustomersResponse.md | 17 + docs/DeleteApiKeysResponse.md | 21 + docs/DeletedBlacklistRuleResponse.md | 16 + docs/DeletedWhitelistRuleResponse.md | 16 + docs/Details.md | 13 + docs/DetailsError.md | 16 + docs/DiscountLinesDataResponse.md | 18 + docs/DiscountLinesResponse.md | 18 + docs/DiscountsApi.md | 281 ++++ docs/EmailCheckoutRequest.md | 13 + docs/Error.md | 16 + docs/EventResponse.md | 20 + docs/EventTypes.md | 10 + docs/EventsApi.md | 165 ++ docs/EventsResendResponse.md | 18 + docs/FiscalEntityAddress.md | 19 + docs/GetApiKeysResponse.md | 17 + docs/GetChargesResponse.md | 17 + docs/GetCompaniesResponse.md | 17 + docs/GetCustomerPaymentMethodDataResponse.md | 32 + docs/GetEventsResponse.md | 17 + docs/GetOrderDiscountLinesResponse.md | 17 + docs/GetOrdersResponse.md | 17 + docs/GetPaymentMethodResponse.md | 17 + docs/GetPlansResponse.md | 17 + docs/GetTransactionsResponse.md | 17 + docs/GetTransfersResponse.md | 17 + docs/GetWebhookKeysResponse.md | 17 + docs/GetWebhooksResponse.md | 17 + docs/LogResponse.md | 32 + docs/LogsApi.md | 116 ++ docs/LogsResponse.md | 17 + docs/LogsResponseData.md | 32 + docs/OrderCaptureRequest.md | 13 + docs/OrderCustomerInfoResponse.md | 18 + docs/OrderDiscountLinesRequest.md | 15 + docs/OrderFiscalEntityAddressResponse.md | 20 + docs/OrderFiscalEntityRequest.md | 18 + docs/OrderFiscalEntityResponse.md | 21 + docs/OrderNextActionResponse.md | 14 + docs/OrderNextActionResponseRedirectToUrl.md | 14 + docs/OrderRefundRequest.md | 15 + docs/OrderRequest.md | 28 + docs/OrderRequestCustomerInfo.md | 18 + docs/OrderResponse.md | 33 + docs/OrderResponseCharges.md | 15 + docs/OrderResponseCheckout.md | 40 + docs/OrderResponseCustomerInfo.md | 19 + docs/OrderResponseDiscountLines.md | 15 + docs/OrderResponseProducts.md | 17 + docs/OrderResponseShippingContact.md | 23 + docs/OrderTaxRequest.md | 15 + docs/OrderUpdateFiscalEntityRequest.md | 18 + docs/OrderUpdateRequest.md | 24 + docs/OrderUpdateRequestCustomerInfo.md | 18 + docs/OrdersApi.md | 442 +++++ docs/OrdersResponse.md | 13 + docs/Page.md | 14 + docs/Pagination.md | 14 + docs/PaymentLinkApi.md | 314 ++++ docs/PaymentMethod.md | 14 + docs/PaymentMethodBankTransfer.md | 31 + docs/PaymentMethodCard.md | 26 + docs/PaymentMethodCardRequest.md | 19 + docs/PaymentMethodCardResponse.md | 27 + docs/PaymentMethodCash.md | 25 + docs/PaymentMethodCashRequest.md | 14 + docs/PaymentMethodCashResponse.md | 22 + docs/PaymentMethodGeneralRequest.md | 20 + docs/PaymentMethodResponse.md | 17 + docs/PaymentMethodSpeiRecurrent.md | 19 + docs/PaymentMethodSpeiRequest.md | 14 + docs/PaymentMethodTokenRequest.md | 14 + docs/PaymentMethodsApi.md | 228 +++ docs/Payout.md | 13 + docs/PayoutMethod.md | 13 + docs/PayoutOrder.md | 19 + docs/PayoutOrderPayoutsItem.md | 20 + docs/PayoutOrderResponse.md | 26 + docs/PayoutOrderResponseCustomerInfo.md | 19 + docs/PayoutOrdersApi.md | 210 +++ docs/PayoutOrdersResponse.md | 17 + docs/PlanRequest.md | 26 + docs/PlanResponse.md | 23 + docs/PlanUpdateRequest.md | 16 + docs/PlansApi.md | 261 +++ docs/Product.md | 21 + docs/ProductDataResponse.md | 24 + docs/ProductOrderResponse.md | 24 + docs/ProductsApi.md | 169 ++ docs/RiskRulesData.md | 19 + docs/RiskRulesList.md | 17 + docs/ShippingContactsApi.md | 169 ++ docs/ShippingOrderResponse.md | 20 + docs/ShippingRequest.md | 17 + docs/ShippingsApi.md | 169 ++ docs/SmsCheckoutRequest.md | 13 + docs/SubscriptionEventsResponse.md | 17 + docs/SubscriptionRequest.md | 15 + docs/SubscriptionResponse.md | 30 + docs/SubscriptionUpdateRequest.md | 15 + docs/SubscriptionsApi.md | 365 ++++ docs/TaxesApi.md | 169 ++ docs/Token.md | 14 + docs/TokenCard.md | 18 + docs/TokenCheckout.md | 13 + docs/TokenResponse.md | 17 + docs/TokenResponseCheckout.md | 35 + docs/TokensApi.md | 57 + docs/TransactionResponse.md | 23 + docs/TransactionsApi.md | 122 ++ docs/TransferDestinationResponse.md | 20 + docs/TransferMethodResponse.md | 20 + docs/TransferResponse.md | 22 + docs/TransfersApi.md | 116 ++ docs/TransfersResponse.md | 22 + docs/UpdateCustomer.md | 26 + docs/UpdateCustomerAntifraudInfo.md | 14 + docs/UpdateCustomerFiscalEntitiesResponse.md | 23 + docs/UpdateCustomerPaymentMethodsResponse.md | 32 + docs/UpdateOrderDiscountLinesRequest.md | 15 + docs/UpdateOrderTaxRequest.md | 15 + docs/UpdateOrderTaxResponse.md | 18 + docs/UpdatePaymentMethods.md | 13 + docs/UpdateProduct.md | 21 + docs/WebhookKeyCreateResponse.md | 18 + docs/WebhookKeyDeleteResponse.md | 18 + docs/WebhookKeyRequest.md | 13 + docs/WebhookKeyResponse.md | 19 + docs/WebhookKeyUpdateRequest.md | 13 + docs/WebhookKeysApi.md | 261 +++ docs/WebhookLog.md | 19 + docs/WebhookRequest.md | 14 + docs/WebhookResponse.md | 22 + docs/WebhookUpdateRequest.md | 15 + docs/WebhooksApi.md | 314 ++++ docs/WhitelistlistRuleResponse.md | 16 + examples/Token.java | 20 + git_push.sh | 57 + gradle.properties | 34 +- gradle/wrapper/gradle-wrapper.jar | Bin 49896 -> 59203 bytes gradle/wrapper/gradle-wrapper.properties | 3 +- gradlew | 117 +- gradlew.bat | 179 +- lint-baseline.xml | 132 ++ readme_cover.png | Bin 16434 -> 0 bytes readme_files/screen.png | Bin 43830 -> 0 bytes settings.gradle | 18 +- src/main/AndroidManifest.xml | 6 + src/main/java/io/conekta/AntifraudApi.java | 392 +++++ src/main/java/io/conekta/ApiException.java | 49 + src/main/java/io/conekta/ApiInvoker.java | 469 ++++++ src/main/java/io/conekta/ApiKeysApi.java | 356 ++++ src/main/java/io/conekta/BalancesApi.java | 112 ++ src/main/java/io/conekta/ChargesApi.java | 316 ++++ src/main/java/io/conekta/CompaniesApi.java | 177 ++ src/main/java/io/conekta/CustomersApi.java | 497 ++++++ src/main/java/io/conekta/DiscountsApi.java | 387 +++++ .../java/io/conekta/EncryptedTypeAdapter.java | 34 + src/main/java/io/conekta/EventsApi.java | 243 +++ src/main/java/io/conekta/HttpPatch.java | 28 + src/main/java/io/conekta/JsonUtil.java | 1463 +++++++++++++++++ src/main/java/io/conekta/LogsApi.java | 181 ++ src/main/java/io/conekta/OrdersApi.java | 561 +++++++ src/main/java/io/conekta/Pair.java | 50 + src/main/java/io/conekta/PaymentLinkApi.java | 426 +++++ .../java/io/conekta/PaymentMethodsApi.java | 325 ++++ src/main/java/io/conekta/PayoutOrdersApi.java | 290 ++++ src/main/java/io/conekta/PlansApi.java | 360 ++++ src/main/java/io/conekta/ProductsApi.java | 257 +++ .../java/io/conekta/ShippingContactsApi.java | 257 +++ src/main/java/io/conekta/ShippingsApi.java | 256 +++ .../java/io/conekta/SubscriptionsApi.java | 478 ++++++ src/main/java/io/conekta/TaxesApi.java | 257 +++ src/main/java/io/conekta/TokensApi.java | 118 ++ src/main/java/io/conekta/TransactionsApi.java | 187 +++ src/main/java/io/conekta/TransfersApi.java | 181 ++ src/main/java/io/conekta/WebhookKeysApi.java | 350 ++++ src/main/java/io/conekta/WebhooksApi.java | 416 +++++ .../conekta/model/ApiKeyCreateResponse.java | 245 +++ .../java/io/conekta/model/ApiKeyRequest.java | 75 + .../java/io/conekta/model/ApiKeyResponse.java | 231 +++ .../conekta/model/ApiKeyResponseOnDelete.java | 197 +++ .../io/conekta/model/ApiKeyUpdateRequest.java | 75 + .../io/conekta/model/BalanceCommonField.java | 78 + .../io/conekta/model/BalanceResponse.java | 216 +++ .../conekta/model/BlacklistRuleResponse.java | 109 ++ .../io/conekta/model/ChargeOrderResponse.java | 367 +++++ .../ChargeOrderResponsePaymentMethod.java | 691 ++++++++ .../java/io/conekta/model/ChargeRequest.java | 96 ++ .../model/ChargeRequestPaymentMethod.java | 247 +++ .../java/io/conekta/model/ChargeResponse.java | 350 ++++ .../conekta/model/ChargeResponseChannel.java | 109 ++ .../model/ChargeResponsePaymentMethod.java | 691 ++++++++ .../conekta/model/ChargeResponseRefunds.java | 128 ++ .../model/ChargeResponseRefundsData.java | 160 ++ .../io/conekta/model/ChargeUpdateRequest.java | 61 + .../io/conekta/model/ChargesDataResponse.java | 350 ++++ .../conekta/model/ChargesOrderResponse.java | 97 ++ .../model/ChargesOrderResponseAllOfData.java | 350 ++++ src/main/java/io/conekta/model/Checkout.java | 250 +++ .../conekta/model/CheckoutOrderTemplate.java | 117 ++ .../CheckoutOrderTemplateCustomerInfo.java | 148 ++ .../io/conekta/model/CheckoutRequest.java | 232 +++ .../io/conekta/model/CheckoutResponse.java | 473 ++++++ .../io/conekta/model/CheckoutsResponse.java | 128 ++ .../CompanyFiscalInfoAddressResponse.java | 200 +++ .../model/CompanyFiscalInfoResponse.java | 167 ++ .../CompanyPayoutDestinationResponse.java | 152 ++ .../io/conekta/model/CompanyResponse.java | 185 +++ .../CreateCustomerFiscalEntitiesResponse.java | 230 +++ .../CreateCustomerPaymentMethodsRequest.java | 98 ++ .../CreateCustomerPaymentMethodsResponse.java | 384 +++++ .../io/conekta/model/CreateRiskRulesData.java | 92 ++ src/main/java/io/conekta/model/Customer.java | 290 ++++ .../io/conekta/model/CustomerAddress.java | 177 ++ .../conekta/model/CustomerAntifraudInfo.java | 75 + .../model/CustomerAntifraudInfoResponse.java | 75 + .../CustomerFiscalEntitiesDataResponse.java | 230 +++ .../model/CustomerFiscalEntitiesRequest.java | 145 ++ .../model/CustomerFiscalEntitiesResponse.java | 94 ++ .../java/io/conekta/model/CustomerInfo.java | 126 ++ .../model/CustomerInfoJustCustomerId.java | 58 + .../CustomerInfoJustCustomerIdResponse.java | 58 + .../model/CustomerPaymentMethodRequest.java | 61 + .../model/CustomerPaymentMethodsData.java | 384 +++++ .../model/CustomerPaymentMethodsRequest.java | 95 ++ .../model/CustomerPaymentMethodsResponse.java | 128 ++ .../io/conekta/model/CustomerResponse.java | 357 ++++ .../CustomerResponseShippingContacts.java | 94 ++ .../model/CustomerShippingContacts.java | 183 +++ .../CustomerShippingContactsAddress.java | 163 ++ .../CustomerShippingContactsDataResponse.java | 231 +++ .../CustomerShippingContactsResponse.java | 234 +++ ...stomerShippingContactsResponseAddress.java | 177 ++ .../CustomerUpdateFiscalEntitiesRequest.java | 145 ++ .../model/CustomerUpdateShippingContacts.java | 164 ++ .../io/conekta/model/CustomersResponse.java | 128 ++ .../conekta/model/DeleteApiKeysResponse.java | 194 +++ .../model/DeletedBlacklistRuleResponse.java | 109 ++ .../model/DeletedWhitelistRuleResponse.java | 109 ++ src/main/java/io/conekta/model/Details.java | 60 + .../java/io/conekta/model/DetailsError.java | 109 ++ .../model/DiscountLinesDataResponse.java | 143 ++ .../conekta/model/DiscountLinesResponse.java | 143 ++ .../conekta/model/EmailCheckoutRequest.java | 58 + src/main/java/io/conekta/model/Error.java | 114 ++ .../java/io/conekta/model/EventResponse.java | 184 +++ .../java/io/conekta/model/EventTypes.java | 44 + .../conekta/model/EventsResendResponse.java | 149 ++ .../io/conekta/model/FiscalEntityAddress.java | 163 ++ .../io/conekta/model/GetApiKeysResponse.java | 128 ++ .../io/conekta/model/GetChargesResponse.java | 128 ++ .../conekta/model/GetCompaniesResponse.java | 128 ++ .../GetCustomerPaymentMethodDataResponse.java | 384 +++++ .../io/conekta/model/GetEventsResponse.java | 128 ++ .../model/GetOrderDiscountLinesResponse.java | 128 ++ .../io/conekta/model/GetOrdersResponse.java | 128 ++ .../model/GetPaymentMethodResponse.java | 128 ++ .../io/conekta/model/GetPlansResponse.java | 128 ++ .../model/GetTransactionsResponse.java | 128 ++ .../conekta/model/GetTransfersResponse.java | 128 ++ .../conekta/model/GetWebhookKeysResponse.java | 128 ++ .../io/conekta/model/GetWebhooksResponse.java | 128 ++ .../java/io/conekta/model/LogResponse.java | 387 +++++ .../java/io/conekta/model/LogsResponse.java | 131 ++ .../io/conekta/model/LogsResponseData.java | 384 +++++ .../io/conekta/model/OasAnyTypeNotMapped.java | 46 + .../io/conekta/model/OrderCaptureRequest.java | 58 + .../model/OrderCustomerInfoResponse.java | 143 ++ .../model/OrderDiscountLinesRequest.java | 95 ++ .../OrderFiscalEntityAddressResponse.java | 180 ++ .../model/OrderFiscalEntityRequest.java | 149 ++ .../model/OrderFiscalEntityResponse.java | 200 +++ .../model/OrderNextActionResponse.java | 79 + .../OrderNextActionResponseRedirectToUrl.java | 79 + .../io/conekta/model/OrderRefundRequest.java | 92 ++ .../java/io/conekta/model/OrderRequest.java | 329 ++++ .../model/OrderRequestCustomerInfo.java | 148 ++ .../java/io/conekta/model/OrderResponse.java | 412 +++++ .../conekta/model/OrderResponseCharges.java | 97 ++ .../conekta/model/OrderResponseCheckout.java | 520 ++++++ .../model/OrderResponseCustomerInfo.java | 160 ++ .../model/OrderResponseDiscountLines.java | 94 ++ .../conekta/model/OrderResponseProducts.java | 128 ++ .../model/OrderResponseShippingContact.java | 231 +++ .../io/conekta/model/OrderTaxRequest.java | 97 ++ .../model/OrderUpdateFiscalEntityRequest.java | 149 ++ .../io/conekta/model/OrderUpdateRequest.java | 259 +++ .../model/OrderUpdateRequestCustomerInfo.java | 145 ++ .../java/io/conekta/model/OrdersResponse.java | 60 + src/main/java/io/conekta/model/Page.java | 78 + .../java/io/conekta/model/Pagination.java | 78 + .../java/io/conekta/model/PaymentMethod.java | 75 + .../model/PaymentMethodBankTransfer.java | 366 +++++ .../io/conekta/model/PaymentMethodCard.java | 281 ++++ .../model/PaymentMethodCardRequest.java | 160 ++ .../model/PaymentMethodCardResponse.java | 296 ++++ .../io/conekta/model/PaymentMethodCash.java | 262 +++ .../model/PaymentMethodCashRequest.java | 75 + .../model/PaymentMethodCashResponse.java | 211 +++ .../model/PaymentMethodGeneralRequest.java | 180 ++ .../conekta/model/PaymentMethodResponse.java | 126 ++ .../model/PaymentMethodSpeiRecurrent.java | 160 ++ .../model/PaymentMethodSpeiRequest.java | 75 + .../model/PaymentMethodTokenRequest.java | 75 + src/main/java/io/conekta/model/Payout.java | 62 + .../java/io/conekta/model/PayoutMethod.java | 61 + .../java/io/conekta/model/PayoutOrder.java | 168 ++ .../conekta/model/PayoutOrderPayoutsItem.java | 177 ++ .../io/conekta/model/PayoutOrderResponse.java | 287 ++++ .../PayoutOrderResponseCustomerInfo.java | 163 ++ .../conekta/model/PayoutOrdersResponse.java | 128 ++ .../java/io/conekta/model/PlanRequest.java | 183 +++ .../java/io/conekta/model/PlanResponse.java | 231 +++ .../io/conekta/model/PlanUpdateRequest.java | 112 ++ src/main/java/io/conekta/model/Product.java | 197 +++ .../io/conekta/model/ProductDataResponse.java | 248 +++ .../conekta/model/ProductOrderResponse.java | 248 +++ .../java/io/conekta/model/RiskRulesData.java | 160 ++ .../java/io/conekta/model/RiskRulesList.java | 128 ++ .../conekta/model/ShippingOrderResponse.java | 179 ++ .../io/conekta/model/ShippingRequest.java | 128 ++ .../io/conekta/model/SmsCheckoutRequest.java | 58 + .../model/SubscriptionEventsResponse.java | 128 ++ .../io/conekta/model/SubscriptionRequest.java | 95 ++ .../conekta/model/SubscriptionResponse.java | 350 ++++ .../model/SubscriptionUpdateRequest.java | 95 ++ src/main/java/io/conekta/model/Token.java | 80 + src/main/java/io/conekta/model/TokenCard.java | 143 ++ .../java/io/conekta/model/TokenCheckout.java | 58 + .../java/io/conekta/model/TokenResponse.java | 130 ++ .../conekta/model/TokenResponseCheckout.java | 435 +++++ .../io/conekta/model/TransactionResponse.java | 231 +++ .../model/TransferDestinationResponse.java | 180 ++ .../conekta/model/TransferMethodResponse.java | 180 ++ .../io/conekta/model/TransferResponse.java | 215 +++ .../io/conekta/model/TransfersResponse.java | 215 +++ .../java/io/conekta/model/UpdateCustomer.java | 290 ++++ .../model/UpdateCustomerAntifraudInfo.java | 75 + .../UpdateCustomerFiscalEntitiesResponse.java | 230 +++ .../UpdateCustomerPaymentMethodsResponse.java | 384 +++++ .../UpdateOrderDiscountLinesRequest.java | 95 ++ .../conekta/model/UpdateOrderTaxRequest.java | 96 ++ .../conekta/model/UpdateOrderTaxResponse.java | 148 ++ .../conekta/model/UpdatePaymentMethods.java | 58 + .../java/io/conekta/model/UpdateProduct.java | 196 +++ .../model/WebhookKeyCreateResponse.java | 146 ++ .../model/WebhookKeyDeleteResponse.java | 146 ++ .../io/conekta/model/WebhookKeyRequest.java | 58 + .../io/conekta/model/WebhookKeyResponse.java | 163 ++ .../model/WebhookKeyUpdateRequest.java | 58 + .../java/io/conekta/model/WebhookLog.java | 163 ++ .../java/io/conekta/model/WebhookRequest.java | 78 + .../io/conekta/model/WebhookResponse.java | 215 +++ .../conekta/model/WebhookUpdateRequest.java | 96 ++ .../model/WhitelistlistRuleResponse.java | 109 ++ src/test/java/io/conekta/BaseTest.java | 12 + src/test/java/io/conekta/CustomerApiTest.java | 31 + src/test/java/io/conekta/TokensApiTest.java | 49 + templates/OasAnyTypeNotMapped.mustache | 46 + templates/api.mustache | 130 ++ templates/apiInvoker.mustache | 458 ++++++ templates/jsonUtil.mustache | 55 + templates/model.mustache | 93 ++ 496 files changed, 51269 insertions(+), 2393 deletions(-) delete mode 100644 .codeclimate.yml create mode 100644 .github/workflows/build.yml delete mode 100644 .idea/.name delete mode 100644 .idea/assetWizardSettings.xml delete mode 100644 .idea/caches/build_file_checksums.ser delete mode 100644 .idea/codeStyles/Project.xml delete mode 100644 .idea/compiler.xml delete mode 100644 .idea/copyright/profiles_settings.xml delete mode 100644 .idea/encodings.xml delete mode 100644 .idea/gradle.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/runConfigurations.xml delete mode 100644 .idea/vcs.xml create mode 100644 .openapi-generator-ignore create mode 100644 .openapi-generator/FILES create mode 100644 .openapi-generator/VERSION delete mode 100644 CHANGELOG create mode 100644 Makefile delete mode 100644 app/.gitignore delete mode 100644 app/app.iml delete mode 100644 app/build.gradle delete mode 100644 app/libs/conektasdk-release.aar delete mode 100644 app/proguard-rules.pro delete mode 100644 app/src/androidTest/java/io/conekta/helloconekta/ApplicationTest.java delete mode 100644 app/src/main/AndroidManifest.xml delete mode 100644 app/src/main/java/io/conekta/helloconekta/Form.java delete mode 100644 app/src/main/res/drawable-hdpi/card_chip.png delete mode 100644 app/src/main/res/drawable-hdpi/conekta_logo_01.png delete mode 100644 app/src/main/res/drawable-mdpi/card_chip.png delete mode 100644 app/src/main/res/drawable-mdpi/conekta_logo_01.png delete mode 100644 app/src/main/res/drawable-xhdpi/card_chip.png delete mode 100644 app/src/main/res/drawable-xhdpi/conekta_logo_01.png delete mode 100644 app/src/main/res/drawable-xxhdpi/card_chip.png delete mode 100644 app/src/main/res/drawable-xxhdpi/conekta_logo_01.png delete mode 100644 app/src/main/res/drawable-xxxhdpi/card_chip.png delete mode 100644 app/src/main/res/drawable-xxxhdpi/conekta_logo_01.png delete mode 100644 app/src/main/res/drawable/card_bg.xml delete mode 100644 app/src/main/res/drawable/pin_medium_button.xml delete mode 100644 app/src/main/res/layout/activity_form.xml delete mode 100644 app/src/main/res/menu/menu_form.xml delete mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png delete mode 100644 app/src/main/res/values-w820dp/dimens.xml delete mode 100644 app/src/main/res/values/dimens.xml delete mode 100644 app/src/main/res/values/strings.xml delete mode 100644 app/src/main/res/values/styles.xml delete mode 100644 conekta-android.iml delete mode 100644 conektasdk/.gitignore delete mode 100644 conektasdk/build.gradle delete mode 100644 conektasdk/conektasdk.iml delete mode 100644 conektasdk/gradle.properties delete mode 100644 conektasdk/proguard-rules.pro delete mode 100644 conektasdk/src/androidTest/java/io/conekta/conektasdk/ApplicationTest.java delete mode 100644 conektasdk/src/main/AndroidManifest.xml delete mode 100644 conektasdk/src/main/java/io/conekta/conektasdk/Card.java delete mode 100644 conektasdk/src/main/java/io/conekta/conektasdk/Conekta.java delete mode 100644 conektasdk/src/main/java/io/conekta/conektasdk/Connection.java delete mode 100644 conektasdk/src/main/java/io/conekta/conektasdk/Token.java delete mode 100644 conektasdk/src/main/res/values/strings.xml delete mode 100644 conektasdk/src/test/java/com/conekta/conektasdk/ExampleUnitTest.java create mode 100644 config.json create mode 100644 docs/AntifraudApi.md create mode 100644 docs/ApiKeyCreateResponse.md create mode 100644 docs/ApiKeyRequest.md create mode 100644 docs/ApiKeyResponse.md create mode 100644 docs/ApiKeyResponseOnDelete.md create mode 100644 docs/ApiKeyUpdateRequest.md create mode 100644 docs/ApiKeysApi.md create mode 100644 docs/BalanceCommonField.md create mode 100644 docs/BalanceResponse.md create mode 100644 docs/BalancesApi.md create mode 100644 docs/BlacklistRuleResponse.md create mode 100644 docs/ChargeOrderResponse.md create mode 100644 docs/ChargeOrderResponsePaymentMethod.md create mode 100644 docs/ChargeRequest.md create mode 100644 docs/ChargeRequestPaymentMethod.md create mode 100644 docs/ChargeResponse.md create mode 100644 docs/ChargeResponseChannel.md create mode 100644 docs/ChargeResponsePaymentMethod.md create mode 100644 docs/ChargeResponseRefunds.md create mode 100644 docs/ChargeResponseRefundsData.md create mode 100644 docs/ChargeUpdateRequest.md create mode 100644 docs/ChargesApi.md create mode 100644 docs/ChargesDataResponse.md create mode 100644 docs/ChargesOrderResponse.md create mode 100644 docs/ChargesOrderResponseAllOfData.md create mode 100644 docs/Checkout.md create mode 100644 docs/CheckoutOrderTemplate.md create mode 100644 docs/CheckoutOrderTemplateCustomerInfo.md create mode 100644 docs/CheckoutRequest.md create mode 100644 docs/CheckoutResponse.md create mode 100644 docs/CheckoutsResponse.md create mode 100644 docs/CompaniesApi.md create mode 100644 docs/CompanyFiscalInfoAddressResponse.md create mode 100644 docs/CompanyFiscalInfoResponse.md create mode 100644 docs/CompanyPayoutDestinationResponse.md create mode 100644 docs/CompanyResponse.md create mode 100644 docs/CreateCustomerFiscalEntitiesResponse.md create mode 100644 docs/CreateCustomerPaymentMethodsRequest.md create mode 100644 docs/CreateCustomerPaymentMethodsResponse.md create mode 100644 docs/CreateRiskRulesData.md create mode 100644 docs/Customer.md create mode 100644 docs/CustomerAddress.md create mode 100644 docs/CustomerAntifraudInfo.md create mode 100644 docs/CustomerAntifraudInfoResponse.md create mode 100644 docs/CustomerFiscalEntitiesDataResponse.md create mode 100644 docs/CustomerFiscalEntitiesRequest.md create mode 100644 docs/CustomerFiscalEntitiesResponse.md create mode 100644 docs/CustomerInfo.md create mode 100644 docs/CustomerInfoJustCustomerId.md create mode 100644 docs/CustomerInfoJustCustomerIdResponse.md create mode 100644 docs/CustomerPaymentMethodRequest.md create mode 100644 docs/CustomerPaymentMethodsData.md create mode 100644 docs/CustomerPaymentMethodsRequest.md create mode 100644 docs/CustomerPaymentMethodsResponse.md create mode 100644 docs/CustomerResponse.md create mode 100644 docs/CustomerResponseShippingContacts.md create mode 100644 docs/CustomerShippingContacts.md create mode 100644 docs/CustomerShippingContactsAddress.md create mode 100644 docs/CustomerShippingContactsDataResponse.md create mode 100644 docs/CustomerShippingContactsResponse.md create mode 100644 docs/CustomerShippingContactsResponseAddress.md create mode 100644 docs/CustomerUpdateFiscalEntitiesRequest.md create mode 100644 docs/CustomerUpdateShippingContacts.md create mode 100644 docs/CustomersApi.md create mode 100644 docs/CustomersResponse.md create mode 100644 docs/DeleteApiKeysResponse.md create mode 100644 docs/DeletedBlacklistRuleResponse.md create mode 100644 docs/DeletedWhitelistRuleResponse.md create mode 100644 docs/Details.md create mode 100644 docs/DetailsError.md create mode 100644 docs/DiscountLinesDataResponse.md create mode 100644 docs/DiscountLinesResponse.md create mode 100644 docs/DiscountsApi.md create mode 100644 docs/EmailCheckoutRequest.md create mode 100644 docs/Error.md create mode 100644 docs/EventResponse.md create mode 100644 docs/EventTypes.md create mode 100644 docs/EventsApi.md create mode 100644 docs/EventsResendResponse.md create mode 100644 docs/FiscalEntityAddress.md create mode 100644 docs/GetApiKeysResponse.md create mode 100644 docs/GetChargesResponse.md create mode 100644 docs/GetCompaniesResponse.md create mode 100644 docs/GetCustomerPaymentMethodDataResponse.md create mode 100644 docs/GetEventsResponse.md create mode 100644 docs/GetOrderDiscountLinesResponse.md create mode 100644 docs/GetOrdersResponse.md create mode 100644 docs/GetPaymentMethodResponse.md create mode 100644 docs/GetPlansResponse.md create mode 100644 docs/GetTransactionsResponse.md create mode 100644 docs/GetTransfersResponse.md create mode 100644 docs/GetWebhookKeysResponse.md create mode 100644 docs/GetWebhooksResponse.md create mode 100644 docs/LogResponse.md create mode 100644 docs/LogsApi.md create mode 100644 docs/LogsResponse.md create mode 100644 docs/LogsResponseData.md create mode 100644 docs/OrderCaptureRequest.md create mode 100644 docs/OrderCustomerInfoResponse.md create mode 100644 docs/OrderDiscountLinesRequest.md create mode 100644 docs/OrderFiscalEntityAddressResponse.md create mode 100644 docs/OrderFiscalEntityRequest.md create mode 100644 docs/OrderFiscalEntityResponse.md create mode 100644 docs/OrderNextActionResponse.md create mode 100644 docs/OrderNextActionResponseRedirectToUrl.md create mode 100644 docs/OrderRefundRequest.md create mode 100644 docs/OrderRequest.md create mode 100644 docs/OrderRequestCustomerInfo.md create mode 100644 docs/OrderResponse.md create mode 100644 docs/OrderResponseCharges.md create mode 100644 docs/OrderResponseCheckout.md create mode 100644 docs/OrderResponseCustomerInfo.md create mode 100644 docs/OrderResponseDiscountLines.md create mode 100644 docs/OrderResponseProducts.md create mode 100644 docs/OrderResponseShippingContact.md create mode 100644 docs/OrderTaxRequest.md create mode 100644 docs/OrderUpdateFiscalEntityRequest.md create mode 100644 docs/OrderUpdateRequest.md create mode 100644 docs/OrderUpdateRequestCustomerInfo.md create mode 100644 docs/OrdersApi.md create mode 100644 docs/OrdersResponse.md create mode 100644 docs/Page.md create mode 100644 docs/Pagination.md create mode 100644 docs/PaymentLinkApi.md create mode 100644 docs/PaymentMethod.md create mode 100644 docs/PaymentMethodBankTransfer.md create mode 100644 docs/PaymentMethodCard.md create mode 100644 docs/PaymentMethodCardRequest.md create mode 100644 docs/PaymentMethodCardResponse.md create mode 100644 docs/PaymentMethodCash.md create mode 100644 docs/PaymentMethodCashRequest.md create mode 100644 docs/PaymentMethodCashResponse.md create mode 100644 docs/PaymentMethodGeneralRequest.md create mode 100644 docs/PaymentMethodResponse.md create mode 100644 docs/PaymentMethodSpeiRecurrent.md create mode 100644 docs/PaymentMethodSpeiRequest.md create mode 100644 docs/PaymentMethodTokenRequest.md create mode 100644 docs/PaymentMethodsApi.md create mode 100644 docs/Payout.md create mode 100644 docs/PayoutMethod.md create mode 100644 docs/PayoutOrder.md create mode 100644 docs/PayoutOrderPayoutsItem.md create mode 100644 docs/PayoutOrderResponse.md create mode 100644 docs/PayoutOrderResponseCustomerInfo.md create mode 100644 docs/PayoutOrdersApi.md create mode 100644 docs/PayoutOrdersResponse.md create mode 100644 docs/PlanRequest.md create mode 100644 docs/PlanResponse.md create mode 100644 docs/PlanUpdateRequest.md create mode 100644 docs/PlansApi.md create mode 100644 docs/Product.md create mode 100644 docs/ProductDataResponse.md create mode 100644 docs/ProductOrderResponse.md create mode 100644 docs/ProductsApi.md create mode 100644 docs/RiskRulesData.md create mode 100644 docs/RiskRulesList.md create mode 100644 docs/ShippingContactsApi.md create mode 100644 docs/ShippingOrderResponse.md create mode 100644 docs/ShippingRequest.md create mode 100644 docs/ShippingsApi.md create mode 100644 docs/SmsCheckoutRequest.md create mode 100644 docs/SubscriptionEventsResponse.md create mode 100644 docs/SubscriptionRequest.md create mode 100644 docs/SubscriptionResponse.md create mode 100644 docs/SubscriptionUpdateRequest.md create mode 100644 docs/SubscriptionsApi.md create mode 100644 docs/TaxesApi.md create mode 100644 docs/Token.md create mode 100644 docs/TokenCard.md create mode 100644 docs/TokenCheckout.md create mode 100644 docs/TokenResponse.md create mode 100644 docs/TokenResponseCheckout.md create mode 100644 docs/TokensApi.md create mode 100644 docs/TransactionResponse.md create mode 100644 docs/TransactionsApi.md create mode 100644 docs/TransferDestinationResponse.md create mode 100644 docs/TransferMethodResponse.md create mode 100644 docs/TransferResponse.md create mode 100644 docs/TransfersApi.md create mode 100644 docs/TransfersResponse.md create mode 100644 docs/UpdateCustomer.md create mode 100644 docs/UpdateCustomerAntifraudInfo.md create mode 100644 docs/UpdateCustomerFiscalEntitiesResponse.md create mode 100644 docs/UpdateCustomerPaymentMethodsResponse.md create mode 100644 docs/UpdateOrderDiscountLinesRequest.md create mode 100644 docs/UpdateOrderTaxRequest.md create mode 100644 docs/UpdateOrderTaxResponse.md create mode 100644 docs/UpdatePaymentMethods.md create mode 100644 docs/UpdateProduct.md create mode 100644 docs/WebhookKeyCreateResponse.md create mode 100644 docs/WebhookKeyDeleteResponse.md create mode 100644 docs/WebhookKeyRequest.md create mode 100644 docs/WebhookKeyResponse.md create mode 100644 docs/WebhookKeyUpdateRequest.md create mode 100644 docs/WebhookKeysApi.md create mode 100644 docs/WebhookLog.md create mode 100644 docs/WebhookRequest.md create mode 100644 docs/WebhookResponse.md create mode 100644 docs/WebhookUpdateRequest.md create mode 100644 docs/WebhooksApi.md create mode 100644 docs/WhitelistlistRuleResponse.md create mode 100644 examples/Token.java create mode 100644 git_push.sh create mode 100644 lint-baseline.xml delete mode 100644 readme_cover.png delete mode 100644 readme_files/screen.png create mode 100644 src/main/AndroidManifest.xml create mode 100644 src/main/java/io/conekta/AntifraudApi.java create mode 100644 src/main/java/io/conekta/ApiException.java create mode 100644 src/main/java/io/conekta/ApiInvoker.java create mode 100644 src/main/java/io/conekta/ApiKeysApi.java create mode 100644 src/main/java/io/conekta/BalancesApi.java create mode 100644 src/main/java/io/conekta/ChargesApi.java create mode 100644 src/main/java/io/conekta/CompaniesApi.java create mode 100644 src/main/java/io/conekta/CustomersApi.java create mode 100644 src/main/java/io/conekta/DiscountsApi.java create mode 100644 src/main/java/io/conekta/EncryptedTypeAdapter.java create mode 100644 src/main/java/io/conekta/EventsApi.java create mode 100644 src/main/java/io/conekta/HttpPatch.java create mode 100644 src/main/java/io/conekta/JsonUtil.java create mode 100644 src/main/java/io/conekta/LogsApi.java create mode 100644 src/main/java/io/conekta/OrdersApi.java create mode 100644 src/main/java/io/conekta/Pair.java create mode 100644 src/main/java/io/conekta/PaymentLinkApi.java create mode 100644 src/main/java/io/conekta/PaymentMethodsApi.java create mode 100644 src/main/java/io/conekta/PayoutOrdersApi.java create mode 100644 src/main/java/io/conekta/PlansApi.java create mode 100644 src/main/java/io/conekta/ProductsApi.java create mode 100644 src/main/java/io/conekta/ShippingContactsApi.java create mode 100644 src/main/java/io/conekta/ShippingsApi.java create mode 100644 src/main/java/io/conekta/SubscriptionsApi.java create mode 100644 src/main/java/io/conekta/TaxesApi.java create mode 100644 src/main/java/io/conekta/TokensApi.java create mode 100644 src/main/java/io/conekta/TransactionsApi.java create mode 100644 src/main/java/io/conekta/TransfersApi.java create mode 100644 src/main/java/io/conekta/WebhookKeysApi.java create mode 100644 src/main/java/io/conekta/WebhooksApi.java create mode 100644 src/main/java/io/conekta/model/ApiKeyCreateResponse.java create mode 100644 src/main/java/io/conekta/model/ApiKeyRequest.java create mode 100644 src/main/java/io/conekta/model/ApiKeyResponse.java create mode 100644 src/main/java/io/conekta/model/ApiKeyResponseOnDelete.java create mode 100644 src/main/java/io/conekta/model/ApiKeyUpdateRequest.java create mode 100644 src/main/java/io/conekta/model/BalanceCommonField.java create mode 100644 src/main/java/io/conekta/model/BalanceResponse.java create mode 100644 src/main/java/io/conekta/model/BlacklistRuleResponse.java create mode 100644 src/main/java/io/conekta/model/ChargeOrderResponse.java create mode 100644 src/main/java/io/conekta/model/ChargeOrderResponsePaymentMethod.java create mode 100644 src/main/java/io/conekta/model/ChargeRequest.java create mode 100644 src/main/java/io/conekta/model/ChargeRequestPaymentMethod.java create mode 100644 src/main/java/io/conekta/model/ChargeResponse.java create mode 100644 src/main/java/io/conekta/model/ChargeResponseChannel.java create mode 100644 src/main/java/io/conekta/model/ChargeResponsePaymentMethod.java create mode 100644 src/main/java/io/conekta/model/ChargeResponseRefunds.java create mode 100644 src/main/java/io/conekta/model/ChargeResponseRefundsData.java create mode 100644 src/main/java/io/conekta/model/ChargeUpdateRequest.java create mode 100644 src/main/java/io/conekta/model/ChargesDataResponse.java create mode 100644 src/main/java/io/conekta/model/ChargesOrderResponse.java create mode 100644 src/main/java/io/conekta/model/ChargesOrderResponseAllOfData.java create mode 100644 src/main/java/io/conekta/model/Checkout.java create mode 100644 src/main/java/io/conekta/model/CheckoutOrderTemplate.java create mode 100644 src/main/java/io/conekta/model/CheckoutOrderTemplateCustomerInfo.java create mode 100644 src/main/java/io/conekta/model/CheckoutRequest.java create mode 100644 src/main/java/io/conekta/model/CheckoutResponse.java create mode 100644 src/main/java/io/conekta/model/CheckoutsResponse.java create mode 100644 src/main/java/io/conekta/model/CompanyFiscalInfoAddressResponse.java create mode 100644 src/main/java/io/conekta/model/CompanyFiscalInfoResponse.java create mode 100644 src/main/java/io/conekta/model/CompanyPayoutDestinationResponse.java create mode 100644 src/main/java/io/conekta/model/CompanyResponse.java create mode 100644 src/main/java/io/conekta/model/CreateCustomerFiscalEntitiesResponse.java create mode 100644 src/main/java/io/conekta/model/CreateCustomerPaymentMethodsRequest.java create mode 100644 src/main/java/io/conekta/model/CreateCustomerPaymentMethodsResponse.java create mode 100644 src/main/java/io/conekta/model/CreateRiskRulesData.java create mode 100644 src/main/java/io/conekta/model/Customer.java create mode 100644 src/main/java/io/conekta/model/CustomerAddress.java create mode 100644 src/main/java/io/conekta/model/CustomerAntifraudInfo.java create mode 100644 src/main/java/io/conekta/model/CustomerAntifraudInfoResponse.java create mode 100644 src/main/java/io/conekta/model/CustomerFiscalEntitiesDataResponse.java create mode 100644 src/main/java/io/conekta/model/CustomerFiscalEntitiesRequest.java create mode 100644 src/main/java/io/conekta/model/CustomerFiscalEntitiesResponse.java create mode 100644 src/main/java/io/conekta/model/CustomerInfo.java create mode 100644 src/main/java/io/conekta/model/CustomerInfoJustCustomerId.java create mode 100644 src/main/java/io/conekta/model/CustomerInfoJustCustomerIdResponse.java create mode 100644 src/main/java/io/conekta/model/CustomerPaymentMethodRequest.java create mode 100644 src/main/java/io/conekta/model/CustomerPaymentMethodsData.java create mode 100644 src/main/java/io/conekta/model/CustomerPaymentMethodsRequest.java create mode 100644 src/main/java/io/conekta/model/CustomerPaymentMethodsResponse.java create mode 100644 src/main/java/io/conekta/model/CustomerResponse.java create mode 100644 src/main/java/io/conekta/model/CustomerResponseShippingContacts.java create mode 100644 src/main/java/io/conekta/model/CustomerShippingContacts.java create mode 100644 src/main/java/io/conekta/model/CustomerShippingContactsAddress.java create mode 100644 src/main/java/io/conekta/model/CustomerShippingContactsDataResponse.java create mode 100644 src/main/java/io/conekta/model/CustomerShippingContactsResponse.java create mode 100644 src/main/java/io/conekta/model/CustomerShippingContactsResponseAddress.java create mode 100644 src/main/java/io/conekta/model/CustomerUpdateFiscalEntitiesRequest.java create mode 100644 src/main/java/io/conekta/model/CustomerUpdateShippingContacts.java create mode 100644 src/main/java/io/conekta/model/CustomersResponse.java create mode 100644 src/main/java/io/conekta/model/DeleteApiKeysResponse.java create mode 100644 src/main/java/io/conekta/model/DeletedBlacklistRuleResponse.java create mode 100644 src/main/java/io/conekta/model/DeletedWhitelistRuleResponse.java create mode 100644 src/main/java/io/conekta/model/Details.java create mode 100644 src/main/java/io/conekta/model/DetailsError.java create mode 100644 src/main/java/io/conekta/model/DiscountLinesDataResponse.java create mode 100644 src/main/java/io/conekta/model/DiscountLinesResponse.java create mode 100644 src/main/java/io/conekta/model/EmailCheckoutRequest.java create mode 100644 src/main/java/io/conekta/model/Error.java create mode 100644 src/main/java/io/conekta/model/EventResponse.java create mode 100644 src/main/java/io/conekta/model/EventTypes.java create mode 100644 src/main/java/io/conekta/model/EventsResendResponse.java create mode 100644 src/main/java/io/conekta/model/FiscalEntityAddress.java create mode 100644 src/main/java/io/conekta/model/GetApiKeysResponse.java create mode 100644 src/main/java/io/conekta/model/GetChargesResponse.java create mode 100644 src/main/java/io/conekta/model/GetCompaniesResponse.java create mode 100644 src/main/java/io/conekta/model/GetCustomerPaymentMethodDataResponse.java create mode 100644 src/main/java/io/conekta/model/GetEventsResponse.java create mode 100644 src/main/java/io/conekta/model/GetOrderDiscountLinesResponse.java create mode 100644 src/main/java/io/conekta/model/GetOrdersResponse.java create mode 100644 src/main/java/io/conekta/model/GetPaymentMethodResponse.java create mode 100644 src/main/java/io/conekta/model/GetPlansResponse.java create mode 100644 src/main/java/io/conekta/model/GetTransactionsResponse.java create mode 100644 src/main/java/io/conekta/model/GetTransfersResponse.java create mode 100644 src/main/java/io/conekta/model/GetWebhookKeysResponse.java create mode 100644 src/main/java/io/conekta/model/GetWebhooksResponse.java create mode 100644 src/main/java/io/conekta/model/LogResponse.java create mode 100644 src/main/java/io/conekta/model/LogsResponse.java create mode 100644 src/main/java/io/conekta/model/LogsResponseData.java create mode 100644 src/main/java/io/conekta/model/OasAnyTypeNotMapped.java create mode 100644 src/main/java/io/conekta/model/OrderCaptureRequest.java create mode 100644 src/main/java/io/conekta/model/OrderCustomerInfoResponse.java create mode 100644 src/main/java/io/conekta/model/OrderDiscountLinesRequest.java create mode 100644 src/main/java/io/conekta/model/OrderFiscalEntityAddressResponse.java create mode 100644 src/main/java/io/conekta/model/OrderFiscalEntityRequest.java create mode 100644 src/main/java/io/conekta/model/OrderFiscalEntityResponse.java create mode 100644 src/main/java/io/conekta/model/OrderNextActionResponse.java create mode 100644 src/main/java/io/conekta/model/OrderNextActionResponseRedirectToUrl.java create mode 100644 src/main/java/io/conekta/model/OrderRefundRequest.java create mode 100644 src/main/java/io/conekta/model/OrderRequest.java create mode 100644 src/main/java/io/conekta/model/OrderRequestCustomerInfo.java create mode 100644 src/main/java/io/conekta/model/OrderResponse.java create mode 100644 src/main/java/io/conekta/model/OrderResponseCharges.java create mode 100644 src/main/java/io/conekta/model/OrderResponseCheckout.java create mode 100644 src/main/java/io/conekta/model/OrderResponseCustomerInfo.java create mode 100644 src/main/java/io/conekta/model/OrderResponseDiscountLines.java create mode 100644 src/main/java/io/conekta/model/OrderResponseProducts.java create mode 100644 src/main/java/io/conekta/model/OrderResponseShippingContact.java create mode 100644 src/main/java/io/conekta/model/OrderTaxRequest.java create mode 100644 src/main/java/io/conekta/model/OrderUpdateFiscalEntityRequest.java create mode 100644 src/main/java/io/conekta/model/OrderUpdateRequest.java create mode 100644 src/main/java/io/conekta/model/OrderUpdateRequestCustomerInfo.java create mode 100644 src/main/java/io/conekta/model/OrdersResponse.java create mode 100644 src/main/java/io/conekta/model/Page.java create mode 100644 src/main/java/io/conekta/model/Pagination.java create mode 100644 src/main/java/io/conekta/model/PaymentMethod.java create mode 100644 src/main/java/io/conekta/model/PaymentMethodBankTransfer.java create mode 100644 src/main/java/io/conekta/model/PaymentMethodCard.java create mode 100644 src/main/java/io/conekta/model/PaymentMethodCardRequest.java create mode 100644 src/main/java/io/conekta/model/PaymentMethodCardResponse.java create mode 100644 src/main/java/io/conekta/model/PaymentMethodCash.java create mode 100644 src/main/java/io/conekta/model/PaymentMethodCashRequest.java create mode 100644 src/main/java/io/conekta/model/PaymentMethodCashResponse.java create mode 100644 src/main/java/io/conekta/model/PaymentMethodGeneralRequest.java create mode 100644 src/main/java/io/conekta/model/PaymentMethodResponse.java create mode 100644 src/main/java/io/conekta/model/PaymentMethodSpeiRecurrent.java create mode 100644 src/main/java/io/conekta/model/PaymentMethodSpeiRequest.java create mode 100644 src/main/java/io/conekta/model/PaymentMethodTokenRequest.java create mode 100644 src/main/java/io/conekta/model/Payout.java create mode 100644 src/main/java/io/conekta/model/PayoutMethod.java create mode 100644 src/main/java/io/conekta/model/PayoutOrder.java create mode 100644 src/main/java/io/conekta/model/PayoutOrderPayoutsItem.java create mode 100644 src/main/java/io/conekta/model/PayoutOrderResponse.java create mode 100644 src/main/java/io/conekta/model/PayoutOrderResponseCustomerInfo.java create mode 100644 src/main/java/io/conekta/model/PayoutOrdersResponse.java create mode 100644 src/main/java/io/conekta/model/PlanRequest.java create mode 100644 src/main/java/io/conekta/model/PlanResponse.java create mode 100644 src/main/java/io/conekta/model/PlanUpdateRequest.java create mode 100644 src/main/java/io/conekta/model/Product.java create mode 100644 src/main/java/io/conekta/model/ProductDataResponse.java create mode 100644 src/main/java/io/conekta/model/ProductOrderResponse.java create mode 100644 src/main/java/io/conekta/model/RiskRulesData.java create mode 100644 src/main/java/io/conekta/model/RiskRulesList.java create mode 100644 src/main/java/io/conekta/model/ShippingOrderResponse.java create mode 100644 src/main/java/io/conekta/model/ShippingRequest.java create mode 100644 src/main/java/io/conekta/model/SmsCheckoutRequest.java create mode 100644 src/main/java/io/conekta/model/SubscriptionEventsResponse.java create mode 100644 src/main/java/io/conekta/model/SubscriptionRequest.java create mode 100644 src/main/java/io/conekta/model/SubscriptionResponse.java create mode 100644 src/main/java/io/conekta/model/SubscriptionUpdateRequest.java create mode 100644 src/main/java/io/conekta/model/Token.java create mode 100644 src/main/java/io/conekta/model/TokenCard.java create mode 100644 src/main/java/io/conekta/model/TokenCheckout.java create mode 100644 src/main/java/io/conekta/model/TokenResponse.java create mode 100644 src/main/java/io/conekta/model/TokenResponseCheckout.java create mode 100644 src/main/java/io/conekta/model/TransactionResponse.java create mode 100644 src/main/java/io/conekta/model/TransferDestinationResponse.java create mode 100644 src/main/java/io/conekta/model/TransferMethodResponse.java create mode 100644 src/main/java/io/conekta/model/TransferResponse.java create mode 100644 src/main/java/io/conekta/model/TransfersResponse.java create mode 100644 src/main/java/io/conekta/model/UpdateCustomer.java create mode 100644 src/main/java/io/conekta/model/UpdateCustomerAntifraudInfo.java create mode 100644 src/main/java/io/conekta/model/UpdateCustomerFiscalEntitiesResponse.java create mode 100644 src/main/java/io/conekta/model/UpdateCustomerPaymentMethodsResponse.java create mode 100644 src/main/java/io/conekta/model/UpdateOrderDiscountLinesRequest.java create mode 100644 src/main/java/io/conekta/model/UpdateOrderTaxRequest.java create mode 100644 src/main/java/io/conekta/model/UpdateOrderTaxResponse.java create mode 100644 src/main/java/io/conekta/model/UpdatePaymentMethods.java create mode 100644 src/main/java/io/conekta/model/UpdateProduct.java create mode 100644 src/main/java/io/conekta/model/WebhookKeyCreateResponse.java create mode 100644 src/main/java/io/conekta/model/WebhookKeyDeleteResponse.java create mode 100644 src/main/java/io/conekta/model/WebhookKeyRequest.java create mode 100644 src/main/java/io/conekta/model/WebhookKeyResponse.java create mode 100644 src/main/java/io/conekta/model/WebhookKeyUpdateRequest.java create mode 100644 src/main/java/io/conekta/model/WebhookLog.java create mode 100644 src/main/java/io/conekta/model/WebhookRequest.java create mode 100644 src/main/java/io/conekta/model/WebhookResponse.java create mode 100644 src/main/java/io/conekta/model/WebhookUpdateRequest.java create mode 100644 src/main/java/io/conekta/model/WhitelistlistRuleResponse.java create mode 100644 src/test/java/io/conekta/BaseTest.java create mode 100644 src/test/java/io/conekta/CustomerApiTest.java create mode 100644 src/test/java/io/conekta/TokensApiTest.java create mode 100644 templates/OasAnyTypeNotMapped.mustache create mode 100644 templates/api.mustache create mode 100644 templates/apiInvoker.mustache create mode 100644 templates/jsonUtil.mustache create mode 100644 templates/model.mustache diff --git a/.codeclimate.yml b/.codeclimate.yml deleted file mode 100644 index 30c7f44..0000000 --- a/.codeclimate.yml +++ /dev/null @@ -1,12 +0,0 @@ -engines: - checkstyle: - enabled: true - channel: "beta" - pmd: - enabled: true - channel: "beta" - -ratings: - paths: - - "**.java" - diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5b0c051 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'temurin' + - name: Run Mockoon CLI + uses: mockoon/cli-action@v2 + with: + version: 'latest' + data-file: 'https://raw.githubusercontent.com/conekta/openapi/main/mocks/conekta_api.json' + port: 3000 + - name: Build + run: | + make build + - name: test + run: | + make test + - name: Archive artifacts + uses: actions/upload-artifact@v4 + with: + name: app + path: app/build/outputs/aar/conektasdk-debug.aar diff --git a/.gitignore b/.gitignore index 8d9d0bb..d64ec40 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,41 @@ -.gradle -/local.properties -/.idea/workspace.xml -/.idea/libraries -.DS_Store -/build -maven_push.gradle +# Built application files +*.apk +*.ap_ + +# Files for the Dalvik VM +*.dex + +# Java class files +*.class + +# Generated files +bin/ +gen/ +out/ + +# Gradle files +.gradle/ +build/ + +# Local configuration file (sdk path, etc) +local.properties + +# Proguard folder generated by Eclipse +proguard/ + +# Log Files +*.log + +# Android Studio Navigation editor temp files +.navigation/ + +# Android Studio captures folder +captures/ + +# Intellij +*.iml + +#Keystore files +*.jks +.idea/ +local.properties diff --git a/.idea/.name b/.idea/.name deleted file mode 100644 index eaa3174..0000000 --- a/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -conekta-android \ No newline at end of file diff --git a/.idea/assetWizardSettings.xml b/.idea/assetWizardSettings.xml deleted file mode 100644 index 2a9c5e0..0000000 --- a/.idea/assetWizardSettings.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser deleted file mode 100644 index 86eb2e943f1a3afde9393fa578d56f5d88682b98..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 596 zcmZ4UmVvdnh`~NNKUXg?FQq6yGexf?KR>5fFEb@IQ7^qHF(oHeub?PDD>b=9F91S2 zm1gFoxMk*~I%lLNXBU^|7Q2L-Ts|(GuF1r}uGBYr_F>vMNC#JY1CYR(Fc`|U8WE7gRok?u?`LP0FbL%2Cnx5BLLS3Zc|GGG z_Z%Ll4-0tXzHDXOR>B~joS&DPU6NRwlC6*30@j#Z%`_Ji9?AJ@(@&_+d{e?8h{xTQ tv&?@ij8~o7+u{{Bqs2-D=$yoY0vtwLKi_YB_(O%iSotcMuRa2H6#%%}(98e; diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml deleted file mode 100644 index 30aa626..0000000 --- a/.idea/codeStyles/Project.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml deleted file mode 100644 index 96cc43e..0000000 --- a/.idea/compiler.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml deleted file mode 100644 index e7bedf3..0000000 --- a/.idea/copyright/profiles_settings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index bcf80ab..0000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml deleted file mode 100644 index 4511680..0000000 --- a/.idea/gradle.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index ba7052b..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 984b32f..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml deleted file mode 100644 index 7f68460..0000000 --- a/.idea/runConfigurations.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore new file mode 100644 index 0000000..ac74857 --- /dev/null +++ b/.openapi-generator-ignore @@ -0,0 +1,25 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md +pom.xml +.gitignore \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES new file mode 100644 index 0000000..d4e0a15 --- /dev/null +++ b/.openapi-generator/FILES @@ -0,0 +1,417 @@ +README.md +build.gradle +docs/AntifraudApi.md +docs/ApiKeyCreateResponse.md +docs/ApiKeyRequest.md +docs/ApiKeyResponse.md +docs/ApiKeyResponseOnDelete.md +docs/ApiKeyUpdateRequest.md +docs/ApiKeysApi.md +docs/BalanceCommonField.md +docs/BalanceResponse.md +docs/BalancesApi.md +docs/BlacklistRuleResponse.md +docs/ChargeOrderResponse.md +docs/ChargeOrderResponsePaymentMethod.md +docs/ChargeRequest.md +docs/ChargeRequestPaymentMethod.md +docs/ChargeResponse.md +docs/ChargeResponseChannel.md +docs/ChargeResponsePaymentMethod.md +docs/ChargeResponseRefunds.md +docs/ChargeResponseRefundsData.md +docs/ChargeUpdateRequest.md +docs/ChargesApi.md +docs/ChargesDataResponse.md +docs/ChargesOrderResponse.md +docs/ChargesOrderResponseAllOfData.md +docs/Checkout.md +docs/CheckoutOrderTemplate.md +docs/CheckoutOrderTemplateCustomerInfo.md +docs/CheckoutRequest.md +docs/CheckoutResponse.md +docs/CheckoutsResponse.md +docs/CompaniesApi.md +docs/CompanyFiscalInfoAddressResponse.md +docs/CompanyFiscalInfoResponse.md +docs/CompanyPayoutDestinationResponse.md +docs/CompanyResponse.md +docs/CreateCustomerFiscalEntitiesResponse.md +docs/CreateCustomerPaymentMethodsRequest.md +docs/CreateCustomerPaymentMethodsResponse.md +docs/CreateRiskRulesData.md +docs/Customer.md +docs/CustomerAddress.md +docs/CustomerAntifraudInfo.md +docs/CustomerAntifraudInfoResponse.md +docs/CustomerFiscalEntitiesDataResponse.md +docs/CustomerFiscalEntitiesRequest.md +docs/CustomerFiscalEntitiesResponse.md +docs/CustomerInfo.md +docs/CustomerInfoJustCustomerId.md +docs/CustomerInfoJustCustomerIdResponse.md +docs/CustomerPaymentMethodRequest.md +docs/CustomerPaymentMethodsData.md +docs/CustomerPaymentMethodsRequest.md +docs/CustomerPaymentMethodsResponse.md +docs/CustomerResponse.md +docs/CustomerResponseShippingContacts.md +docs/CustomerShippingContacts.md +docs/CustomerShippingContactsAddress.md +docs/CustomerShippingContactsDataResponse.md +docs/CustomerShippingContactsResponse.md +docs/CustomerShippingContactsResponseAddress.md +docs/CustomerUpdateFiscalEntitiesRequest.md +docs/CustomerUpdateShippingContacts.md +docs/CustomersApi.md +docs/CustomersResponse.md +docs/DeleteApiKeysResponse.md +docs/DeletedBlacklistRuleResponse.md +docs/DeletedWhitelistRuleResponse.md +docs/Details.md +docs/DetailsError.md +docs/DiscountLinesDataResponse.md +docs/DiscountLinesResponse.md +docs/DiscountsApi.md +docs/EmailCheckoutRequest.md +docs/Error.md +docs/EventResponse.md +docs/EventTypes.md +docs/EventsApi.md +docs/EventsResendResponse.md +docs/FiscalEntityAddress.md +docs/GetApiKeysResponse.md +docs/GetChargesResponse.md +docs/GetCompaniesResponse.md +docs/GetCustomerPaymentMethodDataResponse.md +docs/GetEventsResponse.md +docs/GetOrderDiscountLinesResponse.md +docs/GetOrdersResponse.md +docs/GetPaymentMethodResponse.md +docs/GetPlansResponse.md +docs/GetTransactionsResponse.md +docs/GetTransfersResponse.md +docs/GetWebhookKeysResponse.md +docs/GetWebhooksResponse.md +docs/LogResponse.md +docs/LogsApi.md +docs/LogsResponse.md +docs/LogsResponseData.md +docs/OrderCaptureRequest.md +docs/OrderCustomerInfoResponse.md +docs/OrderDiscountLinesRequest.md +docs/OrderFiscalEntityAddressResponse.md +docs/OrderFiscalEntityRequest.md +docs/OrderFiscalEntityResponse.md +docs/OrderNextActionResponse.md +docs/OrderNextActionResponseRedirectToUrl.md +docs/OrderRefundRequest.md +docs/OrderRequest.md +docs/OrderRequestCustomerInfo.md +docs/OrderResponse.md +docs/OrderResponseCharges.md +docs/OrderResponseCheckout.md +docs/OrderResponseCustomerInfo.md +docs/OrderResponseDiscountLines.md +docs/OrderResponseProducts.md +docs/OrderResponseShippingContact.md +docs/OrderTaxRequest.md +docs/OrderUpdateFiscalEntityRequest.md +docs/OrderUpdateRequest.md +docs/OrderUpdateRequestCustomerInfo.md +docs/OrdersApi.md +docs/OrdersResponse.md +docs/Page.md +docs/Pagination.md +docs/PaymentLinkApi.md +docs/PaymentMethod.md +docs/PaymentMethodBankTransfer.md +docs/PaymentMethodCard.md +docs/PaymentMethodCardRequest.md +docs/PaymentMethodCardResponse.md +docs/PaymentMethodCash.md +docs/PaymentMethodCashRequest.md +docs/PaymentMethodCashResponse.md +docs/PaymentMethodGeneralRequest.md +docs/PaymentMethodResponse.md +docs/PaymentMethodSpeiRecurrent.md +docs/PaymentMethodSpeiRequest.md +docs/PaymentMethodTokenRequest.md +docs/PaymentMethodsApi.md +docs/Payout.md +docs/PayoutMethod.md +docs/PayoutOrder.md +docs/PayoutOrderPayoutsItem.md +docs/PayoutOrderResponse.md +docs/PayoutOrderResponseCustomerInfo.md +docs/PayoutOrdersApi.md +docs/PayoutOrdersResponse.md +docs/PlanRequest.md +docs/PlanResponse.md +docs/PlanUpdateRequest.md +docs/PlansApi.md +docs/Product.md +docs/ProductDataResponse.md +docs/ProductOrderResponse.md +docs/ProductsApi.md +docs/RiskRulesData.md +docs/RiskRulesList.md +docs/ShippingContactsApi.md +docs/ShippingOrderResponse.md +docs/ShippingRequest.md +docs/ShippingsApi.md +docs/SmsCheckoutRequest.md +docs/SubscriptionEventsResponse.md +docs/SubscriptionRequest.md +docs/SubscriptionResponse.md +docs/SubscriptionUpdateRequest.md +docs/SubscriptionsApi.md +docs/TaxesApi.md +docs/Token.md +docs/TokenCard.md +docs/TokenCheckout.md +docs/TokenResponse.md +docs/TokenResponseCheckout.md +docs/TokensApi.md +docs/TransactionResponse.md +docs/TransactionsApi.md +docs/TransferDestinationResponse.md +docs/TransferMethodResponse.md +docs/TransferResponse.md +docs/TransfersApi.md +docs/TransfersResponse.md +docs/UpdateCustomer.md +docs/UpdateCustomerAntifraudInfo.md +docs/UpdateCustomerFiscalEntitiesResponse.md +docs/UpdateCustomerPaymentMethodsResponse.md +docs/UpdateOrderDiscountLinesRequest.md +docs/UpdateOrderTaxRequest.md +docs/UpdateOrderTaxResponse.md +docs/UpdatePaymentMethods.md +docs/UpdateProduct.md +docs/WebhookKeyCreateResponse.md +docs/WebhookKeyDeleteResponse.md +docs/WebhookKeyRequest.md +docs/WebhookKeyResponse.md +docs/WebhookKeyUpdateRequest.md +docs/WebhookKeysApi.md +docs/WebhookLog.md +docs/WebhookRequest.md +docs/WebhookResponse.md +docs/WebhookUpdateRequest.md +docs/WebhooksApi.md +docs/WhitelistlistRuleResponse.md +git_push.sh +gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper.properties +gradlew +gradlew.bat +settings.gradle +src/main/AndroidManifest.xml +src/main/java/io/conekta/AntifraudApi.java +src/main/java/io/conekta/ApiException.java +src/main/java/io/conekta/ApiInvoker.java +src/main/java/io/conekta/ApiKeysApi.java +src/main/java/io/conekta/BalancesApi.java +src/main/java/io/conekta/ChargesApi.java +src/main/java/io/conekta/CompaniesApi.java +src/main/java/io/conekta/CustomersApi.java +src/main/java/io/conekta/DiscountsApi.java +src/main/java/io/conekta/EventsApi.java +src/main/java/io/conekta/HttpPatch.java +src/main/java/io/conekta/JsonUtil.java +src/main/java/io/conekta/LogsApi.java +src/main/java/io/conekta/OrdersApi.java +src/main/java/io/conekta/Pair.java +src/main/java/io/conekta/PaymentLinkApi.java +src/main/java/io/conekta/PaymentMethodsApi.java +src/main/java/io/conekta/PayoutOrdersApi.java +src/main/java/io/conekta/PlansApi.java +src/main/java/io/conekta/ProductsApi.java +src/main/java/io/conekta/ShippingContactsApi.java +src/main/java/io/conekta/ShippingsApi.java +src/main/java/io/conekta/SubscriptionsApi.java +src/main/java/io/conekta/TaxesApi.java +src/main/java/io/conekta/TokensApi.java +src/main/java/io/conekta/TransactionsApi.java +src/main/java/io/conekta/TransfersApi.java +src/main/java/io/conekta/WebhookKeysApi.java +src/main/java/io/conekta/WebhooksApi.java +src/main/java/io/conekta/model/ApiKeyCreateResponse.java +src/main/java/io/conekta/model/ApiKeyRequest.java +src/main/java/io/conekta/model/ApiKeyResponse.java +src/main/java/io/conekta/model/ApiKeyResponseOnDelete.java +src/main/java/io/conekta/model/ApiKeyUpdateRequest.java +src/main/java/io/conekta/model/BalanceCommonField.java +src/main/java/io/conekta/model/BalanceResponse.java +src/main/java/io/conekta/model/BlacklistRuleResponse.java +src/main/java/io/conekta/model/ChargeOrderResponse.java +src/main/java/io/conekta/model/ChargeOrderResponsePaymentMethod.java +src/main/java/io/conekta/model/ChargeRequest.java +src/main/java/io/conekta/model/ChargeRequestPaymentMethod.java +src/main/java/io/conekta/model/ChargeResponse.java +src/main/java/io/conekta/model/ChargeResponseChannel.java +src/main/java/io/conekta/model/ChargeResponsePaymentMethod.java +src/main/java/io/conekta/model/ChargeResponseRefunds.java +src/main/java/io/conekta/model/ChargeResponseRefundsData.java +src/main/java/io/conekta/model/ChargeUpdateRequest.java +src/main/java/io/conekta/model/ChargesDataResponse.java +src/main/java/io/conekta/model/ChargesOrderResponse.java +src/main/java/io/conekta/model/ChargesOrderResponseAllOfData.java +src/main/java/io/conekta/model/Checkout.java +src/main/java/io/conekta/model/CheckoutOrderTemplate.java +src/main/java/io/conekta/model/CheckoutOrderTemplateCustomerInfo.java +src/main/java/io/conekta/model/CheckoutRequest.java +src/main/java/io/conekta/model/CheckoutResponse.java +src/main/java/io/conekta/model/CheckoutsResponse.java +src/main/java/io/conekta/model/CompanyFiscalInfoAddressResponse.java +src/main/java/io/conekta/model/CompanyFiscalInfoResponse.java +src/main/java/io/conekta/model/CompanyPayoutDestinationResponse.java +src/main/java/io/conekta/model/CompanyResponse.java +src/main/java/io/conekta/model/CreateCustomerFiscalEntitiesResponse.java +src/main/java/io/conekta/model/CreateCustomerPaymentMethodsRequest.java +src/main/java/io/conekta/model/CreateCustomerPaymentMethodsResponse.java +src/main/java/io/conekta/model/CreateRiskRulesData.java +src/main/java/io/conekta/model/Customer.java +src/main/java/io/conekta/model/CustomerAddress.java +src/main/java/io/conekta/model/CustomerAntifraudInfo.java +src/main/java/io/conekta/model/CustomerAntifraudInfoResponse.java +src/main/java/io/conekta/model/CustomerFiscalEntitiesDataResponse.java +src/main/java/io/conekta/model/CustomerFiscalEntitiesRequest.java +src/main/java/io/conekta/model/CustomerFiscalEntitiesResponse.java +src/main/java/io/conekta/model/CustomerInfo.java +src/main/java/io/conekta/model/CustomerInfoJustCustomerId.java +src/main/java/io/conekta/model/CustomerInfoJustCustomerIdResponse.java +src/main/java/io/conekta/model/CustomerPaymentMethodRequest.java +src/main/java/io/conekta/model/CustomerPaymentMethodsData.java +src/main/java/io/conekta/model/CustomerPaymentMethodsRequest.java +src/main/java/io/conekta/model/CustomerPaymentMethodsResponse.java +src/main/java/io/conekta/model/CustomerResponse.java +src/main/java/io/conekta/model/CustomerResponseShippingContacts.java +src/main/java/io/conekta/model/CustomerShippingContacts.java +src/main/java/io/conekta/model/CustomerShippingContactsAddress.java +src/main/java/io/conekta/model/CustomerShippingContactsDataResponse.java +src/main/java/io/conekta/model/CustomerShippingContactsResponse.java +src/main/java/io/conekta/model/CustomerShippingContactsResponseAddress.java +src/main/java/io/conekta/model/CustomerUpdateFiscalEntitiesRequest.java +src/main/java/io/conekta/model/CustomerUpdateShippingContacts.java +src/main/java/io/conekta/model/CustomersResponse.java +src/main/java/io/conekta/model/DeleteApiKeysResponse.java +src/main/java/io/conekta/model/DeletedBlacklistRuleResponse.java +src/main/java/io/conekta/model/DeletedWhitelistRuleResponse.java +src/main/java/io/conekta/model/Details.java +src/main/java/io/conekta/model/DetailsError.java +src/main/java/io/conekta/model/DiscountLinesDataResponse.java +src/main/java/io/conekta/model/DiscountLinesResponse.java +src/main/java/io/conekta/model/EmailCheckoutRequest.java +src/main/java/io/conekta/model/Error.java +src/main/java/io/conekta/model/EventResponse.java +src/main/java/io/conekta/model/EventTypes.java +src/main/java/io/conekta/model/EventsResendResponse.java +src/main/java/io/conekta/model/FiscalEntityAddress.java +src/main/java/io/conekta/model/GetApiKeysResponse.java +src/main/java/io/conekta/model/GetChargesResponse.java +src/main/java/io/conekta/model/GetCompaniesResponse.java +src/main/java/io/conekta/model/GetCustomerPaymentMethodDataResponse.java +src/main/java/io/conekta/model/GetEventsResponse.java +src/main/java/io/conekta/model/GetOrderDiscountLinesResponse.java +src/main/java/io/conekta/model/GetOrdersResponse.java +src/main/java/io/conekta/model/GetPaymentMethodResponse.java +src/main/java/io/conekta/model/GetPlansResponse.java +src/main/java/io/conekta/model/GetTransactionsResponse.java +src/main/java/io/conekta/model/GetTransfersResponse.java +src/main/java/io/conekta/model/GetWebhookKeysResponse.java +src/main/java/io/conekta/model/GetWebhooksResponse.java +src/main/java/io/conekta/model/LogResponse.java +src/main/java/io/conekta/model/LogsResponse.java +src/main/java/io/conekta/model/LogsResponseData.java +src/main/java/io/conekta/model/OasAnyTypeNotMapped.java +src/main/java/io/conekta/model/OrderCaptureRequest.java +src/main/java/io/conekta/model/OrderCustomerInfoResponse.java +src/main/java/io/conekta/model/OrderDiscountLinesRequest.java +src/main/java/io/conekta/model/OrderFiscalEntityAddressResponse.java +src/main/java/io/conekta/model/OrderFiscalEntityRequest.java +src/main/java/io/conekta/model/OrderFiscalEntityResponse.java +src/main/java/io/conekta/model/OrderNextActionResponse.java +src/main/java/io/conekta/model/OrderNextActionResponseRedirectToUrl.java +src/main/java/io/conekta/model/OrderRefundRequest.java +src/main/java/io/conekta/model/OrderRequest.java +src/main/java/io/conekta/model/OrderRequestCustomerInfo.java +src/main/java/io/conekta/model/OrderResponse.java +src/main/java/io/conekta/model/OrderResponseCharges.java +src/main/java/io/conekta/model/OrderResponseCheckout.java +src/main/java/io/conekta/model/OrderResponseCustomerInfo.java +src/main/java/io/conekta/model/OrderResponseDiscountLines.java +src/main/java/io/conekta/model/OrderResponseProducts.java +src/main/java/io/conekta/model/OrderResponseShippingContact.java +src/main/java/io/conekta/model/OrderTaxRequest.java +src/main/java/io/conekta/model/OrderUpdateFiscalEntityRequest.java +src/main/java/io/conekta/model/OrderUpdateRequest.java +src/main/java/io/conekta/model/OrderUpdateRequestCustomerInfo.java +src/main/java/io/conekta/model/OrdersResponse.java +src/main/java/io/conekta/model/Page.java +src/main/java/io/conekta/model/Pagination.java +src/main/java/io/conekta/model/PaymentMethod.java +src/main/java/io/conekta/model/PaymentMethodBankTransfer.java +src/main/java/io/conekta/model/PaymentMethodCard.java +src/main/java/io/conekta/model/PaymentMethodCardRequest.java +src/main/java/io/conekta/model/PaymentMethodCardResponse.java +src/main/java/io/conekta/model/PaymentMethodCash.java +src/main/java/io/conekta/model/PaymentMethodCashRequest.java +src/main/java/io/conekta/model/PaymentMethodCashResponse.java +src/main/java/io/conekta/model/PaymentMethodGeneralRequest.java +src/main/java/io/conekta/model/PaymentMethodResponse.java +src/main/java/io/conekta/model/PaymentMethodSpeiRecurrent.java +src/main/java/io/conekta/model/PaymentMethodSpeiRequest.java +src/main/java/io/conekta/model/PaymentMethodTokenRequest.java +src/main/java/io/conekta/model/Payout.java +src/main/java/io/conekta/model/PayoutMethod.java +src/main/java/io/conekta/model/PayoutOrder.java +src/main/java/io/conekta/model/PayoutOrderPayoutsItem.java +src/main/java/io/conekta/model/PayoutOrderResponse.java +src/main/java/io/conekta/model/PayoutOrderResponseCustomerInfo.java +src/main/java/io/conekta/model/PayoutOrdersResponse.java +src/main/java/io/conekta/model/PlanRequest.java +src/main/java/io/conekta/model/PlanResponse.java +src/main/java/io/conekta/model/PlanUpdateRequest.java +src/main/java/io/conekta/model/Product.java +src/main/java/io/conekta/model/ProductDataResponse.java +src/main/java/io/conekta/model/ProductOrderResponse.java +src/main/java/io/conekta/model/RiskRulesData.java +src/main/java/io/conekta/model/RiskRulesList.java +src/main/java/io/conekta/model/ShippingOrderResponse.java +src/main/java/io/conekta/model/ShippingRequest.java +src/main/java/io/conekta/model/SmsCheckoutRequest.java +src/main/java/io/conekta/model/SubscriptionEventsResponse.java +src/main/java/io/conekta/model/SubscriptionRequest.java +src/main/java/io/conekta/model/SubscriptionResponse.java +src/main/java/io/conekta/model/SubscriptionUpdateRequest.java +src/main/java/io/conekta/model/Token.java +src/main/java/io/conekta/model/TokenCard.java +src/main/java/io/conekta/model/TokenCheckout.java +src/main/java/io/conekta/model/TokenResponse.java +src/main/java/io/conekta/model/TokenResponseCheckout.java +src/main/java/io/conekta/model/TransactionResponse.java +src/main/java/io/conekta/model/TransferDestinationResponse.java +src/main/java/io/conekta/model/TransferMethodResponse.java +src/main/java/io/conekta/model/TransferResponse.java +src/main/java/io/conekta/model/TransfersResponse.java +src/main/java/io/conekta/model/UpdateCustomer.java +src/main/java/io/conekta/model/UpdateCustomerAntifraudInfo.java +src/main/java/io/conekta/model/UpdateCustomerFiscalEntitiesResponse.java +src/main/java/io/conekta/model/UpdateCustomerPaymentMethodsResponse.java +src/main/java/io/conekta/model/UpdateOrderDiscountLinesRequest.java +src/main/java/io/conekta/model/UpdateOrderTaxRequest.java +src/main/java/io/conekta/model/UpdateOrderTaxResponse.java +src/main/java/io/conekta/model/UpdatePaymentMethods.java +src/main/java/io/conekta/model/UpdateProduct.java +src/main/java/io/conekta/model/WebhookKeyCreateResponse.java +src/main/java/io/conekta/model/WebhookKeyDeleteResponse.java +src/main/java/io/conekta/model/WebhookKeyRequest.java +src/main/java/io/conekta/model/WebhookKeyResponse.java +src/main/java/io/conekta/model/WebhookKeyUpdateRequest.java +src/main/java/io/conekta/model/WebhookLog.java +src/main/java/io/conekta/model/WebhookRequest.java +src/main/java/io/conekta/model/WebhookResponse.java +src/main/java/io/conekta/model/WebhookUpdateRequest.java +src/main/java/io/conekta/model/WhitelistlistRuleResponse.java diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION new file mode 100644 index 0000000..4bc5d61 --- /dev/null +++ b/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.9.0 diff --git a/CHANGELOG b/CHANGELOG deleted file mode 100644 index 80c5491..0000000 --- a/CHANGELOG +++ /dev/null @@ -1,2 +0,0 @@ -=== 1.1 2015-08-20 -* Fix device fingerprinting logic. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e013b87 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +test: + ./gradlew test +build: + ./gradlew clean build -x lintDebug +deploy: + ./gradlew publish -x lintDebug +android: + rm -rf src/main/kotlin && \ + rm -rf docs && \ + docker run --rm \ + -v ${PWD}:/local openapitools/openapi-generator-cli:v7.9.0 generate \ + -i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \ + -g android \ + -o /local \ + -c /local/config.json \ + --global-property apiDocs=true,apiTests=true,modelTests=false diff --git a/README.md b/README.md index 37c190c..d6380a6 100644 --- a/README.md +++ b/README.md @@ -1,408 +1,382 @@ -![README Cover Image](readme_cover.png) +# conektasdk -# Conekta Android -You can use conekta-android for tokenize credit cards. +## Requirements -You have two methods to integrate conekta-android. Use artifacts or include our module. +Building the API client library requires [Maven](https://maven.apache.org/) to be installed. -## Install Conekta Android Artifacts (AAR) 2.1 -The artifact contains everything you need to start. +## Installation -### Instructions -This example uses mavenCentral to install the .aar (conektasdk) artefact. -``` -repositories { - mavenCentral() -} -... -configurations { - all { - exclude group: 'commons-logging', module: 'commons-logging' - exclude module: 'httpclient' - } -} -... -dependencies { - implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.android.support:appcompat-v7:28.0.0' - implementation 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2' - implementation project(':conektasdk') -} +To install the API client library to your local Maven repository, simply execute: +```shell +mvn install ``` -Now just Sync gradle - -## Import Conekta Android module 2.0 -### Android Studio tested in versions 2.3, 3.0.1 - -This is an example about how to create Android Apps importing conekta module. - -### Instructions -1. Clone this project +To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: - - -## First you will need to open a new Android Project with ´empty´ activity - -### 2 Set Android Environment - -### 2.1 Add repositories - -#### Gradle Scripts>Build.gradle(Project:YourProject) -```java -buildscript { - - repositories { - google() - jcenter() - ``` - ### Add the repository - -```java - mavenCentral() - } +```shell +mvn deploy ``` -### 1.2 Set versions and dependencies +Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information. -#### Gradle Scripts>Build.gradle(Project:Module:app) -```java -android { - compileSdkVersion 28 - defaultConfig { - applicationId "com.conekta.conektatokenizeandroid" - minSdkVersion 21 - targetSdkVersion 28 - versionCode 1 - versionName "1.0" - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" - } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } -} +### Maven users +Add this dependency to your project's POM: -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'com.android.support:appcompat-v7:28.1.0' - implementation 'com.android.support.constraint:constraint-layout:1.1.0' - testImplementation 'junit:junit:4.12' - androidTestImplementation 'com.android.support.test:runner:1.0.1' - implementation 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2' - androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' +```xml + + io.conekta + conektasdk + 6.0.1-SNAPSHOT + compile + ``` - ### Add the dependency - -```java - - implementation 'io.conekta:conektasdk:2.2' -} -``` -### 2 Build tokenize form - -#### App>res>layout>activity_main.xml -````java - - - - - - - - - - - - - - - - - - - - - - - -