Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update sdk #35

Merged
merged 31 commits into from
Nov 26, 2024
Merged

Update sdk #35

merged 31 commits into from
Nov 26, 2024

Conversation

fcarrero
Copy link
Contributor

No description provided.

src/main/java/io/conekta/ApiInvoker.java Dismissed Show dismissed Hide dismissed
This commit removes the OasAnyTypeNotMapped class from the codebase. The class was no longer needed and has been deleted.
- 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".
- 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.
- 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
- 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
- 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
… 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 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.
…ository

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.
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.
- Removed unnecessary blank lines
- Fixed indentation issues
- Replaced tabs with spaces for consistent formatting
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.
- 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.
- Update TokensApiTest.java
- Change language parameter in createToken method from "es" to "en"
@fcarrero fcarrero merged commit bf4175b into master Nov 26, 2024
6 checks passed
@fcarrero fcarrero deleted the update-sdk branch November 26, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants