From 5aad714a0c381d99a6c17dfa9fd511e852d377d5 Mon Sep 17 00:00:00 2001 From: franklin Date: Mon, 5 Oct 2026 09:21:52 -0500 Subject: [PATCH 1/2] feat: Add monthly installments validation response models - Introduced MonthlyInstallmentsValidateResponse class to handle the response for monthly installments validation. - Added MonthlyInstallmentsValidateResponseAvailableInstallments class to represent available installment options. - Created MonthlyInstallmentsValidateResponseBinInfo class to provide BIN information related to the card. - Implemented OrderTaxRequestMetadataValue class to support dynamic metadata values for order taxes. - Added ShippingContactAddress class to encapsulate shipping address details for order fulfillment. --- .openapi-generator/FILES | 30 +- .openapi-generator/VERSION | 2 +- Makefile | 4 +- README.md | 25 +- VERSION | 2 +- api/openapi.yaml | 2073 ++++++++++++++--- config-java.json | 4 +- docs/ApplePayApi.md | 84 + docs/ApplePaySessionRequest.md | 27 + docs/ApplePaySessionResponse.md | 24 + docs/ChargeResponse.md | 7 +- docs/ChargebackEvidenceFileResponse.md | 42 + docs/ChargebackEvidenceTypeResponse.md | 40 + docs/ChargebackFilesBatchResponse.md | 14 + docs/ChargebacksApi.md | 368 +++ docs/ChargesApi.md | 12 +- docs/ChargesDataResponse.md | 7 +- docs/Checkout.md | 19 +- docs/CheckoutResponse.md | 2 +- docs/CompanyResponse.md | 1 + docs/CreateCompanyRequest.md | 1 + docs/CreateCustomerFiscalEntitiesResponse.md | 2 +- docs/CustomerFiscalEntitiesDataResponse.md | 2 +- docs/CustomerShippingContactsDataResponse.md | 2 +- docs/CustomerShippingContactsRequest.md | 2 +- .../CustomerShippingContactsRequestAddress.md | 15 +- docs/CustomerUpdateShippingContactsRequest.md | 4 +- docs/FiscalEntityRequest.md | 2 +- docs/FiscalEntityRequestAddress.md | 1 - docs/LogResponseForRequest.md | 4 +- docs/LogsApi.md | 6 +- docs/LogsResponseData.md | 4 +- docs/MonthlyInstallmentsApi.md | 85 + docs/MonthlyInstallmentsValidateRequest.md | 15 + docs/MonthlyInstallmentsValidateResponse.md | 15 + ...tsValidateResponseAvailableInstallments.md | 14 + ...thlyInstallmentsValidateResponseBinInfo.md | 15 + docs/OrderCheckoutRequest.md | 5 +- docs/OrderRequest.md | 17 +- docs/OrderResponse.md | 12 +- docs/OrderTaxRequest.md | 2 +- docs/OrderTaxRequestMetadataValue.md | 55 + docs/OrderTaxResponse.md | 2 +- docs/OrderUpdate.md | 2 +- docs/OrdersApi.md | 12 +- docs/OrdersUpdateTaxesRequest.md | 2 +- docs/PaymentLinkApi.md | 86 +- docs/PaymentMethodBnplRequest.md | 4 +- docs/PaymentMethodCardRequest.md | 3 +- docs/Product.md | 2 +- docs/ProductDataResponse.md | 2 +- docs/ProductOrderResponse.md | 2 +- docs/ResendEventRequest.md | 2 +- docs/ShippingContactAddress.md | 20 + docs/ShippingLinesDataResponse.md | 2 +- docs/ShippingOrderResponse.md | 2 +- docs/ShippingRequest.md | 2 +- docs/SmsCheckoutRequest.md | 13 - docs/TaxLinesDataResponse.md | 2 +- docs/UpdateCustomerFiscalEntitiesResponse.md | 2 +- docs/UpdateFiscalEntityRequest.md | 2 +- docs/UpdateProduct.md | 4 +- pom.xml | 2 +- src/main/java/com/conekta/AntifraudApi.java | 2 +- src/main/java/com/conekta/ApiClient.java | 6 +- src/main/java/com/conekta/ApiException.java | 2 +- src/main/java/com/conekta/ApiKeysApi.java | 2 +- src/main/java/com/conekta/ApplePayApi.java | 106 + src/main/java/com/conekta/BalancesApi.java | 2 +- src/main/java/com/conekta/ChargebacksApi.java | 444 ++++ src/main/java/com/conekta/ChargesApi.java | 24 +- src/main/java/com/conekta/CompaniesApi.java | 2 +- src/main/java/com/conekta/Configuration.java | 4 +- src/main/java/com/conekta/CustomersApi.java | 2 +- src/main/java/com/conekta/DiscountsApi.java | 2 +- src/main/java/com/conekta/EventsApi.java | 2 +- src/main/java/com/conekta/JSON.java | 2 +- .../java/com/conekta/JavaTimeFormatter.java | 2 +- src/main/java/com/conekta/LogsApi.java | 11 +- .../com/conekta/MonthlyInstallmentsApi.java | 109 + src/main/java/com/conekta/OrdersApi.java | 22 +- src/main/java/com/conekta/Pair.java | 2 +- src/main/java/com/conekta/PaymentLinkApi.java | 90 +- .../java/com/conekta/PaymentMethodsApi.java | 2 +- .../java/com/conekta/PayoutOrdersApi.java | 2 +- src/main/java/com/conekta/PlansApi.java | 2 +- src/main/java/com/conekta/ProductsApi.java | 2 +- .../java/com/conekta/RFC3339DateFormat.java | 2 +- .../conekta/RFC3339InstantDeserializer.java | 2 +- .../com/conekta/RFC3339JavaTimeModule.java | 2 +- .../java/com/conekta/ServerConfiguration.java | 2 +- src/main/java/com/conekta/ServerVariable.java | 2 +- .../java/com/conekta/ShippingContactsApi.java | 2 +- src/main/java/com/conekta/ShippingsApi.java | 2 +- src/main/java/com/conekta/StringUtil.java | 2 +- .../java/com/conekta/SubscriptionsApi.java | 2 +- .../SubscriptionsCustomerPortalApi.java | 2 +- src/main/java/com/conekta/TaxesApi.java | 2 +- src/main/java/com/conekta/TokensApi.java | 2 +- .../java/com/conekta/TransactionsApi.java | 2 +- src/main/java/com/conekta/TransfersApi.java | 2 +- src/main/java/com/conekta/WebhookKeysApi.java | 2 +- src/main/java/com/conekta/WebhooksApi.java | 2 +- .../java/com/conekta/auth/ApiKeyAuth.java | 2 +- .../java/com/conekta/auth/Authentication.java | 2 +- .../java/com/conekta/auth/HttpBasicAuth.java | 2 +- .../java/com/conekta/auth/HttpBearerAuth.java | 2 +- .../conekta/model/AbstractOpenApiSchema.java | 2 +- .../conekta/model/ApiKeyCreateResponse.java | 2 +- .../java/com/conekta/model/ApiKeyRequest.java | 2 +- .../com/conekta/model/ApiKeyResponse.java | 2 +- .../conekta/model/ApiKeyUpdateRequest.java | 2 +- .../conekta/model/ApplePaySessionRequest.java | 242 ++ .../model/ApplePaySessionResponse.java | 428 ++++ .../model/BalanceCommonFielsResponse.java | 2 +- .../com/conekta/model/BalanceResponse.java | 2 +- .../conekta/model/BlacklistRuleResponse.java | 2 +- .../conekta/model/CashAgreementsResponse.java | 2 +- .../conekta/model/ChargeOrderResponse.java | 2 +- .../ChargeOrderResponsePaymentMethod.java | 2 +- .../java/com/conekta/model/ChargeRequest.java | 2 +- .../model/ChargeRequestPaymentMethod.java | 2 +- .../com/conekta/model/ChargeResponse.java | 56 +- .../conekta/model/ChargeResponseChannel.java | 2 +- .../model/ChargeResponsePaymentMethod.java | 2 +- .../conekta/model/ChargeResponseRefunds.java | 2 +- .../model/ChargeResponseRefundsData.java | 2 +- .../conekta/model/ChargeUpdateRequest.java | 2 +- .../model/ChargebackEvidenceFileResponse.java | 302 +++ .../model/ChargebackEvidenceTypeResponse.java | 247 ++ .../conekta/model/ChargebackFileResponse.java | 2 +- .../model/ChargebackFilesBatchResponse.java | 119 + .../com/conekta/model/ChargebackResponse.java | 2 +- .../conekta/model/ChargesDataResponse.java | 56 +- .../conekta/model/ChargesOrderResponse.java | 2 +- src/main/java/com/conekta/model/Checkout.java | 92 +- .../conekta/model/CheckoutOrderTemplate.java | 2 +- .../CheckoutOrderTemplateCustomerInfo.java | 2 +- .../com/conekta/model/CheckoutResponse.java | 58 +- .../com/conekta/model/CheckoutsResponse.java | 2 +- .../conekta/model/CompanyDocumentRequest.java | 2 +- .../model/CompanyDocumentResponse.java | 2 +- .../com/conekta/model/CompanyResponse.java | 40 +- .../conekta/model/CreateCompanyRequest.java | 50 +- .../CreateCompanyRequestBankAccountInfo.java | 2 +- .../CreateCompanyRequestComercialInfo.java | 2 +- .../model/CreateCompanyRequestFiscalInfo.java | 2 +- .../CreateCustomerFiscalEntitiesResponse.java | 12 +- .../CreateCustomerPaymentMethodsRequest.java | 2 +- .../CreateCustomerPaymentMethodsResponse.java | 2 +- .../model/CreateRuleWhitelistRequest.java | 2 +- src/main/java/com/conekta/model/Customer.java | 2 +- .../conekta/model/CustomerAntifraudInfo.java | 2 +- .../model/CustomerAntifraudInfoResponse.java | 2 +- .../com/conekta/model/CustomerDetails.java | 2 +- .../CustomerFiscalEntitiesDataResponse.java | 12 +- .../model/CustomerFiscalEntitiesResponse.java | 2 +- .../java/com/conekta/model/CustomerInfo.java | 2 +- .../conekta/model/CustomerInfoCustomerId.java | 2 +- .../model/CustomerPaymentMethodsData.java | 2 +- .../model/CustomerPaymentMethodsRequest.java | 2 +- .../model/CustomerPaymentMethodsResponse.java | 2 +- .../conekta/model/CustomerPortalResponse.java | 2 +- .../com/conekta/model/CustomerResponse.java | 2 +- .../CustomerResponseShippingContacts.java | 2 +- .../CustomerShippingContactsAddress.java | 2 +- .../CustomerShippingContactsDataResponse.java | 4 +- .../CustomerShippingContactsRequest.java | 4 +- ...ustomerShippingContactsRequestAddress.java | 68 +- .../CustomerShippingContactsResponse.java | 2 +- ...CustomerUpdateShippingContactsRequest.java | 14 +- .../com/conekta/model/CustomersResponse.java | 2 +- .../conekta/model/DeleteApiKeysResponse.java | 2 +- .../model/DeletedBlacklistRuleResponse.java | 2 +- .../model/DeletedWhitelistRuleResponse.java | 2 +- .../java/com/conekta/model/DetailsError.java | 2 +- .../model/DiscountLinesDataResponse.java | 2 +- .../conekta/model/DiscountLinesResponse.java | 2 +- .../conekta/model/EmailCheckoutRequest.java | 2 +- src/main/java/com/conekta/model/Error.java | 2 +- .../java/com/conekta/model/EventResponse.java | 2 +- .../conekta/model/EventsResendResponse.java | 2 +- .../conekta/model/FiscalEntityAddress.java | 2 +- .../conekta/model/FiscalEntityRequest.java | 12 +- .../model/FiscalEntityRequestAddress.java | 36 +- .../com/conekta/model/GetApiKeysResponse.java | 2 +- .../com/conekta/model/GetChargesResponse.java | 2 +- .../conekta/model/GetCompaniesResponse.java | 2 +- .../GetCustomerPaymentMethodDataResponse.java | 2 +- .../com/conekta/model/GetEventsResponse.java | 2 +- .../model/GetOrderDiscountLinesResponse.java | 2 +- .../com/conekta/model/GetOrdersResponse.java | 2 +- .../model/GetPaymentMethodResponse.java | 2 +- .../com/conekta/model/GetPlansResponse.java | 2 +- .../model/GetTransactionsResponse.java | 2 +- .../conekta/model/GetTransfersResponse.java | 2 +- .../conekta/model/GetWebhookKeysResponse.java | 2 +- .../conekta/model/GetWebhooksResponse.java | 2 +- .../conekta/model/LogResponseForRequest.java | 22 +- .../com/conekta/model/LogsResponseData.java | 22 +- .../conekta/model/LogsResponseForRequest.java | 2 +- .../MonthlyInstallmentsValidateRequest.java | 140 ++ .../MonthlyInstallmentsValidateResponse.java | 152 ++ ...ValidateResponseAvailableInstallments.java | 140 ++ ...lyInstallmentsValidateResponseBinInfo.java | 172 ++ .../conekta/model/OrderCaptureRequest.java | 2 +- .../conekta/model/OrderChannelResponse.java | 2 +- .../conekta/model/OrderChargesResponse.java | 2 +- .../conekta/model/OrderCheckoutRequest.java | 8 +- .../model/OrderDiscountLinesRequest.java | 2 +- .../OrderFiscalEntityAddressResponse.java | 2 +- .../model/OrderFiscalEntityRequest.java | 2 +- .../model/OrderFiscalEntityResponse.java | 2 +- .../model/OrderNextActionResponse.java | 2 +- .../OrderNextActionResponseRedirectToUrl.java | 2 +- .../com/conekta/model/OrderRefundRequest.java | 2 +- .../java/com/conekta/model/OrderRequest.java | 134 +- .../model/OrderRequestCustomerInfo.java | 2 +- .../java/com/conekta/model/OrderResponse.java | 98 +- .../conekta/model/OrderResponseCheckout.java | 2 +- .../model/OrderResponseCustomerInfo.java | 2 +- .../model/OrderResponseDiscountLines.java | 2 +- .../conekta/model/OrderResponseProducts.java | 2 +- .../model/OrderResponseShippingContact.java | 2 +- .../model/OrderResponseShippingLines.java | 2 +- .../conekta/model/OrderResponseTaxLines.java | 2 +- .../com/conekta/model/OrderTaxRequest.java | 17 +- .../model/OrderTaxRequestMetadataValue.java | 272 +++ .../com/conekta/model/OrderTaxResponse.java | 17 +- .../java/com/conekta/model/OrderUpdate.java | 19 +- .../model/OrderUpdateCustomerInfo.java | 2 +- .../model/OrderUpdateFiscalEntityRequest.java | 2 +- .../model/OrdersUpdateTaxesRequest.java | 19 +- .../model/PaymentMethodBankTransfer.java | 2 +- .../model/PaymentMethodBnplPayment.java | 2 +- .../model/PaymentMethodBnplRequest.java | 60 +- .../com/conekta/model/PaymentMethodCard.java | 2 +- .../model/PaymentMethodCardRequest.java | 38 +- .../model/PaymentMethodCardResponse.java | 2 +- .../com/conekta/model/PaymentMethodCash.java | 2 +- .../PaymentMethodCashRecurrentResponse.java | 2 +- .../model/PaymentMethodCashRequest.java | 2 +- .../model/PaymentMethodCashResponse.java | 2 +- .../model/PaymentMethodGeneralRequest.java | 2 +- .../model/PaymentMethodPbbPayment.java | 2 +- .../model/PaymentMethodPbbRequest.java | 2 +- .../PaymentMethodSpeiRecurrentResponse.java | 2 +- .../model/PaymentMethodSpeiRequest.java | 2 +- .../model/PaymentMethodTokenRequest.java | 2 +- src/main/java/com/conekta/model/Payout.java | 2 +- .../java/com/conekta/model/PayoutMethod.java | 2 +- .../conekta/model/PayoutOrderPayoutsItem.java | 2 +- .../com/conekta/model/PayoutOrderRequest.java | 2 +- .../model/PayoutOrderRequestCustomerInfo.java | 2 +- .../conekta/model/PayoutOrderResponse.java | 2 +- .../PayoutOrderResponseCustomerInfo.java | 2 +- .../conekta/model/PayoutOrdersResponse.java | 2 +- .../java/com/conekta/model/PlanRequest.java | 2 +- .../java/com/conekta/model/PlanResponse.java | 2 +- src/main/java/com/conekta/model/Product.java | 19 +- .../conekta/model/ProductDataResponse.java | 19 +- .../conekta/model/ProductOrderResponse.java | 19 +- .../com/conekta/model/ResendEventRequest.java | 18 +- .../java/com/conekta/model/RiskRulesData.java | 2 +- .../java/com/conekta/model/RiskRulesList.java | 2 +- .../conekta/model/ShippingContactAddress.java | 300 +++ .../model/ShippingLinesDataResponse.java | 19 +- .../conekta/model/ShippingOrderResponse.java | 19 +- .../com/conekta/model/ShippingRequest.java | 19 +- .../com/conekta/model/SmsCheckoutRequest.java | 108 - .../conekta/model/SubscriptionDetails.java | 2 +- .../model/SubscriptionDetailsCard.java | 2 +- .../model/SubscriptionDetailsPlan.java | 2 +- .../model/SubscriptionEventsResponse.java | 2 +- .../conekta/model/SubscriptionRequest.java | 2 +- .../conekta/model/SubscriptionResponse.java | 2 +- .../conekta/model/TaxLinesDataResponse.java | 17 +- .../java/com/conekta/model/TokenRequest.java | 2 +- .../com/conekta/model/TokenRequestCard.java | 2 +- .../conekta/model/TokenRequestCheckout.java | 2 +- .../java/com/conekta/model/TokenResponse.java | 2 +- .../conekta/model/TokenResponseCheckout.java | 2 +- .../conekta/model/TransactionResponse.java | 2 +- .../model/TransferDestinationResponse.java | 2 +- .../conekta/model/TransferMethodResponse.java | 2 +- .../com/conekta/model/TransferResponse.java | 2 +- .../com/conekta/model/TransfersResponse.java | 2 +- .../com/conekta/model/UpdateCustomer.java | 2 +- .../model/UpdateCustomerAntifraudInfo.java | 2 +- .../UpdateCustomerFiscalEntitiesResponse.java | 12 +- .../UpdateCustomerPaymentMethodsResponse.java | 2 +- .../model/UpdateFiscalEntityRequest.java | 12 +- .../UpdateOrderDiscountLinesRequest.java | 2 +- .../model/UpdatePaymentMethodsCard.java | 2 +- .../java/com/conekta/model/UpdatePlan.java | 2 +- .../java/com/conekta/model/UpdateProduct.java | 29 +- .../java/com/conekta/model/UpdateWebhook.java | 2 +- .../conekta/model/UpdatesASubscription.java | 2 +- .../model/WebhookKeyCreateResponse.java | 2 +- .../model/WebhookKeyDeleteResponse.java | 2 +- .../com/conekta/model/WebhookKeyRequest.java | 2 +- .../com/conekta/model/WebhookKeyResponse.java | 2 +- .../model/WebhookKeyUpdateRequest.java | 2 +- .../java/com/conekta/model/WebhookLog.java | 2 +- .../com/conekta/model/WebhookRequest.java | 2 +- .../com/conekta/model/WebhookResponse.java | 2 +- .../model/WhitelistlistRuleResponse.java | 2 +- 307 files changed, 6925 insertions(+), 1294 deletions(-) create mode 100644 docs/ApplePayApi.md create mode 100644 docs/ApplePaySessionRequest.md create mode 100644 docs/ApplePaySessionResponse.md create mode 100644 docs/ChargebackEvidenceFileResponse.md create mode 100644 docs/ChargebackEvidenceTypeResponse.md create mode 100644 docs/ChargebackFilesBatchResponse.md create mode 100644 docs/ChargebacksApi.md create mode 100644 docs/MonthlyInstallmentsApi.md create mode 100644 docs/MonthlyInstallmentsValidateRequest.md create mode 100644 docs/MonthlyInstallmentsValidateResponse.md create mode 100644 docs/MonthlyInstallmentsValidateResponseAvailableInstallments.md create mode 100644 docs/MonthlyInstallmentsValidateResponseBinInfo.md create mode 100644 docs/OrderTaxRequestMetadataValue.md create mode 100644 docs/ShippingContactAddress.md delete mode 100644 docs/SmsCheckoutRequest.md create mode 100644 src/main/java/com/conekta/ApplePayApi.java create mode 100644 src/main/java/com/conekta/ChargebacksApi.java create mode 100644 src/main/java/com/conekta/MonthlyInstallmentsApi.java create mode 100644 src/main/java/com/conekta/model/ApplePaySessionRequest.java create mode 100644 src/main/java/com/conekta/model/ApplePaySessionResponse.java create mode 100644 src/main/java/com/conekta/model/ChargebackEvidenceFileResponse.java create mode 100644 src/main/java/com/conekta/model/ChargebackEvidenceTypeResponse.java create mode 100644 src/main/java/com/conekta/model/ChargebackFilesBatchResponse.java create mode 100644 src/main/java/com/conekta/model/MonthlyInstallmentsValidateRequest.java create mode 100644 src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponse.java create mode 100644 src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponseAvailableInstallments.java create mode 100644 src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponseBinInfo.java create mode 100644 src/main/java/com/conekta/model/OrderTaxRequestMetadataValue.java create mode 100644 src/main/java/com/conekta/model/ShippingContactAddress.java delete mode 100644 src/main/java/com/conekta/model/SmsCheckoutRequest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 6d4398d..8bddde1 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -10,6 +10,9 @@ docs/ApiKeyRequest.md docs/ApiKeyResponse.md docs/ApiKeyUpdateRequest.md docs/ApiKeysApi.md +docs/ApplePayApi.md +docs/ApplePaySessionRequest.md +docs/ApplePaySessionResponse.md docs/BalanceCommonFielsResponse.md docs/BalanceResponse.md docs/BalancesApi.md @@ -25,8 +28,12 @@ docs/ChargeResponsePaymentMethod.md docs/ChargeResponseRefunds.md docs/ChargeResponseRefundsData.md docs/ChargeUpdateRequest.md +docs/ChargebackEvidenceFileResponse.md +docs/ChargebackEvidenceTypeResponse.md docs/ChargebackFileResponse.md +docs/ChargebackFilesBatchResponse.md docs/ChargebackResponse.md +docs/ChargebacksApi.md docs/ChargesApi.md docs/ChargesDataResponse.md docs/ChargesOrderResponse.md @@ -102,6 +109,11 @@ docs/LogResponseForRequest.md docs/LogsApi.md docs/LogsResponseData.md docs/LogsResponseForRequest.md +docs/MonthlyInstallmentsApi.md +docs/MonthlyInstallmentsValidateRequest.md +docs/MonthlyInstallmentsValidateResponse.md +docs/MonthlyInstallmentsValidateResponseAvailableInstallments.md +docs/MonthlyInstallmentsValidateResponseBinInfo.md docs/OrderCaptureRequest.md docs/OrderChannelResponse.md docs/OrderChargesResponse.md @@ -124,6 +136,7 @@ docs/OrderResponseShippingContact.md docs/OrderResponseShippingLines.md docs/OrderResponseTaxLines.md docs/OrderTaxRequest.md +docs/OrderTaxRequestMetadataValue.md docs/OrderTaxResponse.md docs/OrderUpdate.md docs/OrderUpdateCustomerInfo.md @@ -167,12 +180,12 @@ docs/ProductsApi.md docs/ResendEventRequest.md docs/RiskRulesData.md docs/RiskRulesList.md +docs/ShippingContactAddress.md docs/ShippingContactsApi.md docs/ShippingLinesDataResponse.md docs/ShippingOrderResponse.md docs/ShippingRequest.md docs/ShippingsApi.md -docs/SmsCheckoutRequest.md docs/SubscriptionDetails.md docs/SubscriptionDetailsCard.md docs/SubscriptionDetailsPlan.md @@ -224,7 +237,9 @@ src/main/java/com/conekta/ApiClient.java src/main/java/com/conekta/ApiException.java src/main/java/com/conekta/ApiKeysApi.java src/main/java/com/conekta/ApiResponse.java +src/main/java/com/conekta/ApplePayApi.java src/main/java/com/conekta/BalancesApi.java +src/main/java/com/conekta/ChargebacksApi.java src/main/java/com/conekta/ChargesApi.java src/main/java/com/conekta/CompaniesApi.java src/main/java/com/conekta/Configuration.java @@ -234,6 +249,7 @@ src/main/java/com/conekta/EventsApi.java src/main/java/com/conekta/JSON.java src/main/java/com/conekta/JavaTimeFormatter.java src/main/java/com/conekta/LogsApi.java +src/main/java/com/conekta/MonthlyInstallmentsApi.java src/main/java/com/conekta/OrdersApi.java src/main/java/com/conekta/Pair.java src/main/java/com/conekta/PaymentLinkApi.java @@ -266,6 +282,8 @@ src/main/java/com/conekta/model/ApiKeyCreateResponse.java src/main/java/com/conekta/model/ApiKeyRequest.java src/main/java/com/conekta/model/ApiKeyResponse.java src/main/java/com/conekta/model/ApiKeyUpdateRequest.java +src/main/java/com/conekta/model/ApplePaySessionRequest.java +src/main/java/com/conekta/model/ApplePaySessionResponse.java src/main/java/com/conekta/model/BalanceCommonFielsResponse.java src/main/java/com/conekta/model/BalanceResponse.java src/main/java/com/conekta/model/BlacklistRuleResponse.java @@ -280,7 +298,10 @@ src/main/java/com/conekta/model/ChargeResponsePaymentMethod.java src/main/java/com/conekta/model/ChargeResponseRefunds.java src/main/java/com/conekta/model/ChargeResponseRefundsData.java src/main/java/com/conekta/model/ChargeUpdateRequest.java +src/main/java/com/conekta/model/ChargebackEvidenceFileResponse.java +src/main/java/com/conekta/model/ChargebackEvidenceTypeResponse.java src/main/java/com/conekta/model/ChargebackFileResponse.java +src/main/java/com/conekta/model/ChargebackFilesBatchResponse.java src/main/java/com/conekta/model/ChargebackResponse.java src/main/java/com/conekta/model/ChargesDataResponse.java src/main/java/com/conekta/model/ChargesOrderResponse.java @@ -351,6 +372,10 @@ src/main/java/com/conekta/model/GetWebhooksResponse.java src/main/java/com/conekta/model/LogResponseForRequest.java src/main/java/com/conekta/model/LogsResponseData.java src/main/java/com/conekta/model/LogsResponseForRequest.java +src/main/java/com/conekta/model/MonthlyInstallmentsValidateRequest.java +src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponse.java +src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponseAvailableInstallments.java +src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponseBinInfo.java src/main/java/com/conekta/model/OrderCaptureRequest.java src/main/java/com/conekta/model/OrderChannelResponse.java src/main/java/com/conekta/model/OrderChargesResponse.java @@ -373,6 +398,7 @@ src/main/java/com/conekta/model/OrderResponseShippingContact.java src/main/java/com/conekta/model/OrderResponseShippingLines.java src/main/java/com/conekta/model/OrderResponseTaxLines.java src/main/java/com/conekta/model/OrderTaxRequest.java +src/main/java/com/conekta/model/OrderTaxRequestMetadataValue.java src/main/java/com/conekta/model/OrderTaxResponse.java src/main/java/com/conekta/model/OrderUpdate.java src/main/java/com/conekta/model/OrderUpdateCustomerInfo.java @@ -410,10 +436,10 @@ src/main/java/com/conekta/model/ProductOrderResponse.java src/main/java/com/conekta/model/ResendEventRequest.java src/main/java/com/conekta/model/RiskRulesData.java src/main/java/com/conekta/model/RiskRulesList.java +src/main/java/com/conekta/model/ShippingContactAddress.java src/main/java/com/conekta/model/ShippingLinesDataResponse.java src/main/java/com/conekta/model/ShippingOrderResponse.java src/main/java/com/conekta/model/ShippingRequest.java -src/main/java/com/conekta/model/SmsCheckoutRequest.java src/main/java/com/conekta/model/SubscriptionDetails.java src/main/java/com/conekta/model/SubscriptionDetailsCard.java src/main/java/com/conekta/model/SubscriptionDetailsPlan.java diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 0783219..bc34d81 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.24.0 +7.25.0 diff --git a/Makefile b/Makefile index 6959649..4052d18 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ java: rm -rf docs && \ rm -rf src/main/java/com/conekta/model && \ docker run --rm \ - -v ${PWD}:/local openapitools/openapi-generator-cli:v7.24.0 generate \ - -i https://raw.githubusercontent.com/conekta/openapi/refs/heads/release/v2.3.0/_build/api.yaml \ + -v ${PWD}:/local openapitools/openapi-generator-cli:v7.25.0 generate \ + -i https://raw.githubusercontent.com/conekta/openapi/refs/heads/main/_build/api.yaml \ -g java \ -o /local \ -c /local/config-java.json \ diff --git a/README.md b/README.md index d9313b5..009acee 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Add this dependency to your project's POM: io.conekta ct-conekta-java - 9.0.0 + 9.0.1 compile ``` @@ -57,7 +57,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "io.conekta:ct-conekta-java:9.0.0" + implementation "io.conekta:ct-conekta-java:9.0.1" } ``` @@ -71,7 +71,7 @@ mvn clean package Then manually install the following JARs: -- `target/ct-conekta-java-9.0.0.jar` +- `target/ct-conekta-java-9.0.1.jar` - `target/lib/*.jar` ## Usage @@ -154,7 +154,12 @@ Class | Method | HTTP request | Description *ApiKeysApi* | [**getApiKey**](docs/ApiKeysApi.md#getApiKey) | **GET** /api_keys/{id} | Get Api Key *ApiKeysApi* | [**getApiKeys**](docs/ApiKeysApi.md#getApiKeys) | **GET** /api_keys | Get list of Api Keys *ApiKeysApi* | [**updateApiKey**](docs/ApiKeysApi.md#updateApiKey) | **PUT** /api_keys/{id} | Update Api Key +*ApplePayApi* | [**createApplePaySession**](docs/ApplePayApi.md#createApplePaySession) | **POST** /apple_pay/session | Create Apple Pay Session *BalancesApi* | [**getBalance**](docs/BalancesApi.md#getBalance) | **GET** /balance | Get a company's balance +*ChargebacksApi* | [**getChargebackEvidenceTypes**](docs/ChargebacksApi.md#getChargebackEvidenceTypes) | **GET** /charges/{charge_id}/chargebacks/{chargeback_id}/evidence-types | Get Chargeback Evidence Types +*ChargebacksApi* | [**getChargebackFile**](docs/ChargebacksApi.md#getChargebackFile) | **GET** /charges/{charge_id}/chargebacks/{chargeback_id}/files/{file_id} | Get Chargeback File +*ChargebacksApi* | [**getChargebackFiles**](docs/ChargebacksApi.md#getChargebackFiles) | **GET** /charges/{charge_id}/chargebacks/{chargeback_id}/files | Get Chargeback Files +*ChargebacksApi* | [**uploadChargebackFilesBatch**](docs/ChargebacksApi.md#uploadChargebackFilesBatch) | **POST** /charges/{charge_id}/chargebacks/{chargeback_id}/files/batch | Upload Chargeback Evidence Files (Batch) *ChargesApi* | [**getCharges**](docs/ChargesApi.md#getCharges) | **GET** /charges | Get A List of Charges *ChargesApi* | [**ordersCreateCharge**](docs/ChargesApi.md#ordersCreateCharge) | **POST** /orders/{id}/charges | Create charge *ChargesApi* | [**ordersCreateCharges**](docs/ChargesApi.md#ordersCreateCharges) | **POST** /orders/{id}/add_charges | Create charges @@ -183,6 +188,7 @@ Class | Method | HTTP request | Description *EventsApi* | [**resendEvent**](docs/EventsApi.md#resendEvent) | **POST** /events/{event_id}/resend | Resend Event *LogsApi* | [**getLogById**](docs/LogsApi.md#getLogById) | **GET** /logs/{id} | Get Log *LogsApi* | [**getLogs**](docs/LogsApi.md#getLogs) | **GET** /logs | Get List Of Logs +*MonthlyInstallmentsApi* | [**validateMonthlyInstallments**](docs/MonthlyInstallmentsApi.md#validateMonthlyInstallments) | **POST** /monthly_installments/validate | Validate Monthly Installments *OrdersApi* | [**cancelOrder**](docs/OrdersApi.md#cancelOrder) | **POST** /orders/{id}/cancel | Cancel Order *OrdersApi* | [**createOrder**](docs/OrdersApi.md#createOrder) | **POST** /orders | Create order *OrdersApi* | [**getOrderById**](docs/OrdersApi.md#getOrderById) | **GET** /orders/{id} | Get Order @@ -196,7 +202,6 @@ Class | Method | HTTP request | Description *PaymentLinkApi* | [**emailCheckout**](docs/PaymentLinkApi.md#emailCheckout) | **POST** /checkouts/{id}/email | Send an email *PaymentLinkApi* | [**getCheckout**](docs/PaymentLinkApi.md#getCheckout) | **GET** /checkouts/{id} | Get a payment link by ID *PaymentLinkApi* | [**getCheckouts**](docs/PaymentLinkApi.md#getCheckouts) | **GET** /checkouts | Get a list of payment links -*PaymentLinkApi* | [**smsCheckout**](docs/PaymentLinkApi.md#smsCheckout) | **POST** /checkouts/{id}/sms | Send an sms *PaymentMethodsApi* | [**createCustomerPaymentMethods**](docs/PaymentMethodsApi.md#createCustomerPaymentMethods) | **POST** /customers/{id}/payment_sources | Create Payment Method *PaymentMethodsApi* | [**deleteCustomerPaymentMethods**](docs/PaymentMethodsApi.md#deleteCustomerPaymentMethods) | **DELETE** /customers/{id}/payment_sources/{payment_method_id} | Delete Payment Method *PaymentMethodsApi* | [**getCustomerPaymentMethods**](docs/PaymentMethodsApi.md#getCustomerPaymentMethods) | **GET** /customers/{id}/payment_sources | Get Payment Methods @@ -264,6 +269,8 @@ Class | Method | HTTP request | Description - [ApiKeyRequest](docs/ApiKeyRequest.md) - [ApiKeyResponse](docs/ApiKeyResponse.md) - [ApiKeyUpdateRequest](docs/ApiKeyUpdateRequest.md) + - [ApplePaySessionRequest](docs/ApplePaySessionRequest.md) + - [ApplePaySessionResponse](docs/ApplePaySessionResponse.md) - [BalanceCommonFielsResponse](docs/BalanceCommonFielsResponse.md) - [BalanceResponse](docs/BalanceResponse.md) - [BlacklistRuleResponse](docs/BlacklistRuleResponse.md) @@ -278,7 +285,10 @@ Class | Method | HTTP request | Description - [ChargeResponseRefunds](docs/ChargeResponseRefunds.md) - [ChargeResponseRefundsData](docs/ChargeResponseRefundsData.md) - [ChargeUpdateRequest](docs/ChargeUpdateRequest.md) + - [ChargebackEvidenceFileResponse](docs/ChargebackEvidenceFileResponse.md) + - [ChargebackEvidenceTypeResponse](docs/ChargebackEvidenceTypeResponse.md) - [ChargebackFileResponse](docs/ChargebackFileResponse.md) + - [ChargebackFilesBatchResponse](docs/ChargebackFilesBatchResponse.md) - [ChargebackResponse](docs/ChargebackResponse.md) - [ChargesDataResponse](docs/ChargesDataResponse.md) - [ChargesOrderResponse](docs/ChargesOrderResponse.md) @@ -349,6 +359,10 @@ Class | Method | HTTP request | Description - [LogResponseForRequest](docs/LogResponseForRequest.md) - [LogsResponseData](docs/LogsResponseData.md) - [LogsResponseForRequest](docs/LogsResponseForRequest.md) + - [MonthlyInstallmentsValidateRequest](docs/MonthlyInstallmentsValidateRequest.md) + - [MonthlyInstallmentsValidateResponse](docs/MonthlyInstallmentsValidateResponse.md) + - [MonthlyInstallmentsValidateResponseAvailableInstallments](docs/MonthlyInstallmentsValidateResponseAvailableInstallments.md) + - [MonthlyInstallmentsValidateResponseBinInfo](docs/MonthlyInstallmentsValidateResponseBinInfo.md) - [OrderCaptureRequest](docs/OrderCaptureRequest.md) - [OrderChannelResponse](docs/OrderChannelResponse.md) - [OrderChargesResponse](docs/OrderChargesResponse.md) @@ -371,6 +385,7 @@ Class | Method | HTTP request | Description - [OrderResponseShippingLines](docs/OrderResponseShippingLines.md) - [OrderResponseTaxLines](docs/OrderResponseTaxLines.md) - [OrderTaxRequest](docs/OrderTaxRequest.md) + - [OrderTaxRequestMetadataValue](docs/OrderTaxRequestMetadataValue.md) - [OrderTaxResponse](docs/OrderTaxResponse.md) - [OrderUpdate](docs/OrderUpdate.md) - [OrderUpdateCustomerInfo](docs/OrderUpdateCustomerInfo.md) @@ -408,10 +423,10 @@ Class | Method | HTTP request | Description - [ResendEventRequest](docs/ResendEventRequest.md) - [RiskRulesData](docs/RiskRulesData.md) - [RiskRulesList](docs/RiskRulesList.md) + - [ShippingContactAddress](docs/ShippingContactAddress.md) - [ShippingLinesDataResponse](docs/ShippingLinesDataResponse.md) - [ShippingOrderResponse](docs/ShippingOrderResponse.md) - [ShippingRequest](docs/ShippingRequest.md) - - [SmsCheckoutRequest](docs/SmsCheckoutRequest.md) - [SubscriptionDetails](docs/SubscriptionDetails.md) - [SubscriptionDetailsCard](docs/SubscriptionDetailsCard.md) - [SubscriptionDetailsPlan](docs/SubscriptionDetailsPlan.md) diff --git a/VERSION b/VERSION index f7ee066..37ad5c8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -9.0.0 +9.0.1 diff --git a/api/openapi.yaml b/api/openapi.yaml index aadd094..3c262f3 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -16,6 +16,8 @@ servers: security: - bearerAuth: [] tags: +- description: Apple Pay endpoints used during the Apple Pay checkout flow + name: Apple Pay - description: "All subscription-related endpoints including creation, management,\ \ and events" name: Subscriptions @@ -1088,6 +1090,118 @@ paths: x-content-type: application/json x-accepts: - application/vnd.conekta-v2.3.0+json + /apple_pay/session: + post: + description: | + Validate an Apple Pay merchant session using Conekta's Apple Pay certificates. Call this + endpoint from your backend with the `validationURL` received in the `onvalidatemerchant` + event and return the response to the browser to complete the merchant validation. + + This endpoint does not require authentication, it is meant to be called during the Apple Pay + checkout flow. + operationId: createApplePaySession + parameters: + - description: Use for knowing which language to use + examples: + es: + summary: for spanish request/response + value: es + en: + summary: for english request/response + value: en + explode: false + in: header + name: Accept-Language + required: false + schema: + default: es + enum: + - es + - en + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/apple_pay_session_request" + description: requested fields for creating an Apple Pay session + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/apple_pay_session_response" + description: The validated Apple Pay merchant session. + headers: + Date: + description: The date and time that the response was sent + explode: false + schema: + example: "Thu, 18 Sep 2025 19:04:08 GMT" + type: string + style: simple + Content-Type: + description: The format of the response body + explode: false + schema: + example: application/json; charset=utf-8 + type: string + style: simple + Content-Length: + description: The length of the response body in bytes + explode: false + schema: + example: "4996" + type: string + style: simple + Connection: + description: The type of connection used to transfer the response + explode: false + schema: + example: keep-alive + type: string + style: simple + "422": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: The token does not exist. + param: payment_method.token_id + code: conekta.errors.parameter_validation.payment_method.token_id.nonexistent_token + debug_message: The token does not exist. + log_id: 641b6d813cd9a50001515017 + object: error + type: parameter_validation_error + schema: + $ref: "#/components/schemas/error" + description: parameter validation error + "500": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - debug_message: There was a runtime error and Conekta engineers have + been notified. + message: There was a runtime error and Conekta engineers have been + notified. + code: conekta.errors.api.system.general_failure + object: error + type: api_error + log_id: 641b6f2b3cd9a50001515098 + schema: + $ref: "#/components/schemas/error" + description: internal server error + security: [] + summary: Create Apple Pay Session + tags: + - Apple Pay + x-content-type: application/json + x-accepts: + - application/json + - application/vnd.conekta-v2.3.0+json /balance: get: description: Get a company's balance @@ -1264,57 +1378,708 @@ paths: content: application/vnd.conekta-v2.3.0+json: schema: - $ref: "#/components/schemas/get_charges_response" - description: successful + $ref: "#/components/schemas/get_charges_response" + description: successful + headers: + Date: + description: The date and time that the response was sent + explode: false + schema: + example: "Fri, 03 Feb 2023 16:57:48 GMT" + type: string + style: simple + Content-Type: + description: The format of the response body + explode: false + schema: + example: application/json; charset=utf-8 + type: string + style: simple + Content-Length: + description: The length of the response body in bytes + explode: false + schema: + example: "2737" + type: string + style: simple + Connection: + description: The type of connection used to transfer the response + explode: false + schema: + example: keep-alive + type: string + style: simple + Conekta-Media-Type: + explode: false + schema: + example: conekta-v2.3.0; format=application/json + type: string + style: simple + "422": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - debug_message: The "custom_field" parameter is not allowed + message: El parametro "custom_field" no está permitido + code: conekta.errors.parameter_validation.whitelist + object: error + type: parameter_validation_error + log_id: 6462aa7c90fef20001633546 + schema: + $ref: "#/components/schemas/error" + description: whitelist validation error + "500": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - debug_message: There was a runtime error and Conekta engineers have + been notified. + message: There was a runtime error and Conekta engineers have been + notified. + code: conekta.errors.api.system.general_failure + object: error + type: api_error + log_id: 641b6f2b3cd9a50001515098 + schema: + $ref: "#/components/schemas/error" + description: internal server error + security: + - bearerAuth: [] + summary: Get A List of Charges + tags: + - Charges + x-accepts: + - application/vnd.conekta-v2.3.0+json + /charges/{id}: + put: + operationId: updateCharge + parameters: + - description: Identifier of the resource + explode: false + in: path + name: id + required: true + schema: + example: 6307a60c41de27127515a575 + type: string + style: simple + - description: Use for knowing which language to use + examples: + es: + summary: for spanish request/response + value: es + en: + summary: for english request/response + value: en + explode: false + in: header + name: Accept-Language + required: false + schema: + default: es + enum: + - es + - en + type: string + style: simple + - description: "In the case of a holding company, the company id of the child\ + \ company to which will process the request." + example: 6441b6376b60c3a638da80af + explode: false + in: header + name: X-Child-Company-Id + required: false + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/charge_update_request" + description: requested field for update a charge + required: true + responses: + "200": + content: + application/vnd.conekta-v2.3.0+json: + schema: + $ref: "#/components/schemas/charge_response" + description: successful + headers: + Date: + description: The date and time that the response was sent + explode: false + schema: + example: "Fri, 03 Feb 2023 16:57:48 GMT" + type: string + style: simple + Content-Type: + description: The format of the response body + explode: false + schema: + example: application/json; charset=utf-8 + type: string + style: simple + Content-Length: + description: The length of the response body in bytes + explode: false + schema: + example: "2737" + type: string + style: simple + Connection: + description: The type of connection used to transfer the response + explode: false + schema: + example: keep-alive + type: string + style: simple + Conekta-Media-Type: + explode: false + schema: + example: conekta-v2.3.0; format=application/json + type: string + style: simple + "422": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - debug_message: The "custom_field" parameter is not allowed + message: El parametro "custom_field" no está permitido + code: conekta.errors.parameter_validation.whitelist + object: error + type: parameter_validation_error + log_id: 6462aa7c90fef20001633546 + schema: + $ref: "#/components/schemas/error" + description: whitelist validation error + "404": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: The resource was not found. + code: conekta.errors.resource_not_found.entity + debug_message: The object Webhook "641b1d5662d7e00001eaa46b" could + not be found. + log_id: 641b6c253cd9a50001514fae + object: error + type: resource_not_found_error + schema: + $ref: "#/components/schemas/error" + description: not found entity + "500": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - debug_message: There was a runtime error and Conekta engineers have + been notified. + message: There was a runtime error and Conekta engineers have been + notified. + code: conekta.errors.api.system.general_failure + object: error + type: api_error + log_id: 641b6f2b3cd9a50001515098 + schema: + $ref: "#/components/schemas/error" + description: internal server error + security: + - bearerAuth: [] + summary: Update a charge + tags: + - Charges + x-content-type: application/json + x-accepts: + - application/vnd.conekta-v2.3.0+json + /charges/{charge_id}/chargebacks/{chargeback_id}/files: + get: + description: Retrieve the list of evidence files uploaded for a chargeback. + operationId: getChargebackFiles + parameters: + - description: Identifier of the charge resource + explode: false + in: path + name: charge_id + required: true + schema: + example: 6966a06c044243000156c24d + type: string + style: simple + - description: Identifier of the chargeback resource + explode: false + in: path + name: chargeback_id + required: true + schema: + example: chbk_2zPxWFUnGNLySoumn + type: string + style: simple + - description: Use for knowing which language to use + examples: + es: + summary: for spanish request/response + value: es + en: + summary: for english request/response + value: en + explode: false + in: header + name: Accept-Language + required: false + schema: + default: es + enum: + - es + - en + type: string + style: simple + - description: "In the case of a holding company, the company id of the child\ + \ company to which will process the request." + example: 6441b6376b60c3a638da80af + explode: false + in: header + name: X-Child-Company-Id + required: false + schema: + type: string + style: simple + responses: + "200": + content: + application/vnd.conekta-v2.3.0+json: + schema: + items: + $ref: "#/components/schemas/chargeback_evidence_file_response" + type: array + nullable: true + default: null + description: A list of evidence files for the chargeback. + headers: + Date: + description: The date and time that the response was sent + explode: false + schema: + type: string + style: simple + Content-Type: + description: The format of the response body + explode: false + schema: + type: string + style: simple + Content-Length: + description: The length of the response body in bytes + explode: false + schema: + type: string + style: simple + Connection: + description: The type of connection used to transfer the response + explode: false + schema: + type: string + style: simple + Conekta-Media-Type: + explode: false + schema: + type: string + style: simple + "400": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: The chargeback status does not allow this operation. + code: conekta.errors.business.chargebacks.cannot_process + debug_message: chargeback status is won + log_id: 641b6c253cd9a50001514fae + object: error + type: resource_error + schema: + $ref: "#/components/schemas/error" + description: bad request + "401": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: Please include your access key in your request. + code: conekta.errors.authentication.missing_key + log_id: 507f1f77bcf86cd799439011 + object: error + type: authentication_error + schema: + $ref: "#/components/schemas/error" + description: authentication error + "404": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: The resource was not found. + code: conekta.errors.resource_not_found.entity + debug_message: The object Webhook "641b1d5662d7e00001eaa46b" could + not be found. + log_id: 641b6c253cd9a50001514fae + object: error + type: resource_not_found_error + schema: + $ref: "#/components/schemas/error" + description: not found entity + "500": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - debug_message: There was a runtime error and Conekta engineers have + been notified. + message: There was a runtime error and Conekta engineers have been + notified. + code: conekta.errors.api.system.general_failure + object: error + type: api_error + log_id: 641b6f2b3cd9a50001515098 + schema: + $ref: "#/components/schemas/error" + description: internal server error + security: + - bearerAuth: [] + summary: Get Chargeback Files + tags: + - Chargebacks + x-accepts: + - application/vnd.conekta-v2.3.0+json + /charges/{charge_id}/chargebacks/{chargeback_id}/files/{file_id}: + get: + description: Retrieve the metadata and a presigned download URL for a single + chargeback evidence file. + operationId: getChargebackFile + parameters: + - description: Identifier of the charge resource + explode: false + in: path + name: charge_id + required: true + schema: + example: 6966a06c044243000156c24d + type: string + style: simple + - description: Identifier of the chargeback resource + explode: false + in: path + name: chargeback_id + required: true + schema: + example: chbk_2zPxWFUnGNLySoumn + type: string + style: simple + - description: Identifier of the chargeback evidence file + explode: false + in: path + name: file_id + required: true + schema: + example: chbkf_2zPxWFUnGNLySoums + type: string + style: simple + - description: Use for knowing which language to use + examples: + es: + summary: for spanish request/response + value: es + en: + summary: for english request/response + value: en + explode: false + in: header + name: Accept-Language + required: false + schema: + default: es + enum: + - es + - en + type: string + style: simple + - description: "In the case of a holding company, the company id of the child\ + \ company to which will process the request." + example: 6441b6376b60c3a638da80af + explode: false + in: header + name: X-Child-Company-Id + required: false + schema: + type: string + style: simple + responses: + "200": + content: + application/vnd.conekta-v2.3.0+json: + schema: + $ref: "#/components/schemas/chargeback_evidence_file_response" + description: The requested evidence file. + headers: + Date: + description: The date and time that the response was sent + explode: false + schema: + type: string + style: simple + Content-Type: + description: The format of the response body + explode: false + schema: + type: string + style: simple + Content-Length: + description: The length of the response body in bytes + explode: false + schema: + type: string + style: simple + Connection: + description: The type of connection used to transfer the response + explode: false + schema: + type: string + style: simple + Conekta-Media-Type: + explode: false + schema: + type: string + style: simple + "400": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: The chargeback status does not allow this operation. + code: conekta.errors.business.chargebacks.cannot_process + debug_message: chargeback status is won + log_id: 641b6c253cd9a50001514fae + object: error + type: resource_error + schema: + $ref: "#/components/schemas/error" + description: bad request + "401": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: Please include your access key in your request. + code: conekta.errors.authentication.missing_key + log_id: 507f1f77bcf86cd799439011 + object: error + type: authentication_error + schema: + $ref: "#/components/schemas/error" + description: authentication error + "404": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: The resource was not found. + code: conekta.errors.resource_not_found.entity + debug_message: The object Webhook "641b1d5662d7e00001eaa46b" could + not be found. + log_id: 641b6c253cd9a50001514fae + object: error + type: resource_not_found_error + schema: + $ref: "#/components/schemas/error" + description: not found entity + "500": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - debug_message: There was a runtime error and Conekta engineers have + been notified. + message: There was a runtime error and Conekta engineers have been + notified. + code: conekta.errors.api.system.general_failure + object: error + type: api_error + log_id: 641b6f2b3cd9a50001515098 + schema: + $ref: "#/components/schemas/error" + description: internal server error + security: + - bearerAuth: [] + summary: Get Chargeback File + tags: + - Chargebacks + x-accepts: + - application/vnd.conekta-v2.3.0+json + /charges/{charge_id}/chargebacks/{chargeback_id}/files/batch: + post: + description: "Uploads multiple evidence files for a chargeback in a single request.\ + \ Each part of the multipart body must be keyed by an evidence type (see the\ + \ evidence-types endpoint for the valid values for this chargeback), with\ + \ exactly one file per evidence type. Limits: at most 10 files per request,\ + \ at most 2MB per file, and only application/pdf, image/jpeg or image/png\ + \ content is accepted. The chargeback must be in the `action_required` status,\ + \ and none of the submitted evidence types may already exist on the chargeback.\ + \ On success the chargeback transitions to `pending_review`." + operationId: uploadChargebackFilesBatch + parameters: + - description: Identifier of the charge resource + explode: false + in: path + name: charge_id + required: true + schema: + example: 6966a06c044243000156c24d + type: string + style: simple + - description: Identifier of the chargeback resource + explode: false + in: path + name: chargeback_id + required: true + schema: + example: chbk_2zPxWFUnGNLySoumn + type: string + style: simple + - description: Use for knowing which language to use + examples: + es: + summary: for spanish request/response + value: es + en: + summary: for english request/response + value: en + explode: false + in: header + name: Accept-Language + required: false + schema: + default: es + enum: + - es + - en + type: string + style: simple + - description: "In the case of a holding company, the company id of the child\ + \ company to which will process the request." + example: 6441b6376b60c3a638da80af + explode: false + in: header + name: X-Child-Company-Id + required: false + schema: + type: string + style: simple + requestBody: + content: + multipart/form-data: + schema: + $ref: "#/components/schemas/chargeback_files_batch_request" + description: Multipart form where each field name is an evidence type and + its value is the file to upload for that evidence type. Include only the + fields being uploaded (at most 10 per request); every field is optional. + required: true + responses: + "200": + content: + application/vnd.conekta-v2.3.0+json: + schema: + $ref: "#/components/schemas/chargeback_files_batch_response" + description: Files uploaded successfully. headers: Date: description: The date and time that the response was sent explode: false schema: - example: "Fri, 03 Feb 2023 16:57:48 GMT" type: string style: simple Content-Type: description: The format of the response body explode: false schema: - example: application/json; charset=utf-8 type: string style: simple Content-Length: description: The length of the response body in bytes explode: false schema: - example: "2737" type: string style: simple Connection: description: The type of connection used to transfer the response explode: false schema: - example: keep-alive type: string style: simple Conekta-Media-Type: explode: false schema: - example: conekta-v2.3.0; format=application/json type: string style: simple + "400": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: The chargeback status does not allow this operation. + code: conekta.errors.business.chargebacks.cannot_process + debug_message: chargeback status is won + log_id: 641b6c253cd9a50001514fae + object: error + type: resource_error + schema: + $ref: "#/components/schemas/error" + description: bad request + "401": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: Please include your access key in your request. + code: conekta.errors.authentication.missing_key + log_id: 507f1f77bcf86cd799439011 + object: error + type: authentication_error + schema: + $ref: "#/components/schemas/error" + description: authentication error + "404": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: The resource was not found. + code: conekta.errors.resource_not_found.entity + debug_message: The object Webhook "641b1d5662d7e00001eaa46b" could + not be found. + log_id: 641b6c253cd9a50001514fae + object: error + type: resource_not_found_error + schema: + $ref: "#/components/schemas/error" + description: not found entity "422": content: application/vnd.conekta-v2.3.0+json: example: details: - - debug_message: The "custom_field" parameter is not allowed - message: El parametro "custom_field" no está permitido - code: conekta.errors.parameter_validation.whitelist + - message: The token does not exist. + param: payment_method.token_id + code: conekta.errors.parameter_validation.payment_method.token_id.nonexistent_token + debug_message: The token does not exist. + log_id: 641b6d813cd9a50001515017 object: error type: parameter_validation_error - log_id: 6462aa7c90fef20001633546 schema: $ref: "#/components/schemas/error" - description: whitelist validation error + description: parameter validation error "500": content: application/vnd.conekta-v2.3.0+json: @@ -1333,22 +2098,34 @@ paths: description: internal server error security: - bearerAuth: [] - summary: Get A List of Charges + summary: Upload Chargeback Evidence Files (Batch) tags: - - Charges + - Chargebacks + x-content-type: multipart/form-data x-accepts: - application/vnd.conekta-v2.3.0+json - /charges/{id}: - put: - operationId: updateCharge + /charges/{charge_id}/chargebacks/{chargeback_id}/evidence-types: + get: + description: "Retrieve the catalog of evidence types accepted for a chargeback,\ + \ including which are mandatory and their allowed file formats." + operationId: getChargebackEvidenceTypes parameters: - - description: Identifier of the resource + - description: Identifier of the charge resource explode: false in: path - name: id + name: charge_id required: true schema: - example: 6307a60c41de27127515a575 + example: 6966a06c044243000156c24d + type: string + style: simple + - description: Identifier of the chargeback resource + explode: false + in: path + name: chargeback_id + required: true + schema: + example: chbk_2zPxWFUnGNLySoumn type: string style: simple - description: Use for knowing which language to use @@ -1380,69 +2157,73 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/charge_update_request" - description: requested field for update a charge - required: true responses: "200": content: application/vnd.conekta-v2.3.0+json: schema: - $ref: "#/components/schemas/charge_response" - description: successful + items: + $ref: "#/components/schemas/chargeback_evidence_type_response" + type: array + default: null + description: The list of evidence types accepted for the chargeback. headers: Date: description: The date and time that the response was sent explode: false schema: - example: "Fri, 03 Feb 2023 16:57:48 GMT" type: string style: simple Content-Type: description: The format of the response body explode: false schema: - example: application/json; charset=utf-8 type: string style: simple Content-Length: description: The length of the response body in bytes explode: false schema: - example: "2737" type: string style: simple Connection: description: The type of connection used to transfer the response explode: false schema: - example: keep-alive type: string style: simple Conekta-Media-Type: explode: false schema: - example: conekta-v2.3.0; format=application/json type: string style: simple - "422": + "400": content: application/vnd.conekta-v2.3.0+json: example: details: - - debug_message: The "custom_field" parameter is not allowed - message: El parametro "custom_field" no está permitido - code: conekta.errors.parameter_validation.whitelist + - message: The chargeback status does not allow this operation. + code: conekta.errors.business.chargebacks.cannot_process + debug_message: chargeback status is won + log_id: 641b6c253cd9a50001514fae object: error - type: parameter_validation_error - log_id: 6462aa7c90fef20001633546 + type: resource_error schema: $ref: "#/components/schemas/error" - description: whitelist validation error + description: bad request + "401": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: Please include your access key in your request. + code: conekta.errors.authentication.missing_key + log_id: 507f1f77bcf86cd799439011 + object: error + type: authentication_error + schema: + $ref: "#/components/schemas/error" + description: authentication error "404": content: application/vnd.conekta-v2.3.0+json: @@ -1476,10 +2257,9 @@ paths: description: internal server error security: - bearerAuth: [] - summary: Update a charge + summary: Get Chargeback Evidence Types tags: - - Charges - x-content-type: application/json + - Chargebacks x-accepts: - application/vnd.conekta-v2.3.0+json /orders/{id}/charges: @@ -1525,6 +2305,17 @@ paths: schema: type: string style: simple + - description: Unique key to make the request idempotent. Retrying a request + with the same key returns the original response instead of performing the + operation again. + example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple requestBody: content: application/json: @@ -1532,7 +2323,6 @@ paths: bnpl: value: payment_method: - can_not_expire: true cancel_url: https://pay.conekta.io/payment-status/fdcb06d6-c9e1-44ee-921f-17723b63852f/cancel failure_url: https://pay.conekta.io/payment-status/fdcb06d6-c9e1-44ee-921f-17723b63852f/failure product_type: aplazo_bnpl @@ -1670,6 +2460,17 @@ paths: schema: type: string style: simple + - description: Unique key to make the request idempotent. Retrying a request + with the same key returns the original response instead of performing the + operation again. + example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple requestBody: content: application/json: @@ -1677,7 +2478,6 @@ paths: bnpl: value: payment_method: - can_not_expire: true cancel_url: https://pay.conekta.io/payment-status/fdcb06d6-c9e1-44ee-921f-17723b63852f/cancel failure_url: https://pay.conekta.io/payment-status/fdcb06d6-c9e1-44ee-921f-17723b63852f/failure product_type: aplazo_bnpl @@ -2629,10 +3429,10 @@ paths: content: application/vnd.conekta-v2.3.0+json: schema: - default: null items: $ref: "#/components/schemas/CompanyDocumentResponse" type: array + default: null description: A list of documents for the company. headers: Date: @@ -4673,6 +5473,25 @@ paths: schema: type: string style: form + - description: "Filters logs by HTTP method. The parameter can be sent multiple\ + \ times to filter by more than one method, e.g. `method.in[]=POST&method.in[]=PUT`" + examples: + method.in[]: + summary: Filters logs by one or more HTTP methods + value: + - POST + - PUT + explode: true + in: query + name: "method.in[]" + required: false + schema: + items: + example: POST + type: string + type: array + default: null + style: form responses: "200": content: @@ -4825,10 +5644,135 @@ paths: not be found. log_id: 641b6c253cd9a50001514fae object: error - type: resource_not_found_error + type: resource_not_found_error + schema: + $ref: "#/components/schemas/error" + description: not found entity + "500": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - debug_message: There was a runtime error and Conekta engineers have + been notified. + message: There was a runtime error and Conekta engineers have been + notified. + code: conekta.errors.api.system.general_failure + object: error + type: api_error + log_id: 641b6f2b3cd9a50001515098 + schema: + $ref: "#/components/schemas/error" + description: internal server error + security: + - bearerAuth: [] + summary: Get Log + tags: + - Logs + x-accepts: + - application/vnd.conekta-v2.3.0+json + /monthly_installments/validate: + post: + description: | + Returns the interest-free monthly installment plans available for a card BIN and an amount, so a checkout can offer only the plans a later charge will accept. Requires monthly installments to be enabled on the company. + operationId: validateMonthlyInstallments + parameters: + - description: Use for knowing which language to use + examples: + es: + summary: for spanish request/response + value: es + en: + summary: for english request/response + value: en + explode: false + in: header + name: Accept-Language + required: false + schema: + default: es + enum: + - es + - en + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/monthly_installments_validate_request" + description: requested field for monthly installments validate + required: true + responses: + "200": + content: + application/vnd.conekta-v2.3.0+json: + schema: + $ref: "#/components/schemas/monthly_installments_validate_response" + description: successful operation + headers: + Date: + description: The date and time that the response was sent + explode: false + schema: + example: "Fri, 03 Feb 2023 16:57:48 GMT" + type: string + style: simple + Content-Type: + description: The format of the response body + explode: false + schema: + example: application/json; charset=utf-8 + type: string + style: simple + Content-Length: + description: The length of the response body in bytes + explode: false + schema: + example: "245" + type: string + style: simple + Connection: + description: The type of connection used to transfer the response + explode: false + schema: + example: keep-alive + type: string + style: simple + Conekta-Media-Type: + explode: false + schema: + example: conekta-v2.3.0; format=application/json + type: string + style: simple + "401": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: Please include your access key in your request. + code: conekta.errors.authentication.missing_key + log_id: 507f1f77bcf86cd799439011 + object: error + type: authentication_error + schema: + $ref: "#/components/schemas/error" + description: authentication error + "422": + content: + application/vnd.conekta-v2.3.0+json: + example: + details: + - message: The token does not exist. + param: payment_method.token_id + code: conekta.errors.parameter_validation.payment_method.token_id.nonexistent_token + debug_message: The token does not exist. + log_id: 641b6d813cd9a50001515017 + object: error + type: parameter_validation_error schema: $ref: "#/components/schemas/error" - description: not found entity + description: parameter validation error "500": content: application/vnd.conekta-v2.3.0+json: @@ -4847,9 +5791,10 @@ paths: description: internal server error security: - bearerAuth: [] - summary: Get Log + summary: Validate Monthly Installments tags: - - Logs + - Monthly Installments + x-content-type: application/json x-accepts: - application/vnd.conekta-v2.3.0+json /orders: @@ -5011,6 +5956,18 @@ paths: format: int64 type: integer style: form + - description: "Filters by amount equal to the given value, in cents" + examples: + amount: + summary: amount equal to + value: 10000 + explode: true + in: query + name: amount + required: false + schema: + type: integer + style: form responses: "200": content: @@ -5087,6 +6044,17 @@ paths: schema: type: string style: simple + - description: Unique key to make the request idempotent. Retrying a request + with the same key returns the original response instead of performing the + operation again. + example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple requestBody: content: application/json: @@ -5096,13 +6064,12 @@ paths: value: charges: - amount: 40000 - expires_at: 1677196303 - monthly_installments: 0 payment_method: type: card token_id: tok_2897348234 payment_source_id: src_2tLkkyfMPh6v7pFry customer_ip_address: 0.0.0.0 + monthly_installments: 3 reference_id: string currency: MXN customer_info: @@ -5193,7 +6160,6 @@ paths: checkout_request_type: PaymentLink charges: - payment_method: - can_not_expire: true cancel_url: https://pay.conekta.io/payment-status/fdcb06d6-c9e1-44ee-921f-17723b63852f/cancel failure_url: https://pay.conekta.io/payment-status/fdcb06d6-c9e1-44ee-921f-17723b63852f/failure product_type: aplazo_bnpl @@ -7680,6 +8646,17 @@ paths: schema: type: string style: simple + - description: Unique key to make the request idempotent. Retrying a request + with the same key returns the original response instead of performing the + operation again. + example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 + explode: false + in: header + name: Idempotency-Key + required: false + schema: + type: string + style: simple requestBody: content: application/json: @@ -8324,178 +9301,6 @@ paths: x-content-type: application/json x-accepts: - application/vnd.conekta-v2.3.0+json - /checkouts/{id}/sms: - post: - operationId: smsCheckout - parameters: - - description: Use for knowing which language to use - examples: - es: - summary: for spanish request/response - value: es - en: - summary: for english request/response - value: en - explode: false - in: header - name: Accept-Language - required: false - schema: - default: es - enum: - - es - - en - type: string - style: simple - - description: "In the case of a holding company, the company id of the child\ - \ company to which will process the request." - example: 6441b6376b60c3a638da80af - explode: false - in: header - name: X-Child-Company-Id - required: false - schema: - type: string - style: simple - - description: Identifier of the resource - explode: false - in: path - name: id - required: true - schema: - example: 6307a60c41de27127515a575 - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/smsCheckout_request" - description: requested field for sms checkout - required: true - responses: - "200": - content: - application/vnd.conekta-v2.3.0+json: - schema: - $ref: "#/components/schemas/checkout_response" - description: successful operation - headers: - Date: - description: The date and time that the response was sent - explode: false - schema: - example: "Fri, 03 Feb 2023 16:57:48 GMT" - type: string - style: simple - Content-Type: - description: The format of the response body - explode: false - schema: - example: application/json; charset=utf-8 - type: string - style: simple - Content-Length: - description: The length of the response body in bytes - explode: false - schema: - example: "2737" - type: string - style: simple - Connection: - description: The type of connection used to transfer the response - explode: false - schema: - example: keep-alive - type: string - style: simple - Conekta-Media-Type: - explode: false - schema: - example: conekta-v2.3.0; format=application/json - type: string - style: simple - "401": - content: - application/vnd.conekta-v2.3.0+json: - example: - details: - - message: Please include your access key in your request. - code: conekta.errors.authentication.missing_key - log_id: 507f1f77bcf86cd799439011 - object: error - type: authentication_error - schema: - $ref: "#/components/schemas/error" - description: authentication error - "402": - content: - application/vnd.conekta-v2.3.0+json: - example: - details: - - message: The card could not be processed. - code: conekta.errors.processing.tokenization.used - debug_message: The token has already been used. - log_id: 641b6d073cd9a50001515007 - object: error - type: processing_error - schema: - $ref: "#/components/schemas/error" - description: payment required error - "404": - content: - application/vnd.conekta-v2.3.0+json: - example: - details: - - message: The resource was not found. - code: conekta.errors.resource_not_found.entity - debug_message: The object Webhook "641b1d5662d7e00001eaa46b" could - not be found. - log_id: 641b6c253cd9a50001514fae - object: error - type: resource_not_found_error - schema: - $ref: "#/components/schemas/error" - description: not found entity - "422": - content: - application/vnd.conekta-v2.3.0+json: - example: - details: - - message: The token does not exist. - param: payment_method.token_id - code: conekta.errors.parameter_validation.payment_method.token_id.nonexistent_token - debug_message: The token does not exist. - log_id: 641b6d813cd9a50001515017 - object: error - type: parameter_validation_error - schema: - $ref: "#/components/schemas/error" - description: parameter validation error - "500": - content: - application/vnd.conekta-v2.3.0+json: - example: - details: - - debug_message: There was a runtime error and Conekta engineers have - been notified. - message: There was a runtime error and Conekta engineers have been - notified. - code: conekta.errors.api.system.general_failure - object: error - type: api_error - log_id: 641b6f2b3cd9a50001515098 - schema: - $ref: "#/components/schemas/error" - description: internal server error - security: - - bearerAuth: [] - summary: Send an sms - tags: - - Payment Link - x-content-type: application/json - x-accepts: - - application/vnd.conekta-v2.3.0+json /customers/{id}/payment_sources: get: description: Get a list of Payment Methods @@ -16173,6 +16978,120 @@ components: example: true type: boolean title: delete_api_keys_response + apple_pay_session_request: + description: Data required to validate an Apple Pay merchant session + properties: + validationURL: + description: | + Validation URL provided by Apple in the `onvalidatemerchant` event. Only Apple Pay gateway + hosts are accepted: `https://apple-pay-gateway.apple.com` and + `https://apple-pay-gateway-cert.apple.com`. + example: https://apple-pay-gateway.apple.com/paymentservices/startSession + format: uri + type: string + domain: + description: | + Fully qualified domain where the Apple Pay button is displayed, sent to Apple as the + initiative context. It must be a domain previously registered with Conekta. When omitted, + the domain configured for the account is used. + example: pay.conekta.io + type: string + source: + default: internal + description: | + Origin of the Apple Pay integration requesting the session. `external` uses the integrator + credentials, any other value uses the merchant credentials. + enum: + - internal + - external + example: external + title: apple_pay_source + type: string + companyId: + description: | + Apple Pay merchant identifier to validate the session with. When omitted, the merchant + identifier configured for the account is used. + example: merchant.io.conekta + type: string + required: + - validationURL + title: apple_pay_session_request + apple_pay_session_response: + description: | + Apple Pay merchant session returned by Apple. Pass this object as-is to + `session.completeMerchantValidation` in the browser. + example: + epochTimestamp: 1758222248547 + expiresAt: 1758225848547 + merchantSessionIdentifier: SSHC1DDFEB554674D38992774400AE24AB1_916523AAED1343F5BC5815E12BEE9250AFFDC1A17C46B0DE5A943F0F94927C24 + nonce: b94448de + merchantIdentifier: 9358DF186D848FFCE03D9D5230EC85E0E3EA4175C0402A14D32A67504F2C6EBD + domainName: pay.conekta.io + displayName: Conekta + signature: 308006092a864886f70d010702a0803080020101310d300b06096086480165030402013080... + operationalAnalyticsIdentifier: Conekta:9358DF186D848FFCE03D9D5230EC85E0E3EA4175C0402A14D32A67504F2C6EBD + retries: 0 + pspId: 9358DF186D848FFCE03D9D5230EC85E0E3EA4175C0402A14D32A67504F2C6EBD + properties: + epochTimestamp: + description: "Date and time, in milliseconds since epoch, when the session\ + \ was created." + example: 1758222248547 + format: int64 + type: integer + expiresAt: + description: "Date and time, in milliseconds since epoch, when the session\ + \ expires." + example: 1758225848547 + format: int64 + type: integer + merchantSessionIdentifier: + description: Unique identifier of the merchant session generated by Apple. + example: SSHC1DDFEB554674D38992774400AE24AB1_916523AAED1343F5BC5815E12BEE9250AFFDC1A17C46B0DE5A943F0F94927C24 + type: string + nonce: + description: Single-use value used by Apple to verify the session. + example: b94448de + type: string + merchantIdentifier: + description: Hashed Apple Pay merchant identifier the session was validated + with. + example: 9358DF186D848FFCE03D9D5230EC85E0E3EA4175C0402A14D32A67504F2C6EBD + type: string + domainName: + description: Domain the session was validated for. + example: pay.conekta.io + type: string + displayName: + description: Merchant name shown in the Apple Pay sheet. + example: Conekta + type: string + signature: + description: "Apple signature of the session, in hexadecimal format." + example: 308006092a864886f70d010702a0803080020101310d300b06096086480165030402013080... + type: string + operationalAnalyticsIdentifier: + description: Identifier used by Apple for analytics purposes. + example: Conekta:9358DF186D848FFCE03D9D5230EC85E0E3EA4175C0402A14D32A67504F2C6EBD + type: string + retries: + description: Number of times the session validation has been retried. + example: 0 + type: integer + pspId: + description: Payment service provider identifier assigned by Apple. + example: 9358DF186D848FFCE03D9D5230EC85E0E3EA4175C0402A14D32A67504F2C6EBD + type: string + required: + - displayName + - domainName + - epochTimestamp + - expiresAt + - merchantIdentifier + - merchantSessionIdentifier + - nonce + - signature + title: apple_pay_session_response balance_common_fiels_response: description: balance common fields model properties: @@ -16733,11 +17652,19 @@ components: type: integer channel: $ref: "#/components/schemas/charge_response_channel" + conekta_account_id: + description: "Conekta account ID of the charge, if the charge was paid through\ + \ a Conekta account." + example: 019ff731-2448-7a6b-b95b-5d4a36035da9 + type: string + nullable: true created_at: + description: "Charge creation date, in seconds since the Unix epoch" example: 1676386026 format: int64 type: integer currency: + description: "Currency of the charge, in ISO 4217 format" example: MXN type: string customer_id: @@ -16792,7 +17719,6 @@ components: example: pending_payment type: string required: - - amount - created_at - currency - id @@ -16844,7 +17770,148 @@ components: description: custom reference id example: "278482642" type: string - title: charge_update_request + title: charge_update_request + chargeback_evidence_file_response: + description: A file uploaded as evidence for a chargeback + properties: + id: + example: chbkf_2zPxWFUnGNLySoums + type: string + name: + example: 20251221500000000000201.pdf + type: string + created_at: + example: 2025-12-21T15:00:00.000+00:00 + format: date-time + type: string + evidence_type: + description: The evidence type used for a chargeback file upload + enum: + - charge_information + - contract + - other_evidence + - receipt_of_shipment + - identification + - order_details + - terms_and_conditions + - cardholder_information + - proof_invalidate_claim + - internal_validations + - proof_of_cancellation + - recurring_contract + - proof_of_return + - exhibit_8 + - duplicate_analysis + - full_evidence + example: contract + title: chargeback_evidence_type + type: string + url: + description: Presigned download URL for the file. Only present when fetching + a single file. + example: https://conekta-files.s3.amazonaws.com/chbkf_2zPxWFUnGNLySoums?signature=... + type: string + nullable: true + title: chargeback_evidence_file_response + chargeback_files_batch_request: + properties: + charge_information: + format: binary + type: string + contract: + format: binary + type: string + other_evidence: + format: binary + type: string + receipt_of_shipment: + format: binary + type: string + identification: + format: binary + type: string + order_details: + format: binary + type: string + terms_and_conditions: + format: binary + type: string + cardholder_information: + format: binary + type: string + proof_invalidate_claim: + format: binary + type: string + internal_validations: + format: binary + type: string + proof_of_cancellation: + format: binary + type: string + recurring_contract: + format: binary + type: string + proof_of_return: + format: binary + type: string + exhibit_8: + format: binary + type: string + duplicate_analysis: + format: binary + type: string + full_evidence: + format: binary + type: string + title: chargeback_files_batch_request + chargeback_files_batch_response: + description: Result of a batch evidence file upload + properties: + files: + items: + $ref: "#/components/schemas/chargeback_evidence_file_response" + type: array + default: null + title: chargeback_files_batch_response + chargeback_evidence_type_response: + description: "An evidence type accepted for a chargeback, and the constraints\ + \ for uploading it" + properties: + type: + description: The evidence type used for a chargeback file upload + enum: + - charge_information + - contract + - other_evidence + - receipt_of_shipment + - identification + - order_details + - terms_and_conditions + - cardholder_information + - proof_invalidate_claim + - internal_validations + - proof_of_cancellation + - recurring_contract + - proof_of_return + - exhibit_8 + - duplicate_analysis + - full_evidence + example: contract + title: chargeback_evidence_type + type: string + permit_formats: + example: + - application/pdf + - image/jpeg + - image/png + items: + type: string + type: array + default: null + required: + example: true + type: boolean + title: chargeback_evidence_type_response payment_method_pbb_request: allOf: - description: Contains details of the payment methods that the customer has @@ -16894,13 +17961,15 @@ components: title: customer_payment_method_request - properties: cancel_url: - description: URL to redirect the customer after a canceled payment + description: Optional URL to redirect the customer after a canceled payment example: https://example.com/cancel type: string - can_not_expire: - description: Indicates if the payment method can not expire - example: true - type: boolean + expires_at: + description: "Optional expiry for the BNPL order, expressed in seconds\ + \ since the Unix epoch. Defaults to one month from creation when omitted." + example: 1680397724 + format: int64 + type: integer failure_url: description: URL to redirect the customer after a failed payment example: https://example.com/failure @@ -16924,8 +17993,6 @@ components: example: bnpl type: string required: - - can_not_expire - - cancel_url - failure_url - product_type - success_url @@ -16963,13 +18030,27 @@ components: minLength: 4 type: string name: - description: Cardholder name + description: "Cardholder name. Must include first and last name separated\ + \ by a space; single-word names are rejected. Letters (including accented\ + \ Latin characters), spaces, and the characters , . ' - are accepted;\ + \ digits and other symbols are rejected." example: John Doe + maxLength: 249 type: string number: description: Card number example: "4242424242424242" type: string + contract_id: + description: Optional merchant-supplied identifier (exactly 10 characters) + that links a card transaction to a recurring/subscription contract at + the acquiring bank. Forwarded to the bank gateway and stored on the + resulting charge. Accepted on creation only; ignored on update. Do not + place sensitive bank data here — the value is returned in charge responses. + example: "3456788363" + maxLength: 10 + minLength: 10 + type: string customer_ip_address: description: Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes @@ -17260,6 +18341,10 @@ components: example: strict type: string nullable: true + onboarding_url: + description: The URL to resume onboarding + example: https://onboarding.conekta.com/resume/6827305a1ec60400015eb116 + type: string required: - account_status - active @@ -17361,6 +18446,12 @@ components: $ref: "#/components/schemas/Create_Company_Request_fiscal_info" bank_account_info: $ref: "#/components/schemas/Create_Company_Request_bank_account_info" + users: + description: User emails for the company + items: + type: string + type: array + default: null title: Create Company Request CompanyDocumentRequest: description: Request body for uploading a company document. @@ -17505,10 +18596,6 @@ components: description: "this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)" example: MX type: string - residential: - default: false - example: true - type: boolean external_number: type: string required: @@ -17527,7 +18614,9 @@ components: phone: type: string metadata: - additionalProperties: {} + additionalProperties: + type: object + type: object company_name: example: conekta type: string @@ -17839,31 +18928,57 @@ components: title: customerPaymentMethods title: customer_payment_methods_response customer_shipping_contacts_request_address: - description: Address of the person who will receive the order - properties: - street1: - example: Nuevo Leon 254 - type: string - street2: - example: Departamento 404 - type: string - postal_code: - example: "06100" - type: string - city: - example: Ciudad de Mexico - type: string - state: - example: Ciudad de Mexico - type: string - country: - description: "this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)" - example: MX - type: string - residential: - example: true - type: boolean - nullable: true + allOf: + - description: Address of the person who will receive the order + properties: + street1: + description: Street and number of the delivery address. + example: Nuevo Leon 254 + maxLength: 249 + minLength: 2 + type: string + street2: + description: "Apartment, suite or interior reference for the delivery\ + \ address." + example: Departamento 404 + maxLength: 249 + type: string + postal_code: + description: Postal code of the delivery address. For Mexican addresses + (country MX) it must be a 5-digit postal code. + example: "06100" + maxLength: 250 + type: string + city: + description: City of the delivery address. Must contain at least two consecutive + ASCII letters. + example: Ciudad de Mexico + maxLength: 249 + pattern: "[A-Za-z]{2}" + type: string + state: + description: State of the delivery address. + example: Ciudad de Mexico + maxLength: 249 + type: string + country: + description: "Country of the delivery address. This field follows the\ + \ [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)." + example: MX + maxLength: 249 + minLength: 2 + type: string + residential: + default: true + description: Indicates whether the delivery address is residential. + example: true + type: boolean + nullable: true + title: shipping_contact_address + required: + - country + - postal_code + - street1 customer_shipping_contacts_data_response: allOf: - description: |- @@ -17880,7 +18995,10 @@ components: type: string between_streets: description: The street names between which the order will be delivered. + Must contain at least two consecutive ASCII letters. example: Ackerman Crescent + maxLength: 249 + pattern: "[A-Za-z]{2}" type: string address: $ref: "#/components/schemas/customer_shipping_contacts_request_address" @@ -18153,7 +19271,9 @@ components: phone: type: string metadata: - additionalProperties: {} + additionalProperties: + type: object + type: object company_name: example: conekta type: string @@ -18239,7 +19359,10 @@ components: type: string between_streets: description: The street names between which the order will be delivered. + Must contain at least two consecutive ASCII letters. example: Ackerman Crescent + maxLength: 249 + pattern: "[A-Za-z]{2}" type: string address: $ref: "#/components/schemas/customer_shipping_contacts_request_address" @@ -18460,7 +19583,9 @@ components: phone: type: string metadata: - additionalProperties: {} + additionalProperties: + type: object + type: object company_name: example: conekta type: string @@ -18499,7 +19624,9 @@ components: phone: type: string metadata: - additionalProperties: {} + additionalProperties: + type: object + type: object company_name: example: conekta type: string @@ -18516,7 +19643,9 @@ components: phone: type: string metadata: - additionalProperties: {} + additionalProperties: + type: object + type: object company_name: example: conekta type: string @@ -18775,8 +19904,6 @@ components: type: string type: array default: null - required: - - webhooks_ids events_resend_response: description: event model properties: @@ -18862,17 +19989,20 @@ components: testMode: false type: object request_headers: - additionalProperties: {} + additionalProperties: + type: string example: Accept: application/vnd.conekta-v2.3.0+json Accept-Encoding: "gzip, deflate, br" Accept-Language: "es-419, es; q=0.9, en; q=0.8" Activitypermission: orders:read Apiversion: 2.3.0 + type: object response_body: type: object response_headers: - additionalProperties: {} + additionalProperties: + type: string example: Access-Control-Allow-Headers: "Content-Type, Depth, User-Agent, X-File-Size,\ \ X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Prototype-Version,\ @@ -18895,6 +20025,7 @@ components: X-Frame-Options: SAMEORIGIN X-Permitted-Cross-Domain-Policies: none X-XSS-Protection: 1; mode=block + type: object searchable_tags: example: - 6307a60c41de27127515a575 @@ -19006,17 +20137,20 @@ components: testMode: false type: object request_headers: - additionalProperties: {} + additionalProperties: + type: string example: Accept: application/vnd.conekta-v2.3.0+json Accept-Encoding: "gzip, deflate, br" Accept-Language: "es-419, es; q=0.9, en; q=0.8" Activitypermission: orders:read Apiversion: 2.3.0 + type: object response_body: type: object response_headers: - additionalProperties: {} + additionalProperties: + type: string example: Access-Control-Allow-Headers: "Content-Type, Depth, User-Agent, X-File-Size,\ \ X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Prototype-Version,\ @@ -19039,6 +20173,7 @@ components: X-Frame-Options: SAMEORIGIN X-Permitted-Cross-Domain-Policies: none X-XSS-Protection: 1; mode=block + type: object searchable_tags: example: - 6307a60c41de27127515a575 @@ -19067,6 +20202,80 @@ components: - id - livemode title: log_response_for_request + monthly_installments_validate_request: + description: BIN and amount to evaluate for interest-free monthly installments + properties: + bin: + description: First 6 or 8 digits of the card number (Bank Identification + Number). An 8 digit BIN that yields no match is retried with its first + 6 digits. + example: "411111" + maxLength: 8 + minLength: 6 + pattern: "^[0-9]{6}(?:[0-9]{2})?$" + type: string + amount: + description: Amount to charge in the smallest currency unit (cents for MXN). + Used to compute the monthly fee of each available plan. + example: 350000 + type: integer + required: + - amount + - bin + title: monthly installments validate request + monthly_installments_validate_response_available_installments: + properties: + months: + description: "Number of monthly installments of the plan. One of 3, 6, 9,\ + \ 12, 18 or 24." + example: 3 + type: integer + amount: + description: "Amount of each monthly installment in the smallest currency\ + \ unit, rounded up." + example: 116667 + type: integer + required: + - amount + - months + title: monthly_installments_validate_response_available_installments + monthly_installments_validate_response_bin_info: + properties: + country: + description: "Country that issued the card. Monthly installments only apply\ + \ to mx, with the exception of American Express." + example: mx + type: string + scheme: + description: Card scheme. Monthly installments only apply to credit. + example: credit + type: string + issuer: + description: Bank that issued the card. + example: banamex + type: string + required: + - country + - issuer + - scheme + monthly_installments_validate_response: + description: monthly installments validate response + properties: + available_installments: + description: "Interest-free monthly installment plans available for this\ + \ card and amount. Empty when the card does not qualify for monthly installments,\ + \ for example a debit card or a credit card not issued in Mexico. An empty\ + \ array is not an error." + items: + $ref: "#/components/schemas/monthly_installments_validate_response_available_installments" + type: array + default: null + bin_info: + $ref: "#/components/schemas/monthly_installments_validate_response_bin_info" + required: + - available_installments + - bin_info + title: monthly_installments_validate_response order_channel_response: properties: segment: @@ -19090,11 +20299,19 @@ components: type: integer channel: $ref: "#/components/schemas/charge_response_channel" + conekta_account_id: + description: "Conekta account ID of the charge, if the charge was paid\ + \ through a Conekta account." + example: 019ff731-2448-7a6b-b95b-5d4a36035da9 + type: string + nullable: true created_at: + description: "Charge creation date, in seconds since the Unix epoch" example: 1676386026 format: int64 type: integer currency: + description: "Currency of the charge, in ISO 4217 format" example: MXN type: string customer_id: @@ -19149,7 +20366,6 @@ components: example: pending_payment type: string required: - - amount - created_at - currency - id @@ -19472,6 +20688,13 @@ components: default: null description: List of discounts that are applied to the order nullable: true + order_tax_request_metadata_value: + anyOf: + - maxLength: 249 + type: string + - type: integer + - type: number + - type: boolean tax_lines_data_response: allOf: - allOf: @@ -19486,10 +20709,11 @@ components: description: description: description or tax's name example: testing - minLength: 2 + minLength: 3 type: string metadata: - additionalProperties: true + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" example: key: value maxProperties: 100 @@ -19563,19 +20787,27 @@ components: carrier: description: Carrier name for the shipment example: FEDEX + maxLength: 249 + minLength: 3 type: string tracking_number: description: Tracking number can be used to track the shipment example: TRACK123 + maxLength: 249 + minLength: 3 type: string method: description: Method of shipment example: Same day + maxLength: 249 + minLength: 3 type: string metadata: - additionalProperties: true - description: Hash where the user can send additional information for - each 'shipping'. + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" + description: "Hash where the user can send additional information for\ + \ each 'shipping'. Values must be scalar (string of at most 249 characters,\ + \ integer, number or boolean); nested objects and arrays are not supported." example: key: value maxProperties: 100 @@ -19737,17 +20969,22 @@ components: brand: description: The brand of the item. example: Cohiba + maxLength: 249 + minLength: 2 type: string description: description: Short description of the item example: Imported From Mex. - maxLength: 250 + maxLength: 249 + minLength: 3 type: string metadata: - additionalProperties: true + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" default: {} - description: It is a key/value hash that can hold custom fields. Maximum - 100 elements and allows special characters. + description: "It is a key/value hash that can hold custom fields. Maximum\ + \ 100 elements. Values must be scalar (string of at most 249 characters,\ + \ integer, number or boolean); nested objects and arrays are not supported." example: key: value maxProperties: 100 @@ -19755,6 +20992,8 @@ components: name: description: The name of the item. It will be displayed in the order. example: Box of Cohiba S1s + maxLength: 249 + minLength: 3 type: string quantity: description: The quantity of the item in the order. @@ -19766,6 +21005,8 @@ components: description: The stock keeping unit for the item. It is used to identify the item in the order. example: XYZ12345 + maxLength: 249 + minLength: 1 type: string tags: description: List of tags for the item. It is used to identify the item @@ -19774,7 +21015,10 @@ components: - food - mexican food items: + maxLength: 249 + minLength: 2 type: string + minItems: 1 type: array default: null unit_price: @@ -20017,6 +21261,13 @@ components: example: 1676328434 format: int64 type: integer + required: + - amount + - created_at + - currency + - id + - livemode + - object title: order_response get_orders_response: allOf: @@ -20103,15 +21354,14 @@ components: type: array default: null exclude_card_networks: - description: List of card networks to exclude from the checkout. This field - is only applicable for card payments. + description: "List of card networks to exclude from the checkout. This field\ + \ is only applicable for card payments. Accepted values: 'visa_master_card'\ + \ (a single token excluding both Visa and Mastercard) and 'amex'." example: - - visa - - amex + - visa_master_card items: enum: - - visa - - mastercard + - visa_master_card - amex type: string title: checkout_request_exclude_card_networks @@ -20308,17 +21558,22 @@ components: brand: description: The brand of the item. example: Cohiba + maxLength: 249 + minLength: 2 type: string description: description: Short description of the item example: Imported From Mex. - maxLength: 250 + maxLength: 249 + minLength: 3 type: string metadata: - additionalProperties: true + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" default: {} - description: It is a key/value hash that can hold custom fields. Maximum - 100 elements and allows special characters. + description: "It is a key/value hash that can hold custom fields. Maximum\ + \ 100 elements. Values must be scalar (string of at most 249 characters,\ + \ integer, number or boolean); nested objects and arrays are not supported." example: key: value maxProperties: 100 @@ -20326,6 +21581,8 @@ components: name: description: The name of the item. It will be displayed in the order. example: Box of Cohiba S1s + maxLength: 249 + minLength: 3 type: string quantity: description: The quantity of the item in the order. @@ -20337,6 +21594,8 @@ components: description: The stock keeping unit for the item. It is used to identify the item in the order. example: XYZ12345 + maxLength: 249 + minLength: 1 type: string tags: description: List of tags for the item. It is used to identify the item @@ -20345,7 +21604,10 @@ components: - food - mexican food items: + maxLength: 249 + minLength: 2 type: string + minItems: 1 type: array default: null unit_price: @@ -20370,19 +21632,27 @@ components: carrier: description: Carrier name for the shipment example: FEDEX + maxLength: 249 + minLength: 3 type: string tracking_number: description: Tracking number can be used to track the shipment example: TRACK123 + maxLength: 249 + minLength: 3 type: string method: description: Method of shipment example: Same day + maxLength: 249 + minLength: 3 type: string metadata: - additionalProperties: true - description: Hash where the user can send additional information for each - 'shipping'. + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" + description: "Hash where the user can send additional information for each\ + \ 'shipping'. Values must be scalar (string of at most 249 characters,\ + \ integer, number or boolean); nested objects and arrays are not supported." example: key: value maxProperties: 100 @@ -20402,10 +21672,11 @@ components: description: description: description or tax's name example: testing - minLength: 2 + minLength: 3 type: string metadata: - additionalProperties: true + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" example: key: value maxProperties: 100 @@ -20451,8 +21722,11 @@ components: type: array default: null metadata: - additionalProperties: true - description: Metadata associated with the order + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" + description: "Metadata associated with the order. Values must be scalar\ + \ (string of at most 249 characters, integer, number or boolean); nested\ + \ objects and arrays are not supported." maxProperties: 100 type: object needs_shipping_contact: @@ -20473,6 +21747,18 @@ components: example: https://my-website.com format: uri type: string + reuse_customer_cash_reference: + description: Reuses the customer's recurrent cash reference (`cash_recurrent` + payment source) in the order's cash charges instead of generating a new + reference. Requires `customer_info.customer_id`. + example: true + type: boolean + reuse_customer_clabe: + description: Reuses the customer's recurrent SPEI CLABE (`spei_recurrent` + payment source) in the order's SPEI charges instead of generating a new + CLABE. Requires `customer_info.customer_id`. + example: true + type: boolean shipping_contact: $ref: "#/components/schemas/customer_shipping_contacts_request" shipping_lines: @@ -20490,11 +21776,16 @@ components: type: array default: null three_ds_mode: - description: "Indicates the 3DS2 mode for the order, either smart or strict.\ - \ This property is only applicable when 3DS is enabled. When 3DS is disabled,\ - \ this field should be null." + description: "Indicates the 3DS2 mode: 'strict', 'not_strict' or 'smart'.\ + \ The value is validated against the allowed set on creation; sending\ + \ an explicit null is rejected. Omit the field to create the order without\ + \ requesting 3DS through the API (company-level 3DS applies only to orders\ + \ paid through Checkout or when antifraud forces 3DS)." + enum: + - strict + - not_strict + - smart type: string - nullable: true required: - currency - customer_info @@ -20572,7 +21863,10 @@ components: type: array default: null metadata: - additionalProperties: {} + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" + maxProperties: 100 + type: object pre_authorize: description: Indicates whether the order charges must be preauthorized type: boolean @@ -20613,17 +21907,22 @@ components: brand: description: The brand of the item. example: Cohiba + maxLength: 249 + minLength: 2 type: string description: description: Short description of the item example: Imported From Mex. - maxLength: 250 + maxLength: 249 + minLength: 3 type: string metadata: - additionalProperties: true + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" default: {} - description: It is a key/value hash that can hold custom fields. Maximum - 100 elements and allows special characters. + description: "It is a key/value hash that can hold custom fields. Maximum\ + \ 100 elements. Values must be scalar (string of at most 249 characters,\ + \ integer, number or boolean); nested objects and arrays are not supported." example: key: value maxProperties: 100 @@ -20631,6 +21930,8 @@ components: name: description: The name of the item. It will be displayed in the order. example: Box of Cohiba S1s + maxLength: 249 + minLength: 3 type: string quantity: description: The quantity of the item in the order. @@ -20642,6 +21943,8 @@ components: description: The stock keeping unit for the item. It is used to identify the item in the order. example: XYZ12345 + maxLength: 249 + minLength: 1 type: string tags: description: List of tags for the item. It is used to identify the item @@ -20650,7 +21953,10 @@ components: - food - mexican food items: + maxLength: 249 + minLength: 2 type: string + minItems: 1 type: array default: null unit_price: @@ -20675,14 +21981,21 @@ components: update_product: properties: antifraud_info: - additionalProperties: {} + additionalProperties: + type: object + type: object description: - maxLength: 250 + maxLength: 249 + minLength: 3 type: string sku: + maxLength: 249 + minLength: 1 type: string name: example: Box of Cohiba S1s + maxLength: 249 + minLength: 3 type: string unit_price: example: 20000 @@ -20696,13 +22009,21 @@ components: type: integer tags: items: + maxLength: 249 + minLength: 2 type: string + minItems: 1 type: array default: null brand: + maxLength: 249 + minLength: 2 type: string metadata: - additionalProperties: {} + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" + maxProperties: 100 + type: object title: update_product orderRefund_request: properties: @@ -21114,12 +22435,16 @@ components: recurrent: example: false type: boolean + redirection_time: + description: It is the time in seconds that the checkout will wait before + redirecting to the success_url. + example: 30 + format: int8 + type: integer + nullable: true slug: example: b0bf16c418b9445eba2401604f329dbf type: string - sms_sent: - example: 0 - type: integer starts_at: example: 1677650400 type: integer @@ -21266,15 +22591,14 @@ components: type: array default: null exclude_card_networks: - description: List of card networks to exclude from the checkout. This field - is only applicable for card payments. + description: "List of card networks to exclude from the checkout. This field\ + \ is only applicable for card payments. Accepted values: 'visa_master_card'\ + \ (a single token excluding both Visa and Mastercard) and 'amex'." example: - - visa - - amex + - visa_master_card items: enum: - - visa - - mastercard + - visa_master_card - amex type: string title: checkout_exclude_card_networks @@ -21306,11 +22630,14 @@ components: type: array default: null three_ds_mode: - description: "Indicates the 3DS2 mode for the order, either smart or strict.\ - \ This property is only applicable when 3DS is enabled. When 3DS is disabled,\ - \ this field should be null." + description: "Indicates the 3DS2 mode: 'strict', 'not_strict' or 'smart'.\ + \ To defer to the company-level 3DS configuration, omit the field (an\ + \ explicit null is rejected on creation)." + enum: + - strict + - not_strict + - smart type: string - nullable: true name: description: Reason for charge example: Payment Link Name 1594138857 @@ -21342,6 +22669,13 @@ components: format: int8 minimum: 1 type: integer + redirection_time: + description: It is the time in seconds that the checkout will wait before + redirecting to the success_url. It must be greater than 0. + example: 30 + format: int8 + minimum: 1 + type: integer success_url: description: The URL to redirect to after a successful payment. example: https://www.conekta.com/success @@ -21370,13 +22704,6 @@ components: type: string required: - email - smsCheckout_request: - properties: - phonenumber: - example: "5566982090" - type: string - required: - - phonenumber get_customer_payment_method_data_response: discriminator: mapping: @@ -21658,19 +22985,27 @@ components: carrier: description: Carrier name for the shipment example: FEDEX + maxLength: 249 + minLength: 3 type: string tracking_number: description: Tracking number can be used to track the shipment example: TRACK123 + maxLength: 249 + minLength: 3 type: string method: description: Method of shipment example: Same day + maxLength: 249 + minLength: 3 type: string metadata: - additionalProperties: true - description: Hash where the user can send additional information for each - 'shipping'. + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" + description: "Hash where the user can send additional information for\ + \ each 'shipping'. Values must be scalar (string of at most 249 characters,\ + \ integer, number or boolean); nested objects and arrays are not supported." example: key: value maxProperties: 100 @@ -21726,6 +23061,52 @@ components: example: false type: boolean title: customer_shipping_contacts_response + shipping_contact_address: + description: Address of the person who will receive the order + properties: + street1: + description: Street and number of the delivery address. + example: Nuevo Leon 254 + maxLength: 249 + minLength: 2 + type: string + street2: + description: "Apartment, suite or interior reference for the delivery address." + example: Departamento 404 + maxLength: 249 + type: string + postal_code: + description: Postal code of the delivery address. For Mexican addresses + (country MX) it must be a 5-digit postal code. + example: "06100" + maxLength: 250 + type: string + city: + description: City of the delivery address. Must contain at least two consecutive + ASCII letters. + example: Ciudad de Mexico + maxLength: 249 + pattern: "[A-Za-z]{2}" + type: string + state: + description: State of the delivery address. + example: Ciudad de Mexico + maxLength: 249 + type: string + country: + description: "Country of the delivery address. This field follows the [ISO\ + \ 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)." + example: MX + maxLength: 249 + minLength: 2 + type: string + residential: + default: true + description: Indicates whether the delivery address is residential. + example: true + type: boolean + nullable: true + title: shipping_contact_address customer_update_shipping_contacts_request: description: |- [Shipping](https://developers.conekta.com/v2.3.0/reference/createcustomershippingcontacts) @@ -21741,10 +23122,13 @@ components: type: string between_streets: description: The street names between which the order will be delivered. + Must contain at least two consecutive ASCII letters. example: Ackerman Crescent + maxLength: 249 + pattern: "[A-Za-z]{2}" type: string address: - $ref: "#/components/schemas/customer_shipping_contacts_request_address" + $ref: "#/components/schemas/shipping_contact_address" parent_id: type: string default: @@ -22070,10 +23454,11 @@ components: description: description: description or tax's name example: testing - minLength: 2 + minLength: 3 type: string metadata: - additionalProperties: true + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" example: key: value maxProperties: 100 @@ -22108,11 +23493,13 @@ components: description: description: description or tax's name example: testing - minLength: 2 + minLength: 3 type: string metadata: - additionalProperties: {} + additionalProperties: + $ref: "#/components/schemas/order_tax_request_metadata_value" maxProperties: 100 + type: object token_request_card: properties: cvc: diff --git a/config-java.json b/config-java.json index 5a05bd1..9b51d85 100644 --- a/config-java.json +++ b/config-java.json @@ -6,7 +6,7 @@ "developerOrganization": "Conekta, Inc.", "developerOrganizationUrl": "https://www.conekta.io", "artifactUrl": "https://developers.conekta.com/", - "artifactVersion": "9.0.0", + "artifactVersion": "9.0.1", "modelPackage": "com.conekta.model", "licenseName": "MIT License", "invokerPackage": "com.conekta", @@ -39,7 +39,7 @@ "disallowAdditionalPropertiesIfNotPresent": true, "useOneOfDiscriminatorLookup": true, "serializationLibrary": "jackson", - "httpUserAgent": "Conekta/v2 JavaBindings/9.0.0", + "httpUserAgent": "Conekta/v2 JavaBindings/9.0.1", "openApiNullable" : false, "enumUnknownDefaultCase": true } diff --git a/docs/ApplePayApi.md b/docs/ApplePayApi.md new file mode 100644 index 0000000..7246757 --- /dev/null +++ b/docs/ApplePayApi.md @@ -0,0 +1,84 @@ +# ApplePayApi + +All URIs are relative to *https://api.conekta.io* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createApplePaySession**](ApplePayApi.md#createApplePaySession) | **POST** /apple_pay/session | Create Apple Pay Session | + + + +## createApplePaySession + +> ApplePaySessionResponse createApplePaySession(applePaySessionRequest, acceptLanguage) + +Create Apple Pay Session + +Validate an Apple Pay merchant session using Conekta's Apple Pay certificates. Call this +endpoint from your backend with the `validationURL` received in the `onvalidatemerchant` +event and return the response to the browser to complete the merchant validation. + +This endpoint does not require authentication, it is meant to be called during the Apple Pay +checkout flow. + + +### Example + +```java +// Import classes: +import com.conekta.ApiClient; +import com.conekta.ApiException; +import com.conekta.Configuration; +import com.conekta.model.*; +import com.conekta.ApplePayApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.conekta.io"); + + ApplePayApi apiInstance = new ApplePayApi(defaultClient); + ApplePaySessionRequest applePaySessionRequest = new ApplePaySessionRequest(); // ApplePaySessionRequest | requested fields for creating an Apple Pay session + String acceptLanguage = "es"; // String | Use for knowing which language to use + try { + ApplePaySessionResponse result = apiInstance.createApplePaySession(applePaySessionRequest, acceptLanguage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApplePayApi#createApplePaySession"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **applePaySessionRequest** | [**ApplePaySessionRequest**](ApplePaySessionRequest.md)| requested fields for creating an Apple Pay session | | +| **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] | + +### Return type + +[**ApplePaySessionResponse**](ApplePaySessionResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json, application/vnd.conekta-v2.3.0+json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | The validated Apple Pay merchant session. | * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
| +| **422** | parameter validation error | - | +| **500** | internal server error | - | + diff --git a/docs/ApplePaySessionRequest.md b/docs/ApplePaySessionRequest.md new file mode 100644 index 0000000..6114ba5 --- /dev/null +++ b/docs/ApplePaySessionRequest.md @@ -0,0 +1,27 @@ + + +# ApplePaySessionRequest + +Data required to validate an Apple Pay merchant session + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**validationURL** | **URI** | Validation URL provided by Apple in the `onvalidatemerchant` event. Only Apple Pay gateway hosts are accepted: `https://apple-pay-gateway.apple.com` and `https://apple-pay-gateway-cert.apple.com`. | | +|**domain** | **String** | Fully qualified domain where the Apple Pay button is displayed, sent to Apple as the initiative context. It must be a domain previously registered with Conekta. When omitted, the domain configured for the account is used. | [optional] | +|**source** | [**SourceEnum**](#SourceEnum) | Origin of the Apple Pay integration requesting the session. `external` uses the integrator credentials, any other value uses the merchant credentials. | [optional] | +|**companyId** | **String** | Apple Pay merchant identifier to validate the session with. When omitted, the merchant identifier configured for the account is used. | [optional] | + + + +## Enum: SourceEnum + +| Name | Value | +|---- | -----| +| INTERNAL | "internal" | +| EXTERNAL | "external" | +| UNKNOWN_DEFAULT_OPEN_API | "unknown_default_open_api" | + + + diff --git a/docs/ApplePaySessionResponse.md b/docs/ApplePaySessionResponse.md new file mode 100644 index 0000000..9c5b7c7 --- /dev/null +++ b/docs/ApplePaySessionResponse.md @@ -0,0 +1,24 @@ + + +# ApplePaySessionResponse + +Apple Pay merchant session returned by Apple. Pass this object as-is to `session.completeMerchantValidation` in the browser. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**epochTimestamp** | **Long** | Date and time, in milliseconds since epoch, when the session was created. | | +|**expiresAt** | **Long** | Date and time, in milliseconds since epoch, when the session expires. | | +|**merchantSessionIdentifier** | **String** | Unique identifier of the merchant session generated by Apple. | | +|**nonce** | **String** | Single-use value used by Apple to verify the session. | | +|**merchantIdentifier** | **String** | Hashed Apple Pay merchant identifier the session was validated with. | | +|**domainName** | **String** | Domain the session was validated for. | | +|**displayName** | **String** | Merchant name shown in the Apple Pay sheet. | | +|**signature** | **String** | Apple signature of the session, in hexadecimal format. | | +|**operationalAnalyticsIdentifier** | **String** | Identifier used by Apple for analytics purposes. | [optional] | +|**retries** | **Integer** | Number of times the session validation has been retried. | [optional] | +|**pspId** | **String** | Payment service provider identifier assigned by Apple. | [optional] | + + + diff --git a/docs/ChargeResponse.md b/docs/ChargeResponse.md index 40f86a1..6c7bd03 100644 --- a/docs/ChargeResponse.md +++ b/docs/ChargeResponse.md @@ -7,10 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**amount** | **Integer** | | | +|**amount** | **Integer** | | [optional] | |**channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] | -|**createdAt** | **Long** | | | -|**currency** | **String** | | | +|**conektaAccountId** | **String** | Conekta account ID of the charge, if the charge was paid through a Conekta account. | [optional] | +|**createdAt** | **Long** | Charge creation date, in seconds since the Unix epoch | | +|**currency** | **String** | Currency of the charge, in ISO 4217 format | | |**customerId** | **String** | | [optional] | |**description** | **String** | | [optional] | |**deviceFingerprint** | **String** | | [optional] | diff --git a/docs/ChargebackEvidenceFileResponse.md b/docs/ChargebackEvidenceFileResponse.md new file mode 100644 index 0000000..1aae9d8 --- /dev/null +++ b/docs/ChargebackEvidenceFileResponse.md @@ -0,0 +1,42 @@ + + +# ChargebackEvidenceFileResponse + +A file uploaded as evidence for a chargeback + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | [optional] | +|**name** | **String** | | [optional] | +|**createdAt** | **OffsetDateTime** | | [optional] | +|**evidenceType** | [**EvidenceTypeEnum**](#EvidenceTypeEnum) | The evidence type used for a chargeback file upload | [optional] | +|**url** | **String** | Presigned download URL for the file. Only present when fetching a single file. | [optional] | + + + +## Enum: EvidenceTypeEnum + +| Name | Value | +|---- | -----| +| CHARGE_INFORMATION | "charge_information" | +| CONTRACT | "contract" | +| OTHER_EVIDENCE | "other_evidence" | +| RECEIPT_OF_SHIPMENT | "receipt_of_shipment" | +| IDENTIFICATION | "identification" | +| ORDER_DETAILS | "order_details" | +| TERMS_AND_CONDITIONS | "terms_and_conditions" | +| CARDHOLDER_INFORMATION | "cardholder_information" | +| PROOF_INVALIDATE_CLAIM | "proof_invalidate_claim" | +| INTERNAL_VALIDATIONS | "internal_validations" | +| PROOF_OF_CANCELLATION | "proof_of_cancellation" | +| RECURRING_CONTRACT | "recurring_contract" | +| PROOF_OF_RETURN | "proof_of_return" | +| EXHIBIT_8 | "exhibit_8" | +| DUPLICATE_ANALYSIS | "duplicate_analysis" | +| FULL_EVIDENCE | "full_evidence" | +| UNKNOWN_DEFAULT_OPEN_API | "unknown_default_open_api" | + + + diff --git a/docs/ChargebackEvidenceTypeResponse.md b/docs/ChargebackEvidenceTypeResponse.md new file mode 100644 index 0000000..7b419f6 --- /dev/null +++ b/docs/ChargebackEvidenceTypeResponse.md @@ -0,0 +1,40 @@ + + +# ChargebackEvidenceTypeResponse + +An evidence type accepted for a chargeback, and the constraints for uploading it + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**TypeEnum**](#TypeEnum) | The evidence type used for a chargeback file upload | [optional] | +|**permitFormats** | **List<String>** | | [optional] | +|**required** | **Boolean** | | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| CHARGE_INFORMATION | "charge_information" | +| CONTRACT | "contract" | +| OTHER_EVIDENCE | "other_evidence" | +| RECEIPT_OF_SHIPMENT | "receipt_of_shipment" | +| IDENTIFICATION | "identification" | +| ORDER_DETAILS | "order_details" | +| TERMS_AND_CONDITIONS | "terms_and_conditions" | +| CARDHOLDER_INFORMATION | "cardholder_information" | +| PROOF_INVALIDATE_CLAIM | "proof_invalidate_claim" | +| INTERNAL_VALIDATIONS | "internal_validations" | +| PROOF_OF_CANCELLATION | "proof_of_cancellation" | +| RECURRING_CONTRACT | "recurring_contract" | +| PROOF_OF_RETURN | "proof_of_return" | +| EXHIBIT_8 | "exhibit_8" | +| DUPLICATE_ANALYSIS | "duplicate_analysis" | +| FULL_EVIDENCE | "full_evidence" | +| UNKNOWN_DEFAULT_OPEN_API | "unknown_default_open_api" | + + + diff --git a/docs/ChargebackFilesBatchResponse.md b/docs/ChargebackFilesBatchResponse.md new file mode 100644 index 0000000..252f929 --- /dev/null +++ b/docs/ChargebackFilesBatchResponse.md @@ -0,0 +1,14 @@ + + +# ChargebackFilesBatchResponse + +Result of a batch evidence file upload + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**files** | [**List<ChargebackEvidenceFileResponse>**](ChargebackEvidenceFileResponse.md) | | [optional] | + + + diff --git a/docs/ChargebacksApi.md b/docs/ChargebacksApi.md new file mode 100644 index 0000000..80e846e --- /dev/null +++ b/docs/ChargebacksApi.md @@ -0,0 +1,368 @@ +# ChargebacksApi + +All URIs are relative to *https://api.conekta.io* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getChargebackEvidenceTypes**](ChargebacksApi.md#getChargebackEvidenceTypes) | **GET** /charges/{charge_id}/chargebacks/{chargeback_id}/evidence-types | Get Chargeback Evidence Types | +| [**getChargebackFile**](ChargebacksApi.md#getChargebackFile) | **GET** /charges/{charge_id}/chargebacks/{chargeback_id}/files/{file_id} | Get Chargeback File | +| [**getChargebackFiles**](ChargebacksApi.md#getChargebackFiles) | **GET** /charges/{charge_id}/chargebacks/{chargeback_id}/files | Get Chargeback Files | +| [**uploadChargebackFilesBatch**](ChargebacksApi.md#uploadChargebackFilesBatch) | **POST** /charges/{charge_id}/chargebacks/{chargeback_id}/files/batch | Upload Chargeback Evidence Files (Batch) | + + + +## getChargebackEvidenceTypes + +> List<ChargebackEvidenceTypeResponse> getChargebackEvidenceTypes(chargeId, chargebackId, acceptLanguage, xChildCompanyId) + +Get Chargeback Evidence Types + +Retrieve the catalog of evidence types accepted for a chargeback, including which are mandatory and their allowed file formats. + +### Example + +```java +// Import classes: +import com.conekta.ApiClient; +import com.conekta.ApiException; +import com.conekta.Configuration; +import com.conekta.auth.*; +import com.conekta.model.*; +import com.conekta.ChargebacksApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.conekta.io"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + ChargebacksApi apiInstance = new ChargebacksApi(defaultClient); + String chargeId = "6966a06c044243000156c24d"; // String | Identifier of the charge resource + String chargebackId = "chbk_2zPxWFUnGNLySoumn"; // String | Identifier of the chargeback resource + String acceptLanguage = "es"; // String | Use for knowing which language to use + String xChildCompanyId = "6441b6376b60c3a638da80af"; // String | In the case of a holding company, the company id of the child company to which will process the request. + try { + List result = apiInstance.getChargebackEvidenceTypes(chargeId, chargebackId, acceptLanguage, xChildCompanyId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ChargebacksApi#getChargebackEvidenceTypes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **chargeId** | **String**| Identifier of the charge resource | | +| **chargebackId** | **String**| Identifier of the chargeback resource | | +| **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] | +| **xChildCompanyId** | **String**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] | + +### Return type + +[**List<ChargebackEvidenceTypeResponse>**](ChargebackEvidenceTypeResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.conekta-v2.3.0+json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The list of evidence types accepted for the chargeback. | * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
| +| **400** | bad request | - | +| **401** | authentication error | - | +| **404** | not found entity | - | +| **500** | internal server error | - | + + +## getChargebackFile + +> ChargebackEvidenceFileResponse getChargebackFile(chargeId, chargebackId, fileId, acceptLanguage, xChildCompanyId) + +Get Chargeback File + +Retrieve the metadata and a presigned download URL for a single chargeback evidence file. + +### Example + +```java +// Import classes: +import com.conekta.ApiClient; +import com.conekta.ApiException; +import com.conekta.Configuration; +import com.conekta.auth.*; +import com.conekta.model.*; +import com.conekta.ChargebacksApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.conekta.io"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + ChargebacksApi apiInstance = new ChargebacksApi(defaultClient); + String chargeId = "6966a06c044243000156c24d"; // String | Identifier of the charge resource + String chargebackId = "chbk_2zPxWFUnGNLySoumn"; // String | Identifier of the chargeback resource + String fileId = "chbkf_2zPxWFUnGNLySoums"; // String | Identifier of the chargeback evidence file + String acceptLanguage = "es"; // String | Use for knowing which language to use + String xChildCompanyId = "6441b6376b60c3a638da80af"; // String | In the case of a holding company, the company id of the child company to which will process the request. + try { + ChargebackEvidenceFileResponse result = apiInstance.getChargebackFile(chargeId, chargebackId, fileId, acceptLanguage, xChildCompanyId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ChargebacksApi#getChargebackFile"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **chargeId** | **String**| Identifier of the charge resource | | +| **chargebackId** | **String**| Identifier of the chargeback resource | | +| **fileId** | **String**| Identifier of the chargeback evidence file | | +| **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] | +| **xChildCompanyId** | **String**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] | + +### Return type + +[**ChargebackEvidenceFileResponse**](ChargebackEvidenceFileResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.conekta-v2.3.0+json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The requested evidence file. | * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
| +| **400** | bad request | - | +| **401** | authentication error | - | +| **404** | not found entity | - | +| **500** | internal server error | - | + + +## getChargebackFiles + +> List<ChargebackEvidenceFileResponse> getChargebackFiles(chargeId, chargebackId, acceptLanguage, xChildCompanyId) + +Get Chargeback Files + +Retrieve the list of evidence files uploaded for a chargeback. + +### Example + +```java +// Import classes: +import com.conekta.ApiClient; +import com.conekta.ApiException; +import com.conekta.Configuration; +import com.conekta.auth.*; +import com.conekta.model.*; +import com.conekta.ChargebacksApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.conekta.io"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + ChargebacksApi apiInstance = new ChargebacksApi(defaultClient); + String chargeId = "6966a06c044243000156c24d"; // String | Identifier of the charge resource + String chargebackId = "chbk_2zPxWFUnGNLySoumn"; // String | Identifier of the chargeback resource + String acceptLanguage = "es"; // String | Use for knowing which language to use + String xChildCompanyId = "6441b6376b60c3a638da80af"; // String | In the case of a holding company, the company id of the child company to which will process the request. + try { + List result = apiInstance.getChargebackFiles(chargeId, chargebackId, acceptLanguage, xChildCompanyId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ChargebacksApi#getChargebackFiles"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **chargeId** | **String**| Identifier of the charge resource | | +| **chargebackId** | **String**| Identifier of the chargeback resource | | +| **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] | +| **xChildCompanyId** | **String**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] | + +### Return type + +[**List<ChargebackEvidenceFileResponse>**](ChargebackEvidenceFileResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.conekta-v2.3.0+json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | A list of evidence files for the chargeback. | * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
| +| **400** | bad request | - | +| **401** | authentication error | - | +| **404** | not found entity | - | +| **500** | internal server error | - | + + +## uploadChargebackFilesBatch + +> ChargebackFilesBatchResponse uploadChargebackFilesBatch(chargeId, chargebackId, acceptLanguage, xChildCompanyId, chargeInformation, contract, otherEvidence, receiptOfShipment, identification, orderDetails, termsAndConditions, cardholderInformation, proofInvalidateClaim, internalValidations, proofOfCancellation, recurringContract, proofOfReturn, exhibit8, duplicateAnalysis, fullEvidence) + +Upload Chargeback Evidence Files (Batch) + +Uploads multiple evidence files for a chargeback in a single request. Each part of the multipart body must be keyed by an evidence type (see the evidence-types endpoint for the valid values for this chargeback), with exactly one file per evidence type. Limits: at most 10 files per request, at most 2MB per file, and only application/pdf, image/jpeg or image/png content is accepted. The chargeback must be in the `action_required` status, and none of the submitted evidence types may already exist on the chargeback. On success the chargeback transitions to `pending_review`. + +### Example + +```java +import java.io.File; +// Import classes: +import com.conekta.ApiClient; +import com.conekta.ApiException; +import com.conekta.Configuration; +import com.conekta.auth.*; +import com.conekta.model.*; +import com.conekta.ChargebacksApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.conekta.io"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + ChargebacksApi apiInstance = new ChargebacksApi(defaultClient); + String chargeId = "6966a06c044243000156c24d"; // String | Identifier of the charge resource + String chargebackId = "chbk_2zPxWFUnGNLySoumn"; // String | Identifier of the chargeback resource + String acceptLanguage = "es"; // String | Use for knowing which language to use + String xChildCompanyId = "6441b6376b60c3a638da80af"; // String | In the case of a holding company, the company id of the child company to which will process the request. + File chargeInformation = new File("/path/to/file"); // File | + File contract = new File("/path/to/file"); // File | + File otherEvidence = new File("/path/to/file"); // File | + File receiptOfShipment = new File("/path/to/file"); // File | + File identification = new File("/path/to/file"); // File | + File orderDetails = new File("/path/to/file"); // File | + File termsAndConditions = new File("/path/to/file"); // File | + File cardholderInformation = new File("/path/to/file"); // File | + File proofInvalidateClaim = new File("/path/to/file"); // File | + File internalValidations = new File("/path/to/file"); // File | + File proofOfCancellation = new File("/path/to/file"); // File | + File recurringContract = new File("/path/to/file"); // File | + File proofOfReturn = new File("/path/to/file"); // File | + File exhibit8 = new File("/path/to/file"); // File | + File duplicateAnalysis = new File("/path/to/file"); // File | + File fullEvidence = new File("/path/to/file"); // File | + try { + ChargebackFilesBatchResponse result = apiInstance.uploadChargebackFilesBatch(chargeId, chargebackId, acceptLanguage, xChildCompanyId, chargeInformation, contract, otherEvidence, receiptOfShipment, identification, orderDetails, termsAndConditions, cardholderInformation, proofInvalidateClaim, internalValidations, proofOfCancellation, recurringContract, proofOfReturn, exhibit8, duplicateAnalysis, fullEvidence); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ChargebacksApi#uploadChargebackFilesBatch"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **chargeId** | **String**| Identifier of the charge resource | | +| **chargebackId** | **String**| Identifier of the chargeback resource | | +| **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] | +| **xChildCompanyId** | **String**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] | +| **chargeInformation** | **File**| | [optional] | +| **contract** | **File**| | [optional] | +| **otherEvidence** | **File**| | [optional] | +| **receiptOfShipment** | **File**| | [optional] | +| **identification** | **File**| | [optional] | +| **orderDetails** | **File**| | [optional] | +| **termsAndConditions** | **File**| | [optional] | +| **cardholderInformation** | **File**| | [optional] | +| **proofInvalidateClaim** | **File**| | [optional] | +| **internalValidations** | **File**| | [optional] | +| **proofOfCancellation** | **File**| | [optional] | +| **recurringContract** | **File**| | [optional] | +| **proofOfReturn** | **File**| | [optional] | +| **exhibit8** | **File**| | [optional] | +| **duplicateAnalysis** | **File**| | [optional] | +| **fullEvidence** | **File**| | [optional] | + +### Return type + +[**ChargebackFilesBatchResponse**](ChargebackFilesBatchResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: application/vnd.conekta-v2.3.0+json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Files uploaded successfully. | * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
| +| **400** | bad request | - | +| **401** | authentication error | - | +| **404** | not found entity | - | +| **422** | parameter validation error | - | +| **500** | internal server error | - | + diff --git a/docs/ChargesApi.md b/docs/ChargesApi.md index b4f2236..bfc6dea 100644 --- a/docs/ChargesApi.md +++ b/docs/ChargesApi.md @@ -93,7 +93,7 @@ public class Example { ## ordersCreateCharge -> ChargeOrderResponse ordersCreateCharge(id, chargeRequest, acceptLanguage, xChildCompanyId) +> ChargeOrderResponse ordersCreateCharge(id, chargeRequest, acceptLanguage, xChildCompanyId, idempotencyKey) Create charge @@ -124,8 +124,9 @@ public class Example { ChargeRequest chargeRequest = new ChargeRequest(); // ChargeRequest | requested field for a charge String acceptLanguage = "es"; // String | Use for knowing which language to use String xChildCompanyId = "6441b6376b60c3a638da80af"; // String | In the case of a holding company, the company id of the child company to which will process the request. + String idempotencyKey = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"; // String | Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. try { - ChargeOrderResponse result = apiInstance.ordersCreateCharge(id, chargeRequest, acceptLanguage, xChildCompanyId); + ChargeOrderResponse result = apiInstance.ordersCreateCharge(id, chargeRequest, acceptLanguage, xChildCompanyId, idempotencyKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ChargesApi#ordersCreateCharge"); @@ -147,6 +148,7 @@ public class Example { | **chargeRequest** | [**ChargeRequest**](ChargeRequest.md)| requested field for a charge | | | **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] | | **xChildCompanyId** | **String**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] | +| **idempotencyKey** | **String**| Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. | [optional] | ### Return type @@ -173,7 +175,7 @@ public class Example { ## ordersCreateCharges -> ChargesOrderResponse ordersCreateCharges(id, chargeRequest, acceptLanguage, xChildCompanyId) +> ChargesOrderResponse ordersCreateCharges(id, chargeRequest, acceptLanguage, xChildCompanyId, idempotencyKey) Create charges @@ -204,8 +206,9 @@ public class Example { ChargeRequest chargeRequest = new ChargeRequest(); // ChargeRequest | requested field for a charge String acceptLanguage = "es"; // String | Use for knowing which language to use String xChildCompanyId = "6441b6376b60c3a638da80af"; // String | In the case of a holding company, the company id of the child company to which will process the request. + String idempotencyKey = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"; // String | Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. try { - ChargesOrderResponse result = apiInstance.ordersCreateCharges(id, chargeRequest, acceptLanguage, xChildCompanyId); + ChargesOrderResponse result = apiInstance.ordersCreateCharges(id, chargeRequest, acceptLanguage, xChildCompanyId, idempotencyKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ChargesApi#ordersCreateCharges"); @@ -227,6 +230,7 @@ public class Example { | **chargeRequest** | [**ChargeRequest**](ChargeRequest.md)| requested field for a charge | | | **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] | | **xChildCompanyId** | **String**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] | +| **idempotencyKey** | **String**| Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. | [optional] | ### Return type diff --git a/docs/ChargesDataResponse.md b/docs/ChargesDataResponse.md index e7e323c..4489475 100644 --- a/docs/ChargesDataResponse.md +++ b/docs/ChargesDataResponse.md @@ -7,10 +7,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**amount** | **Integer** | | | +|**amount** | **Integer** | | [optional] | |**channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] | -|**createdAt** | **Long** | | | -|**currency** | **String** | | | +|**conektaAccountId** | **String** | Conekta account ID of the charge, if the charge was paid through a Conekta account. | [optional] | +|**createdAt** | **Long** | Charge creation date, in seconds since the Unix epoch | | +|**currency** | **String** | Currency of the charge, in ISO 4217 format | | |**customerId** | **String** | | [optional] | |**description** | **String** | | [optional] | |**deviceFingerprint** | **String** | | [optional] | diff --git a/docs/Checkout.md b/docs/Checkout.md index 9563d74..2d12417 100644 --- a/docs/Checkout.md +++ b/docs/Checkout.md @@ -10,17 +10,18 @@ It is a sub-resource of the Order model that can be stipulated in order to confi |------------ | ------------- | ------------- | -------------| |**allowedPaymentMethods** | **List<String>** | Those are the payment methods that will be available for the link. This field is mutually exclusive with excluded_payment_methods. | [optional] | |**excludedPaymentMethods** | [**List<ExcludedPaymentMethodsEnum>**](#List<ExcludedPaymentMethodsEnum>) | Payment methods to be excluded from the checkout. This field is mutually exclusive with allowed_payment_methods. | [optional] | -|**excludeCardNetworks** | [**List<ExcludeCardNetworksEnum>**](#List<ExcludeCardNetworksEnum>) | List of card networks to exclude from the checkout. This field is only applicable for card payments. | [optional] | +|**excludeCardNetworks** | [**List<ExcludeCardNetworksEnum>**](#List<ExcludeCardNetworksEnum>) | List of card networks to exclude from the checkout. This field is only applicable for card payments. Accepted values: 'visa_master_card' (a single token excluding both Visa and Mastercard) and 'amex'. | [optional] | |**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 5 minutes to 365 days from the creation date. | | |**monthlyInstallmentsEnabled** | **Boolean** | This flag allows you to specify if months without interest will be active. | [optional] | |**monthlyInstallmentsOptions** | **List<Integer>** | This field allows you to specify the number of months without interest. | [optional] | -|**threeDsMode** | **String** | Indicates the 3DS2 mode for the order, either smart or strict. This property is only applicable when 3DS is enabled. When 3DS is disabled, this field should be null. | [optional] | +|**threeDsMode** | [**ThreeDsModeEnum**](#ThreeDsModeEnum) | Indicates the 3DS2 mode: 'strict', 'not_strict' or 'smart'. To defer to the company-level 3DS configuration, omit the field (an explicit null is rejected on creation). | [optional] | |**name** | **String** | Reason for charge | | |**needsShippingContact** | **Boolean** | This flag allows you to fill in the shipping information at checkout. | [optional] | |**onDemandEnabled** | **Boolean** | This flag allows you to specify if the link will be on demand. | [optional] | |**planIds** | **List<String>** | It is a list of plan IDs that will be associated with the order. | [optional] | |**orderTemplate** | [**CheckoutOrderTemplate**](CheckoutOrderTemplate.md) | | | |**paymentsLimitCount** | **Integer** | It is the number of payments that can be made through the link. | [optional] | +|**redirectionTime** | **Integer** | It is the time in seconds that the checkout will wait before redirecting to the success_url. It must be greater than 0. | [optional] | |**successUrl** | **String** | The URL to redirect to after a successful payment. | [optional] | |**recurrent** | **Boolean** | false: single use. true: multiple payments | | |**type** | **String** | It is the type of link that will be created. It must be a valid type. | | @@ -44,10 +45,20 @@ It is a sub-resource of the Order model that can be stipulated in order to confi | Name | Value | |---- | -----| -| VISA | "visa" | -| MASTERCARD | "mastercard" | +| VISA_MASTER_CARD | "visa_master_card" | | AMEX | "amex" | | UNKNOWN_DEFAULT_OPEN_API | "unknown_default_open_api" | +## Enum: ThreeDsModeEnum + +| Name | Value | +|---- | -----| +| STRICT | "strict" | +| NOT_STRICT | "not_strict" | +| SMART | "smart" | +| UNKNOWN_DEFAULT_OPEN_API | "unknown_default_open_api" | + + + diff --git a/docs/CheckoutResponse.md b/docs/CheckoutResponse.md index cb61ba2..a0cb254 100644 --- a/docs/CheckoutResponse.md +++ b/docs/CheckoutResponse.md @@ -28,8 +28,8 @@ checkout response |**paidPaymentsCount** | **Integer** | | [optional] | |**paymentsLimitCount** | **Integer** | | [optional] | |**recurrent** | **Boolean** | | [optional] | +|**redirectionTime** | **Integer** | It is the time in seconds that the checkout will wait before redirecting to the success_url. | [optional] | |**slug** | **String** | | [optional] | -|**smsSent** | **Integer** | | [optional] | |**startsAt** | **Integer** | | [optional] | |**status** | **String** | | [optional] | |**successUrl** | **String** | The URL to redirect to after a successful payment. | [optional] | diff --git a/docs/CompanyResponse.md b/docs/CompanyResponse.md index a2086bf..96b5375 100644 --- a/docs/CompanyResponse.md +++ b/docs/CompanyResponse.md @@ -18,6 +18,7 @@ |**_object** | **String** | The type of object, typically \"company\". | | |**threeDsEnabled** | **Boolean** | Indicates if 3DS authentication is enabled for the company. | [optional] | |**threeDsMode** | [**ThreeDsModeEnum**](#ThreeDsModeEnum) | The 3DS mode for the company, either 'smart' or 'strict'. This property is only applicable when three_ds_enabled is true. When three_ds_enabled is false, this field will be null. | [optional] | +|**onboardingUrl** | **String** | The URL to resume onboarding | [optional] | diff --git a/docs/CreateCompanyRequest.md b/docs/CreateCompanyRequest.md index a4abea9..1ce6f0b 100644 --- a/docs/CreateCompanyRequest.md +++ b/docs/CreateCompanyRequest.md @@ -12,6 +12,7 @@ |**comercialInfo** | [**CreateCompanyRequestComercialInfo**](CreateCompanyRequestComercialInfo.md) | | [optional] | |**fiscalInfo** | [**CreateCompanyRequestFiscalInfo**](CreateCompanyRequestFiscalInfo.md) | | [optional] | |**bankAccountInfo** | [**CreateCompanyRequestBankAccountInfo**](CreateCompanyRequestBankAccountInfo.md) | | [optional] | +|**users** | **List<String>** | User emails for the company | [optional] | diff --git a/docs/CreateCustomerFiscalEntitiesResponse.md b/docs/CreateCustomerFiscalEntitiesResponse.md index 3cdb2a8..a079fe8 100644 --- a/docs/CreateCustomerFiscalEntitiesResponse.md +++ b/docs/CreateCustomerFiscalEntitiesResponse.md @@ -11,7 +11,7 @@ |**taxId** | **String** | | [optional] | |**email** | **String** | | [optional] | |**phone** | **String** | | [optional] | -|**metadata** | | | [optional] | +|**metadata** | **Map<String, Object>** | | [optional] | |**companyName** | **String** | | [optional] | |**id** | **String** | | | |**_object** | **String** | | | diff --git a/docs/CustomerFiscalEntitiesDataResponse.md b/docs/CustomerFiscalEntitiesDataResponse.md index 5f2a6f3..65839bd 100644 --- a/docs/CustomerFiscalEntitiesDataResponse.md +++ b/docs/CustomerFiscalEntitiesDataResponse.md @@ -11,7 +11,7 @@ |**taxId** | **String** | | [optional] | |**email** | **String** | | [optional] | |**phone** | **String** | | [optional] | -|**metadata** | | | [optional] | +|**metadata** | **Map<String, Object>** | | [optional] | |**companyName** | **String** | | [optional] | |**id** | **String** | | | |**_object** | **String** | | | diff --git a/docs/CustomerShippingContactsDataResponse.md b/docs/CustomerShippingContactsDataResponse.md index 43f2efd..0578744 100644 --- a/docs/CustomerShippingContactsDataResponse.md +++ b/docs/CustomerShippingContactsDataResponse.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**phone** | **String** | Phone contact | [optional] | |**receiver** | **String** | Name of the person who will receive the order | [optional] | -|**betweenStreets** | **String** | The street names between which the order will be delivered. | [optional] | +|**betweenStreets** | **String** | The street names between which the order will be delivered. Must contain at least two consecutive ASCII letters. | [optional] | |**address** | [**CustomerShippingContactsRequestAddress**](CustomerShippingContactsRequestAddress.md) | | | |**parentId** | **String** | | [optional] | |**_default** | **Boolean** | | [optional] | diff --git a/docs/CustomerShippingContactsRequest.md b/docs/CustomerShippingContactsRequest.md index 607d7fd..ebc6ba2 100644 --- a/docs/CustomerShippingContactsRequest.md +++ b/docs/CustomerShippingContactsRequest.md @@ -10,7 +10,7 @@ |------------ | ------------- | ------------- | -------------| |**phone** | **String** | Phone contact | [optional] | |**receiver** | **String** | Name of the person who will receive the order | [optional] | -|**betweenStreets** | **String** | The street names between which the order will be delivered. | [optional] | +|**betweenStreets** | **String** | The street names between which the order will be delivered. Must contain at least two consecutive ASCII letters. | [optional] | |**address** | [**CustomerShippingContactsRequestAddress**](CustomerShippingContactsRequestAddress.md) | | | |**parentId** | **String** | | [optional] | |**_default** | **Boolean** | | [optional] | diff --git a/docs/CustomerShippingContactsRequestAddress.md b/docs/CustomerShippingContactsRequestAddress.md index 303084d..b6531a0 100644 --- a/docs/CustomerShippingContactsRequestAddress.md +++ b/docs/CustomerShippingContactsRequestAddress.md @@ -2,19 +2,18 @@ # CustomerShippingContactsRequestAddress -Address of the person who will receive the order ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**street1** | **String** | | [optional] | -|**street2** | **String** | | [optional] | -|**postalCode** | **String** | | [optional] | -|**city** | **String** | | [optional] | -|**state** | **String** | | [optional] | -|**country** | **String** | this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | [optional] | -|**residential** | **Boolean** | | [optional] | +|**street1** | **String** | Street and number of the delivery address. | | +|**street2** | **String** | Apartment, suite or interior reference for the delivery address. | [optional] | +|**postalCode** | **String** | Postal code of the delivery address. For Mexican addresses (country MX) it must be a 5-digit postal code. | | +|**city** | **String** | City of the delivery address. Must contain at least two consecutive ASCII letters. | [optional] | +|**state** | **String** | State of the delivery address. | [optional] | +|**country** | **String** | Country of the delivery address. This field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). | | +|**residential** | **Boolean** | Indicates whether the delivery address is residential. | [optional] | diff --git a/docs/CustomerUpdateShippingContactsRequest.md b/docs/CustomerUpdateShippingContactsRequest.md index 970113a..96f1187 100644 --- a/docs/CustomerUpdateShippingContactsRequest.md +++ b/docs/CustomerUpdateShippingContactsRequest.md @@ -10,8 +10,8 @@ |------------ | ------------- | ------------- | -------------| |**phone** | **String** | Phone contact | [optional] | |**receiver** | **String** | Name of the person who will receive the order | [optional] | -|**betweenStreets** | **String** | The street names between which the order will be delivered. | [optional] | -|**address** | [**CustomerShippingContactsRequestAddress**](CustomerShippingContactsRequestAddress.md) | | [optional] | +|**betweenStreets** | **String** | The street names between which the order will be delivered. Must contain at least two consecutive ASCII letters. | [optional] | +|**address** | [**ShippingContactAddress**](ShippingContactAddress.md) | | [optional] | |**parentId** | **String** | | [optional] | |**_default** | **Boolean** | | [optional] | |**deleted** | **Boolean** | | [optional] | diff --git a/docs/FiscalEntityRequest.md b/docs/FiscalEntityRequest.md index 649b54a..5f6b126 100644 --- a/docs/FiscalEntityRequest.md +++ b/docs/FiscalEntityRequest.md @@ -11,7 +11,7 @@ |**taxId** | **String** | | [optional] | |**email** | **String** | | [optional] | |**phone** | **String** | | [optional] | -|**metadata** | | | [optional] | +|**metadata** | **Map<String, Object>** | | [optional] | |**companyName** | **String** | | [optional] | diff --git a/docs/FiscalEntityRequestAddress.md b/docs/FiscalEntityRequestAddress.md index a3ae9d7..a305663 100644 --- a/docs/FiscalEntityRequestAddress.md +++ b/docs/FiscalEntityRequestAddress.md @@ -13,7 +13,6 @@ |**city** | **String** | | | |**state** | **String** | | [optional] | |**country** | **String** | this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | [optional] | -|**residential** | **Boolean** | | [optional] | |**externalNumber** | **String** | | [optional] | diff --git a/docs/LogResponseForRequest.md b/docs/LogResponseForRequest.md index 56673b1..6bab883 100644 --- a/docs/LogResponseForRequest.md +++ b/docs/LogResponseForRequest.md @@ -19,9 +19,9 @@ log model |**queryString** | **Map<String, Object>** | | [optional] | |**related** | **String** | | [optional] | |**requestBody** | **Object** | | [optional] | -|**requestHeaders** | | | [optional] | +|**requestHeaders** | **Map<String, String>** | | [optional] | |**responseBody** | **Object** | | [optional] | -|**responseHeaders** | | | [optional] | +|**responseHeaders** | **Map<String, String>** | | [optional] | |**searchableTags** | **List<String>** | | [optional] | |**status** | **String** | | [optional] | |**updatedAt** | **String** | | [optional] | diff --git a/docs/LogsApi.md b/docs/LogsApi.md index e4dea7d..c9c6522 100644 --- a/docs/LogsApi.md +++ b/docs/LogsApi.md @@ -88,7 +88,7 @@ public class Example { ## getLogs -> LogsResponseForRequest getLogs(acceptLanguage, xChildCompanyId, limit, search, next, previous) +> LogsResponseForRequest getLogs(acceptLanguage, xChildCompanyId, limit, search, next, previous, methodIn) Get List Of Logs @@ -121,8 +121,9 @@ public class Example { String search = "search_example"; // String | General order search, e.g. by mail, reference etc. String next = "next_example"; // String | next page String previous = "previous_example"; // String | previous page + List methodIn = Arrays.asList(); // List | Filters logs by HTTP method. The parameter can be sent multiple times to filter by more than one method, e.g. `method.in[]=POST&method.in[]=PUT` try { - LogsResponseForRequest result = apiInstance.getLogs(acceptLanguage, xChildCompanyId, limit, search, next, previous); + LogsResponseForRequest result = apiInstance.getLogs(acceptLanguage, xChildCompanyId, limit, search, next, previous, methodIn); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling LogsApi#getLogs"); @@ -146,6 +147,7 @@ public class Example { | **search** | **String**| General order search, e.g. by mail, reference etc. | [optional] | | **next** | **String**| next page | [optional] | | **previous** | **String**| previous page | [optional] | +| **methodIn** | **List<String>**| Filters logs by HTTP method. The parameter can be sent multiple times to filter by more than one method, e.g. `method.in[]=POST&method.in[]=PUT` | [optional] | ### Return type diff --git a/docs/LogsResponseData.md b/docs/LogsResponseData.md index 535d4b2..6301cf0 100644 --- a/docs/LogsResponseData.md +++ b/docs/LogsResponseData.md @@ -18,9 +18,9 @@ |**queryString** | **Map<String, Object>** | | [optional] | |**related** | **String** | | [optional] | |**requestBody** | **Object** | | [optional] | -|**requestHeaders** | | | [optional] | +|**requestHeaders** | **Map<String, String>** | | [optional] | |**responseBody** | **Object** | | [optional] | -|**responseHeaders** | | | [optional] | +|**responseHeaders** | **Map<String, String>** | | [optional] | |**searchableTags** | **List<String>** | | [optional] | |**status** | **String** | | [optional] | |**updatedAt** | **String** | | [optional] | diff --git a/docs/MonthlyInstallmentsApi.md b/docs/MonthlyInstallmentsApi.md new file mode 100644 index 0000000..d389658 --- /dev/null +++ b/docs/MonthlyInstallmentsApi.md @@ -0,0 +1,85 @@ +# MonthlyInstallmentsApi + +All URIs are relative to *https://api.conekta.io* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**validateMonthlyInstallments**](MonthlyInstallmentsApi.md#validateMonthlyInstallments) | **POST** /monthly_installments/validate | Validate Monthly Installments | + + + +## validateMonthlyInstallments + +> MonthlyInstallmentsValidateResponse validateMonthlyInstallments(monthlyInstallmentsValidateRequest, acceptLanguage) + +Validate Monthly Installments + +Returns the interest-free monthly installment plans available for a card BIN and an amount, so a checkout can offer only the plans a later charge will accept. Requires monthly installments to be enabled on the company. + + +### Example + +```java +// Import classes: +import com.conekta.ApiClient; +import com.conekta.ApiException; +import com.conekta.Configuration; +import com.conekta.auth.*; +import com.conekta.model.*; +import com.conekta.MonthlyInstallmentsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.conekta.io"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + MonthlyInstallmentsApi apiInstance = new MonthlyInstallmentsApi(defaultClient); + MonthlyInstallmentsValidateRequest monthlyInstallmentsValidateRequest = new MonthlyInstallmentsValidateRequest(); // MonthlyInstallmentsValidateRequest | requested field for monthly installments validate + String acceptLanguage = "es"; // String | Use for knowing which language to use + try { + MonthlyInstallmentsValidateResponse result = apiInstance.validateMonthlyInstallments(monthlyInstallmentsValidateRequest, acceptLanguage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MonthlyInstallmentsApi#validateMonthlyInstallments"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **monthlyInstallmentsValidateRequest** | [**MonthlyInstallmentsValidateRequest**](MonthlyInstallmentsValidateRequest.md)| requested field for monthly installments validate | | +| **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] | + +### Return type + +[**MonthlyInstallmentsValidateResponse**](MonthlyInstallmentsValidateResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/vnd.conekta-v2.3.0+json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | successful operation | * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
| +| **401** | authentication error | - | +| **422** | parameter validation error | - | +| **500** | internal server error | - | + diff --git a/docs/MonthlyInstallmentsValidateRequest.md b/docs/MonthlyInstallmentsValidateRequest.md new file mode 100644 index 0000000..08aba85 --- /dev/null +++ b/docs/MonthlyInstallmentsValidateRequest.md @@ -0,0 +1,15 @@ + + +# MonthlyInstallmentsValidateRequest + +BIN and amount to evaluate for interest-free monthly installments + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**bin** | **String** | First 6 or 8 digits of the card number (Bank Identification Number). An 8 digit BIN that yields no match is retried with its first 6 digits. | | +|**amount** | **Integer** | Amount to charge in the smallest currency unit (cents for MXN). Used to compute the monthly fee of each available plan. | | + + + diff --git a/docs/MonthlyInstallmentsValidateResponse.md b/docs/MonthlyInstallmentsValidateResponse.md new file mode 100644 index 0000000..5a147e9 --- /dev/null +++ b/docs/MonthlyInstallmentsValidateResponse.md @@ -0,0 +1,15 @@ + + +# MonthlyInstallmentsValidateResponse + +monthly installments validate response + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**availableInstallments** | [**List<MonthlyInstallmentsValidateResponseAvailableInstallments>**](MonthlyInstallmentsValidateResponseAvailableInstallments.md) | Interest-free monthly installment plans available for this card and amount. Empty when the card does not qualify for monthly installments, for example a debit card or a credit card not issued in Mexico. An empty array is not an error. | | +|**binInfo** | [**MonthlyInstallmentsValidateResponseBinInfo**](MonthlyInstallmentsValidateResponseBinInfo.md) | | | + + + diff --git a/docs/MonthlyInstallmentsValidateResponseAvailableInstallments.md b/docs/MonthlyInstallmentsValidateResponseAvailableInstallments.md new file mode 100644 index 0000000..f7b113e --- /dev/null +++ b/docs/MonthlyInstallmentsValidateResponseAvailableInstallments.md @@ -0,0 +1,14 @@ + + +# MonthlyInstallmentsValidateResponseAvailableInstallments + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**months** | **Integer** | Number of monthly installments of the plan. One of 3, 6, 9, 12, 18 or 24. | | +|**amount** | **Integer** | Amount of each monthly installment in the smallest currency unit, rounded up. | | + + + diff --git a/docs/MonthlyInstallmentsValidateResponseBinInfo.md b/docs/MonthlyInstallmentsValidateResponseBinInfo.md new file mode 100644 index 0000000..fd387f3 --- /dev/null +++ b/docs/MonthlyInstallmentsValidateResponseBinInfo.md @@ -0,0 +1,15 @@ + + +# MonthlyInstallmentsValidateResponseBinInfo + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**country** | **String** | Country that issued the card. Monthly installments only apply to mx, with the exception of American Express. | | +|**scheme** | **String** | Card scheme. Monthly installments only apply to credit. | | +|**issuer** | **String** | Bank that issued the card. | | + + + diff --git a/docs/OrderCheckoutRequest.md b/docs/OrderCheckoutRequest.md index 0a85f17..55758a9 100644 --- a/docs/OrderCheckoutRequest.md +++ b/docs/OrderCheckoutRequest.md @@ -10,7 +10,7 @@ |------------ | ------------- | ------------- | -------------| |**allowedPaymentMethods** | [**List<AllowedPaymentMethodsEnum>**](#List<AllowedPaymentMethodsEnum>) | Are the payment methods available for this link. For subscriptions, only 'card' is allowed due to the recurring nature of the payments. This field is mutually exclusive with excluded_payment_methods. | [optional] | |**excludedPaymentMethods** | [**List<ExcludedPaymentMethodsEnum>**](#List<ExcludedPaymentMethodsEnum>) | Payment methods to be excluded from the checkout. This field is mutually exclusive with allowed_payment_methods. | [optional] | -|**excludeCardNetworks** | [**List<ExcludeCardNetworksEnum>**](#List<ExcludeCardNetworksEnum>) | List of card networks to exclude from the checkout. This field is only applicable for card payments. | [optional] | +|**excludeCardNetworks** | [**List<ExcludeCardNetworksEnum>**](#List<ExcludeCardNetworksEnum>) | List of card networks to exclude from the checkout. This field is only applicable for card payments. Accepted values: 'visa_master_card' (a single token excluding both Visa and Mastercard) and 'amex'. | [optional] | |**planIds** | **List<String>** | List of plan IDs that will be available for subscription. This field is required for subscription payments. | [optional] | |**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 5 minutes to 365 days from the creation date. | [optional] | |**failureUrl** | **URI** | Redirection url back to the site in case of failed payment, applies only to HostedPayment. | [optional] | @@ -58,8 +58,7 @@ | Name | Value | |---- | -----| -| VISA | "visa" | -| MASTERCARD | "mastercard" | +| VISA_MASTER_CARD | "visa_master_card" | | AMEX | "amex" | | UNKNOWN_DEFAULT_OPEN_API | "unknown_default_open_api" | diff --git a/docs/OrderRequest.md b/docs/OrderRequest.md index 697fe57..4ab0493 100644 --- a/docs/OrderRequest.md +++ b/docs/OrderRequest.md @@ -15,15 +15,28 @@ a order |**discountLines** | [**List<OrderDiscountLinesRequest>**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.3.0/reference/orderscreatediscountline) that are applied to the order. | [optional] | |**fiscalEntity** | [**OrderFiscalEntityRequest**](OrderFiscalEntityRequest.md) | | [optional] | |**lineItems** | [**List<Product>**](Product.md) | List of [products](https://developers.conekta.com/v2.3.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | | -|**metadata** | **Map<String, Object>** | Metadata associated with the order | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | Metadata associated with the order. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. | [optional] | |**needsShippingContact** | **Boolean** | Allows you to fill out the shipping information at checkout | [optional] | |**preAuthorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional] | |**processingMode** | **String** | Indicates the processing mode for the order, either ecommerce, recurrent or validation. | [optional] | |**returnUrl** | **URI** | Indicates the redirection callback upon completion of the 3DS2 flow. Do not use this parameter if your order has a checkout parameter | [optional] | +|**reuseCustomerCashReference** | **Boolean** | Reuses the customer's recurrent cash reference (`cash_recurrent` payment source) in the order's cash charges instead of generating a new reference. Requires `customer_info.customer_id`. | [optional] | +|**reuseCustomerClabe** | **Boolean** | Reuses the customer's recurrent SPEI CLABE (`spei_recurrent` payment source) in the order's SPEI charges instead of generating a new CLABE. Requires `customer_info.customer_id`. | [optional] | |**shippingContact** | [**CustomerShippingContactsRequest**](CustomerShippingContactsRequest.md) | | [optional] | |**shippingLines** | [**List<ShippingRequest>**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.3.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] | |**taxLines** | [**List<OrderTaxRequest>**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.3.0/reference/orderscreatetaxes) that are applied to the order. | [optional] | -|**threeDsMode** | **String** | Indicates the 3DS2 mode for the order, either smart or strict. This property is only applicable when 3DS is enabled. When 3DS is disabled, this field should be null. | [optional] | +|**threeDsMode** | [**ThreeDsModeEnum**](#ThreeDsModeEnum) | Indicates the 3DS2 mode: 'strict', 'not_strict' or 'smart'. The value is validated against the allowed set on creation; sending an explicit null is rejected. Omit the field to create the order without requesting 3DS through the API (company-level 3DS applies only to orders paid through Checkout or when antifraud forces 3DS). | [optional] | + + + +## Enum: ThreeDsModeEnum + +| Name | Value | +|---- | -----| +| STRICT | "strict" | +| NOT_STRICT | "not_strict" | +| SMART | "smart" | +| UNKNOWN_DEFAULT_OPEN_API | "unknown_default_open_api" | diff --git a/docs/OrderResponse.md b/docs/OrderResponse.md index 3c622b8..67ec08f 100644 --- a/docs/OrderResponse.md +++ b/docs/OrderResponse.md @@ -8,25 +8,25 @@ order response | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**amount** | **Integer** | The total amount to be collected in cents | [optional] | +|**amount** | **Integer** | The total amount to be collected in cents | | |**amountRefunded** | **Integer** | The total amount refunded in cents | [optional] | |**channel** | [**OrderChannelResponse**](OrderChannelResponse.md) | | [optional] | |**charges** | [**OrderChargesResponse**](OrderChargesResponse.md) | | [optional] | |**checkout** | [**OrderResponseCheckout**](OrderResponseCheckout.md) | | [optional] | -|**createdAt** | **Long** | The time at which the object was created in seconds since the Unix epoch | [optional] | -|**currency** | **String** | The three-letter ISO 4217 currency code. The currency of the order. | [optional] | +|**createdAt** | **Long** | The time at which the object was created in seconds since the Unix epoch | | +|**currency** | **String** | The three-letter ISO 4217 currency code. The currency of the order. | | |**customerInfo** | [**OrderResponseCustomerInfo**](OrderResponseCustomerInfo.md) | | [optional] | |**discountLines** | [**OrderResponseDiscountLines**](OrderResponseDiscountLines.md) | | [optional] | |**taxLines** | [**OrderResponseTaxLines**](OrderResponseTaxLines.md) | | [optional] | |**shippingLines** | [**OrderResponseShippingLines**](OrderResponseShippingLines.md) | | [optional] | |**fiscalEntity** | [**OrderFiscalEntityResponse**](OrderFiscalEntityResponse.md) | | [optional] | -|**id** | **String** | | [optional] | +|**id** | **String** | | | |**isRefundable** | **Boolean** | | [optional] | |**lineItems** | [**OrderResponseProducts**](OrderResponseProducts.md) | | [optional] | -|**livemode** | **Boolean** | Whether the object exists in live mode or test mode | [optional] | +|**livemode** | **Boolean** | Whether the object exists in live mode or test mode | | |**metadata** | **Map<String, Object>** | 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] | |**nextAction** | [**OrderNextActionResponse**](OrderNextActionResponse.md) | | [optional] | -|**_object** | **String** | String representing the object’s type. Objects of the same type share the same value. | [optional] | +|**_object** | **String** | String representing the object’s type. Objects of the same type share the same value. | | |**paymentStatus** | **String** | The payment status of the order. | [optional] | |**processingMode** | **String** | Indicates the processing mode for the order, either ecommerce, recurrent or validation. | [optional] | |**shippingContact** | [**OrderResponseShippingContact**](OrderResponseShippingContact.md) | | [optional] | diff --git a/docs/OrderTaxRequest.md b/docs/OrderTaxRequest.md index 861d219..9fc197c 100644 --- a/docs/OrderTaxRequest.md +++ b/docs/OrderTaxRequest.md @@ -10,7 +10,7 @@ create new taxes for an existing order |------------ | ------------- | ------------- | -------------| |**amount** | **Long** | The amount to be collected for tax in cents | | |**description** | **String** | description or tax's name | | -|**metadata** | **Map<String, Object>** | | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | | [optional] | diff --git a/docs/OrderTaxRequestMetadataValue.md b/docs/OrderTaxRequestMetadataValue.md new file mode 100644 index 0000000..603aa60 --- /dev/null +++ b/docs/OrderTaxRequestMetadataValue.md @@ -0,0 +1,55 @@ + + +# OrderTaxRequestMetadataValue + +## anyOf schemas +* [BigDecimal](BigDecimal.md) +* [Boolean](Boolean.md) +* [Integer](Integer.md) +* [String](String.md) + +## Example +```java +// Import classes: +import com.conekta.model.OrderTaxRequestMetadataValue; +import com.conekta.model.BigDecimal; +import com.conekta.model.Boolean; +import com.conekta.model.Integer; +import com.conekta.model.String; + +public class Example { + public static void main(String[] args) { + OrderTaxRequestMetadataValue exampleOrderTaxRequestMetadataValue = new OrderTaxRequestMetadataValue(); + + // create a new BigDecimal + BigDecimal exampleBigDecimal = new BigDecimal(); + // set OrderTaxRequestMetadataValue to BigDecimal + exampleOrderTaxRequestMetadataValue.setActualInstance(exampleBigDecimal); + // to get back the BigDecimal set earlier + BigDecimal testBigDecimal = (BigDecimal) exampleOrderTaxRequestMetadataValue.getActualInstance(); + + // create a new Boolean + Boolean exampleBoolean = new Boolean(); + // set OrderTaxRequestMetadataValue to Boolean + exampleOrderTaxRequestMetadataValue.setActualInstance(exampleBoolean); + // to get back the Boolean set earlier + Boolean testBoolean = (Boolean) exampleOrderTaxRequestMetadataValue.getActualInstance(); + + // create a new Integer + Integer exampleInteger = new Integer(); + // set OrderTaxRequestMetadataValue to Integer + exampleOrderTaxRequestMetadataValue.setActualInstance(exampleInteger); + // to get back the Integer set earlier + Integer testInteger = (Integer) exampleOrderTaxRequestMetadataValue.getActualInstance(); + + // create a new String + String exampleString = new String(); + // set OrderTaxRequestMetadataValue to String + exampleOrderTaxRequestMetadataValue.setActualInstance(exampleString); + // to get back the String set earlier + String testString = (String) exampleOrderTaxRequestMetadataValue.getActualInstance(); + } +} +``` + + diff --git a/docs/OrderTaxResponse.md b/docs/OrderTaxResponse.md index c53ce41..e9b4102 100644 --- a/docs/OrderTaxResponse.md +++ b/docs/OrderTaxResponse.md @@ -10,7 +10,7 @@ create new taxes for an existing order response |------------ | ------------- | ------------- | -------------| |**amount** | **Long** | The amount to be collected for tax in cents | | |**description** | **String** | description or tax's name | | -|**metadata** | **Map<String, Object>** | | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | | [optional] | |**id** | **String** | | | |**_object** | **String** | | [optional] | |**parentId** | **String** | | [optional] | diff --git a/docs/OrderUpdate.md b/docs/OrderUpdate.md index cba4381..3f971fa 100644 --- a/docs/OrderUpdate.md +++ b/docs/OrderUpdate.md @@ -15,7 +15,7 @@ a order |**discountLines** | [**List<OrderDiscountLinesRequest>**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.3.0/reference/orderscreatediscountline) that are applied to the order. | [optional] | |**fiscalEntity** | [**OrderUpdateFiscalEntityRequest**](OrderUpdateFiscalEntityRequest.md) | | [optional] | |**lineItems** | [**List<Product>**](Product.md) | List of [products](https://developers.conekta.com/v2.3.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | [optional] | -|**metadata** | | | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | | [optional] | |**preAuthorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional] | |**shippingContact** | [**CustomerShippingContactsRequest**](CustomerShippingContactsRequest.md) | | [optional] | |**shippingLines** | [**List<ShippingRequest>**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.3.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] | diff --git a/docs/OrdersApi.md b/docs/OrdersApi.md index d4d390a..80f99a2 100644 --- a/docs/OrdersApi.md +++ b/docs/OrdersApi.md @@ -96,7 +96,7 @@ public class Example { ## createOrder -> OrderResponse createOrder(orderRequest, acceptLanguage, xChildCompanyId) +> OrderResponse createOrder(orderRequest, acceptLanguage, xChildCompanyId, idempotencyKey) Create order @@ -126,8 +126,9 @@ public class Example { OrderRequest orderRequest = new OrderRequest(); // OrderRequest | requested field for order String acceptLanguage = "es"; // String | Use for knowing which language to use String xChildCompanyId = "6441b6376b60c3a638da80af"; // String | In the case of a holding company, the company id of the child company to which will process the request. + String idempotencyKey = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"; // String | Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. try { - OrderResponse result = apiInstance.createOrder(orderRequest, acceptLanguage, xChildCompanyId); + OrderResponse result = apiInstance.createOrder(orderRequest, acceptLanguage, xChildCompanyId, idempotencyKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OrdersApi#createOrder"); @@ -148,6 +149,7 @@ public class Example { | **orderRequest** | [**OrderRequest**](OrderRequest.md)| requested field for order | | | **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] | | **xChildCompanyId** | **String**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] | +| **idempotencyKey** | **String**| Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. | [optional] | ### Return type @@ -253,7 +255,7 @@ public class Example { ## getOrders -> GetOrdersResponse getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous, paymentStatus, lastPaymentInfoStatus, createdAt, createdAtGte, createdAtLte, updatedAtGte, updatedAtLte) +> GetOrdersResponse getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous, paymentStatus, lastPaymentInfoStatus, createdAt, createdAtGte, createdAtLte, updatedAtGte, updatedAtLte, amount) Get a list of Orders @@ -293,8 +295,9 @@ public class Example { Long createdAtLte = 1612137600L; // Long | created at less than or equal to Long updatedAtGte = 1612137600L; // Long | updated at greater than or equal to Long updatedAtLte = 1612137600L; // Long | updated at less than or equal to + Integer amount = 10000; // Integer | Filters by amount equal to the given value, in cents try { - GetOrdersResponse result = apiInstance.getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous, paymentStatus, lastPaymentInfoStatus, createdAt, createdAtGte, createdAtLte, updatedAtGte, updatedAtLte); + GetOrdersResponse result = apiInstance.getOrders(acceptLanguage, xChildCompanyId, limit, search, next, previous, paymentStatus, lastPaymentInfoStatus, createdAt, createdAtGte, createdAtLte, updatedAtGte, updatedAtLte, amount); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OrdersApi#getOrders"); @@ -325,6 +328,7 @@ public class Example { | **createdAtLte** | **Long**| created at less than or equal to | [optional] | | **updatedAtGte** | **Long**| updated at greater than or equal to | [optional] | | **updatedAtLte** | **Long**| updated at less than or equal to | [optional] | +| **amount** | **Integer**| Filters by amount equal to the given value, in cents | [optional] | ### Return type diff --git a/docs/OrdersUpdateTaxesRequest.md b/docs/OrdersUpdateTaxesRequest.md index 03c4c4e..e35bb21 100644 --- a/docs/OrdersUpdateTaxesRequest.md +++ b/docs/OrdersUpdateTaxesRequest.md @@ -10,7 +10,7 @@ create new taxes for an existing order |------------ | ------------- | ------------- | -------------| |**amount** | **Long** | The amount to be collected for tax in cents | [optional] | |**description** | **String** | description or tax's name | [optional] | -|**metadata** | | | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | | [optional] | diff --git a/docs/PaymentLinkApi.md b/docs/PaymentLinkApi.md index a0f4b11..8c54246 100644 --- a/docs/PaymentLinkApi.md +++ b/docs/PaymentLinkApi.md @@ -9,7 +9,6 @@ All URIs are relative to *https://api.conekta.io* | [**emailCheckout**](PaymentLinkApi.md#emailCheckout) | **POST** /checkouts/{id}/email | Send an email | | [**getCheckout**](PaymentLinkApi.md#getCheckout) | **GET** /checkouts/{id} | Get a payment link by ID | | [**getCheckouts**](PaymentLinkApi.md#getCheckouts) | **GET** /checkouts | Get a list of payment links | -| [**smsCheckout**](PaymentLinkApi.md#smsCheckout) | **POST** /checkouts/{id}/sms | Send an sms | @@ -92,7 +91,7 @@ public class Example { ## createCheckout -> CheckoutResponse createCheckout(checkout, acceptLanguage, xChildCompanyId) +> CheckoutResponse createCheckout(checkout, acceptLanguage, xChildCompanyId, idempotencyKey) Create Unique Payment Link @@ -120,8 +119,9 @@ public class Example { Checkout checkout = new Checkout(); // Checkout | requested field for checkout String acceptLanguage = "es"; // String | Use for knowing which language to use String xChildCompanyId = "6441b6376b60c3a638da80af"; // String | In the case of a holding company, the company id of the child company to which will process the request. + String idempotencyKey = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"; // String | Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. try { - CheckoutResponse result = apiInstance.createCheckout(checkout, acceptLanguage, xChildCompanyId); + CheckoutResponse result = apiInstance.createCheckout(checkout, acceptLanguage, xChildCompanyId, idempotencyKey); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PaymentLinkApi#createCheckout"); @@ -142,6 +142,7 @@ public class Example { | **checkout** | [**Checkout**](Checkout.md)| requested field for checkout | | | **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] | | **xChildCompanyId** | **String**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] | +| **idempotencyKey** | **String**| Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. | [optional] | ### Return type @@ -405,82 +406,3 @@ public class Example { | **422** | parameter validation error | - | | **500** | internal server error | - | - -## smsCheckout - -> CheckoutResponse smsCheckout(id, smsCheckoutRequest, acceptLanguage, xChildCompanyId) - -Send an sms - -### Example - -```java -// Import classes: -import com.conekta.ApiClient; -import com.conekta.ApiException; -import com.conekta.Configuration; -import com.conekta.auth.*; -import com.conekta.model.*; -import com.conekta.PaymentLinkApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.conekta.io"); - - // Configure HTTP bearer authorization: bearerAuth - HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); - bearerAuth.setBearerToken("BEARER TOKEN"); - - PaymentLinkApi apiInstance = new PaymentLinkApi(defaultClient); - String id = "6307a60c41de27127515a575"; // String | Identifier of the resource - SmsCheckoutRequest smsCheckoutRequest = new SmsCheckoutRequest(); // SmsCheckoutRequest | requested field for sms checkout - String acceptLanguage = "es"; // String | Use for knowing which language to use - String xChildCompanyId = "6441b6376b60c3a638da80af"; // String | In the case of a holding company, the company id of the child company to which will process the request. - try { - CheckoutResponse result = apiInstance.smsCheckout(id, smsCheckoutRequest, acceptLanguage, xChildCompanyId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PaymentLinkApi#smsCheckout"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **id** | **String**| Identifier of the resource | | -| **smsCheckoutRequest** | [**SmsCheckoutRequest**](SmsCheckoutRequest.md)| requested field for sms checkout | | -| **acceptLanguage** | **String**| Use for knowing which language to use | [optional] [default to es] [enum: es, en] | -| **xChildCompanyId** | **String**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] | - -### Return type - -[**CheckoutResponse**](CheckoutResponse.md) - -### Authorization - -[bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/vnd.conekta-v2.3.0+json - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | successful operation | * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
| -| **401** | authentication error | - | -| **402** | payment required error | - | -| **404** | not found entity | - | -| **422** | parameter validation error | - | -| **500** | internal server error | - | - diff --git a/docs/PaymentMethodBnplRequest.md b/docs/PaymentMethodBnplRequest.md index 695f470..5101b5c 100644 --- a/docs/PaymentMethodBnplRequest.md +++ b/docs/PaymentMethodBnplRequest.md @@ -8,8 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**type** | **String** | Type of the payment method | | -|**cancelUrl** | **String** | URL to redirect the customer after a canceled payment | | -|**canNotExpire** | **Boolean** | Indicates if the payment method can not expire | | +|**cancelUrl** | **String** | Optional URL to redirect the customer after a canceled payment | [optional] | +|**expiresAt** | **Long** | Optional expiry for the BNPL order, expressed in seconds since the Unix epoch. Defaults to one month from creation when omitted. | [optional] | |**failureUrl** | **String** | URL to redirect the customer after a failed payment | | |**productType** | [**ProductTypeEnum**](#ProductTypeEnum) | Product type of the payment method, use for the payment method to know the product type | | |**successUrl** | **String** | URL to redirect the customer after a successful payment | | diff --git a/docs/PaymentMethodCardRequest.md b/docs/PaymentMethodCardRequest.md index cb22bb5..4f42257 100644 --- a/docs/PaymentMethodCardRequest.md +++ b/docs/PaymentMethodCardRequest.md @@ -11,8 +11,9 @@ |**cvc** | **String** | Card security code | | |**expMonth** | **String** | Card expiration month | | |**expYear** | **String** | Card expiration year | | -|**name** | **String** | Cardholder name | | +|**name** | **String** | Cardholder name. Must include first and last name separated by a space; single-word names are rejected. Letters (including accented Latin characters), spaces, and the characters , . ' - are accepted; digits and other symbols are rejected. | | |**number** | **String** | Card number | | +|**contractId** | **String** | Optional merchant-supplied identifier (exactly 10 characters) that links a card transaction to a recurring/subscription contract at the acquiring bank. Forwarded to the bank gateway and stored on the resulting charge. Accepted on creation only; ignored on update. Do not place sensitive bank data here — the value is returned in charge responses. | [optional] | |**customerIpAddress** | **String** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional] | diff --git a/docs/Product.md b/docs/Product.md index ec9cec9..f0075bc 100644 --- a/docs/Product.md +++ b/docs/Product.md @@ -10,7 +10,7 @@ |**antifraudInfo** | **Map<String, Object>** | | [optional] | |**brand** | **String** | The brand of the item. | [optional] | |**description** | **String** | Short description of the item | [optional] | -|**metadata** | **Map<String, Object>** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | It is a key/value hash that can hold custom fields. Maximum 100 elements. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. | [optional] | |**name** | **String** | The name of the item. It will be displayed in the order. | | |**quantity** | **Integer** | The quantity of the item in the order. | | |**sku** | **String** | The stock keeping unit for the item. It is used to identify the item in the order. | [optional] | diff --git a/docs/ProductDataResponse.md b/docs/ProductDataResponse.md index c1f20a6..4596f13 100644 --- a/docs/ProductDataResponse.md +++ b/docs/ProductDataResponse.md @@ -10,7 +10,7 @@ |**antifraudInfo** | **Map<String, Object>** | | [optional] | |**brand** | **String** | The brand of the item. | [optional] | |**description** | **String** | Short description of the item | [optional] | -|**metadata** | **Map<String, Object>** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | It is a key/value hash that can hold custom fields. Maximum 100 elements. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. | [optional] | |**name** | **String** | The name of the item. It will be displayed in the order. | | |**quantity** | **Integer** | The quantity of the item in the order. | | |**sku** | **String** | The stock keeping unit for the item. It is used to identify the item in the order. | [optional] | diff --git a/docs/ProductOrderResponse.md b/docs/ProductOrderResponse.md index a636710..dcd3e20 100644 --- a/docs/ProductOrderResponse.md +++ b/docs/ProductOrderResponse.md @@ -10,7 +10,7 @@ |**antifraudInfo** | **Map<String, Object>** | | [optional] | |**brand** | **String** | The brand of the item. | [optional] | |**description** | **String** | Short description of the item | [optional] | -|**metadata** | **Map<String, Object>** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | It is a key/value hash that can hold custom fields. Maximum 100 elements. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. | [optional] | |**name** | **String** | The name of the item. It will be displayed in the order. | | |**quantity** | **Integer** | The quantity of the item in the order. | | |**sku** | **String** | The stock keeping unit for the item. It is used to identify the item in the order. | [optional] | diff --git a/docs/ResendEventRequest.md b/docs/ResendEventRequest.md index e8ffbd1..a70ec34 100644 --- a/docs/ResendEventRequest.md +++ b/docs/ResendEventRequest.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**webhooksIds** | **List<String>** | webhooks ids to resend event | | +|**webhooksIds** | **List<String>** | webhooks ids to resend event | [optional] | diff --git a/docs/ShippingContactAddress.md b/docs/ShippingContactAddress.md new file mode 100644 index 0000000..cb99e61 --- /dev/null +++ b/docs/ShippingContactAddress.md @@ -0,0 +1,20 @@ + + +# ShippingContactAddress + +Address of the person who will receive the order + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**street1** | **String** | Street and number of the delivery address. | [optional] | +|**street2** | **String** | Apartment, suite or interior reference for the delivery address. | [optional] | +|**postalCode** | **String** | Postal code of the delivery address. For Mexican addresses (country MX) it must be a 5-digit postal code. | [optional] | +|**city** | **String** | City of the delivery address. Must contain at least two consecutive ASCII letters. | [optional] | +|**state** | **String** | State of the delivery address. | [optional] | +|**country** | **String** | Country of the delivery address. This field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). | [optional] | +|**residential** | **Boolean** | Indicates whether the delivery address is residential. | [optional] | + + + diff --git a/docs/ShippingLinesDataResponse.md b/docs/ShippingLinesDataResponse.md index e007b1d..051f68d 100644 --- a/docs/ShippingLinesDataResponse.md +++ b/docs/ShippingLinesDataResponse.md @@ -11,7 +11,7 @@ |**carrier** | **String** | Carrier name for the shipment | [optional] | |**trackingNumber** | **String** | Tracking number can be used to track the shipment | [optional] | |**method** | **String** | Method of shipment | [optional] | -|**metadata** | **Map<String, Object>** | Hash where the user can send additional information for each 'shipping'. | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | Hash where the user can send additional information for each 'shipping'. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. | [optional] | |**id** | **String** | | [optional] | |**_object** | **String** | | [optional] | |**parentId** | **String** | | [optional] | diff --git a/docs/ShippingOrderResponse.md b/docs/ShippingOrderResponse.md index 6345f79..0b1a483 100644 --- a/docs/ShippingOrderResponse.md +++ b/docs/ShippingOrderResponse.md @@ -11,7 +11,7 @@ |**carrier** | **String** | Carrier name for the shipment | [optional] | |**trackingNumber** | **String** | Tracking number can be used to track the shipment | [optional] | |**method** | **String** | Method of shipment | [optional] | -|**metadata** | **Map<String, Object>** | Hash where the user can send additional information for each 'shipping'. | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | Hash where the user can send additional information for each 'shipping'. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. | [optional] | |**id** | **String** | | [optional] | |**_object** | **String** | | [optional] | |**parentId** | **String** | | [optional] | diff --git a/docs/ShippingRequest.md b/docs/ShippingRequest.md index cb977f7..c5cd256 100644 --- a/docs/ShippingRequest.md +++ b/docs/ShippingRequest.md @@ -11,7 +11,7 @@ |**carrier** | **String** | Carrier name for the shipment | [optional] | |**trackingNumber** | **String** | Tracking number can be used to track the shipment | [optional] | |**method** | **String** | Method of shipment | [optional] | -|**metadata** | **Map<String, Object>** | Hash where the user can send additional information for each 'shipping'. | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | Hash where the user can send additional information for each 'shipping'. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. | [optional] | diff --git a/docs/SmsCheckoutRequest.md b/docs/SmsCheckoutRequest.md deleted file mode 100644 index c42d59a..0000000 --- a/docs/SmsCheckoutRequest.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# SmsCheckoutRequest - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**phonenumber** | **String** | | | - - - diff --git a/docs/TaxLinesDataResponse.md b/docs/TaxLinesDataResponse.md index 65e37d0..592d03c 100644 --- a/docs/TaxLinesDataResponse.md +++ b/docs/TaxLinesDataResponse.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**amount** | **Long** | The amount to be collected for tax in cents | | |**description** | **String** | description or tax's name | | -|**metadata** | **Map<String, Object>** | | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | | [optional] | |**id** | **String** | | | |**_object** | **String** | | [optional] | |**parentId** | **String** | | [optional] | diff --git a/docs/UpdateCustomerFiscalEntitiesResponse.md b/docs/UpdateCustomerFiscalEntitiesResponse.md index 980924b..db575ed 100644 --- a/docs/UpdateCustomerFiscalEntitiesResponse.md +++ b/docs/UpdateCustomerFiscalEntitiesResponse.md @@ -11,7 +11,7 @@ |**taxId** | **String** | | [optional] | |**email** | **String** | | [optional] | |**phone** | **String** | | [optional] | -|**metadata** | | | [optional] | +|**metadata** | **Map<String, Object>** | | [optional] | |**companyName** | **String** | | [optional] | |**id** | **String** | | | |**_object** | **String** | | | diff --git a/docs/UpdateFiscalEntityRequest.md b/docs/UpdateFiscalEntityRequest.md index 602d654..46f5503 100644 --- a/docs/UpdateFiscalEntityRequest.md +++ b/docs/UpdateFiscalEntityRequest.md @@ -11,7 +11,7 @@ |**taxId** | **String** | | [optional] | |**email** | **String** | | [optional] | |**phone** | **String** | | [optional] | -|**metadata** | | | [optional] | +|**metadata** | **Map<String, Object>** | | [optional] | |**companyName** | **String** | | [optional] | diff --git a/docs/UpdateProduct.md b/docs/UpdateProduct.md index 46686e4..f88c95d 100644 --- a/docs/UpdateProduct.md +++ b/docs/UpdateProduct.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**antifraudInfo** | | | [optional] | +|**antifraudInfo** | **Map<String, Object>** | | [optional] | |**description** | **String** | | [optional] | |**sku** | **String** | | [optional] | |**name** | **String** | | [optional] | @@ -15,7 +15,7 @@ |**quantity** | **Integer** | | [optional] | |**tags** | **List<String>** | | [optional] | |**brand** | **String** | | [optional] | -|**metadata** | | | [optional] | +|**metadata** | [**Map<String, OrderTaxRequestMetadataValue>**](OrderTaxRequestMetadataValue.md) | | [optional] | diff --git a/pom.xml b/pom.xml index d993a0c..d1ad67b 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ ct-conekta-java jar ct-conekta-java - 9.0.0 + 9.0.1 https://developers.conekta.com/ This is a java library that allows interaction with https://api.conekta.io API. diff --git a/src/main/java/com/conekta/AntifraudApi.java b/src/main/java/com/conekta/AntifraudApi.java index b0eb38b..3a9b521 100644 --- a/src/main/java/com/conekta/AntifraudApi.java +++ b/src/main/java/com/conekta/AntifraudApi.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class AntifraudApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/ApiClient.java b/src/main/java/com/conekta/ApiClient.java index b5e25d4..4d679ff 100644 --- a/src/main/java/com/conekta/ApiClient.java +++ b/src/main/java/com/conekta/ApiClient.java @@ -85,7 +85,7 @@ /** *

ApiClient class.

*/ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ApiClient extends JavaTimeFormatter { protected static final Pattern JSON_MIME_PATTERN = Pattern.compile("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); @@ -99,7 +99,7 @@ public class ApiClient extends JavaTimeFormatter { private JSONObject getConektaUserAgent() { JSONObject userAgent = new JSONObject(); - userAgent.put("bindings_version", "9.0.0"); + userAgent.put("bindings_version", "9.0.1"); userAgent.put("lang", "java"); userAgent.put("lang_version", System.getProperty("java.version")); userAgent.put("publisher", "conekta"); @@ -151,7 +151,7 @@ public ApiClient(Map authMap) { this.dateFormat = new RFC3339DateFormat(); // Set default User-Agent. - setUserAgent("Conekta/v2 JavaBindings/9.0.0"); + setUserAgent("Conekta/v2 JavaBindings/9.0.1"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap<>(); diff --git a/src/main/java/com/conekta/ApiException.java b/src/main/java/com/conekta/ApiException.java index cc550c4..8e370e8 100644 --- a/src/main/java/com/conekta/ApiException.java +++ b/src/main/java/com/conekta/ApiException.java @@ -19,7 +19,7 @@ /** * API Exception */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ApiException extends RuntimeException { private static final long serialVersionUID = 1L; diff --git a/src/main/java/com/conekta/ApiKeysApi.java b/src/main/java/com/conekta/ApiKeysApi.java index 5ebaa6a..7f88640 100644 --- a/src/main/java/com/conekta/ApiKeysApi.java +++ b/src/main/java/com/conekta/ApiKeysApi.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ApiKeysApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/ApplePayApi.java b/src/main/java/com/conekta/ApplePayApi.java new file mode 100644 index 0000000..ab05039 --- /dev/null +++ b/src/main/java/com/conekta/ApplePayApi.java @@ -0,0 +1,106 @@ +package com.conekta; + +import com.conekta.ApiException; +import com.conekta.ApiClient; +import com.conekta.ApiResponse; +import com.conekta.Configuration; +import com.conekta.Pair; + +import javax.ws.rs.core.GenericType; + +import com.conekta.model.ApplePaySessionRequest; +import com.conekta.model.ApplePaySessionResponse; +import com.conekta.model.Error; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class ApplePayApi { + private ApiClient apiClient; + + public ApplePayApi() { + this(Configuration.getDefaultApiClient()); + } + + public ApplePayApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Create Apple Pay Session + * Validate an Apple Pay merchant session using Conekta's Apple Pay certificates. Call this endpoint from your backend with the `validationURL` received in the `onvalidatemerchant` event and return the response to the browser to complete the merchant validation. This endpoint does not require authentication, it is meant to be called during the Apple Pay checkout flow. + * @param applePaySessionRequest requested fields for creating an Apple Pay session (required) + * @param acceptLanguage Use for knowing which language to use (optional, default to es) + * @return ApplePaySessionResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
201 The validated Apple Pay merchant session. * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
422 parameter validation error -
500 internal server error -
+ */ + public ApplePaySessionResponse createApplePaySession(@javax.annotation.Nonnull ApplePaySessionRequest applePaySessionRequest, @javax.annotation.Nullable String acceptLanguage) throws ApiException { + return createApplePaySessionWithHttpInfo(applePaySessionRequest, acceptLanguage).getData(); + } + + /** + * Create Apple Pay Session + * Validate an Apple Pay merchant session using Conekta's Apple Pay certificates. Call this endpoint from your backend with the `validationURL` received in the `onvalidatemerchant` event and return the response to the browser to complete the merchant validation. This endpoint does not require authentication, it is meant to be called during the Apple Pay checkout flow. + * @param applePaySessionRequest requested fields for creating an Apple Pay session (required) + * @param acceptLanguage Use for knowing which language to use (optional, default to es) + * @return ApiResponse<ApplePaySessionResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
201 The validated Apple Pay merchant session. * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
422 parameter validation error -
500 internal server error -
+ */ + public ApiResponse createApplePaySessionWithHttpInfo(@javax.annotation.Nonnull ApplePaySessionRequest applePaySessionRequest, @javax.annotation.Nullable String acceptLanguage) throws ApiException { + // Check required parameters + if (applePaySessionRequest == null) { + throw new ApiException(400, "Missing the required parameter 'applePaySessionRequest' when calling createApplePaySession"); + } + + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (acceptLanguage != null) { + localVarHeaderParams.put("Accept-Language", apiClient.parameterToString(acceptLanguage)); + } + + String localVarAccept = apiClient.selectHeaderAccept("application/json", "application/vnd.conekta-v2.3.0+json"); + String localVarContentType = apiClient.selectHeaderContentType("application/json"); + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI("ApplePayApi.createApplePaySession", "/apple_pay/session", "POST", new ArrayList<>(), applePaySessionRequest, + localVarHeaderParams, new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, + null, localVarReturnType, false); + } +} diff --git a/src/main/java/com/conekta/BalancesApi.java b/src/main/java/com/conekta/BalancesApi.java index 36fcd81..243ad1a 100644 --- a/src/main/java/com/conekta/BalancesApi.java +++ b/src/main/java/com/conekta/BalancesApi.java @@ -17,7 +17,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class BalancesApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/ChargebacksApi.java b/src/main/java/com/conekta/ChargebacksApi.java new file mode 100644 index 0000000..fc96ea3 --- /dev/null +++ b/src/main/java/com/conekta/ChargebacksApi.java @@ -0,0 +1,444 @@ +package com.conekta; + +import com.conekta.ApiException; +import com.conekta.ApiClient; +import com.conekta.ApiResponse; +import com.conekta.Configuration; +import com.conekta.Pair; + +import javax.ws.rs.core.GenericType; + +import com.conekta.model.ChargebackEvidenceFileResponse; +import com.conekta.model.ChargebackEvidenceTypeResponse; +import com.conekta.model.ChargebackFilesBatchResponse; +import com.conekta.model.Error; +import java.io.File; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class ChargebacksApi { + private ApiClient apiClient; + + public ChargebacksApi() { + this(Configuration.getDefaultApiClient()); + } + + public ChargebacksApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get Chargeback Evidence Types + * Retrieve the catalog of evidence types accepted for a chargeback, including which are mandatory and their allowed file formats. + * @param chargeId Identifier of the charge resource (required) + * @param chargebackId Identifier of the chargeback resource (required) + * @param acceptLanguage Use for knowing which language to use (optional, default to es) + * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @return List<ChargebackEvidenceTypeResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + + +
Response Details
Status Code Description Response Headers
200 The list of evidence types accepted for the chargeback. * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
400 bad request -
401 authentication error -
404 not found entity -
500 internal server error -
+ */ + public List getChargebackEvidenceTypes(@javax.annotation.Nonnull String chargeId, @javax.annotation.Nonnull String chargebackId, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { + return getChargebackEvidenceTypesWithHttpInfo(chargeId, chargebackId, acceptLanguage, xChildCompanyId).getData(); + } + + /** + * Get Chargeback Evidence Types + * Retrieve the catalog of evidence types accepted for a chargeback, including which are mandatory and their allowed file formats. + * @param chargeId Identifier of the charge resource (required) + * @param chargebackId Identifier of the chargeback resource (required) + * @param acceptLanguage Use for knowing which language to use (optional, default to es) + * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @return ApiResponse<List<ChargebackEvidenceTypeResponse>> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + + +
Response Details
Status Code Description Response Headers
200 The list of evidence types accepted for the chargeback. * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
400 bad request -
401 authentication error -
404 not found entity -
500 internal server error -
+ */ + public ApiResponse> getChargebackEvidenceTypesWithHttpInfo(@javax.annotation.Nonnull String chargeId, @javax.annotation.Nonnull String chargebackId, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { + // Check required parameters + if (chargeId == null) { + throw new ApiException(400, "Missing the required parameter 'chargeId' when calling getChargebackEvidenceTypes"); + } + if (chargebackId == null) { + throw new ApiException(400, "Missing the required parameter 'chargebackId' when calling getChargebackEvidenceTypes"); + } + + // Path parameters + String localVarPath = "/charges/{charge_id}/chargebacks/{chargeback_id}/evidence-types" + .replaceAll("\\{charge_id}", apiClient.escapeString(chargeId.toString())) + .replaceAll("\\{chargeback_id}", apiClient.escapeString(chargebackId.toString())); + + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (acceptLanguage != null) { + localVarHeaderParams.put("Accept-Language", apiClient.parameterToString(acceptLanguage)); + } + if (xChildCompanyId != null) { + localVarHeaderParams.put("X-Child-Company-Id", apiClient.parameterToString(xChildCompanyId)); + } + + String localVarAccept = apiClient.selectHeaderAccept("application/vnd.conekta-v2.3.0+json"); + String localVarContentType = apiClient.selectHeaderContentType(); + String[] localVarAuthNames = new String[] {"bearerAuth"}; + GenericType> localVarReturnType = new GenericType>() {}; + return apiClient.invokeAPI("ChargebacksApi.getChargebackEvidenceTypes", localVarPath, "GET", new ArrayList<>(), null, + localVarHeaderParams, new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Get Chargeback File + * Retrieve the metadata and a presigned download URL for a single chargeback evidence file. + * @param chargeId Identifier of the charge resource (required) + * @param chargebackId Identifier of the chargeback resource (required) + * @param fileId Identifier of the chargeback evidence file (required) + * @param acceptLanguage Use for knowing which language to use (optional, default to es) + * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @return ChargebackEvidenceFileResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + + +
Response Details
Status Code Description Response Headers
200 The requested evidence file. * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
400 bad request -
401 authentication error -
404 not found entity -
500 internal server error -
+ */ + public ChargebackEvidenceFileResponse getChargebackFile(@javax.annotation.Nonnull String chargeId, @javax.annotation.Nonnull String chargebackId, @javax.annotation.Nonnull String fileId, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { + return getChargebackFileWithHttpInfo(chargeId, chargebackId, fileId, acceptLanguage, xChildCompanyId).getData(); + } + + /** + * Get Chargeback File + * Retrieve the metadata and a presigned download URL for a single chargeback evidence file. + * @param chargeId Identifier of the charge resource (required) + * @param chargebackId Identifier of the chargeback resource (required) + * @param fileId Identifier of the chargeback evidence file (required) + * @param acceptLanguage Use for knowing which language to use (optional, default to es) + * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @return ApiResponse<ChargebackEvidenceFileResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + + +
Response Details
Status Code Description Response Headers
200 The requested evidence file. * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
400 bad request -
401 authentication error -
404 not found entity -
500 internal server error -
+ */ + public ApiResponse getChargebackFileWithHttpInfo(@javax.annotation.Nonnull String chargeId, @javax.annotation.Nonnull String chargebackId, @javax.annotation.Nonnull String fileId, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { + // Check required parameters + if (chargeId == null) { + throw new ApiException(400, "Missing the required parameter 'chargeId' when calling getChargebackFile"); + } + if (chargebackId == null) { + throw new ApiException(400, "Missing the required parameter 'chargebackId' when calling getChargebackFile"); + } + if (fileId == null) { + throw new ApiException(400, "Missing the required parameter 'fileId' when calling getChargebackFile"); + } + + // Path parameters + String localVarPath = "/charges/{charge_id}/chargebacks/{chargeback_id}/files/{file_id}" + .replaceAll("\\{charge_id}", apiClient.escapeString(chargeId.toString())) + .replaceAll("\\{chargeback_id}", apiClient.escapeString(chargebackId.toString())) + .replaceAll("\\{file_id}", apiClient.escapeString(fileId.toString())); + + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (acceptLanguage != null) { + localVarHeaderParams.put("Accept-Language", apiClient.parameterToString(acceptLanguage)); + } + if (xChildCompanyId != null) { + localVarHeaderParams.put("X-Child-Company-Id", apiClient.parameterToString(xChildCompanyId)); + } + + String localVarAccept = apiClient.selectHeaderAccept("application/vnd.conekta-v2.3.0+json"); + String localVarContentType = apiClient.selectHeaderContentType(); + String[] localVarAuthNames = new String[] {"bearerAuth"}; + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI("ChargebacksApi.getChargebackFile", localVarPath, "GET", new ArrayList<>(), null, + localVarHeaderParams, new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Get Chargeback Files + * Retrieve the list of evidence files uploaded for a chargeback. + * @param chargeId Identifier of the charge resource (required) + * @param chargebackId Identifier of the chargeback resource (required) + * @param acceptLanguage Use for knowing which language to use (optional, default to es) + * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @return List<ChargebackEvidenceFileResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + + +
Response Details
Status Code Description Response Headers
200 A list of evidence files for the chargeback. * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
400 bad request -
401 authentication error -
404 not found entity -
500 internal server error -
+ */ + public List getChargebackFiles(@javax.annotation.Nonnull String chargeId, @javax.annotation.Nonnull String chargebackId, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { + return getChargebackFilesWithHttpInfo(chargeId, chargebackId, acceptLanguage, xChildCompanyId).getData(); + } + + /** + * Get Chargeback Files + * Retrieve the list of evidence files uploaded for a chargeback. + * @param chargeId Identifier of the charge resource (required) + * @param chargebackId Identifier of the chargeback resource (required) + * @param acceptLanguage Use for knowing which language to use (optional, default to es) + * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @return ApiResponse<List<ChargebackEvidenceFileResponse>> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + + +
Response Details
Status Code Description Response Headers
200 A list of evidence files for the chargeback. * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
400 bad request -
401 authentication error -
404 not found entity -
500 internal server error -
+ */ + public ApiResponse> getChargebackFilesWithHttpInfo(@javax.annotation.Nonnull String chargeId, @javax.annotation.Nonnull String chargebackId, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { + // Check required parameters + if (chargeId == null) { + throw new ApiException(400, "Missing the required parameter 'chargeId' when calling getChargebackFiles"); + } + if (chargebackId == null) { + throw new ApiException(400, "Missing the required parameter 'chargebackId' when calling getChargebackFiles"); + } + + // Path parameters + String localVarPath = "/charges/{charge_id}/chargebacks/{chargeback_id}/files" + .replaceAll("\\{charge_id}", apiClient.escapeString(chargeId.toString())) + .replaceAll("\\{chargeback_id}", apiClient.escapeString(chargebackId.toString())); + + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (acceptLanguage != null) { + localVarHeaderParams.put("Accept-Language", apiClient.parameterToString(acceptLanguage)); + } + if (xChildCompanyId != null) { + localVarHeaderParams.put("X-Child-Company-Id", apiClient.parameterToString(xChildCompanyId)); + } + + String localVarAccept = apiClient.selectHeaderAccept("application/vnd.conekta-v2.3.0+json"); + String localVarContentType = apiClient.selectHeaderContentType(); + String[] localVarAuthNames = new String[] {"bearerAuth"}; + GenericType> localVarReturnType = new GenericType>() {}; + return apiClient.invokeAPI("ChargebacksApi.getChargebackFiles", localVarPath, "GET", new ArrayList<>(), null, + localVarHeaderParams, new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Upload Chargeback Evidence Files (Batch) + * Uploads multiple evidence files for a chargeback in a single request. Each part of the multipart body must be keyed by an evidence type (see the evidence-types endpoint for the valid values for this chargeback), with exactly one file per evidence type. Limits: at most 10 files per request, at most 2MB per file, and only application/pdf, image/jpeg or image/png content is accepted. The chargeback must be in the `action_required` status, and none of the submitted evidence types may already exist on the chargeback. On success the chargeback transitions to `pending_review`. + * @param chargeId Identifier of the charge resource (required) + * @param chargebackId Identifier of the chargeback resource (required) + * @param acceptLanguage Use for knowing which language to use (optional, default to es) + * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @param chargeInformation (optional) + * @param contract (optional) + * @param otherEvidence (optional) + * @param receiptOfShipment (optional) + * @param identification (optional) + * @param orderDetails (optional) + * @param termsAndConditions (optional) + * @param cardholderInformation (optional) + * @param proofInvalidateClaim (optional) + * @param internalValidations (optional) + * @param proofOfCancellation (optional) + * @param recurringContract (optional) + * @param proofOfReturn (optional) + * @param exhibit8 (optional) + * @param duplicateAnalysis (optional) + * @param fullEvidence (optional) + * @return ChargebackFilesBatchResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + + + +
Response Details
Status Code Description Response Headers
200 Files uploaded successfully. * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
400 bad request -
401 authentication error -
404 not found entity -
422 parameter validation error -
500 internal server error -
+ */ + public ChargebackFilesBatchResponse uploadChargebackFilesBatch(@javax.annotation.Nonnull String chargeId, @javax.annotation.Nonnull String chargebackId, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable File chargeInformation, @javax.annotation.Nullable File contract, @javax.annotation.Nullable File otherEvidence, @javax.annotation.Nullable File receiptOfShipment, @javax.annotation.Nullable File identification, @javax.annotation.Nullable File orderDetails, @javax.annotation.Nullable File termsAndConditions, @javax.annotation.Nullable File cardholderInformation, @javax.annotation.Nullable File proofInvalidateClaim, @javax.annotation.Nullable File internalValidations, @javax.annotation.Nullable File proofOfCancellation, @javax.annotation.Nullable File recurringContract, @javax.annotation.Nullable File proofOfReturn, @javax.annotation.Nullable File exhibit8, @javax.annotation.Nullable File duplicateAnalysis, @javax.annotation.Nullable File fullEvidence) throws ApiException { + return uploadChargebackFilesBatchWithHttpInfo(chargeId, chargebackId, acceptLanguage, xChildCompanyId, chargeInformation, contract, otherEvidence, receiptOfShipment, identification, orderDetails, termsAndConditions, cardholderInformation, proofInvalidateClaim, internalValidations, proofOfCancellation, recurringContract, proofOfReturn, exhibit8, duplicateAnalysis, fullEvidence).getData(); + } + + /** + * Upload Chargeback Evidence Files (Batch) + * Uploads multiple evidence files for a chargeback in a single request. Each part of the multipart body must be keyed by an evidence type (see the evidence-types endpoint for the valid values for this chargeback), with exactly one file per evidence type. Limits: at most 10 files per request, at most 2MB per file, and only application/pdf, image/jpeg or image/png content is accepted. The chargeback must be in the `action_required` status, and none of the submitted evidence types may already exist on the chargeback. On success the chargeback transitions to `pending_review`. + * @param chargeId Identifier of the charge resource (required) + * @param chargebackId Identifier of the chargeback resource (required) + * @param acceptLanguage Use for knowing which language to use (optional, default to es) + * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @param chargeInformation (optional) + * @param contract (optional) + * @param otherEvidence (optional) + * @param receiptOfShipment (optional) + * @param identification (optional) + * @param orderDetails (optional) + * @param termsAndConditions (optional) + * @param cardholderInformation (optional) + * @param proofInvalidateClaim (optional) + * @param internalValidations (optional) + * @param proofOfCancellation (optional) + * @param recurringContract (optional) + * @param proofOfReturn (optional) + * @param exhibit8 (optional) + * @param duplicateAnalysis (optional) + * @param fullEvidence (optional) + * @return ApiResponse<ChargebackFilesBatchResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + + + +
Response Details
Status Code Description Response Headers
200 Files uploaded successfully. * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
400 bad request -
401 authentication error -
404 not found entity -
422 parameter validation error -
500 internal server error -
+ */ + public ApiResponse uploadChargebackFilesBatchWithHttpInfo(@javax.annotation.Nonnull String chargeId, @javax.annotation.Nonnull String chargebackId, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable File chargeInformation, @javax.annotation.Nullable File contract, @javax.annotation.Nullable File otherEvidence, @javax.annotation.Nullable File receiptOfShipment, @javax.annotation.Nullable File identification, @javax.annotation.Nullable File orderDetails, @javax.annotation.Nullable File termsAndConditions, @javax.annotation.Nullable File cardholderInformation, @javax.annotation.Nullable File proofInvalidateClaim, @javax.annotation.Nullable File internalValidations, @javax.annotation.Nullable File proofOfCancellation, @javax.annotation.Nullable File recurringContract, @javax.annotation.Nullable File proofOfReturn, @javax.annotation.Nullable File exhibit8, @javax.annotation.Nullable File duplicateAnalysis, @javax.annotation.Nullable File fullEvidence) throws ApiException { + // Check required parameters + if (chargeId == null) { + throw new ApiException(400, "Missing the required parameter 'chargeId' when calling uploadChargebackFilesBatch"); + } + if (chargebackId == null) { + throw new ApiException(400, "Missing the required parameter 'chargebackId' when calling uploadChargebackFilesBatch"); + } + + // Path parameters + String localVarPath = "/charges/{charge_id}/chargebacks/{chargeback_id}/files/batch" + .replaceAll("\\{charge_id}", apiClient.escapeString(chargeId.toString())) + .replaceAll("\\{chargeback_id}", apiClient.escapeString(chargebackId.toString())); + + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (acceptLanguage != null) { + localVarHeaderParams.put("Accept-Language", apiClient.parameterToString(acceptLanguage)); + } + if (xChildCompanyId != null) { + localVarHeaderParams.put("X-Child-Company-Id", apiClient.parameterToString(xChildCompanyId)); + } + + // Form parameters + Map localVarFormParams = new LinkedHashMap<>(); + if (chargeInformation != null) { + localVarFormParams.put("charge_information", chargeInformation); + } + if (contract != null) { + localVarFormParams.put("contract", contract); + } + if (otherEvidence != null) { + localVarFormParams.put("other_evidence", otherEvidence); + } + if (receiptOfShipment != null) { + localVarFormParams.put("receipt_of_shipment", receiptOfShipment); + } + if (identification != null) { + localVarFormParams.put("identification", identification); + } + if (orderDetails != null) { + localVarFormParams.put("order_details", orderDetails); + } + if (termsAndConditions != null) { + localVarFormParams.put("terms_and_conditions", termsAndConditions); + } + if (cardholderInformation != null) { + localVarFormParams.put("cardholder_information", cardholderInformation); + } + if (proofInvalidateClaim != null) { + localVarFormParams.put("proof_invalidate_claim", proofInvalidateClaim); + } + if (internalValidations != null) { + localVarFormParams.put("internal_validations", internalValidations); + } + if (proofOfCancellation != null) { + localVarFormParams.put("proof_of_cancellation", proofOfCancellation); + } + if (recurringContract != null) { + localVarFormParams.put("recurring_contract", recurringContract); + } + if (proofOfReturn != null) { + localVarFormParams.put("proof_of_return", proofOfReturn); + } + if (exhibit8 != null) { + localVarFormParams.put("exhibit_8", exhibit8); + } + if (duplicateAnalysis != null) { + localVarFormParams.put("duplicate_analysis", duplicateAnalysis); + } + if (fullEvidence != null) { + localVarFormParams.put("full_evidence", fullEvidence); + } + + String localVarAccept = apiClient.selectHeaderAccept("application/vnd.conekta-v2.3.0+json"); + String localVarContentType = apiClient.selectHeaderContentType("multipart/form-data"); + String[] localVarAuthNames = new String[] {"bearerAuth"}; + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI("ChargebacksApi.uploadChargebackFilesBatch", localVarPath, "POST", new ArrayList<>(), null, + localVarHeaderParams, new LinkedHashMap<>(), localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } +} diff --git a/src/main/java/com/conekta/ChargesApi.java b/src/main/java/com/conekta/ChargesApi.java index 3669c24..c0083e1 100644 --- a/src/main/java/com/conekta/ChargesApi.java +++ b/src/main/java/com/conekta/ChargesApi.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ChargesApi { private ApiClient apiClient; @@ -129,6 +129,7 @@ public ApiResponse getChargesWithHttpInfo(@javax.annotation. * @param chargeRequest requested field for a charge (required) * @param acceptLanguage Use for knowing which language to use (optional, default to es) * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @param idempotencyKey Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. (optional) * @return ChargeOrderResponse * @throws ApiException if fails to make API call * @http.response.details @@ -142,8 +143,8 @@ public ApiResponse getChargesWithHttpInfo(@javax.annotation. 500 internal server error - */ - public ChargeOrderResponse ordersCreateCharge(@javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChargeRequest chargeRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { - return ordersCreateChargeWithHttpInfo(id, chargeRequest, acceptLanguage, xChildCompanyId).getData(); + public ChargeOrderResponse ordersCreateCharge(@javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChargeRequest chargeRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable String idempotencyKey) throws ApiException { + return ordersCreateChargeWithHttpInfo(id, chargeRequest, acceptLanguage, xChildCompanyId, idempotencyKey).getData(); } /** @@ -153,6 +154,7 @@ public ChargeOrderResponse ordersCreateCharge(@javax.annotation.Nonnull String i * @param chargeRequest requested field for a charge (required) * @param acceptLanguage Use for knowing which language to use (optional, default to es) * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @param idempotencyKey Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. (optional) * @return ApiResponse<ChargeOrderResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -166,7 +168,7 @@ public ChargeOrderResponse ordersCreateCharge(@javax.annotation.Nonnull String i 500 internal server error - */ - public ApiResponse ordersCreateChargeWithHttpInfo(@javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChargeRequest chargeRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { + public ApiResponse ordersCreateChargeWithHttpInfo(@javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChargeRequest chargeRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable String idempotencyKey) throws ApiException { // Check required parameters if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling ordersCreateCharge"); @@ -187,6 +189,9 @@ public ApiResponse ordersCreateChargeWithHttpInfo(@javax.an if (xChildCompanyId != null) { localVarHeaderParams.put("X-Child-Company-Id", apiClient.parameterToString(xChildCompanyId)); } + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } String localVarAccept = apiClient.selectHeaderAccept("application/vnd.conekta-v2.3.0+json"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); @@ -203,6 +208,7 @@ public ApiResponse ordersCreateChargeWithHttpInfo(@javax.an * @param chargeRequest requested field for a charge (required) * @param acceptLanguage Use for knowing which language to use (optional, default to es) * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @param idempotencyKey Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. (optional) * @return ChargesOrderResponse * @throws ApiException if fails to make API call * @http.response.details @@ -216,8 +222,8 @@ public ApiResponse ordersCreateChargeWithHttpInfo(@javax.an 500 internal server error - */ - public ChargesOrderResponse ordersCreateCharges(@javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChargeRequest chargeRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { - return ordersCreateChargesWithHttpInfo(id, chargeRequest, acceptLanguage, xChildCompanyId).getData(); + public ChargesOrderResponse ordersCreateCharges(@javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChargeRequest chargeRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable String idempotencyKey) throws ApiException { + return ordersCreateChargesWithHttpInfo(id, chargeRequest, acceptLanguage, xChildCompanyId, idempotencyKey).getData(); } /** @@ -227,6 +233,7 @@ public ChargesOrderResponse ordersCreateCharges(@javax.annotation.Nonnull String * @param chargeRequest requested field for a charge (required) * @param acceptLanguage Use for knowing which language to use (optional, default to es) * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @param idempotencyKey Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. (optional) * @return ApiResponse<ChargesOrderResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -240,7 +247,7 @@ public ChargesOrderResponse ordersCreateCharges(@javax.annotation.Nonnull String 500 internal server error - */ - public ApiResponse ordersCreateChargesWithHttpInfo(@javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChargeRequest chargeRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { + public ApiResponse ordersCreateChargesWithHttpInfo(@javax.annotation.Nonnull String id, @javax.annotation.Nonnull ChargeRequest chargeRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable String idempotencyKey) throws ApiException { // Check required parameters if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling ordersCreateCharges"); @@ -261,6 +268,9 @@ public ApiResponse ordersCreateChargesWithHttpInfo(@javax. if (xChildCompanyId != null) { localVarHeaderParams.put("X-Child-Company-Id", apiClient.parameterToString(xChildCompanyId)); } + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } String localVarAccept = apiClient.selectHeaderAccept("application/vnd.conekta-v2.3.0+json"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); diff --git a/src/main/java/com/conekta/CompaniesApi.java b/src/main/java/com/conekta/CompaniesApi.java index 3c2b1e2..7f1d5f3 100644 --- a/src/main/java/com/conekta/CompaniesApi.java +++ b/src/main/java/com/conekta/CompaniesApi.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CompaniesApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/Configuration.java b/src/main/java/com/conekta/Configuration.java index 780fb4f..fabbcb0 100644 --- a/src/main/java/com/conekta/Configuration.java +++ b/src/main/java/com/conekta/Configuration.java @@ -17,9 +17,9 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class Configuration { - public static final String VERSION = "9.0.0"; + public static final String VERSION = "9.0.1"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/src/main/java/com/conekta/CustomersApi.java b/src/main/java/com/conekta/CustomersApi.java index 1f0be52..42c6db8 100644 --- a/src/main/java/com/conekta/CustomersApi.java +++ b/src/main/java/com/conekta/CustomersApi.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomersApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/DiscountsApi.java b/src/main/java/com/conekta/DiscountsApi.java index 5ce8b9d..63ce39c 100644 --- a/src/main/java/com/conekta/DiscountsApi.java +++ b/src/main/java/com/conekta/DiscountsApi.java @@ -20,7 +20,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class DiscountsApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/EventsApi.java b/src/main/java/com/conekta/EventsApi.java index c231db8..614b150 100644 --- a/src/main/java/com/conekta/EventsApi.java +++ b/src/main/java/com/conekta/EventsApi.java @@ -20,7 +20,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class EventsApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/JSON.java b/src/main/java/com/conekta/JSON.java index 4be36d0..952ab7e 100644 --- a/src/main/java/com/conekta/JSON.java +++ b/src/main/java/com/conekta/JSON.java @@ -26,7 +26,7 @@ import javax.ws.rs.core.GenericType; import javax.ws.rs.ext.ContextResolver; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class JSON implements ContextResolver { private ObjectMapper mapper; diff --git a/src/main/java/com/conekta/JavaTimeFormatter.java b/src/main/java/com/conekta/JavaTimeFormatter.java index 4972202..2dbc91f 100644 --- a/src/main/java/com/conekta/JavaTimeFormatter.java +++ b/src/main/java/com/conekta/JavaTimeFormatter.java @@ -20,7 +20,7 @@ * Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class. * It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class JavaTimeFormatter { private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; diff --git a/src/main/java/com/conekta/LogsApi.java b/src/main/java/com/conekta/LogsApi.java index f5e53db..f5f02bc 100644 --- a/src/main/java/com/conekta/LogsApi.java +++ b/src/main/java/com/conekta/LogsApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class LogsApi { private ApiClient apiClient; @@ -124,6 +124,7 @@ public ApiResponse getLogByIdWithHttpInfo(@javax.annotati * @param search General order search, e.g. by mail, reference etc. (optional) * @param next next page (optional) * @param previous previous page (optional) + * @param methodIn Filters logs by HTTP method. The parameter can be sent multiple times to filter by more than one method, e.g. `method.in[]=POST&method.in[]=PUT` (optional) * @return LogsResponseForRequest * @throws ApiException if fails to make API call * @http.response.details @@ -135,8 +136,8 @@ public ApiResponse getLogByIdWithHttpInfo(@javax.annotati 500 internal server error - */ - public LogsResponseForRequest getLogs(@javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String search, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { - return getLogsWithHttpInfo(acceptLanguage, xChildCompanyId, limit, search, next, previous).getData(); + public LogsResponseForRequest getLogs(@javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String search, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable List methodIn) throws ApiException { + return getLogsWithHttpInfo(acceptLanguage, xChildCompanyId, limit, search, next, previous, methodIn).getData(); } /** @@ -148,6 +149,7 @@ public LogsResponseForRequest getLogs(@javax.annotation.Nullable String acceptLa * @param search General order search, e.g. by mail, reference etc. (optional) * @param next next page (optional) * @param previous previous page (optional) + * @param methodIn Filters logs by HTTP method. The parameter can be sent multiple times to filter by more than one method, e.g. `method.in[]=POST&method.in[]=PUT` (optional) * @return ApiResponse<LogsResponseForRequest> * @throws ApiException if fails to make API call * @http.response.details @@ -159,7 +161,7 @@ public LogsResponseForRequest getLogs(@javax.annotation.Nullable String acceptLa 500 internal server error - */ - public ApiResponse getLogsWithHttpInfo(@javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String search, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous) throws ApiException { + public ApiResponse getLogsWithHttpInfo(@javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String search, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable List methodIn) throws ApiException { // Query parameters List localVarQueryParams = new ArrayList<>( apiClient.parameterToPairs("", "limit", limit) @@ -167,6 +169,7 @@ public ApiResponse getLogsWithHttpInfo(@javax.annotation localVarQueryParams.addAll(apiClient.parameterToPairs("", "search", search)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "next", next)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "previous", previous)); + localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "method.in[]", methodIn)); // Header parameters Map localVarHeaderParams = new LinkedHashMap<>(); diff --git a/src/main/java/com/conekta/MonthlyInstallmentsApi.java b/src/main/java/com/conekta/MonthlyInstallmentsApi.java new file mode 100644 index 0000000..1c0da73 --- /dev/null +++ b/src/main/java/com/conekta/MonthlyInstallmentsApi.java @@ -0,0 +1,109 @@ +package com.conekta; + +import com.conekta.ApiException; +import com.conekta.ApiClient; +import com.conekta.ApiResponse; +import com.conekta.Configuration; +import com.conekta.Pair; + +import javax.ws.rs.core.GenericType; + +import com.conekta.model.Error; +import com.conekta.model.MonthlyInstallmentsValidateRequest; +import com.conekta.model.MonthlyInstallmentsValidateResponse; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class MonthlyInstallmentsApi { + private ApiClient apiClient; + + public MonthlyInstallmentsApi() { + this(Configuration.getDefaultApiClient()); + } + + public MonthlyInstallmentsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Validate Monthly Installments + * Returns the interest-free monthly installment plans available for a card BIN and an amount, so a checkout can offer only the plans a later charge will accept. Requires monthly installments to be enabled on the company. + * @param monthlyInstallmentsValidateRequest requested field for monthly installments validate (required) + * @param acceptLanguage Use for knowing which language to use (optional, default to es) + * @return MonthlyInstallmentsValidateResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 successful operation * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
401 authentication error -
422 parameter validation error -
500 internal server error -
+ */ + public MonthlyInstallmentsValidateResponse validateMonthlyInstallments(@javax.annotation.Nonnull MonthlyInstallmentsValidateRequest monthlyInstallmentsValidateRequest, @javax.annotation.Nullable String acceptLanguage) throws ApiException { + return validateMonthlyInstallmentsWithHttpInfo(monthlyInstallmentsValidateRequest, acceptLanguage).getData(); + } + + /** + * Validate Monthly Installments + * Returns the interest-free monthly installment plans available for a card BIN and an amount, so a checkout can offer only the plans a later charge will accept. Requires monthly installments to be enabled on the company. + * @param monthlyInstallmentsValidateRequest requested field for monthly installments validate (required) + * @param acceptLanguage Use for knowing which language to use (optional, default to es) + * @return ApiResponse<MonthlyInstallmentsValidateResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 successful operation * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
401 authentication error -
422 parameter validation error -
500 internal server error -
+ */ + public ApiResponse validateMonthlyInstallmentsWithHttpInfo(@javax.annotation.Nonnull MonthlyInstallmentsValidateRequest monthlyInstallmentsValidateRequest, @javax.annotation.Nullable String acceptLanguage) throws ApiException { + // Check required parameters + if (monthlyInstallmentsValidateRequest == null) { + throw new ApiException(400, "Missing the required parameter 'monthlyInstallmentsValidateRequest' when calling validateMonthlyInstallments"); + } + + // Header parameters + Map localVarHeaderParams = new LinkedHashMap<>(); + if (acceptLanguage != null) { + localVarHeaderParams.put("Accept-Language", apiClient.parameterToString(acceptLanguage)); + } + + String localVarAccept = apiClient.selectHeaderAccept("application/vnd.conekta-v2.3.0+json"); + String localVarContentType = apiClient.selectHeaderContentType("application/json"); + String[] localVarAuthNames = new String[] {"bearerAuth"}; + GenericType localVarReturnType = new GenericType() {}; + return apiClient.invokeAPI("MonthlyInstallmentsApi.validateMonthlyInstallments", "/monthly_installments/validate", "POST", new ArrayList<>(), monthlyInstallmentsValidateRequest, + localVarHeaderParams, new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } +} diff --git a/src/main/java/com/conekta/OrdersApi.java b/src/main/java/com/conekta/OrdersApi.java index d76daaf..1dc4a9c 100644 --- a/src/main/java/com/conekta/OrdersApi.java +++ b/src/main/java/com/conekta/OrdersApi.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrdersApi { private ApiClient apiClient; @@ -129,6 +129,7 @@ public ApiResponse cancelOrderWithHttpInfo(@javax.annotation.Nonn * @param orderRequest requested field for order (required) * @param acceptLanguage Use for knowing which language to use (optional, default to es) * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @param idempotencyKey Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. (optional) * @return OrderResponse * @throws ApiException if fails to make API call * @http.response.details @@ -142,8 +143,8 @@ public ApiResponse cancelOrderWithHttpInfo(@javax.annotation.Nonn 500 internal server error - */ - public OrderResponse createOrder(@javax.annotation.Nonnull OrderRequest orderRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { - return createOrderWithHttpInfo(orderRequest, acceptLanguage, xChildCompanyId).getData(); + public OrderResponse createOrder(@javax.annotation.Nonnull OrderRequest orderRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable String idempotencyKey) throws ApiException { + return createOrderWithHttpInfo(orderRequest, acceptLanguage, xChildCompanyId, idempotencyKey).getData(); } /** @@ -152,6 +153,7 @@ public OrderResponse createOrder(@javax.annotation.Nonnull OrderRequest orderReq * @param orderRequest requested field for order (required) * @param acceptLanguage Use for knowing which language to use (optional, default to es) * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @param idempotencyKey Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. (optional) * @return ApiResponse<OrderResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -165,7 +167,7 @@ public OrderResponse createOrder(@javax.annotation.Nonnull OrderRequest orderReq 500 internal server error - */ - public ApiResponse createOrderWithHttpInfo(@javax.annotation.Nonnull OrderRequest orderRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { + public ApiResponse createOrderWithHttpInfo(@javax.annotation.Nonnull OrderRequest orderRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable String idempotencyKey) throws ApiException { // Check required parameters if (orderRequest == null) { throw new ApiException(400, "Missing the required parameter 'orderRequest' when calling createOrder"); @@ -179,6 +181,9 @@ public ApiResponse createOrderWithHttpInfo(@javax.annotation.Nonn if (xChildCompanyId != null) { localVarHeaderParams.put("X-Child-Company-Id", apiClient.parameterToString(xChildCompanyId)); } + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } String localVarAccept = apiClient.selectHeaderAccept("application/vnd.conekta-v2.3.0+json"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); @@ -278,6 +283,7 @@ public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Non * @param createdAtLte created at less than or equal to (optional) * @param updatedAtGte updated at greater than or equal to (optional) * @param updatedAtLte updated at less than or equal to (optional) + * @param amount Filters by amount equal to the given value, in cents (optional) * @return GetOrdersResponse * @throws ApiException if fails to make API call * @http.response.details @@ -289,8 +295,8 @@ public ApiResponse getOrderByIdWithHttpInfo(@javax.annotation.Non 500 internal server error - */ - public GetOrdersResponse getOrders(@javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String search, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String paymentStatus, @javax.annotation.Nullable String lastPaymentInfoStatus, @javax.annotation.Nullable Long createdAt, @javax.annotation.Nullable Long createdAtGte, @javax.annotation.Nullable Long createdAtLte, @javax.annotation.Nullable Long updatedAtGte, @javax.annotation.Nullable Long updatedAtLte) throws ApiException { - return getOrdersWithHttpInfo(acceptLanguage, xChildCompanyId, limit, search, next, previous, paymentStatus, lastPaymentInfoStatus, createdAt, createdAtGte, createdAtLte, updatedAtGte, updatedAtLte).getData(); + public GetOrdersResponse getOrders(@javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String search, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String paymentStatus, @javax.annotation.Nullable String lastPaymentInfoStatus, @javax.annotation.Nullable Long createdAt, @javax.annotation.Nullable Long createdAtGte, @javax.annotation.Nullable Long createdAtLte, @javax.annotation.Nullable Long updatedAtGte, @javax.annotation.Nullable Long updatedAtLte, @javax.annotation.Nullable Integer amount) throws ApiException { + return getOrdersWithHttpInfo(acceptLanguage, xChildCompanyId, limit, search, next, previous, paymentStatus, lastPaymentInfoStatus, createdAt, createdAtGte, createdAtLte, updatedAtGte, updatedAtLte, amount).getData(); } /** @@ -309,6 +315,7 @@ public GetOrdersResponse getOrders(@javax.annotation.Nullable String acceptLangu * @param createdAtLte created at less than or equal to (optional) * @param updatedAtGte updated at greater than or equal to (optional) * @param updatedAtLte updated at less than or equal to (optional) + * @param amount Filters by amount equal to the given value, in cents (optional) * @return ApiResponse<GetOrdersResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -320,7 +327,7 @@ public GetOrdersResponse getOrders(@javax.annotation.Nullable String acceptLangu 500 internal server error - */ - public ApiResponse getOrdersWithHttpInfo(@javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String search, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String paymentStatus, @javax.annotation.Nullable String lastPaymentInfoStatus, @javax.annotation.Nullable Long createdAt, @javax.annotation.Nullable Long createdAtGte, @javax.annotation.Nullable Long createdAtLte, @javax.annotation.Nullable Long updatedAtGte, @javax.annotation.Nullable Long updatedAtLte) throws ApiException { + public ApiResponse getOrdersWithHttpInfo(@javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable Integer limit, @javax.annotation.Nullable String search, @javax.annotation.Nullable String next, @javax.annotation.Nullable String previous, @javax.annotation.Nullable String paymentStatus, @javax.annotation.Nullable String lastPaymentInfoStatus, @javax.annotation.Nullable Long createdAt, @javax.annotation.Nullable Long createdAtGte, @javax.annotation.Nullable Long createdAtLte, @javax.annotation.Nullable Long updatedAtGte, @javax.annotation.Nullable Long updatedAtLte, @javax.annotation.Nullable Integer amount) throws ApiException { // Query parameters List localVarQueryParams = new ArrayList<>( apiClient.parameterToPairs("", "limit", limit) @@ -335,6 +342,7 @@ public ApiResponse getOrdersWithHttpInfo(@javax.annotation.Nu localVarQueryParams.addAll(apiClient.parameterToPairs("", "created_at.lte", createdAtLte)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "updated_at.gte", updatedAtGte)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "updated_at.lte", updatedAtLte)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "amount", amount)); // Header parameters Map localVarHeaderParams = new LinkedHashMap<>(); diff --git a/src/main/java/com/conekta/Pair.java b/src/main/java/com/conekta/Pair.java index 455335b..68ae4bb 100644 --- a/src/main/java/com/conekta/Pair.java +++ b/src/main/java/com/conekta/Pair.java @@ -13,7 +13,7 @@ package com.conekta; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class Pair { private final String name; private final String value; diff --git a/src/main/java/com/conekta/PaymentLinkApi.java b/src/main/java/com/conekta/PaymentLinkApi.java index e88ec79..bfdab55 100644 --- a/src/main/java/com/conekta/PaymentLinkApi.java +++ b/src/main/java/com/conekta/PaymentLinkApi.java @@ -13,7 +13,6 @@ import com.conekta.model.CheckoutsResponse; import com.conekta.model.EmailCheckoutRequest; import com.conekta.model.Error; -import com.conekta.model.SmsCheckoutRequest; import java.util.ArrayList; import java.util.HashMap; @@ -21,7 +20,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentLinkApi { private ApiClient apiClient; @@ -128,6 +127,7 @@ public ApiResponse cancelCheckoutWithHttpInfo(@javax.annotatio * @param checkout requested field for checkout (required) * @param acceptLanguage Use for knowing which language to use (optional, default to es) * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @param idempotencyKey Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. (optional) * @return CheckoutResponse * @throws ApiException if fails to make API call * @http.response.details @@ -141,8 +141,8 @@ public ApiResponse cancelCheckoutWithHttpInfo(@javax.annotatio 500 internal server error - */ - public CheckoutResponse createCheckout(@javax.annotation.Nonnull Checkout checkout, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { - return createCheckoutWithHttpInfo(checkout, acceptLanguage, xChildCompanyId).getData(); + public CheckoutResponse createCheckout(@javax.annotation.Nonnull Checkout checkout, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable String idempotencyKey) throws ApiException { + return createCheckoutWithHttpInfo(checkout, acceptLanguage, xChildCompanyId, idempotencyKey).getData(); } /** @@ -151,6 +151,7 @@ public CheckoutResponse createCheckout(@javax.annotation.Nonnull Checkout checko * @param checkout requested field for checkout (required) * @param acceptLanguage Use for knowing which language to use (optional, default to es) * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) + * @param idempotencyKey Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again. (optional) * @return ApiResponse<CheckoutResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -164,7 +165,7 @@ public CheckoutResponse createCheckout(@javax.annotation.Nonnull Checkout checko 500 internal server error - */ - public ApiResponse createCheckoutWithHttpInfo(@javax.annotation.Nonnull Checkout checkout, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { + public ApiResponse createCheckoutWithHttpInfo(@javax.annotation.Nonnull Checkout checkout, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId, @javax.annotation.Nullable String idempotencyKey) throws ApiException { // Check required parameters if (checkout == null) { throw new ApiException(400, "Missing the required parameter 'checkout' when calling createCheckout"); @@ -178,6 +179,9 @@ public ApiResponse createCheckoutWithHttpInfo(@javax.annotatio if (xChildCompanyId != null) { localVarHeaderParams.put("X-Child-Company-Id", apiClient.parameterToString(xChildCompanyId)); } + if (idempotencyKey != null) { + localVarHeaderParams.put("Idempotency-Key", apiClient.parameterToString(idempotencyKey)); + } String localVarAccept = apiClient.selectHeaderAccept("application/vnd.conekta-v2.3.0+json"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); @@ -408,80 +412,4 @@ public ApiResponse getCheckoutsWithHttpInfo(@javax.annotation localVarHeaderParams, new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Send an sms - * - * @param id Identifier of the resource (required) - * @param smsCheckoutRequest requested field for sms checkout (required) - * @param acceptLanguage Use for knowing which language to use (optional, default to es) - * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) - * @return CheckoutResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - - - - - - - -
Response Details
Status Code Description Response Headers
200 successful operation * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
401 authentication error -
402 payment required error -
404 not found entity -
422 parameter validation error -
500 internal server error -
- */ - public CheckoutResponse smsCheckout(@javax.annotation.Nonnull String id, @javax.annotation.Nonnull SmsCheckoutRequest smsCheckoutRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { - return smsCheckoutWithHttpInfo(id, smsCheckoutRequest, acceptLanguage, xChildCompanyId).getData(); - } - - /** - * Send an sms - * - * @param id Identifier of the resource (required) - * @param smsCheckoutRequest requested field for sms checkout (required) - * @param acceptLanguage Use for knowing which language to use (optional, default to es) - * @param xChildCompanyId In the case of a holding company, the company id of the child company to which will process the request. (optional) - * @return ApiResponse<CheckoutResponse> - * @throws ApiException if fails to make API call - * @http.response.details - - - - - - - - - -
Response Details
Status Code Description Response Headers
200 successful operation * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
401 authentication error -
402 payment required error -
404 not found entity -
422 parameter validation error -
500 internal server error -
- */ - public ApiResponse smsCheckoutWithHttpInfo(@javax.annotation.Nonnull String id, @javax.annotation.Nonnull SmsCheckoutRequest smsCheckoutRequest, @javax.annotation.Nullable String acceptLanguage, @javax.annotation.Nullable String xChildCompanyId) throws ApiException { - // Check required parameters - if (id == null) { - throw new ApiException(400, "Missing the required parameter 'id' when calling smsCheckout"); - } - if (smsCheckoutRequest == null) { - throw new ApiException(400, "Missing the required parameter 'smsCheckoutRequest' when calling smsCheckout"); - } - - // Path parameters - String localVarPath = "/checkouts/{id}/sms" - .replaceAll("\\{id}", apiClient.escapeString(id.toString())); - - // Header parameters - Map localVarHeaderParams = new LinkedHashMap<>(); - if (acceptLanguage != null) { - localVarHeaderParams.put("Accept-Language", apiClient.parameterToString(acceptLanguage)); - } - if (xChildCompanyId != null) { - localVarHeaderParams.put("X-Child-Company-Id", apiClient.parameterToString(xChildCompanyId)); - } - - String localVarAccept = apiClient.selectHeaderAccept("application/vnd.conekta-v2.3.0+json"); - String localVarContentType = apiClient.selectHeaderContentType("application/json"); - String[] localVarAuthNames = new String[] {"bearerAuth"}; - GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI("PaymentLinkApi.smsCheckout", localVarPath, "POST", new ArrayList<>(), smsCheckoutRequest, - localVarHeaderParams, new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, - localVarAuthNames, localVarReturnType, false); - } } diff --git a/src/main/java/com/conekta/PaymentMethodsApi.java b/src/main/java/com/conekta/PaymentMethodsApi.java index f754b9f..69e33d2 100644 --- a/src/main/java/com/conekta/PaymentMethodsApi.java +++ b/src/main/java/com/conekta/PaymentMethodsApi.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodsApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/PayoutOrdersApi.java b/src/main/java/com/conekta/PayoutOrdersApi.java index 55ca022..14d5bb3 100644 --- a/src/main/java/com/conekta/PayoutOrdersApi.java +++ b/src/main/java/com/conekta/PayoutOrdersApi.java @@ -19,7 +19,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PayoutOrdersApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/PlansApi.java b/src/main/java/com/conekta/PlansApi.java index 8b3dc7a..183491d 100644 --- a/src/main/java/com/conekta/PlansApi.java +++ b/src/main/java/com/conekta/PlansApi.java @@ -20,7 +20,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PlansApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/ProductsApi.java b/src/main/java/com/conekta/ProductsApi.java index f48ccf9..41b3c93 100644 --- a/src/main/java/com/conekta/ProductsApi.java +++ b/src/main/java/com/conekta/ProductsApi.java @@ -19,7 +19,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ProductsApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/RFC3339DateFormat.java b/src/main/java/com/conekta/RFC3339DateFormat.java index ed1198f..ad0d99a 100644 --- a/src/main/java/com/conekta/RFC3339DateFormat.java +++ b/src/main/java/com/conekta/RFC3339DateFormat.java @@ -21,7 +21,7 @@ import java.util.TimeZone; import com.fasterxml.jackson.databind.util.StdDateFormat; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class RFC3339DateFormat extends DateFormat { private static final long serialVersionUID = 1L; private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC"); diff --git a/src/main/java/com/conekta/RFC3339InstantDeserializer.java b/src/main/java/com/conekta/RFC3339InstantDeserializer.java index 4624d42..74e5f76 100644 --- a/src/main/java/com/conekta/RFC3339InstantDeserializer.java +++ b/src/main/java/com/conekta/RFC3339InstantDeserializer.java @@ -28,7 +28,7 @@ import com.fasterxml.jackson.datatype.jsr310.JavaTimeFeature; import com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class RFC3339InstantDeserializer extends InstantDeserializer { private static final long serialVersionUID = 1L; private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault(); diff --git a/src/main/java/com/conekta/RFC3339JavaTimeModule.java b/src/main/java/com/conekta/RFC3339JavaTimeModule.java index 2be8a81..cec5604 100644 --- a/src/main/java/com/conekta/RFC3339JavaTimeModule.java +++ b/src/main/java/com/conekta/RFC3339JavaTimeModule.java @@ -19,7 +19,7 @@ import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.databind.Module.SetupContext; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class RFC3339JavaTimeModule extends SimpleModule { private static final long serialVersionUID = 1L; diff --git a/src/main/java/com/conekta/ServerConfiguration.java b/src/main/java/com/conekta/ServerConfiguration.java index 459d930..e9c790e 100644 --- a/src/main/java/com/conekta/ServerConfiguration.java +++ b/src/main/java/com/conekta/ServerConfiguration.java @@ -18,7 +18,7 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ServerConfiguration { public String URL; public String description; diff --git a/src/main/java/com/conekta/ServerVariable.java b/src/main/java/com/conekta/ServerVariable.java index 3bbbb9e..8802592 100644 --- a/src/main/java/com/conekta/ServerVariable.java +++ b/src/main/java/com/conekta/ServerVariable.java @@ -18,7 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/com/conekta/ShippingContactsApi.java b/src/main/java/com/conekta/ShippingContactsApi.java index 8cb35bd..d307bfa 100644 --- a/src/main/java/com/conekta/ShippingContactsApi.java +++ b/src/main/java/com/conekta/ShippingContactsApi.java @@ -19,7 +19,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ShippingContactsApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/ShippingsApi.java b/src/main/java/com/conekta/ShippingsApi.java index 6b1cd0e..91df81d 100644 --- a/src/main/java/com/conekta/ShippingsApi.java +++ b/src/main/java/com/conekta/ShippingsApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ShippingsApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/StringUtil.java b/src/main/java/com/conekta/StringUtil.java index 8e01222..f588543 100644 --- a/src/main/java/com/conekta/StringUtil.java +++ b/src/main/java/com/conekta/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/com/conekta/SubscriptionsApi.java b/src/main/java/com/conekta/SubscriptionsApi.java index 95e40bd..36b6046 100644 --- a/src/main/java/com/conekta/SubscriptionsApi.java +++ b/src/main/java/com/conekta/SubscriptionsApi.java @@ -20,7 +20,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class SubscriptionsApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/SubscriptionsCustomerPortalApi.java b/src/main/java/com/conekta/SubscriptionsCustomerPortalApi.java index a8484e5..5e12538 100644 --- a/src/main/java/com/conekta/SubscriptionsCustomerPortalApi.java +++ b/src/main/java/com/conekta/SubscriptionsCustomerPortalApi.java @@ -17,7 +17,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class SubscriptionsCustomerPortalApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/TaxesApi.java b/src/main/java/com/conekta/TaxesApi.java index 529206d..cbd2fec 100644 --- a/src/main/java/com/conekta/TaxesApi.java +++ b/src/main/java/com/conekta/TaxesApi.java @@ -19,7 +19,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TaxesApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/TokensApi.java b/src/main/java/com/conekta/TokensApi.java index 7987d43..10e51b4 100644 --- a/src/main/java/com/conekta/TokensApi.java +++ b/src/main/java/com/conekta/TokensApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TokensApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/TransactionsApi.java b/src/main/java/com/conekta/TransactionsApi.java index bce5f62..3237884 100644 --- a/src/main/java/com/conekta/TransactionsApi.java +++ b/src/main/java/com/conekta/TransactionsApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TransactionsApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/TransfersApi.java b/src/main/java/com/conekta/TransfersApi.java index 6c148c9..b2587df 100644 --- a/src/main/java/com/conekta/TransfersApi.java +++ b/src/main/java/com/conekta/TransfersApi.java @@ -18,7 +18,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TransfersApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/WebhookKeysApi.java b/src/main/java/com/conekta/WebhookKeysApi.java index a38a181..64468b3 100644 --- a/src/main/java/com/conekta/WebhookKeysApi.java +++ b/src/main/java/com/conekta/WebhookKeysApi.java @@ -22,7 +22,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class WebhookKeysApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/WebhooksApi.java b/src/main/java/com/conekta/WebhooksApi.java index 517ace5..9420b5d 100644 --- a/src/main/java/com/conekta/WebhooksApi.java +++ b/src/main/java/com/conekta/WebhooksApi.java @@ -20,7 +20,7 @@ import java.util.List; import java.util.Map; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class WebhooksApi { private ApiClient apiClient; diff --git a/src/main/java/com/conekta/auth/ApiKeyAuth.java b/src/main/java/com/conekta/auth/ApiKeyAuth.java index 90f5767..3eb7219 100644 --- a/src/main/java/com/conekta/auth/ApiKeyAuth.java +++ b/src/main/java/com/conekta/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/conekta/auth/Authentication.java b/src/main/java/com/conekta/auth/Authentication.java index df1f9ea..c7e8977 100644 --- a/src/main/java/com/conekta/auth/Authentication.java +++ b/src/main/java/com/conekta/auth/Authentication.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public interface Authentication { /** * Apply authentication settings to header and query params. diff --git a/src/main/java/com/conekta/auth/HttpBasicAuth.java b/src/main/java/com/conekta/auth/HttpBasicAuth.java index b14d420..511eca3 100644 --- a/src/main/java/com/conekta/auth/HttpBasicAuth.java +++ b/src/main/java/com/conekta/auth/HttpBasicAuth.java @@ -23,7 +23,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/src/main/java/com/conekta/auth/HttpBearerAuth.java b/src/main/java/com/conekta/auth/HttpBearerAuth.java index 2cc7b39..aec4fa1 100644 --- a/src/main/java/com/conekta/auth/HttpBearerAuth.java +++ b/src/main/java/com/conekta/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/com/conekta/model/AbstractOpenApiSchema.java b/src/main/java/com/conekta/model/AbstractOpenApiSchema.java index 186a557..fb8962c 100644 --- a/src/main/java/com/conekta/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/conekta/model/AbstractOpenApiSchema.java @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/com/conekta/model/ApiKeyCreateResponse.java b/src/main/java/com/conekta/model/ApiKeyCreateResponse.java index a66620f..30367af 100644 --- a/src/main/java/com/conekta/model/ApiKeyCreateResponse.java +++ b/src/main/java/com/conekta/model/ApiKeyCreateResponse.java @@ -44,7 +44,7 @@ ApiKeyCreateResponse.JSON_PROPERTY_ROLE }) @JsonTypeName("api_key_create_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ApiKeyCreateResponse { public static final String JSON_PROPERTY_AUTHENTICATION_TOKEN = "authentication_token"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/ApiKeyRequest.java b/src/main/java/com/conekta/model/ApiKeyRequest.java index b4610f1..fdd1afd 100644 --- a/src/main/java/com/conekta/model/ApiKeyRequest.java +++ b/src/main/java/com/conekta/model/ApiKeyRequest.java @@ -34,7 +34,7 @@ ApiKeyRequest.JSON_PROPERTY_ROLE }) @JsonTypeName("api_key_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ApiKeyRequest { public static final String JSON_PROPERTY_DESCRIPTION = "description"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/ApiKeyResponse.java b/src/main/java/com/conekta/model/ApiKeyResponse.java index 98f18c5..8430f2a 100644 --- a/src/main/java/com/conekta/model/ApiKeyResponse.java +++ b/src/main/java/com/conekta/model/ApiKeyResponse.java @@ -43,7 +43,7 @@ ApiKeyResponse.JSON_PROPERTY_ROLE }) @JsonTypeName("api_key_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ApiKeyResponse { public static final String JSON_PROPERTY_ACTIVE = "active"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/ApiKeyUpdateRequest.java b/src/main/java/com/conekta/model/ApiKeyUpdateRequest.java index 9889880..aedd68a 100644 --- a/src/main/java/com/conekta/model/ApiKeyUpdateRequest.java +++ b/src/main/java/com/conekta/model/ApiKeyUpdateRequest.java @@ -34,7 +34,7 @@ ApiKeyUpdateRequest.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("api_key_update_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ApiKeyUpdateRequest { public static final String JSON_PROPERTY_ACTIVE = "active"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/ApplePaySessionRequest.java b/src/main/java/com/conekta/model/ApplePaySessionRequest.java new file mode 100644 index 0000000..e203dff --- /dev/null +++ b/src/main/java/com/conekta/model/ApplePaySessionRequest.java @@ -0,0 +1,242 @@ +/* + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.3.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.conekta.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.conekta.JSON; + + +/** + * Data required to validate an Apple Pay merchant session + */ +@JsonPropertyOrder({ + ApplePaySessionRequest.JSON_PROPERTY_VALIDATION_U_R_L, + ApplePaySessionRequest.JSON_PROPERTY_DOMAIN, + ApplePaySessionRequest.JSON_PROPERTY_SOURCE, + ApplePaySessionRequest.JSON_PROPERTY_COMPANY_ID +}) +@JsonTypeName("apple_pay_session_request") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class ApplePaySessionRequest { + public static final String JSON_PROPERTY_VALIDATION_U_R_L = "validationURL"; + @javax.annotation.Nonnull + private URI validationURL; + + public static final String JSON_PROPERTY_DOMAIN = "domain"; + @javax.annotation.Nullable + private String domain; + + /** + * Origin of the Apple Pay integration requesting the session. `external` uses the integrator credentials, any other value uses the merchant credentials. + */ + public enum SourceEnum { + INTERNAL(String.valueOf("internal")), + + EXTERNAL(String.valueOf("external")), + + UNKNOWN_DEFAULT_OPEN_API(String.valueOf("unknown_default_open_api")); + + private String value; + + SourceEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SourceEnum fromValue(String value) { + for (SourceEnum b : SourceEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return UNKNOWN_DEFAULT_OPEN_API; + } + } + + public static final String JSON_PROPERTY_SOURCE = "source"; + @javax.annotation.Nullable + private SourceEnum source = SourceEnum.INTERNAL; + + public static final String JSON_PROPERTY_COMPANY_ID = "companyId"; + @javax.annotation.Nullable + private String companyId; + + public ApplePaySessionRequest() { + } + + public ApplePaySessionRequest validationURL(@javax.annotation.Nonnull URI validationURL) { + this.validationURL = validationURL; + return this; + } + + /** + * Validation URL provided by Apple in the `onvalidatemerchant` event. Only Apple Pay gateway hosts are accepted: `https://apple-pay-gateway.apple.com` and `https://apple-pay-gateway-cert.apple.com`. + * @return validationURL + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_VALIDATION_U_R_L, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public URI getValidationURL() { + return validationURL; + } + + + @JsonProperty(value = JSON_PROPERTY_VALIDATION_U_R_L, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setValidationURL(@javax.annotation.Nonnull URI validationURL) { + this.validationURL = validationURL; + } + + + public ApplePaySessionRequest domain(@javax.annotation.Nullable String domain) { + this.domain = domain; + return this; + } + + /** + * Fully qualified domain where the Apple Pay button is displayed, sent to Apple as the initiative context. It must be a domain previously registered with Conekta. When omitted, the domain configured for the account is used. + * @return domain + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_DOMAIN, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDomain() { + return domain; + } + + + @JsonProperty(value = JSON_PROPERTY_DOMAIN, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDomain(@javax.annotation.Nullable String domain) { + this.domain = domain; + } + + + public ApplePaySessionRequest source(@javax.annotation.Nullable SourceEnum source) { + this.source = source; + return this; + } + + /** + * Origin of the Apple Pay integration requesting the session. `external` uses the integrator credentials, any other value uses the merchant credentials. + * @return source + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_SOURCE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SourceEnum getSource() { + return source; + } + + + @JsonProperty(value = JSON_PROPERTY_SOURCE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSource(@javax.annotation.Nullable SourceEnum source) { + this.source = source; + } + + + public ApplePaySessionRequest companyId(@javax.annotation.Nullable String companyId) { + this.companyId = companyId; + return this; + } + + /** + * Apple Pay merchant identifier to validate the session with. When omitted, the merchant identifier configured for the account is used. + * @return companyId + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_COMPANY_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCompanyId() { + return companyId; + } + + + @JsonProperty(value = JSON_PROPERTY_COMPANY_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCompanyId(@javax.annotation.Nullable String companyId) { + this.companyId = companyId; + } + + + /** + * Return true if this apple_pay_session_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplePaySessionRequest applePaySessionRequest = (ApplePaySessionRequest) o; + return Objects.equals(this.validationURL, applePaySessionRequest.validationURL) && + Objects.equals(this.domain, applePaySessionRequest.domain) && + Objects.equals(this.source, applePaySessionRequest.source) && + Objects.equals(this.companyId, applePaySessionRequest.companyId); + } + + @Override + public int hashCode() { + return Objects.hash(validationURL, domain, source, companyId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplePaySessionRequest {\n"); + sb.append(" validationURL: ").append(toIndentedString(validationURL)).append("\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" companyId: ").append(toIndentedString(companyId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/conekta/model/ApplePaySessionResponse.java b/src/main/java/com/conekta/model/ApplePaySessionResponse.java new file mode 100644 index 0000000..6d93b88 --- /dev/null +++ b/src/main/java/com/conekta/model/ApplePaySessionResponse.java @@ -0,0 +1,428 @@ +/* + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.3.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.conekta.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.conekta.JSON; + + +/** + * Apple Pay merchant session returned by Apple. Pass this object as-is to `session.completeMerchantValidation` in the browser. + */ +@JsonPropertyOrder({ + ApplePaySessionResponse.JSON_PROPERTY_EPOCH_TIMESTAMP, + ApplePaySessionResponse.JSON_PROPERTY_EXPIRES_AT, + ApplePaySessionResponse.JSON_PROPERTY_MERCHANT_SESSION_IDENTIFIER, + ApplePaySessionResponse.JSON_PROPERTY_NONCE, + ApplePaySessionResponse.JSON_PROPERTY_MERCHANT_IDENTIFIER, + ApplePaySessionResponse.JSON_PROPERTY_DOMAIN_NAME, + ApplePaySessionResponse.JSON_PROPERTY_DISPLAY_NAME, + ApplePaySessionResponse.JSON_PROPERTY_SIGNATURE, + ApplePaySessionResponse.JSON_PROPERTY_OPERATIONAL_ANALYTICS_IDENTIFIER, + ApplePaySessionResponse.JSON_PROPERTY_RETRIES, + ApplePaySessionResponse.JSON_PROPERTY_PSP_ID +}) +@JsonTypeName("apple_pay_session_response") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class ApplePaySessionResponse { + public static final String JSON_PROPERTY_EPOCH_TIMESTAMP = "epochTimestamp"; + @javax.annotation.Nonnull + private Long epochTimestamp; + + public static final String JSON_PROPERTY_EXPIRES_AT = "expiresAt"; + @javax.annotation.Nonnull + private Long expiresAt; + + public static final String JSON_PROPERTY_MERCHANT_SESSION_IDENTIFIER = "merchantSessionIdentifier"; + @javax.annotation.Nonnull + private String merchantSessionIdentifier; + + public static final String JSON_PROPERTY_NONCE = "nonce"; + @javax.annotation.Nonnull + private String nonce; + + public static final String JSON_PROPERTY_MERCHANT_IDENTIFIER = "merchantIdentifier"; + @javax.annotation.Nonnull + private String merchantIdentifier; + + public static final String JSON_PROPERTY_DOMAIN_NAME = "domainName"; + @javax.annotation.Nonnull + private String domainName; + + public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; + @javax.annotation.Nonnull + private String displayName; + + public static final String JSON_PROPERTY_SIGNATURE = "signature"; + @javax.annotation.Nonnull + private String signature; + + public static final String JSON_PROPERTY_OPERATIONAL_ANALYTICS_IDENTIFIER = "operationalAnalyticsIdentifier"; + @javax.annotation.Nullable + private String operationalAnalyticsIdentifier; + + public static final String JSON_PROPERTY_RETRIES = "retries"; + @javax.annotation.Nullable + private Integer retries; + + public static final String JSON_PROPERTY_PSP_ID = "pspId"; + @javax.annotation.Nullable + private String pspId; + + public ApplePaySessionResponse() { + } + + public ApplePaySessionResponse epochTimestamp(@javax.annotation.Nonnull Long epochTimestamp) { + this.epochTimestamp = epochTimestamp; + return this; + } + + /** + * Date and time, in milliseconds since epoch, when the session was created. + * @return epochTimestamp + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_EPOCH_TIMESTAMP, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Long getEpochTimestamp() { + return epochTimestamp; + } + + + @JsonProperty(value = JSON_PROPERTY_EPOCH_TIMESTAMP, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setEpochTimestamp(@javax.annotation.Nonnull Long epochTimestamp) { + this.epochTimestamp = epochTimestamp; + } + + + public ApplePaySessionResponse expiresAt(@javax.annotation.Nonnull Long expiresAt) { + this.expiresAt = expiresAt; + return this; + } + + /** + * Date and time, in milliseconds since epoch, when the session expires. + * @return expiresAt + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Long getExpiresAt() { + return expiresAt; + } + + + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setExpiresAt(@javax.annotation.Nonnull Long expiresAt) { + this.expiresAt = expiresAt; + } + + + public ApplePaySessionResponse merchantSessionIdentifier(@javax.annotation.Nonnull String merchantSessionIdentifier) { + this.merchantSessionIdentifier = merchantSessionIdentifier; + return this; + } + + /** + * Unique identifier of the merchant session generated by Apple. + * @return merchantSessionIdentifier + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_MERCHANT_SESSION_IDENTIFIER, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMerchantSessionIdentifier() { + return merchantSessionIdentifier; + } + + + @JsonProperty(value = JSON_PROPERTY_MERCHANT_SESSION_IDENTIFIER, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMerchantSessionIdentifier(@javax.annotation.Nonnull String merchantSessionIdentifier) { + this.merchantSessionIdentifier = merchantSessionIdentifier; + } + + + public ApplePaySessionResponse nonce(@javax.annotation.Nonnull String nonce) { + this.nonce = nonce; + return this; + } + + /** + * Single-use value used by Apple to verify the session. + * @return nonce + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_NONCE, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getNonce() { + return nonce; + } + + + @JsonProperty(value = JSON_PROPERTY_NONCE, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNonce(@javax.annotation.Nonnull String nonce) { + this.nonce = nonce; + } + + + public ApplePaySessionResponse merchantIdentifier(@javax.annotation.Nonnull String merchantIdentifier) { + this.merchantIdentifier = merchantIdentifier; + return this; + } + + /** + * Hashed Apple Pay merchant identifier the session was validated with. + * @return merchantIdentifier + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_MERCHANT_IDENTIFIER, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getMerchantIdentifier() { + return merchantIdentifier; + } + + + @JsonProperty(value = JSON_PROPERTY_MERCHANT_IDENTIFIER, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMerchantIdentifier(@javax.annotation.Nonnull String merchantIdentifier) { + this.merchantIdentifier = merchantIdentifier; + } + + + public ApplePaySessionResponse domainName(@javax.annotation.Nonnull String domainName) { + this.domainName = domainName; + return this; + } + + /** + * Domain the session was validated for. + * @return domainName + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_DOMAIN_NAME, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getDomainName() { + return domainName; + } + + + @JsonProperty(value = JSON_PROPERTY_DOMAIN_NAME, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDomainName(@javax.annotation.Nonnull String domainName) { + this.domainName = domainName; + } + + + public ApplePaySessionResponse displayName(@javax.annotation.Nonnull String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Merchant name shown in the Apple Pay sheet. + * @return displayName + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_DISPLAY_NAME, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getDisplayName() { + return displayName; + } + + + @JsonProperty(value = JSON_PROPERTY_DISPLAY_NAME, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDisplayName(@javax.annotation.Nonnull String displayName) { + this.displayName = displayName; + } + + + public ApplePaySessionResponse signature(@javax.annotation.Nonnull String signature) { + this.signature = signature; + return this; + } + + /** + * Apple signature of the session, in hexadecimal format. + * @return signature + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_SIGNATURE, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getSignature() { + return signature; + } + + + @JsonProperty(value = JSON_PROPERTY_SIGNATURE, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSignature(@javax.annotation.Nonnull String signature) { + this.signature = signature; + } + + + public ApplePaySessionResponse operationalAnalyticsIdentifier(@javax.annotation.Nullable String operationalAnalyticsIdentifier) { + this.operationalAnalyticsIdentifier = operationalAnalyticsIdentifier; + return this; + } + + /** + * Identifier used by Apple for analytics purposes. + * @return operationalAnalyticsIdentifier + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_OPERATIONAL_ANALYTICS_IDENTIFIER, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getOperationalAnalyticsIdentifier() { + return operationalAnalyticsIdentifier; + } + + + @JsonProperty(value = JSON_PROPERTY_OPERATIONAL_ANALYTICS_IDENTIFIER, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOperationalAnalyticsIdentifier(@javax.annotation.Nullable String operationalAnalyticsIdentifier) { + this.operationalAnalyticsIdentifier = operationalAnalyticsIdentifier; + } + + + public ApplePaySessionResponse retries(@javax.annotation.Nullable Integer retries) { + this.retries = retries; + return this; + } + + /** + * Number of times the session validation has been retried. + * @return retries + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_RETRIES, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getRetries() { + return retries; + } + + + @JsonProperty(value = JSON_PROPERTY_RETRIES, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRetries(@javax.annotation.Nullable Integer retries) { + this.retries = retries; + } + + + public ApplePaySessionResponse pspId(@javax.annotation.Nullable String pspId) { + this.pspId = pspId; + return this; + } + + /** + * Payment service provider identifier assigned by Apple. + * @return pspId + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_PSP_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPspId() { + return pspId; + } + + + @JsonProperty(value = JSON_PROPERTY_PSP_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPspId(@javax.annotation.Nullable String pspId) { + this.pspId = pspId; + } + + + /** + * Return true if this apple_pay_session_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplePaySessionResponse applePaySessionResponse = (ApplePaySessionResponse) o; + return Objects.equals(this.epochTimestamp, applePaySessionResponse.epochTimestamp) && + Objects.equals(this.expiresAt, applePaySessionResponse.expiresAt) && + Objects.equals(this.merchantSessionIdentifier, applePaySessionResponse.merchantSessionIdentifier) && + Objects.equals(this.nonce, applePaySessionResponse.nonce) && + Objects.equals(this.merchantIdentifier, applePaySessionResponse.merchantIdentifier) && + Objects.equals(this.domainName, applePaySessionResponse.domainName) && + Objects.equals(this.displayName, applePaySessionResponse.displayName) && + Objects.equals(this.signature, applePaySessionResponse.signature) && + Objects.equals(this.operationalAnalyticsIdentifier, applePaySessionResponse.operationalAnalyticsIdentifier) && + Objects.equals(this.retries, applePaySessionResponse.retries) && + Objects.equals(this.pspId, applePaySessionResponse.pspId); + } + + @Override + public int hashCode() { + return Objects.hash(epochTimestamp, expiresAt, merchantSessionIdentifier, nonce, merchantIdentifier, domainName, displayName, signature, operationalAnalyticsIdentifier, retries, pspId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplePaySessionResponse {\n"); + sb.append(" epochTimestamp: ").append(toIndentedString(epochTimestamp)).append("\n"); + sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); + sb.append(" merchantSessionIdentifier: ").append(toIndentedString(merchantSessionIdentifier)).append("\n"); + sb.append(" nonce: ").append(toIndentedString(nonce)).append("\n"); + sb.append(" merchantIdentifier: ").append(toIndentedString(merchantIdentifier)).append("\n"); + sb.append(" domainName: ").append(toIndentedString(domainName)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" signature: ").append(toIndentedString(signature)).append("\n"); + sb.append(" operationalAnalyticsIdentifier: ").append(toIndentedString(operationalAnalyticsIdentifier)).append("\n"); + sb.append(" retries: ").append(toIndentedString(retries)).append("\n"); + sb.append(" pspId: ").append(toIndentedString(pspId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/conekta/model/BalanceCommonFielsResponse.java b/src/main/java/com/conekta/model/BalanceCommonFielsResponse.java index 2c84a2b..38a0c7e 100644 --- a/src/main/java/com/conekta/model/BalanceCommonFielsResponse.java +++ b/src/main/java/com/conekta/model/BalanceCommonFielsResponse.java @@ -34,7 +34,7 @@ BalanceCommonFielsResponse.JSON_PROPERTY_CURRENCY }) @JsonTypeName("balance_common_fiels_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class BalanceCommonFielsResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/BalanceResponse.java b/src/main/java/com/conekta/model/BalanceResponse.java index d2453c8..0c8207c 100644 --- a/src/main/java/com/conekta/model/BalanceResponse.java +++ b/src/main/java/com/conekta/model/BalanceResponse.java @@ -45,7 +45,7 @@ BalanceResponse.JSON_PROPERTY_TEMPORARILY_RETAINED }) @JsonTypeName("balance_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class BalanceResponse { public static final String JSON_PROPERTY_AVAILABLE = "available"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/BlacklistRuleResponse.java b/src/main/java/com/conekta/model/BlacklistRuleResponse.java index d7ee627..70ada16 100644 --- a/src/main/java/com/conekta/model/BlacklistRuleResponse.java +++ b/src/main/java/com/conekta/model/BlacklistRuleResponse.java @@ -36,7 +36,7 @@ BlacklistRuleResponse.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("blacklist_rule_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class BlacklistRuleResponse { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CashAgreementsResponse.java b/src/main/java/com/conekta/model/CashAgreementsResponse.java index 147260a..9a6fc80 100644 --- a/src/main/java/com/conekta/model/CashAgreementsResponse.java +++ b/src/main/java/com/conekta/model/CashAgreementsResponse.java @@ -34,7 +34,7 @@ CashAgreementsResponse.JSON_PROPERTY_PROVIDER }) @JsonTypeName("cash_agreements_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CashAgreementsResponse { public static final String JSON_PROPERTY_AGREEMENT = "agreement"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/ChargeOrderResponse.java b/src/main/java/com/conekta/model/ChargeOrderResponse.java index 7a96cf1..9e875fc 100644 --- a/src/main/java/com/conekta/model/ChargeOrderResponse.java +++ b/src/main/java/com/conekta/model/ChargeOrderResponse.java @@ -55,7 +55,7 @@ ChargeOrderResponse.JSON_PROPERTY_STATUS }) @JsonTypeName("charge_order_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ChargeOrderResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/ChargeOrderResponsePaymentMethod.java b/src/main/java/com/conekta/model/ChargeOrderResponsePaymentMethod.java index 2b8e858..b0eef4b 100644 --- a/src/main/java/com/conekta/model/ChargeOrderResponsePaymentMethod.java +++ b/src/main/java/com/conekta/model/ChargeOrderResponsePaymentMethod.java @@ -62,7 +62,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.conekta.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") @JsonDeserialize(using = ChargeOrderResponsePaymentMethod.ChargeOrderResponsePaymentMethodDeserializer.class) @JsonSerialize(using = ChargeOrderResponsePaymentMethod.ChargeOrderResponsePaymentMethodSerializer.class) public class ChargeOrderResponsePaymentMethod extends AbstractOpenApiSchema { diff --git a/src/main/java/com/conekta/model/ChargeRequest.java b/src/main/java/com/conekta/model/ChargeRequest.java index 1d208f5..48cb0e1 100644 --- a/src/main/java/com/conekta/model/ChargeRequest.java +++ b/src/main/java/com/conekta/model/ChargeRequest.java @@ -36,7 +36,7 @@ ChargeRequest.JSON_PROPERTY_REFERENCE_ID }) @JsonTypeName("charge_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ChargeRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/ChargeRequestPaymentMethod.java b/src/main/java/com/conekta/model/ChargeRequestPaymentMethod.java index cbf2ab5..ef355f7 100644 --- a/src/main/java/com/conekta/model/ChargeRequestPaymentMethod.java +++ b/src/main/java/com/conekta/model/ChargeRequestPaymentMethod.java @@ -56,7 +56,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.conekta.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") @JsonDeserialize(using = ChargeRequestPaymentMethod.ChargeRequestPaymentMethodDeserializer.class) @JsonSerialize(using = ChargeRequestPaymentMethod.ChargeRequestPaymentMethodSerializer.class) public class ChargeRequestPaymentMethod extends AbstractOpenApiSchema { diff --git a/src/main/java/com/conekta/model/ChargeResponse.java b/src/main/java/com/conekta/model/ChargeResponse.java index c85352f..954a623 100644 --- a/src/main/java/com/conekta/model/ChargeResponse.java +++ b/src/main/java/com/conekta/model/ChargeResponse.java @@ -36,6 +36,7 @@ @JsonPropertyOrder({ ChargeResponse.JSON_PROPERTY_AMOUNT, ChargeResponse.JSON_PROPERTY_CHANNEL, + ChargeResponse.JSON_PROPERTY_CONEKTA_ACCOUNT_ID, ChargeResponse.JSON_PROPERTY_CREATED_AT, ChargeResponse.JSON_PROPERTY_CURRENCY, ChargeResponse.JSON_PROPERTY_CUSTOMER_ID, @@ -55,16 +56,20 @@ ChargeResponse.JSON_PROPERTY_STATUS }) @JsonTypeName("charge_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ChargeResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private Integer amount; public static final String JSON_PROPERTY_CHANNEL = "channel"; @javax.annotation.Nullable private ChargeResponseChannel channel; + public static final String JSON_PROPERTY_CONEKTA_ACCOUNT_ID = "conekta_account_id"; + @javax.annotation.Nullable + private String conektaAccountId; + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; @javax.annotation.Nonnull private Long createdAt; @@ -136,7 +141,7 @@ public class ChargeResponse { public ChargeResponse() { } - public ChargeResponse amount(@javax.annotation.Nonnull Integer amount) { + public ChargeResponse amount(@javax.annotation.Nullable Integer amount) { this.amount = amount; return this; } @@ -145,18 +150,18 @@ public ChargeResponse amount(@javax.annotation.Nonnull Integer amount) { * Get amount * @return amount */ - @javax.annotation.Nonnull - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAmount() { return amount; } - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@javax.annotation.Nonnull Integer amount) { + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmount(@javax.annotation.Nullable Integer amount) { this.amount = amount; } @@ -186,13 +191,38 @@ public void setChannel(@javax.annotation.Nullable ChargeResponseChannel channel) } + public ChargeResponse conektaAccountId(@javax.annotation.Nullable String conektaAccountId) { + this.conektaAccountId = conektaAccountId; + return this; + } + + /** + * Conekta account ID of the charge, if the charge was paid through a Conekta account. + * @return conektaAccountId + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_CONEKTA_ACCOUNT_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getConektaAccountId() { + return conektaAccountId; + } + + + @JsonProperty(value = JSON_PROPERTY_CONEKTA_ACCOUNT_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConektaAccountId(@javax.annotation.Nullable String conektaAccountId) { + this.conektaAccountId = conektaAccountId; + } + + public ChargeResponse createdAt(@javax.annotation.Nonnull Long createdAt) { this.createdAt = createdAt; return this; } /** - * Get createdAt + * Charge creation date, in seconds since the Unix epoch * @return createdAt */ @javax.annotation.Nonnull @@ -217,7 +247,7 @@ public ChargeResponse currency(@javax.annotation.Nonnull String currency) { } /** - * Get currency + * Currency of the charge, in ISO 4217 format * @return currency */ @javax.annotation.Nonnull @@ -625,6 +655,7 @@ public boolean equals(Object o) { ChargeResponse chargeResponse = (ChargeResponse) o; return Objects.equals(this.amount, chargeResponse.amount) && Objects.equals(this.channel, chargeResponse.channel) && + Objects.equals(this.conektaAccountId, chargeResponse.conektaAccountId) && Objects.equals(this.createdAt, chargeResponse.createdAt) && Objects.equals(this.currency, chargeResponse.currency) && Objects.equals(this.customerId, chargeResponse.customerId) && @@ -646,7 +677,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(amount, channel, createdAt, currency, customerId, description, deviceFingerprint, failureCode, failureMessage, id, livemode, _object, orderId, paidAt, paymentMethod, referenceId, refunds, chargeback, status); + return Objects.hash(amount, channel, conektaAccountId, createdAt, currency, customerId, description, deviceFingerprint, failureCode, failureMessage, id, livemode, _object, orderId, paidAt, paymentMethod, referenceId, refunds, chargeback, status); } @Override @@ -655,6 +686,7 @@ public String toString() { sb.append("class ChargeResponse {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" conektaAccountId: ").append(toIndentedString(conektaAccountId)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); diff --git a/src/main/java/com/conekta/model/ChargeResponseChannel.java b/src/main/java/com/conekta/model/ChargeResponseChannel.java index 0aec0ba..83ba038 100644 --- a/src/main/java/com/conekta/model/ChargeResponseChannel.java +++ b/src/main/java/com/conekta/model/ChargeResponseChannel.java @@ -36,7 +36,7 @@ ChargeResponseChannel.JSON_PROPERTY_ID }) @JsonTypeName("charge_response_channel") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ChargeResponseChannel { public static final String JSON_PROPERTY_SEGMENT = "segment"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/ChargeResponsePaymentMethod.java b/src/main/java/com/conekta/model/ChargeResponsePaymentMethod.java index e20c956..3730165 100644 --- a/src/main/java/com/conekta/model/ChargeResponsePaymentMethod.java +++ b/src/main/java/com/conekta/model/ChargeResponsePaymentMethod.java @@ -62,7 +62,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.conekta.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") @JsonDeserialize(using = ChargeResponsePaymentMethod.ChargeResponsePaymentMethodDeserializer.class) @JsonSerialize(using = ChargeResponsePaymentMethod.ChargeResponsePaymentMethodSerializer.class) public class ChargeResponsePaymentMethod extends AbstractOpenApiSchema { diff --git a/src/main/java/com/conekta/model/ChargeResponseRefunds.java b/src/main/java/com/conekta/model/ChargeResponseRefunds.java index 65fb42c..d6cbc03 100644 --- a/src/main/java/com/conekta/model/ChargeResponseRefunds.java +++ b/src/main/java/com/conekta/model/ChargeResponseRefunds.java @@ -40,7 +40,7 @@ ChargeResponseRefunds.JSON_PROPERTY_DATA }) @JsonTypeName("charge_response_refunds") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ChargeResponseRefunds { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/ChargeResponseRefundsData.java b/src/main/java/com/conekta/model/ChargeResponseRefundsData.java index bef8132..7822b5a 100644 --- a/src/main/java/com/conekta/model/ChargeResponseRefundsData.java +++ b/src/main/java/com/conekta/model/ChargeResponseRefundsData.java @@ -39,7 +39,7 @@ ChargeResponseRefundsData.JSON_PROPERTY_STATUS }) @JsonTypeName("charge_response_refunds_data") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ChargeResponseRefundsData { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/ChargeUpdateRequest.java b/src/main/java/com/conekta/model/ChargeUpdateRequest.java index d53bed3..d6d468f 100644 --- a/src/main/java/com/conekta/model/ChargeUpdateRequest.java +++ b/src/main/java/com/conekta/model/ChargeUpdateRequest.java @@ -33,7 +33,7 @@ ChargeUpdateRequest.JSON_PROPERTY_REFERENCE_ID }) @JsonTypeName("charge_update_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ChargeUpdateRequest { public static final String JSON_PROPERTY_REFERENCE_ID = "reference_id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/ChargebackEvidenceFileResponse.java b/src/main/java/com/conekta/model/ChargebackEvidenceFileResponse.java new file mode 100644 index 0000000..a3e0914 --- /dev/null +++ b/src/main/java/com/conekta/model/ChargebackEvidenceFileResponse.java @@ -0,0 +1,302 @@ +/* + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.3.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.conekta.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.conekta.JSON; + + +/** + * A file uploaded as evidence for a chargeback + */ +@JsonPropertyOrder({ + ChargebackEvidenceFileResponse.JSON_PROPERTY_ID, + ChargebackEvidenceFileResponse.JSON_PROPERTY_NAME, + ChargebackEvidenceFileResponse.JSON_PROPERTY_CREATED_AT, + ChargebackEvidenceFileResponse.JSON_PROPERTY_EVIDENCE_TYPE, + ChargebackEvidenceFileResponse.JSON_PROPERTY_URL +}) +@JsonTypeName("chargeback_evidence_file_response") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class ChargebackEvidenceFileResponse { + public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + @javax.annotation.Nullable + private String name; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + @javax.annotation.Nullable + private OffsetDateTime createdAt; + + /** + * The evidence type used for a chargeback file upload + */ + public enum EvidenceTypeEnum { + CHARGE_INFORMATION(String.valueOf("charge_information")), + + CONTRACT(String.valueOf("contract")), + + OTHER_EVIDENCE(String.valueOf("other_evidence")), + + RECEIPT_OF_SHIPMENT(String.valueOf("receipt_of_shipment")), + + IDENTIFICATION(String.valueOf("identification")), + + ORDER_DETAILS(String.valueOf("order_details")), + + TERMS_AND_CONDITIONS(String.valueOf("terms_and_conditions")), + + CARDHOLDER_INFORMATION(String.valueOf("cardholder_information")), + + PROOF_INVALIDATE_CLAIM(String.valueOf("proof_invalidate_claim")), + + INTERNAL_VALIDATIONS(String.valueOf("internal_validations")), + + PROOF_OF_CANCELLATION(String.valueOf("proof_of_cancellation")), + + RECURRING_CONTRACT(String.valueOf("recurring_contract")), + + PROOF_OF_RETURN(String.valueOf("proof_of_return")), + + EXHIBIT_8(String.valueOf("exhibit_8")), + + DUPLICATE_ANALYSIS(String.valueOf("duplicate_analysis")), + + FULL_EVIDENCE(String.valueOf("full_evidence")), + + UNKNOWN_DEFAULT_OPEN_API(String.valueOf("unknown_default_open_api")); + + private String value; + + EvidenceTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static EvidenceTypeEnum fromValue(String value) { + for (EvidenceTypeEnum b : EvidenceTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return UNKNOWN_DEFAULT_OPEN_API; + } + } + + public static final String JSON_PROPERTY_EVIDENCE_TYPE = "evidence_type"; + @javax.annotation.Nullable + private EvidenceTypeEnum evidenceType; + + public static final String JSON_PROPERTY_URL = "url"; + @javax.annotation.Nullable + private String url; + + public ChargebackEvidenceFileResponse() { + } + + public ChargebackEvidenceFileResponse id(@javax.annotation.Nullable String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(value = JSON_PROPERTY_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable String id) { + this.id = id; + } + + + public ChargebackEvidenceFileResponse name(@javax.annotation.Nullable String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(@javax.annotation.Nullable String name) { + this.name = name; + } + + + public ChargebackEvidenceFileResponse createdAt(@javax.annotation.Nullable OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedAt(@javax.annotation.Nullable OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public ChargebackEvidenceFileResponse evidenceType(@javax.annotation.Nullable EvidenceTypeEnum evidenceType) { + this.evidenceType = evidenceType; + return this; + } + + /** + * The evidence type used for a chargeback file upload + * @return evidenceType + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_EVIDENCE_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public EvidenceTypeEnum getEvidenceType() { + return evidenceType; + } + + + @JsonProperty(value = JSON_PROPERTY_EVIDENCE_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEvidenceType(@javax.annotation.Nullable EvidenceTypeEnum evidenceType) { + this.evidenceType = evidenceType; + } + + + public ChargebackEvidenceFileResponse url(@javax.annotation.Nullable String url) { + this.url = url; + return this; + } + + /** + * Presigned download URL for the file. Only present when fetching a single file. + * @return url + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_URL, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUrl() { + return url; + } + + + @JsonProperty(value = JSON_PROPERTY_URL, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUrl(@javax.annotation.Nullable String url) { + this.url = url; + } + + + /** + * Return true if this chargeback_evidence_file_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ChargebackEvidenceFileResponse chargebackEvidenceFileResponse = (ChargebackEvidenceFileResponse) o; + return Objects.equals(this.id, chargebackEvidenceFileResponse.id) && + Objects.equals(this.name, chargebackEvidenceFileResponse.name) && + Objects.equals(this.createdAt, chargebackEvidenceFileResponse.createdAt) && + Objects.equals(this.evidenceType, chargebackEvidenceFileResponse.evidenceType) && + Objects.equals(this.url, chargebackEvidenceFileResponse.url); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, createdAt, evidenceType, url); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChargebackEvidenceFileResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" evidenceType: ").append(toIndentedString(evidenceType)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/conekta/model/ChargebackEvidenceTypeResponse.java b/src/main/java/com/conekta/model/ChargebackEvidenceTypeResponse.java new file mode 100644 index 0000000..faa4adb --- /dev/null +++ b/src/main/java/com/conekta/model/ChargebackEvidenceTypeResponse.java @@ -0,0 +1,247 @@ +/* + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.3.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.conekta.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.conekta.JSON; + + +/** + * An evidence type accepted for a chargeback, and the constraints for uploading it + */ +@JsonPropertyOrder({ + ChargebackEvidenceTypeResponse.JSON_PROPERTY_TYPE, + ChargebackEvidenceTypeResponse.JSON_PROPERTY_PERMIT_FORMATS, + ChargebackEvidenceTypeResponse.JSON_PROPERTY_REQUIRED +}) +@JsonTypeName("chargeback_evidence_type_response") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class ChargebackEvidenceTypeResponse { + /** + * The evidence type used for a chargeback file upload + */ + public enum TypeEnum { + CHARGE_INFORMATION(String.valueOf("charge_information")), + + CONTRACT(String.valueOf("contract")), + + OTHER_EVIDENCE(String.valueOf("other_evidence")), + + RECEIPT_OF_SHIPMENT(String.valueOf("receipt_of_shipment")), + + IDENTIFICATION(String.valueOf("identification")), + + ORDER_DETAILS(String.valueOf("order_details")), + + TERMS_AND_CONDITIONS(String.valueOf("terms_and_conditions")), + + CARDHOLDER_INFORMATION(String.valueOf("cardholder_information")), + + PROOF_INVALIDATE_CLAIM(String.valueOf("proof_invalidate_claim")), + + INTERNAL_VALIDATIONS(String.valueOf("internal_validations")), + + PROOF_OF_CANCELLATION(String.valueOf("proof_of_cancellation")), + + RECURRING_CONTRACT(String.valueOf("recurring_contract")), + + PROOF_OF_RETURN(String.valueOf("proof_of_return")), + + EXHIBIT_8(String.valueOf("exhibit_8")), + + DUPLICATE_ANALYSIS(String.valueOf("duplicate_analysis")), + + FULL_EVIDENCE(String.valueOf("full_evidence")), + + UNKNOWN_DEFAULT_OPEN_API(String.valueOf("unknown_default_open_api")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return UNKNOWN_DEFAULT_OPEN_API; + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + @javax.annotation.Nullable + private TypeEnum type; + + public static final String JSON_PROPERTY_PERMIT_FORMATS = "permit_formats"; + @javax.annotation.Nullable + private List permitFormats = new ArrayList<>(); + + public static final String JSON_PROPERTY_REQUIRED = "required"; + @javax.annotation.Nullable + private Boolean required; + + public ChargebackEvidenceTypeResponse() { + } + + public ChargebackEvidenceTypeResponse type(@javax.annotation.Nullable TypeEnum type) { + this.type = type; + return this; + } + + /** + * The evidence type used for a chargeback file upload + * @return type + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public TypeEnum getType() { + return type; + } + + + @JsonProperty(value = JSON_PROPERTY_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(@javax.annotation.Nullable TypeEnum type) { + this.type = type; + } + + + public ChargebackEvidenceTypeResponse permitFormats(@javax.annotation.Nullable List permitFormats) { + this.permitFormats = permitFormats; + return this; + } + + public ChargebackEvidenceTypeResponse addPermitFormatsItem(String permitFormatsItem) { + if (this.permitFormats == null) { + this.permitFormats = new ArrayList<>(); + } + this.permitFormats.add(permitFormatsItem); + return this; + } + + /** + * Get permitFormats + * @return permitFormats + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_PERMIT_FORMATS, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getPermitFormats() { + return permitFormats; + } + + + @JsonProperty(value = JSON_PROPERTY_PERMIT_FORMATS, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPermitFormats(@javax.annotation.Nullable List permitFormats) { + this.permitFormats = permitFormats; + } + + + public ChargebackEvidenceTypeResponse required(@javax.annotation.Nullable Boolean required) { + this.required = required; + return this; + } + + /** + * Get required + * @return required + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getRequired() { + return required; + } + + + @JsonProperty(value = JSON_PROPERTY_REQUIRED, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRequired(@javax.annotation.Nullable Boolean required) { + this.required = required; + } + + + /** + * Return true if this chargeback_evidence_type_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ChargebackEvidenceTypeResponse chargebackEvidenceTypeResponse = (ChargebackEvidenceTypeResponse) o; + return Objects.equals(this.type, chargebackEvidenceTypeResponse.type) && + Objects.equals(this.permitFormats, chargebackEvidenceTypeResponse.permitFormats) && + Objects.equals(this.required, chargebackEvidenceTypeResponse.required); + } + + @Override + public int hashCode() { + return Objects.hash(type, permitFormats, required); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChargebackEvidenceTypeResponse {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" permitFormats: ").append(toIndentedString(permitFormats)).append("\n"); + sb.append(" required: ").append(toIndentedString(required)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/conekta/model/ChargebackFileResponse.java b/src/main/java/com/conekta/model/ChargebackFileResponse.java index e36bd2d..4529d5e 100644 --- a/src/main/java/com/conekta/model/ChargebackFileResponse.java +++ b/src/main/java/com/conekta/model/ChargebackFileResponse.java @@ -36,7 +36,7 @@ ChargebackFileResponse.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("chargeback_file_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ChargebackFileResponse { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/ChargebackFilesBatchResponse.java b/src/main/java/com/conekta/model/ChargebackFilesBatchResponse.java new file mode 100644 index 0000000..772808a --- /dev/null +++ b/src/main/java/com/conekta/model/ChargebackFilesBatchResponse.java @@ -0,0 +1,119 @@ +/* + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.3.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.conekta.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.conekta.model.ChargebackEvidenceFileResponse; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.conekta.JSON; + + +/** + * Result of a batch evidence file upload + */ +@JsonPropertyOrder({ + ChargebackFilesBatchResponse.JSON_PROPERTY_FILES +}) +@JsonTypeName("chargeback_files_batch_response") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class ChargebackFilesBatchResponse { + public static final String JSON_PROPERTY_FILES = "files"; + @javax.annotation.Nullable + private List files = new ArrayList<>(); + + public ChargebackFilesBatchResponse() { + } + + public ChargebackFilesBatchResponse files(@javax.annotation.Nullable List files) { + this.files = files; + return this; + } + + public ChargebackFilesBatchResponse addFilesItem(ChargebackEvidenceFileResponse filesItem) { + if (this.files == null) { + this.files = new ArrayList<>(); + } + this.files.add(filesItem); + return this; + } + + /** + * Get files + * @return files + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getFiles() { + return files; + } + + + @JsonProperty(value = JSON_PROPERTY_FILES, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFiles(@javax.annotation.Nullable List files) { + this.files = files; + } + + + /** + * Return true if this chargeback_files_batch_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ChargebackFilesBatchResponse chargebackFilesBatchResponse = (ChargebackFilesBatchResponse) o; + return Objects.equals(this.files, chargebackFilesBatchResponse.files); + } + + @Override + public int hashCode() { + return Objects.hash(files); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChargebackFilesBatchResponse {\n"); + sb.append(" files: ").append(toIndentedString(files)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/conekta/model/ChargebackResponse.java b/src/main/java/com/conekta/model/ChargebackResponse.java index f7ad18b..bcc998a 100644 --- a/src/main/java/com/conekta/model/ChargebackResponse.java +++ b/src/main/java/com/conekta/model/ChargebackResponse.java @@ -46,7 +46,7 @@ ChargebackResponse.JSON_PROPERTY_EVIDENCE_DUE_BY }) @JsonTypeName("chargeback_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ChargebackResponse { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/ChargesDataResponse.java b/src/main/java/com/conekta/model/ChargesDataResponse.java index 1675d9f..082a50b 100644 --- a/src/main/java/com/conekta/model/ChargesDataResponse.java +++ b/src/main/java/com/conekta/model/ChargesDataResponse.java @@ -36,6 +36,7 @@ @JsonPropertyOrder({ ChargesDataResponse.JSON_PROPERTY_AMOUNT, ChargesDataResponse.JSON_PROPERTY_CHANNEL, + ChargesDataResponse.JSON_PROPERTY_CONEKTA_ACCOUNT_ID, ChargesDataResponse.JSON_PROPERTY_CREATED_AT, ChargesDataResponse.JSON_PROPERTY_CURRENCY, ChargesDataResponse.JSON_PROPERTY_CUSTOMER_ID, @@ -55,16 +56,20 @@ ChargesDataResponse.JSON_PROPERTY_STATUS }) @JsonTypeName("charges_data_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ChargesDataResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private Integer amount; public static final String JSON_PROPERTY_CHANNEL = "channel"; @javax.annotation.Nullable private ChargeResponseChannel channel; + public static final String JSON_PROPERTY_CONEKTA_ACCOUNT_ID = "conekta_account_id"; + @javax.annotation.Nullable + private String conektaAccountId; + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; @javax.annotation.Nonnull private Long createdAt; @@ -136,7 +141,7 @@ public class ChargesDataResponse { public ChargesDataResponse() { } - public ChargesDataResponse amount(@javax.annotation.Nonnull Integer amount) { + public ChargesDataResponse amount(@javax.annotation.Nullable Integer amount) { this.amount = amount; return this; } @@ -145,18 +150,18 @@ public ChargesDataResponse amount(@javax.annotation.Nonnull Integer amount) { * Get amount * @return amount */ - @javax.annotation.Nonnull - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getAmount() { return amount; } - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAmount(@javax.annotation.Nonnull Integer amount) { + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmount(@javax.annotation.Nullable Integer amount) { this.amount = amount; } @@ -186,13 +191,38 @@ public void setChannel(@javax.annotation.Nullable ChargeResponseChannel channel) } + public ChargesDataResponse conektaAccountId(@javax.annotation.Nullable String conektaAccountId) { + this.conektaAccountId = conektaAccountId; + return this; + } + + /** + * Conekta account ID of the charge, if the charge was paid through a Conekta account. + * @return conektaAccountId + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_CONEKTA_ACCOUNT_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getConektaAccountId() { + return conektaAccountId; + } + + + @JsonProperty(value = JSON_PROPERTY_CONEKTA_ACCOUNT_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConektaAccountId(@javax.annotation.Nullable String conektaAccountId) { + this.conektaAccountId = conektaAccountId; + } + + public ChargesDataResponse createdAt(@javax.annotation.Nonnull Long createdAt) { this.createdAt = createdAt; return this; } /** - * Get createdAt + * Charge creation date, in seconds since the Unix epoch * @return createdAt */ @javax.annotation.Nonnull @@ -217,7 +247,7 @@ public ChargesDataResponse currency(@javax.annotation.Nonnull String currency) { } /** - * Get currency + * Currency of the charge, in ISO 4217 format * @return currency */ @javax.annotation.Nonnull @@ -625,6 +655,7 @@ public boolean equals(Object o) { ChargesDataResponse chargesDataResponse = (ChargesDataResponse) o; return Objects.equals(this.amount, chargesDataResponse.amount) && Objects.equals(this.channel, chargesDataResponse.channel) && + Objects.equals(this.conektaAccountId, chargesDataResponse.conektaAccountId) && Objects.equals(this.createdAt, chargesDataResponse.createdAt) && Objects.equals(this.currency, chargesDataResponse.currency) && Objects.equals(this.customerId, chargesDataResponse.customerId) && @@ -646,7 +677,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(amount, channel, createdAt, currency, customerId, description, deviceFingerprint, failureCode, failureMessage, id, livemode, _object, orderId, paidAt, paymentMethod, referenceId, refunds, chargeback, status); + return Objects.hash(amount, channel, conektaAccountId, createdAt, currency, customerId, description, deviceFingerprint, failureCode, failureMessage, id, livemode, _object, orderId, paidAt, paymentMethod, referenceId, refunds, chargeback, status); } @Override @@ -655,6 +686,7 @@ public String toString() { sb.append("class ChargesDataResponse {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" conektaAccountId: ").append(toIndentedString(conektaAccountId)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); diff --git a/src/main/java/com/conekta/model/ChargesOrderResponse.java b/src/main/java/com/conekta/model/ChargesOrderResponse.java index fe640e1..ebd6632 100644 --- a/src/main/java/com/conekta/model/ChargesOrderResponse.java +++ b/src/main/java/com/conekta/model/ChargesOrderResponse.java @@ -40,7 +40,7 @@ ChargesOrderResponse.JSON_PROPERTY_DATA }) @JsonTypeName("charges_order_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ChargesOrderResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/Checkout.java b/src/main/java/com/conekta/model/Checkout.java index 19a2451..cc0a283 100644 --- a/src/main/java/com/conekta/model/Checkout.java +++ b/src/main/java/com/conekta/model/Checkout.java @@ -46,12 +46,13 @@ Checkout.JSON_PROPERTY_PLAN_IDS, Checkout.JSON_PROPERTY_ORDER_TEMPLATE, Checkout.JSON_PROPERTY_PAYMENTS_LIMIT_COUNT, + Checkout.JSON_PROPERTY_REDIRECTION_TIME, Checkout.JSON_PROPERTY_SUCCESS_URL, Checkout.JSON_PROPERTY_RECURRENT, Checkout.JSON_PROPERTY_TYPE }) @JsonTypeName("checkout") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class Checkout { public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS = "allowed_payment_methods"; @javax.annotation.Nullable @@ -108,9 +109,7 @@ public static ExcludedPaymentMethodsEnum fromValue(String value) { * Gets or Sets excludeCardNetworks */ public enum ExcludeCardNetworksEnum { - VISA(String.valueOf("visa")), - - MASTERCARD(String.valueOf("mastercard")), + VISA_MASTER_CARD(String.valueOf("visa_master_card")), AMEX(String.valueOf("amex")), @@ -159,9 +158,48 @@ public static ExcludeCardNetworksEnum fromValue(String value) { @javax.annotation.Nullable private List monthlyInstallmentsOptions = new ArrayList<>(); + /** + * Indicates the 3DS2 mode: 'strict', 'not_strict' or 'smart'. To defer to the company-level 3DS configuration, omit the field (an explicit null is rejected on creation). + */ + public enum ThreeDsModeEnum { + STRICT(String.valueOf("strict")), + + NOT_STRICT(String.valueOf("not_strict")), + + SMART(String.valueOf("smart")), + + UNKNOWN_DEFAULT_OPEN_API(String.valueOf("unknown_default_open_api")); + + private String value; + + ThreeDsModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ThreeDsModeEnum fromValue(String value) { + for (ThreeDsModeEnum b : ThreeDsModeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return UNKNOWN_DEFAULT_OPEN_API; + } + } + public static final String JSON_PROPERTY_THREE_DS_MODE = "three_ds_mode"; @javax.annotation.Nullable - private String threeDsMode; + private ThreeDsModeEnum threeDsMode; public static final String JSON_PROPERTY_NAME = "name"; @javax.annotation.Nonnull @@ -187,6 +225,10 @@ public static ExcludeCardNetworksEnum fromValue(String value) { @javax.annotation.Nullable private Integer paymentsLimitCount; + public static final String JSON_PROPERTY_REDIRECTION_TIME = "redirection_time"; + @javax.annotation.Nullable + private Integer redirectionTime; + public static final String JSON_PROPERTY_SUCCESS_URL = "success_url"; @javax.annotation.Nullable private String successUrl; @@ -282,7 +324,7 @@ public Checkout addExcludeCardNetworksItem(ExcludeCardNetworksEnum excludeCardNe } /** - * List of card networks to exclude from the checkout. This field is only applicable for card payments. + * List of card networks to exclude from the checkout. This field is only applicable for card payments. Accepted values: 'visa_master_card' (a single token excluding both Visa and Mastercard) and 'amex'. * @return excludeCardNetworks */ @javax.annotation.Nullable @@ -385,27 +427,27 @@ public void setMonthlyInstallmentsOptions(@javax.annotation.Nullable List users = new ArrayList<>(); + public CreateCompanyRequest() { } @@ -190,6 +197,39 @@ public void setBankAccountInfo(@javax.annotation.Nullable CreateCompanyRequestBa } + public CreateCompanyRequest users(@javax.annotation.Nullable List users) { + this.users = users; + return this; + } + + public CreateCompanyRequest addUsersItem(String usersItem) { + if (this.users == null) { + this.users = new ArrayList<>(); + } + this.users.add(usersItem); + return this; + } + + /** + * User emails for the company + * @return users + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_USERS, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getUsers() { + return users; + } + + + @JsonProperty(value = JSON_PROPERTY_USERS, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUsers(@javax.annotation.Nullable List users) { + this.users = users; + } + + /** * Return true if this Create_Company_Request object is equal to o. */ @@ -206,12 +246,13 @@ public boolean equals(Object o) { Objects.equals(this.typeCompany, createCompanyRequest.typeCompany) && Objects.equals(this.comercialInfo, createCompanyRequest.comercialInfo) && Objects.equals(this.fiscalInfo, createCompanyRequest.fiscalInfo) && - Objects.equals(this.bankAccountInfo, createCompanyRequest.bankAccountInfo); + Objects.equals(this.bankAccountInfo, createCompanyRequest.bankAccountInfo) && + Objects.equals(this.users, createCompanyRequest.users); } @Override public int hashCode() { - return Objects.hash(name, typeCompany, comercialInfo, fiscalInfo, bankAccountInfo); + return Objects.hash(name, typeCompany, comercialInfo, fiscalInfo, bankAccountInfo, users); } @Override @@ -223,6 +264,7 @@ public String toString() { sb.append(" comercialInfo: ").append(toIndentedString(comercialInfo)).append("\n"); sb.append(" fiscalInfo: ").append(toIndentedString(fiscalInfo)).append("\n"); sb.append(" bankAccountInfo: ").append(toIndentedString(bankAccountInfo)).append("\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/conekta/model/CreateCompanyRequestBankAccountInfo.java b/src/main/java/com/conekta/model/CreateCompanyRequestBankAccountInfo.java index f6135c6..9f5ab7c 100644 --- a/src/main/java/com/conekta/model/CreateCompanyRequestBankAccountInfo.java +++ b/src/main/java/com/conekta/model/CreateCompanyRequestBankAccountInfo.java @@ -33,7 +33,7 @@ CreateCompanyRequestBankAccountInfo.JSON_PROPERTY_CLABE }) @JsonTypeName("Create_Company_Request_bank_account_info") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CreateCompanyRequestBankAccountInfo { public static final String JSON_PROPERTY_CLABE = "clabe"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CreateCompanyRequestComercialInfo.java b/src/main/java/com/conekta/model/CreateCompanyRequestComercialInfo.java index 7699d7a..c116c2c 100644 --- a/src/main/java/com/conekta/model/CreateCompanyRequestComercialInfo.java +++ b/src/main/java/com/conekta/model/CreateCompanyRequestComercialInfo.java @@ -36,7 +36,7 @@ CreateCompanyRequestComercialInfo.JSON_PROPERTY_MERCHANT_SUPPORT_PHONE }) @JsonTypeName("Create_Company_Request_comercial_info") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CreateCompanyRequestComercialInfo { public static final String JSON_PROPERTY_WEBSITE = "website"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CreateCompanyRequestFiscalInfo.java b/src/main/java/com/conekta/model/CreateCompanyRequestFiscalInfo.java index 7983656..25004ed 100644 --- a/src/main/java/com/conekta/model/CreateCompanyRequestFiscalInfo.java +++ b/src/main/java/com/conekta/model/CreateCompanyRequestFiscalInfo.java @@ -34,7 +34,7 @@ CreateCompanyRequestFiscalInfo.JSON_PROPERTY_FISCAL_TYPE }) @JsonTypeName("Create_Company_Request_fiscal_info") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CreateCompanyRequestFiscalInfo { public static final String JSON_PROPERTY_BUSINESS_PHONE = "business_phone"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CreateCustomerFiscalEntitiesResponse.java b/src/main/java/com/conekta/model/CreateCustomerFiscalEntitiesResponse.java index a43a806..de03032 100644 --- a/src/main/java/com/conekta/model/CreateCustomerFiscalEntitiesResponse.java +++ b/src/main/java/com/conekta/model/CreateCustomerFiscalEntitiesResponse.java @@ -46,7 +46,7 @@ CreateCustomerFiscalEntitiesResponse.JSON_PROPERTY_DEFAULT }) @JsonTypeName("create_customer_fiscal_entities_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CreateCustomerFiscalEntitiesResponse { public static final String JSON_PROPERTY_ADDRESS = "address"; @javax.annotation.Nonnull @@ -66,7 +66,7 @@ public class CreateCustomerFiscalEntitiesResponse { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata; + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_COMPANY_NAME = "company_name"; @javax.annotation.Nullable @@ -200,6 +200,14 @@ public CreateCustomerFiscalEntitiesResponse metadata(@javax.annotation.Nullable return this; } + public CreateCustomerFiscalEntitiesResponse putMetadataItem(String key, Object metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * Get metadata * @return metadata diff --git a/src/main/java/com/conekta/model/CreateCustomerPaymentMethodsRequest.java b/src/main/java/com/conekta/model/CreateCustomerPaymentMethodsRequest.java index 17a5595..de47f56 100644 --- a/src/main/java/com/conekta/model/CreateCustomerPaymentMethodsRequest.java +++ b/src/main/java/com/conekta/model/CreateCustomerPaymentMethodsRequest.java @@ -55,7 +55,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.conekta.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") @JsonDeserialize(using = CreateCustomerPaymentMethodsRequest.CreateCustomerPaymentMethodsRequestDeserializer.class) @JsonSerialize(using = CreateCustomerPaymentMethodsRequest.CreateCustomerPaymentMethodsRequestSerializer.class) public class CreateCustomerPaymentMethodsRequest extends AbstractOpenApiSchema { diff --git a/src/main/java/com/conekta/model/CreateCustomerPaymentMethodsResponse.java b/src/main/java/com/conekta/model/CreateCustomerPaymentMethodsResponse.java index 333e8bb..5532920 100644 --- a/src/main/java/com/conekta/model/CreateCustomerPaymentMethodsResponse.java +++ b/src/main/java/com/conekta/model/CreateCustomerPaymentMethodsResponse.java @@ -62,7 +62,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.conekta.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") @JsonDeserialize(using = CreateCustomerPaymentMethodsResponse.CreateCustomerPaymentMethodsResponseDeserializer.class) @JsonSerialize(using = CreateCustomerPaymentMethodsResponse.CreateCustomerPaymentMethodsResponseSerializer.class) public class CreateCustomerPaymentMethodsResponse extends AbstractOpenApiSchema { diff --git a/src/main/java/com/conekta/model/CreateRuleWhitelistRequest.java b/src/main/java/com/conekta/model/CreateRuleWhitelistRequest.java index e44ee3e..d5be4e2 100644 --- a/src/main/java/com/conekta/model/CreateRuleWhitelistRequest.java +++ b/src/main/java/com/conekta/model/CreateRuleWhitelistRequest.java @@ -35,7 +35,7 @@ CreateRuleWhitelistRequest.JSON_PROPERTY_VALUE }) @JsonTypeName("CreateRuleWhitelist_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CreateRuleWhitelistRequest { public static final String JSON_PROPERTY_DESCRIPTION = "description"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/Customer.java b/src/main/java/com/conekta/model/Customer.java index 0f10922..62e9a5c 100644 --- a/src/main/java/com/conekta/model/Customer.java +++ b/src/main/java/com/conekta/model/Customer.java @@ -57,7 +57,7 @@ Customer.JSON_PROPERTY_SUBSCRIPTION }) @JsonTypeName("customer") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class Customer { public static final String JSON_PROPERTY_ANTIFRAUD_INFO = "antifraud_info"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CustomerAntifraudInfo.java b/src/main/java/com/conekta/model/CustomerAntifraudInfo.java index 4952c43..c6795a0 100644 --- a/src/main/java/com/conekta/model/CustomerAntifraudInfo.java +++ b/src/main/java/com/conekta/model/CustomerAntifraudInfo.java @@ -34,7 +34,7 @@ CustomerAntifraudInfo.JSON_PROPERTY_FIRST_PAID_AT }) @JsonTypeName("customer_antifraud_info") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerAntifraudInfo { public static final String JSON_PROPERTY_ACCOUNT_CREATED_AT = "account_created_at"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CustomerAntifraudInfoResponse.java b/src/main/java/com/conekta/model/CustomerAntifraudInfoResponse.java index b4cd445..23373d3 100644 --- a/src/main/java/com/conekta/model/CustomerAntifraudInfoResponse.java +++ b/src/main/java/com/conekta/model/CustomerAntifraudInfoResponse.java @@ -34,7 +34,7 @@ CustomerAntifraudInfoResponse.JSON_PROPERTY_ACCOUNT_CREATED_AT }) @JsonTypeName("customer_antifraud_info_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerAntifraudInfoResponse { public static final String JSON_PROPERTY_FIRST_PAID_AT = "first_paid_at"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CustomerDetails.java b/src/main/java/com/conekta/model/CustomerDetails.java index fbd6834..2a3279d 100644 --- a/src/main/java/com/conekta/model/CustomerDetails.java +++ b/src/main/java/com/conekta/model/CustomerDetails.java @@ -36,7 +36,7 @@ CustomerDetails.JSON_PROPERTY_EMAIL }) @JsonTypeName("customer_details") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerDetails { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CustomerFiscalEntitiesDataResponse.java b/src/main/java/com/conekta/model/CustomerFiscalEntitiesDataResponse.java index c0b398f..8800802 100644 --- a/src/main/java/com/conekta/model/CustomerFiscalEntitiesDataResponse.java +++ b/src/main/java/com/conekta/model/CustomerFiscalEntitiesDataResponse.java @@ -46,7 +46,7 @@ CustomerFiscalEntitiesDataResponse.JSON_PROPERTY_DEFAULT }) @JsonTypeName("customer_fiscal_entities_data_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerFiscalEntitiesDataResponse { public static final String JSON_PROPERTY_ADDRESS = "address"; @javax.annotation.Nonnull @@ -66,7 +66,7 @@ public class CustomerFiscalEntitiesDataResponse { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata; + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_COMPANY_NAME = "company_name"; @javax.annotation.Nullable @@ -200,6 +200,14 @@ public CustomerFiscalEntitiesDataResponse metadata(@javax.annotation.Nullable Ma return this; } + public CustomerFiscalEntitiesDataResponse putMetadataItem(String key, Object metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * Get metadata * @return metadata diff --git a/src/main/java/com/conekta/model/CustomerFiscalEntitiesResponse.java b/src/main/java/com/conekta/model/CustomerFiscalEntitiesResponse.java index fd5ce04..410e65a 100644 --- a/src/main/java/com/conekta/model/CustomerFiscalEntitiesResponse.java +++ b/src/main/java/com/conekta/model/CustomerFiscalEntitiesResponse.java @@ -38,7 +38,7 @@ CustomerFiscalEntitiesResponse.JSON_PROPERTY_DATA }) @JsonTypeName("customer_fiscal_entities_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerFiscalEntitiesResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/CustomerInfo.java b/src/main/java/com/conekta/model/CustomerInfo.java index 9d9b20e..fc6bcb0 100644 --- a/src/main/java/com/conekta/model/CustomerInfo.java +++ b/src/main/java/com/conekta/model/CustomerInfo.java @@ -37,7 +37,7 @@ CustomerInfo.JSON_PROPERTY_OBJECT }) @JsonTypeName("customer_info") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerInfo { public static final String JSON_PROPERTY_NAME = "name"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/CustomerInfoCustomerId.java b/src/main/java/com/conekta/model/CustomerInfoCustomerId.java index 442aeff..a328498 100644 --- a/src/main/java/com/conekta/model/CustomerInfoCustomerId.java +++ b/src/main/java/com/conekta/model/CustomerInfoCustomerId.java @@ -33,7 +33,7 @@ CustomerInfoCustomerId.JSON_PROPERTY_CUSTOMER_ID }) @JsonTypeName("customer_info_customer_id") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerInfoCustomerId { public static final String JSON_PROPERTY_CUSTOMER_ID = "customer_id"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/CustomerPaymentMethodsData.java b/src/main/java/com/conekta/model/CustomerPaymentMethodsData.java index de928ab..e276546 100644 --- a/src/main/java/com/conekta/model/CustomerPaymentMethodsData.java +++ b/src/main/java/com/conekta/model/CustomerPaymentMethodsData.java @@ -62,7 +62,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.conekta.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") @JsonDeserialize(using = CustomerPaymentMethodsData.CustomerPaymentMethodsDataDeserializer.class) @JsonSerialize(using = CustomerPaymentMethodsData.CustomerPaymentMethodsDataSerializer.class) public class CustomerPaymentMethodsData extends AbstractOpenApiSchema { diff --git a/src/main/java/com/conekta/model/CustomerPaymentMethodsRequest.java b/src/main/java/com/conekta/model/CustomerPaymentMethodsRequest.java index c8348b4..a8fdb74 100644 --- a/src/main/java/com/conekta/model/CustomerPaymentMethodsRequest.java +++ b/src/main/java/com/conekta/model/CustomerPaymentMethodsRequest.java @@ -55,7 +55,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.conekta.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") @JsonDeserialize(using = CustomerPaymentMethodsRequest.CustomerPaymentMethodsRequestDeserializer.class) @JsonSerialize(using = CustomerPaymentMethodsRequest.CustomerPaymentMethodsRequestSerializer.class) public class CustomerPaymentMethodsRequest extends AbstractOpenApiSchema { diff --git a/src/main/java/com/conekta/model/CustomerPaymentMethodsResponse.java b/src/main/java/com/conekta/model/CustomerPaymentMethodsResponse.java index 426edc8..3d42619 100644 --- a/src/main/java/com/conekta/model/CustomerPaymentMethodsResponse.java +++ b/src/main/java/com/conekta/model/CustomerPaymentMethodsResponse.java @@ -40,7 +40,7 @@ CustomerPaymentMethodsResponse.JSON_PROPERTY_DATA }) @JsonTypeName("customer_payment_methods_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerPaymentMethodsResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/CustomerPortalResponse.java b/src/main/java/com/conekta/model/CustomerPortalResponse.java index 70ee1a2..47ad137 100644 --- a/src/main/java/com/conekta/model/CustomerPortalResponse.java +++ b/src/main/java/com/conekta/model/CustomerPortalResponse.java @@ -47,7 +47,7 @@ CustomerPortalResponse.JSON_PROPERTY_PORTAL_URL }) @JsonTypeName("customer_portal_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerPortalResponse { public static final String JSON_PROPERTY_SLUG = "slug"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CustomerResponse.java b/src/main/java/com/conekta/model/CustomerResponse.java index 446f141..8318b5a 100644 --- a/src/main/java/com/conekta/model/CustomerResponse.java +++ b/src/main/java/com/conekta/model/CustomerResponse.java @@ -59,7 +59,7 @@ CustomerResponse.JSON_PROPERTY_SUBSCRIPTION }) @JsonTypeName("customer_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerResponse { public static final String JSON_PROPERTY_ANTIFRAUD_INFO = "antifraud_info"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CustomerResponseShippingContacts.java b/src/main/java/com/conekta/model/CustomerResponseShippingContacts.java index 58d37f2..2634b65 100644 --- a/src/main/java/com/conekta/model/CustomerResponseShippingContacts.java +++ b/src/main/java/com/conekta/model/CustomerResponseShippingContacts.java @@ -38,7 +38,7 @@ CustomerResponseShippingContacts.JSON_PROPERTY_DATA }) @JsonTypeName("customer_response_shipping_contacts") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerResponseShippingContacts { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/CustomerShippingContactsAddress.java b/src/main/java/com/conekta/model/CustomerShippingContactsAddress.java index 877c990..6ca8a3f 100644 --- a/src/main/java/com/conekta/model/CustomerShippingContactsAddress.java +++ b/src/main/java/com/conekta/model/CustomerShippingContactsAddress.java @@ -40,7 +40,7 @@ CustomerShippingContactsAddress.JSON_PROPERTY_RESIDENTIAL }) @JsonTypeName("customer_shipping_contacts_address") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerShippingContactsAddress { public static final String JSON_PROPERTY_OBJECT = "object"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CustomerShippingContactsDataResponse.java b/src/main/java/com/conekta/model/CustomerShippingContactsDataResponse.java index 27e91a8..f7aa988 100644 --- a/src/main/java/com/conekta/model/CustomerShippingContactsDataResponse.java +++ b/src/main/java/com/conekta/model/CustomerShippingContactsDataResponse.java @@ -46,7 +46,7 @@ CustomerShippingContactsDataResponse.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("customer_shipping_contacts_data_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerShippingContactsDataResponse { public static final String JSON_PROPERTY_PHONE = "phone"; @javax.annotation.Nullable @@ -151,7 +151,7 @@ public CustomerShippingContactsDataResponse betweenStreets(@javax.annotation.Nul } /** - * The street names between which the order will be delivered. + * The street names between which the order will be delivered. Must contain at least two consecutive ASCII letters. * @return betweenStreets */ @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CustomerShippingContactsRequest.java b/src/main/java/com/conekta/model/CustomerShippingContactsRequest.java index d987dbf..f3a6577 100644 --- a/src/main/java/com/conekta/model/CustomerShippingContactsRequest.java +++ b/src/main/java/com/conekta/model/CustomerShippingContactsRequest.java @@ -43,7 +43,7 @@ CustomerShippingContactsRequest.JSON_PROPERTY_METADATA }) @JsonTypeName("customer_shipping_contacts_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerShippingContactsRequest { public static final String JSON_PROPERTY_PHONE = "phone"; @javax.annotation.Nullable @@ -136,7 +136,7 @@ public CustomerShippingContactsRequest betweenStreets(@javax.annotation.Nullable } /** - * The street names between which the order will be delivered. + * The street names between which the order will be delivered. Must contain at least two consecutive ASCII letters. * @return betweenStreets */ @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CustomerShippingContactsRequestAddress.java b/src/main/java/com/conekta/model/CustomerShippingContactsRequestAddress.java index abc28dc..6e6bcc1 100644 --- a/src/main/java/com/conekta/model/CustomerShippingContactsRequestAddress.java +++ b/src/main/java/com/conekta/model/CustomerShippingContactsRequestAddress.java @@ -27,7 +27,7 @@ /** - * Address of the person who will receive the order + * CustomerShippingContactsRequestAddress */ @JsonPropertyOrder({ CustomerShippingContactsRequestAddress.JSON_PROPERTY_STREET1, @@ -39,10 +39,10 @@ CustomerShippingContactsRequestAddress.JSON_PROPERTY_RESIDENTIAL }) @JsonTypeName("customer_shipping_contacts_request_address") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerShippingContactsRequestAddress { public static final String JSON_PROPERTY_STREET1 = "street1"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private String street1; public static final String JSON_PROPERTY_STREET2 = "street2"; @@ -50,7 +50,7 @@ public class CustomerShippingContactsRequestAddress { private String street2; public static final String JSON_PROPERTY_POSTAL_CODE = "postal_code"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private String postalCode; public static final String JSON_PROPERTY_CITY = "city"; @@ -62,37 +62,37 @@ public class CustomerShippingContactsRequestAddress { private String state; public static final String JSON_PROPERTY_COUNTRY = "country"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private String country; public static final String JSON_PROPERTY_RESIDENTIAL = "residential"; @javax.annotation.Nullable - private Boolean residential; + private Boolean residential = true; public CustomerShippingContactsRequestAddress() { } - public CustomerShippingContactsRequestAddress street1(@javax.annotation.Nullable String street1) { + public CustomerShippingContactsRequestAddress street1(@javax.annotation.Nonnull String street1) { this.street1 = street1; return this; } /** - * Get street1 + * Street and number of the delivery address. * @return street1 */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_STREET1, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_STREET1, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStreet1() { return street1; } - @JsonProperty(value = JSON_PROPERTY_STREET1, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setStreet1(@javax.annotation.Nullable String street1) { + @JsonProperty(value = JSON_PROPERTY_STREET1, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStreet1(@javax.annotation.Nonnull String street1) { this.street1 = street1; } @@ -103,7 +103,7 @@ public CustomerShippingContactsRequestAddress street2(@javax.annotation.Nullable } /** - * Get street2 + * Apartment, suite or interior reference for the delivery address. * @return street2 */ @javax.annotation.Nullable @@ -122,27 +122,27 @@ public void setStreet2(@javax.annotation.Nullable String street2) { } - public CustomerShippingContactsRequestAddress postalCode(@javax.annotation.Nullable String postalCode) { + public CustomerShippingContactsRequestAddress postalCode(@javax.annotation.Nonnull String postalCode) { this.postalCode = postalCode; return this; } /** - * Get postalCode + * Postal code of the delivery address. For Mexican addresses (country MX) it must be a 5-digit postal code. * @return postalCode */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_POSTAL_CODE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_POSTAL_CODE, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getPostalCode() { return postalCode; } - @JsonProperty(value = JSON_PROPERTY_POSTAL_CODE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPostalCode(@javax.annotation.Nullable String postalCode) { + @JsonProperty(value = JSON_PROPERTY_POSTAL_CODE, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPostalCode(@javax.annotation.Nonnull String postalCode) { this.postalCode = postalCode; } @@ -153,7 +153,7 @@ public CustomerShippingContactsRequestAddress city(@javax.annotation.Nullable St } /** - * Get city + * City of the delivery address. Must contain at least two consecutive ASCII letters. * @return city */ @javax.annotation.Nullable @@ -178,7 +178,7 @@ public CustomerShippingContactsRequestAddress state(@javax.annotation.Nullable S } /** - * Get state + * State of the delivery address. * @return state */ @javax.annotation.Nullable @@ -197,27 +197,27 @@ public void setState(@javax.annotation.Nullable String state) { } - public CustomerShippingContactsRequestAddress country(@javax.annotation.Nullable String country) { + public CustomerShippingContactsRequestAddress country(@javax.annotation.Nonnull String country) { this.country = country; return this; } /** - * this field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * Country of the delivery address. This field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). * @return country */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCountry() { return country; } - @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountry(@javax.annotation.Nullable String country) { + @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCountry(@javax.annotation.Nonnull String country) { this.country = country; } @@ -228,7 +228,7 @@ public CustomerShippingContactsRequestAddress residential(@javax.annotation.Null } /** - * Get residential + * Indicates whether the delivery address is residential. * @return residential */ @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CustomerShippingContactsResponse.java b/src/main/java/com/conekta/model/CustomerShippingContactsResponse.java index cd1503d..6a1c350 100644 --- a/src/main/java/com/conekta/model/CustomerShippingContactsResponse.java +++ b/src/main/java/com/conekta/model/CustomerShippingContactsResponse.java @@ -46,7 +46,7 @@ CustomerShippingContactsResponse.JSON_PROPERTY_DELETED }) @JsonTypeName("customer_shipping_contacts_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerShippingContactsResponse { public static final String JSON_PROPERTY_PHONE = "phone"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/CustomerUpdateShippingContactsRequest.java b/src/main/java/com/conekta/model/CustomerUpdateShippingContactsRequest.java index 5562c5f..0676ea2 100644 --- a/src/main/java/com/conekta/model/CustomerUpdateShippingContactsRequest.java +++ b/src/main/java/com/conekta/model/CustomerUpdateShippingContactsRequest.java @@ -16,7 +16,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; -import com.conekta.model.CustomerShippingContactsRequestAddress; +import com.conekta.model.ShippingContactAddress; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -40,7 +40,7 @@ CustomerUpdateShippingContactsRequest.JSON_PROPERTY_DELETED }) @JsonTypeName("customer_update_shipping_contacts_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomerUpdateShippingContactsRequest { public static final String JSON_PROPERTY_PHONE = "phone"; @javax.annotation.Nullable @@ -56,7 +56,7 @@ public class CustomerUpdateShippingContactsRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; @javax.annotation.Nullable - private CustomerShippingContactsRequestAddress address; + private ShippingContactAddress address; public static final String JSON_PROPERTY_PARENT_ID = "parent_id"; @javax.annotation.Nullable @@ -129,7 +129,7 @@ public CustomerUpdateShippingContactsRequest betweenStreets(@javax.annotation.Nu } /** - * The street names between which the order will be delivered. + * The street names between which the order will be delivered. Must contain at least two consecutive ASCII letters. * @return betweenStreets */ @javax.annotation.Nullable @@ -148,7 +148,7 @@ public void setBetweenStreets(@javax.annotation.Nullable String betweenStreets) } - public CustomerUpdateShippingContactsRequest address(@javax.annotation.Nullable CustomerShippingContactsRequestAddress address) { + public CustomerUpdateShippingContactsRequest address(@javax.annotation.Nullable ShippingContactAddress address) { this.address = address; return this; } @@ -161,14 +161,14 @@ public CustomerUpdateShippingContactsRequest address(@javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerShippingContactsRequestAddress getAddress() { + public ShippingContactAddress getAddress() { return address; } @JsonProperty(value = JSON_PROPERTY_ADDRESS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAddress(@javax.annotation.Nullable CustomerShippingContactsRequestAddress address) { + public void setAddress(@javax.annotation.Nullable ShippingContactAddress address) { this.address = address; } diff --git a/src/main/java/com/conekta/model/CustomersResponse.java b/src/main/java/com/conekta/model/CustomersResponse.java index 184afeb..d1e1dd7 100644 --- a/src/main/java/com/conekta/model/CustomersResponse.java +++ b/src/main/java/com/conekta/model/CustomersResponse.java @@ -40,7 +40,7 @@ CustomersResponse.JSON_PROPERTY_PREVIOUS_PAGE_URL }) @JsonTypeName("customers_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class CustomersResponse { public static final String JSON_PROPERTY_DATA = "data"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/DeleteApiKeysResponse.java b/src/main/java/com/conekta/model/DeleteApiKeysResponse.java index 619d4c1..d6266ce 100644 --- a/src/main/java/com/conekta/model/DeleteApiKeysResponse.java +++ b/src/main/java/com/conekta/model/DeleteApiKeysResponse.java @@ -42,7 +42,7 @@ DeleteApiKeysResponse.JSON_PROPERTY_DELETED }) @JsonTypeName("delete_api_keys_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class DeleteApiKeysResponse { public static final String JSON_PROPERTY_ACTIVE = "active"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/DeletedBlacklistRuleResponse.java b/src/main/java/com/conekta/model/DeletedBlacklistRuleResponse.java index eef8bf1..11a215c 100644 --- a/src/main/java/com/conekta/model/DeletedBlacklistRuleResponse.java +++ b/src/main/java/com/conekta/model/DeletedBlacklistRuleResponse.java @@ -36,7 +36,7 @@ DeletedBlacklistRuleResponse.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("deleted_blacklist_rule_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class DeletedBlacklistRuleResponse { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/DeletedWhitelistRuleResponse.java b/src/main/java/com/conekta/model/DeletedWhitelistRuleResponse.java index 7cb2d76..061590f 100644 --- a/src/main/java/com/conekta/model/DeletedWhitelistRuleResponse.java +++ b/src/main/java/com/conekta/model/DeletedWhitelistRuleResponse.java @@ -36,7 +36,7 @@ DeletedWhitelistRuleResponse.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("deleted_whitelist_rule_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class DeletedWhitelistRuleResponse { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/DetailsError.java b/src/main/java/com/conekta/model/DetailsError.java index 89dcde1..eef739b 100644 --- a/src/main/java/com/conekta/model/DetailsError.java +++ b/src/main/java/com/conekta/model/DetailsError.java @@ -36,7 +36,7 @@ DetailsError.JSON_PROPERTY_DEBUG_MESSAGE }) @JsonTypeName("details_error") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class DetailsError { public static final String JSON_PROPERTY_CODE = "code"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/DiscountLinesDataResponse.java b/src/main/java/com/conekta/model/DiscountLinesDataResponse.java index e2fdafc..d6b78b1 100644 --- a/src/main/java/com/conekta/model/DiscountLinesDataResponse.java +++ b/src/main/java/com/conekta/model/DiscountLinesDataResponse.java @@ -38,7 +38,7 @@ DiscountLinesDataResponse.JSON_PROPERTY_PARENT_ID }) @JsonTypeName("discount_lines_data_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class DiscountLinesDataResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/DiscountLinesResponse.java b/src/main/java/com/conekta/model/DiscountLinesResponse.java index 8afa227..a02fa2f 100644 --- a/src/main/java/com/conekta/model/DiscountLinesResponse.java +++ b/src/main/java/com/conekta/model/DiscountLinesResponse.java @@ -38,7 +38,7 @@ DiscountLinesResponse.JSON_PROPERTY_PARENT_ID }) @JsonTypeName("discount_lines_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class DiscountLinesResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/EmailCheckoutRequest.java b/src/main/java/com/conekta/model/EmailCheckoutRequest.java index 9dcf7d6..d64df6d 100644 --- a/src/main/java/com/conekta/model/EmailCheckoutRequest.java +++ b/src/main/java/com/conekta/model/EmailCheckoutRequest.java @@ -33,7 +33,7 @@ EmailCheckoutRequest.JSON_PROPERTY_EMAIL }) @JsonTypeName("emailCheckout_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class EmailCheckoutRequest { public static final String JSON_PROPERTY_EMAIL = "email"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/Error.java b/src/main/java/com/conekta/model/Error.java index f9702ca..1c4d43f 100644 --- a/src/main/java/com/conekta/model/Error.java +++ b/src/main/java/com/conekta/model/Error.java @@ -39,7 +39,7 @@ Error.JSON_PROPERTY_OBJECT }) @JsonTypeName("error") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class Error { public static final String JSON_PROPERTY_DETAILS = "details"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/EventResponse.java b/src/main/java/com/conekta/model/EventResponse.java index a81536d..0917a8b 100644 --- a/src/main/java/com/conekta/model/EventResponse.java +++ b/src/main/java/com/conekta/model/EventResponse.java @@ -45,7 +45,7 @@ EventResponse.JSON_PROPERTY_WEBHOOK_STATUS }) @JsonTypeName("event_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class EventResponse { public static final String JSON_PROPERTY_CREATED_AT = "created_at"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/EventsResendResponse.java b/src/main/java/com/conekta/model/EventsResendResponse.java index 461c66a..1212f4c 100644 --- a/src/main/java/com/conekta/model/EventsResendResponse.java +++ b/src/main/java/com/conekta/model/EventsResendResponse.java @@ -41,7 +41,7 @@ EventsResendResponse.JSON_PROPERTY_URL }) @JsonTypeName("events_resend_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class EventsResendResponse { public static final String JSON_PROPERTY_FAILED_ATTEMPTS = "failed_attempts"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/FiscalEntityAddress.java b/src/main/java/com/conekta/model/FiscalEntityAddress.java index 3fade38..cd77935 100644 --- a/src/main/java/com/conekta/model/FiscalEntityAddress.java +++ b/src/main/java/com/conekta/model/FiscalEntityAddress.java @@ -39,7 +39,7 @@ FiscalEntityAddress.JSON_PROPERTY_EXTERNAL_NUMBER }) @JsonTypeName("fiscal_entity_address") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class FiscalEntityAddress { public static final String JSON_PROPERTY_STREET1 = "street1"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/FiscalEntityRequest.java b/src/main/java/com/conekta/model/FiscalEntityRequest.java index bb937f8..55b92cc 100644 --- a/src/main/java/com/conekta/model/FiscalEntityRequest.java +++ b/src/main/java/com/conekta/model/FiscalEntityRequest.java @@ -41,7 +41,7 @@ FiscalEntityRequest.JSON_PROPERTY_COMPANY_NAME }) @JsonTypeName("fiscal_entity_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class FiscalEntityRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; @javax.annotation.Nonnull @@ -61,7 +61,7 @@ public class FiscalEntityRequest { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata; + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_COMPANY_NAME = "company_name"; @javax.annotation.Nullable @@ -175,6 +175,14 @@ public FiscalEntityRequest metadata(@javax.annotation.Nullable Map(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * Get metadata * @return metadata diff --git a/src/main/java/com/conekta/model/FiscalEntityRequestAddress.java b/src/main/java/com/conekta/model/FiscalEntityRequestAddress.java index 142494c..2d35e4c 100644 --- a/src/main/java/com/conekta/model/FiscalEntityRequestAddress.java +++ b/src/main/java/com/conekta/model/FiscalEntityRequestAddress.java @@ -36,11 +36,10 @@ FiscalEntityRequestAddress.JSON_PROPERTY_CITY, FiscalEntityRequestAddress.JSON_PROPERTY_STATE, FiscalEntityRequestAddress.JSON_PROPERTY_COUNTRY, - FiscalEntityRequestAddress.JSON_PROPERTY_RESIDENTIAL, FiscalEntityRequestAddress.JSON_PROPERTY_EXTERNAL_NUMBER }) @JsonTypeName("fiscal_entity_request_address") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class FiscalEntityRequestAddress { public static final String JSON_PROPERTY_STREET1 = "street1"; @javax.annotation.Nonnull @@ -66,10 +65,6 @@ public class FiscalEntityRequestAddress { @javax.annotation.Nullable private String country; - public static final String JSON_PROPERTY_RESIDENTIAL = "residential"; - @javax.annotation.Nullable - private Boolean residential = false; - public static final String JSON_PROPERTY_EXTERNAL_NUMBER = "external_number"; @javax.annotation.Nullable private String externalNumber; @@ -227,31 +222,6 @@ public void setCountry(@javax.annotation.Nullable String country) { } - public FiscalEntityRequestAddress residential(@javax.annotation.Nullable Boolean residential) { - this.residential = residential; - return this; - } - - /** - * Get residential - * @return residential - */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_RESIDENTIAL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Boolean getResidential() { - return residential; - } - - - @JsonProperty(value = JSON_PROPERTY_RESIDENTIAL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResidential(@javax.annotation.Nullable Boolean residential) { - this.residential = residential; - } - - public FiscalEntityRequestAddress externalNumber(@javax.annotation.Nullable String externalNumber) { this.externalNumber = externalNumber; return this; @@ -295,13 +265,12 @@ public boolean equals(Object o) { Objects.equals(this.city, fiscalEntityRequestAddress.city) && Objects.equals(this.state, fiscalEntityRequestAddress.state) && Objects.equals(this.country, fiscalEntityRequestAddress.country) && - Objects.equals(this.residential, fiscalEntityRequestAddress.residential) && Objects.equals(this.externalNumber, fiscalEntityRequestAddress.externalNumber); } @Override public int hashCode() { - return Objects.hash(street1, street2, postalCode, city, state, country, residential, externalNumber); + return Objects.hash(street1, street2, postalCode, city, state, country, externalNumber); } @Override @@ -314,7 +283,6 @@ public String toString() { sb.append(" city: ").append(toIndentedString(city)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); - sb.append(" residential: ").append(toIndentedString(residential)).append("\n"); sb.append(" externalNumber: ").append(toIndentedString(externalNumber)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/conekta/model/GetApiKeysResponse.java b/src/main/java/com/conekta/model/GetApiKeysResponse.java index 39358a6..7630428 100644 --- a/src/main/java/com/conekta/model/GetApiKeysResponse.java +++ b/src/main/java/com/conekta/model/GetApiKeysResponse.java @@ -40,7 +40,7 @@ GetApiKeysResponse.JSON_PROPERTY_DATA }) @JsonTypeName("get_api_keys_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class GetApiKeysResponse { public static final String JSON_PROPERTY_NEXT_PAGE_URL = "next_page_url"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/GetChargesResponse.java b/src/main/java/com/conekta/model/GetChargesResponse.java index d05c936..f9a5157 100644 --- a/src/main/java/com/conekta/model/GetChargesResponse.java +++ b/src/main/java/com/conekta/model/GetChargesResponse.java @@ -40,7 +40,7 @@ GetChargesResponse.JSON_PROPERTY_DATA }) @JsonTypeName("get_charges_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class GetChargesResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/GetCompaniesResponse.java b/src/main/java/com/conekta/model/GetCompaniesResponse.java index 3eac27f..06ee558 100644 --- a/src/main/java/com/conekta/model/GetCompaniesResponse.java +++ b/src/main/java/com/conekta/model/GetCompaniesResponse.java @@ -40,7 +40,7 @@ GetCompaniesResponse.JSON_PROPERTY_DATA }) @JsonTypeName("get_companies_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class GetCompaniesResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/GetCustomerPaymentMethodDataResponse.java b/src/main/java/com/conekta/model/GetCustomerPaymentMethodDataResponse.java index 62a7209..8b28869 100644 --- a/src/main/java/com/conekta/model/GetCustomerPaymentMethodDataResponse.java +++ b/src/main/java/com/conekta/model/GetCustomerPaymentMethodDataResponse.java @@ -62,7 +62,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.conekta.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") @JsonDeserialize(using = GetCustomerPaymentMethodDataResponse.GetCustomerPaymentMethodDataResponseDeserializer.class) @JsonSerialize(using = GetCustomerPaymentMethodDataResponse.GetCustomerPaymentMethodDataResponseSerializer.class) public class GetCustomerPaymentMethodDataResponse extends AbstractOpenApiSchema { diff --git a/src/main/java/com/conekta/model/GetEventsResponse.java b/src/main/java/com/conekta/model/GetEventsResponse.java index d85500e..f17e0da 100644 --- a/src/main/java/com/conekta/model/GetEventsResponse.java +++ b/src/main/java/com/conekta/model/GetEventsResponse.java @@ -40,7 +40,7 @@ GetEventsResponse.JSON_PROPERTY_DATA }) @JsonTypeName("get_events_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class GetEventsResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/GetOrderDiscountLinesResponse.java b/src/main/java/com/conekta/model/GetOrderDiscountLinesResponse.java index 2323943..a8cf159 100644 --- a/src/main/java/com/conekta/model/GetOrderDiscountLinesResponse.java +++ b/src/main/java/com/conekta/model/GetOrderDiscountLinesResponse.java @@ -40,7 +40,7 @@ GetOrderDiscountLinesResponse.JSON_PROPERTY_DATA }) @JsonTypeName("get_order_discount_lines_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class GetOrderDiscountLinesResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/GetOrdersResponse.java b/src/main/java/com/conekta/model/GetOrdersResponse.java index 4a7c798..4ffd98d 100644 --- a/src/main/java/com/conekta/model/GetOrdersResponse.java +++ b/src/main/java/com/conekta/model/GetOrdersResponse.java @@ -40,7 +40,7 @@ GetOrdersResponse.JSON_PROPERTY_PREVIOUS_PAGE_URL }) @JsonTypeName("get_orders_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class GetOrdersResponse { public static final String JSON_PROPERTY_DATA = "data"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/GetPaymentMethodResponse.java b/src/main/java/com/conekta/model/GetPaymentMethodResponse.java index 9fea109..3e940bf 100644 --- a/src/main/java/com/conekta/model/GetPaymentMethodResponse.java +++ b/src/main/java/com/conekta/model/GetPaymentMethodResponse.java @@ -40,7 +40,7 @@ GetPaymentMethodResponse.JSON_PROPERTY_DATA }) @JsonTypeName("get_payment_method_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class GetPaymentMethodResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/GetPlansResponse.java b/src/main/java/com/conekta/model/GetPlansResponse.java index cc1df08..e934d85 100644 --- a/src/main/java/com/conekta/model/GetPlansResponse.java +++ b/src/main/java/com/conekta/model/GetPlansResponse.java @@ -40,7 +40,7 @@ GetPlansResponse.JSON_PROPERTY_DATA }) @JsonTypeName("get_plans_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class GetPlansResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/GetTransactionsResponse.java b/src/main/java/com/conekta/model/GetTransactionsResponse.java index 9ba7e8c..9c0b14b 100644 --- a/src/main/java/com/conekta/model/GetTransactionsResponse.java +++ b/src/main/java/com/conekta/model/GetTransactionsResponse.java @@ -40,7 +40,7 @@ GetTransactionsResponse.JSON_PROPERTY_DATA }) @JsonTypeName("get_transactions_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class GetTransactionsResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/GetTransfersResponse.java b/src/main/java/com/conekta/model/GetTransfersResponse.java index 48b20e8..897804d 100644 --- a/src/main/java/com/conekta/model/GetTransfersResponse.java +++ b/src/main/java/com/conekta/model/GetTransfersResponse.java @@ -40,7 +40,7 @@ GetTransfersResponse.JSON_PROPERTY_DATA }) @JsonTypeName("get_transfers_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class GetTransfersResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/GetWebhookKeysResponse.java b/src/main/java/com/conekta/model/GetWebhookKeysResponse.java index a96da77..0199b66 100644 --- a/src/main/java/com/conekta/model/GetWebhookKeysResponse.java +++ b/src/main/java/com/conekta/model/GetWebhookKeysResponse.java @@ -40,7 +40,7 @@ GetWebhookKeysResponse.JSON_PROPERTY_DATA }) @JsonTypeName("get_webhook_keys_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class GetWebhookKeysResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/GetWebhooksResponse.java b/src/main/java/com/conekta/model/GetWebhooksResponse.java index 442b7a4..7405a89 100644 --- a/src/main/java/com/conekta/model/GetWebhooksResponse.java +++ b/src/main/java/com/conekta/model/GetWebhooksResponse.java @@ -40,7 +40,7 @@ GetWebhooksResponse.JSON_PROPERTY_DATA }) @JsonTypeName("get_webhooks_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class GetWebhooksResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/LogResponseForRequest.java b/src/main/java/com/conekta/model/LogResponseForRequest.java index ecf2f9f..5b059e2 100644 --- a/src/main/java/com/conekta/model/LogResponseForRequest.java +++ b/src/main/java/com/conekta/model/LogResponseForRequest.java @@ -56,7 +56,7 @@ LogResponseForRequest.JSON_PROPERTY_VERSION }) @JsonTypeName("log_response_for_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class LogResponseForRequest { public static final String JSON_PROPERTY_CREATED_AT = "created_at"; @javax.annotation.Nonnull @@ -104,7 +104,7 @@ public class LogResponseForRequest { public static final String JSON_PROPERTY_REQUEST_HEADERS = "request_headers"; @javax.annotation.Nullable - private Map requestHeaders; + private Map requestHeaders = new HashMap<>(); public static final String JSON_PROPERTY_RESPONSE_BODY = "response_body"; @javax.annotation.Nullable @@ -112,7 +112,7 @@ public class LogResponseForRequest { public static final String JSON_PROPERTY_RESPONSE_HEADERS = "response_headers"; @javax.annotation.Nullable - private Map responseHeaders; + private Map responseHeaders = new HashMap<>(); public static final String JSON_PROPERTY_SEARCHABLE_TAGS = "searchable_tags"; @javax.annotation.Nullable @@ -429,6 +429,14 @@ public LogResponseForRequest requestHeaders(@javax.annotation.Nullable Map(); + } + this.requestHeaders.put(key, requestHeadersItem); + return this; + } + /** * Get requestHeaders * @return requestHeaders @@ -479,6 +487,14 @@ public LogResponseForRequest responseHeaders(@javax.annotation.Nullable Map(); + } + this.responseHeaders.put(key, responseHeadersItem); + return this; + } + /** * Get responseHeaders * @return responseHeaders diff --git a/src/main/java/com/conekta/model/LogsResponseData.java b/src/main/java/com/conekta/model/LogsResponseData.java index 2e087d7..6222cd6 100644 --- a/src/main/java/com/conekta/model/LogsResponseData.java +++ b/src/main/java/com/conekta/model/LogsResponseData.java @@ -56,7 +56,7 @@ LogsResponseData.JSON_PROPERTY_VERSION }) @JsonTypeName("logs_response_data") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class LogsResponseData { public static final String JSON_PROPERTY_CREATED_AT = "created_at"; @javax.annotation.Nullable @@ -104,7 +104,7 @@ public class LogsResponseData { public static final String JSON_PROPERTY_REQUEST_HEADERS = "request_headers"; @javax.annotation.Nullable - private Map requestHeaders; + private Map requestHeaders = new HashMap<>(); public static final String JSON_PROPERTY_RESPONSE_BODY = "response_body"; @javax.annotation.Nullable @@ -112,7 +112,7 @@ public class LogsResponseData { public static final String JSON_PROPERTY_RESPONSE_HEADERS = "response_headers"; @javax.annotation.Nullable - private Map responseHeaders; + private Map responseHeaders = new HashMap<>(); public static final String JSON_PROPERTY_SEARCHABLE_TAGS = "searchable_tags"; @javax.annotation.Nullable @@ -429,6 +429,14 @@ public LogsResponseData requestHeaders(@javax.annotation.Nullable Map(); + } + this.requestHeaders.put(key, requestHeadersItem); + return this; + } + /** * Get requestHeaders * @return requestHeaders @@ -479,6 +487,14 @@ public LogsResponseData responseHeaders(@javax.annotation.Nullable Map(); + } + this.responseHeaders.put(key, responseHeadersItem); + return this; + } + /** * Get responseHeaders * @return responseHeaders diff --git a/src/main/java/com/conekta/model/LogsResponseForRequest.java b/src/main/java/com/conekta/model/LogsResponseForRequest.java index 068eb3b..3d6413e 100644 --- a/src/main/java/com/conekta/model/LogsResponseForRequest.java +++ b/src/main/java/com/conekta/model/LogsResponseForRequest.java @@ -40,7 +40,7 @@ LogsResponseForRequest.JSON_PROPERTY_DATA }) @JsonTypeName("logs_response_for_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class LogsResponseForRequest { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/MonthlyInstallmentsValidateRequest.java b/src/main/java/com/conekta/model/MonthlyInstallmentsValidateRequest.java new file mode 100644 index 0000000..3b2d5dc --- /dev/null +++ b/src/main/java/com/conekta/model/MonthlyInstallmentsValidateRequest.java @@ -0,0 +1,140 @@ +/* + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.3.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.conekta.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.conekta.JSON; + + +/** + * BIN and amount to evaluate for interest-free monthly installments + */ +@JsonPropertyOrder({ + MonthlyInstallmentsValidateRequest.JSON_PROPERTY_BIN, + MonthlyInstallmentsValidateRequest.JSON_PROPERTY_AMOUNT +}) +@JsonTypeName("monthly_installments_validate_request") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class MonthlyInstallmentsValidateRequest { + public static final String JSON_PROPERTY_BIN = "bin"; + @javax.annotation.Nonnull + private String bin; + + public static final String JSON_PROPERTY_AMOUNT = "amount"; + @javax.annotation.Nonnull + private Integer amount; + + public MonthlyInstallmentsValidateRequest() { + } + + public MonthlyInstallmentsValidateRequest bin(@javax.annotation.Nonnull String bin) { + this.bin = bin; + return this; + } + + /** + * First 6 or 8 digits of the card number (Bank Identification Number). An 8 digit BIN that yields no match is retried with its first 6 digits. + * @return bin + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_BIN, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getBin() { + return bin; + } + + + @JsonProperty(value = JSON_PROPERTY_BIN, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBin(@javax.annotation.Nonnull String bin) { + this.bin = bin; + } + + + public MonthlyInstallmentsValidateRequest amount(@javax.annotation.Nonnull Integer amount) { + this.amount = amount; + return this; + } + + /** + * Amount to charge in the smallest currency unit (cents for MXN). Used to compute the monthly fee of each available plan. + * @return amount + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getAmount() { + return amount; + } + + + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmount(@javax.annotation.Nonnull Integer amount) { + this.amount = amount; + } + + + /** + * Return true if this monthly_installments_validate_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MonthlyInstallmentsValidateRequest monthlyInstallmentsValidateRequest = (MonthlyInstallmentsValidateRequest) o; + return Objects.equals(this.bin, monthlyInstallmentsValidateRequest.bin) && + Objects.equals(this.amount, monthlyInstallmentsValidateRequest.amount); + } + + @Override + public int hashCode() { + return Objects.hash(bin, amount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonthlyInstallmentsValidateRequest {\n"); + sb.append(" bin: ").append(toIndentedString(bin)).append("\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponse.java b/src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponse.java new file mode 100644 index 0000000..2e110f0 --- /dev/null +++ b/src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponse.java @@ -0,0 +1,152 @@ +/* + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.3.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.conekta.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.conekta.model.MonthlyInstallmentsValidateResponseAvailableInstallments; +import com.conekta.model.MonthlyInstallmentsValidateResponseBinInfo; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.conekta.JSON; + + +/** + * monthly installments validate response + */ +@JsonPropertyOrder({ + MonthlyInstallmentsValidateResponse.JSON_PROPERTY_AVAILABLE_INSTALLMENTS, + MonthlyInstallmentsValidateResponse.JSON_PROPERTY_BIN_INFO +}) +@JsonTypeName("monthly_installments_validate_response") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class MonthlyInstallmentsValidateResponse { + public static final String JSON_PROPERTY_AVAILABLE_INSTALLMENTS = "available_installments"; + @javax.annotation.Nonnull + private List availableInstallments = new ArrayList<>(); + + public static final String JSON_PROPERTY_BIN_INFO = "bin_info"; + @javax.annotation.Nonnull + private MonthlyInstallmentsValidateResponseBinInfo binInfo; + + public MonthlyInstallmentsValidateResponse() { + } + + public MonthlyInstallmentsValidateResponse availableInstallments(@javax.annotation.Nonnull List availableInstallments) { + this.availableInstallments = availableInstallments; + return this; + } + + public MonthlyInstallmentsValidateResponse addAvailableInstallmentsItem(MonthlyInstallmentsValidateResponseAvailableInstallments availableInstallmentsItem) { + if (this.availableInstallments == null) { + this.availableInstallments = new ArrayList<>(); + } + this.availableInstallments.add(availableInstallmentsItem); + return this; + } + + /** + * Interest-free monthly installment plans available for this card and amount. Empty when the card does not qualify for monthly installments, for example a debit card or a credit card not issued in Mexico. An empty array is not an error. + * @return availableInstallments + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_AVAILABLE_INSTALLMENTS, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getAvailableInstallments() { + return availableInstallments; + } + + + @JsonProperty(value = JSON_PROPERTY_AVAILABLE_INSTALLMENTS, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAvailableInstallments(@javax.annotation.Nonnull List availableInstallments) { + this.availableInstallments = availableInstallments; + } + + + public MonthlyInstallmentsValidateResponse binInfo(@javax.annotation.Nonnull MonthlyInstallmentsValidateResponseBinInfo binInfo) { + this.binInfo = binInfo; + return this; + } + + /** + * Get binInfo + * @return binInfo + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_BIN_INFO, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public MonthlyInstallmentsValidateResponseBinInfo getBinInfo() { + return binInfo; + } + + + @JsonProperty(value = JSON_PROPERTY_BIN_INFO, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBinInfo(@javax.annotation.Nonnull MonthlyInstallmentsValidateResponseBinInfo binInfo) { + this.binInfo = binInfo; + } + + + /** + * Return true if this monthly_installments_validate_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MonthlyInstallmentsValidateResponse monthlyInstallmentsValidateResponse = (MonthlyInstallmentsValidateResponse) o; + return Objects.equals(this.availableInstallments, monthlyInstallmentsValidateResponse.availableInstallments) && + Objects.equals(this.binInfo, monthlyInstallmentsValidateResponse.binInfo); + } + + @Override + public int hashCode() { + return Objects.hash(availableInstallments, binInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonthlyInstallmentsValidateResponse {\n"); + sb.append(" availableInstallments: ").append(toIndentedString(availableInstallments)).append("\n"); + sb.append(" binInfo: ").append(toIndentedString(binInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponseAvailableInstallments.java b/src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponseAvailableInstallments.java new file mode 100644 index 0000000..b762cde --- /dev/null +++ b/src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponseAvailableInstallments.java @@ -0,0 +1,140 @@ +/* + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.3.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.conekta.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.conekta.JSON; + + +/** + * MonthlyInstallmentsValidateResponseAvailableInstallments + */ +@JsonPropertyOrder({ + MonthlyInstallmentsValidateResponseAvailableInstallments.JSON_PROPERTY_MONTHS, + MonthlyInstallmentsValidateResponseAvailableInstallments.JSON_PROPERTY_AMOUNT +}) +@JsonTypeName("monthly_installments_validate_response_available_installments") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class MonthlyInstallmentsValidateResponseAvailableInstallments { + public static final String JSON_PROPERTY_MONTHS = "months"; + @javax.annotation.Nonnull + private Integer months; + + public static final String JSON_PROPERTY_AMOUNT = "amount"; + @javax.annotation.Nonnull + private Integer amount; + + public MonthlyInstallmentsValidateResponseAvailableInstallments() { + } + + public MonthlyInstallmentsValidateResponseAvailableInstallments months(@javax.annotation.Nonnull Integer months) { + this.months = months; + return this; + } + + /** + * Number of monthly installments of the plan. One of 3, 6, 9, 12, 18 or 24. + * @return months + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_MONTHS, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getMonths() { + return months; + } + + + @JsonProperty(value = JSON_PROPERTY_MONTHS, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMonths(@javax.annotation.Nonnull Integer months) { + this.months = months; + } + + + public MonthlyInstallmentsValidateResponseAvailableInstallments amount(@javax.annotation.Nonnull Integer amount) { + this.amount = amount; + return this; + } + + /** + * Amount of each monthly installment in the smallest currency unit, rounded up. + * @return amount + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getAmount() { + return amount; + } + + + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmount(@javax.annotation.Nonnull Integer amount) { + this.amount = amount; + } + + + /** + * Return true if this monthly_installments_validate_response_available_installments object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MonthlyInstallmentsValidateResponseAvailableInstallments monthlyInstallmentsValidateResponseAvailableInstallments = (MonthlyInstallmentsValidateResponseAvailableInstallments) o; + return Objects.equals(this.months, monthlyInstallmentsValidateResponseAvailableInstallments.months) && + Objects.equals(this.amount, monthlyInstallmentsValidateResponseAvailableInstallments.amount); + } + + @Override + public int hashCode() { + return Objects.hash(months, amount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonthlyInstallmentsValidateResponseAvailableInstallments {\n"); + sb.append(" months: ").append(toIndentedString(months)).append("\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponseBinInfo.java b/src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponseBinInfo.java new file mode 100644 index 0000000..ceb5b54 --- /dev/null +++ b/src/main/java/com/conekta/model/MonthlyInstallmentsValidateResponseBinInfo.java @@ -0,0 +1,172 @@ +/* + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.3.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.conekta.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.conekta.JSON; + + +/** + * MonthlyInstallmentsValidateResponseBinInfo + */ +@JsonPropertyOrder({ + MonthlyInstallmentsValidateResponseBinInfo.JSON_PROPERTY_COUNTRY, + MonthlyInstallmentsValidateResponseBinInfo.JSON_PROPERTY_SCHEME, + MonthlyInstallmentsValidateResponseBinInfo.JSON_PROPERTY_ISSUER +}) +@JsonTypeName("monthly_installments_validate_response_bin_info") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class MonthlyInstallmentsValidateResponseBinInfo { + public static final String JSON_PROPERTY_COUNTRY = "country"; + @javax.annotation.Nonnull + private String country; + + public static final String JSON_PROPERTY_SCHEME = "scheme"; + @javax.annotation.Nonnull + private String scheme; + + public static final String JSON_PROPERTY_ISSUER = "issuer"; + @javax.annotation.Nonnull + private String issuer; + + public MonthlyInstallmentsValidateResponseBinInfo() { + } + + public MonthlyInstallmentsValidateResponseBinInfo country(@javax.annotation.Nonnull String country) { + this.country = country; + return this; + } + + /** + * Country that issued the card. Monthly installments only apply to mx, with the exception of American Express. + * @return country + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getCountry() { + return country; + } + + + @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCountry(@javax.annotation.Nonnull String country) { + this.country = country; + } + + + public MonthlyInstallmentsValidateResponseBinInfo scheme(@javax.annotation.Nonnull String scheme) { + this.scheme = scheme; + return this; + } + + /** + * Card scheme. Monthly installments only apply to credit. + * @return scheme + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_SCHEME, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getScheme() { + return scheme; + } + + + @JsonProperty(value = JSON_PROPERTY_SCHEME, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setScheme(@javax.annotation.Nonnull String scheme) { + this.scheme = scheme; + } + + + public MonthlyInstallmentsValidateResponseBinInfo issuer(@javax.annotation.Nonnull String issuer) { + this.issuer = issuer; + return this; + } + + /** + * Bank that issued the card. + * @return issuer + */ + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_ISSUER, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getIssuer() { + return issuer; + } + + + @JsonProperty(value = JSON_PROPERTY_ISSUER, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIssuer(@javax.annotation.Nonnull String issuer) { + this.issuer = issuer; + } + + + /** + * Return true if this monthly_installments_validate_response_bin_info object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MonthlyInstallmentsValidateResponseBinInfo monthlyInstallmentsValidateResponseBinInfo = (MonthlyInstallmentsValidateResponseBinInfo) o; + return Objects.equals(this.country, monthlyInstallmentsValidateResponseBinInfo.country) && + Objects.equals(this.scheme, monthlyInstallmentsValidateResponseBinInfo.scheme) && + Objects.equals(this.issuer, monthlyInstallmentsValidateResponseBinInfo.issuer); + } + + @Override + public int hashCode() { + return Objects.hash(country, scheme, issuer); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonthlyInstallmentsValidateResponseBinInfo {\n"); + sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" scheme: ").append(toIndentedString(scheme)).append("\n"); + sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/conekta/model/OrderCaptureRequest.java b/src/main/java/com/conekta/model/OrderCaptureRequest.java index 39f7fab..0574467 100644 --- a/src/main/java/com/conekta/model/OrderCaptureRequest.java +++ b/src/main/java/com/conekta/model/OrderCaptureRequest.java @@ -33,7 +33,7 @@ OrderCaptureRequest.JSON_PROPERTY_AMOUNT }) @JsonTypeName("order_capture_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderCaptureRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/OrderChannelResponse.java b/src/main/java/com/conekta/model/OrderChannelResponse.java index 373a332..ca40c8f 100644 --- a/src/main/java/com/conekta/model/OrderChannelResponse.java +++ b/src/main/java/com/conekta/model/OrderChannelResponse.java @@ -36,7 +36,7 @@ OrderChannelResponse.JSON_PROPERTY_ID }) @JsonTypeName("order_channel_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderChannelResponse { public static final String JSON_PROPERTY_SEGMENT = "segment"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/OrderChargesResponse.java b/src/main/java/com/conekta/model/OrderChargesResponse.java index eedc094..ce5f9bc 100644 --- a/src/main/java/com/conekta/model/OrderChargesResponse.java +++ b/src/main/java/com/conekta/model/OrderChargesResponse.java @@ -40,7 +40,7 @@ OrderChargesResponse.JSON_PROPERTY_DATA }) @JsonTypeName("order_charges_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderChargesResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/OrderCheckoutRequest.java b/src/main/java/com/conekta/model/OrderCheckoutRequest.java index c1c8e15..65deeec 100644 --- a/src/main/java/com/conekta/model/OrderCheckoutRequest.java +++ b/src/main/java/com/conekta/model/OrderCheckoutRequest.java @@ -50,7 +50,7 @@ OrderCheckoutRequest.JSON_PROPERTY_TYPE }) @JsonTypeName("order_checkout_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderCheckoutRequest { /** * Gets or Sets allowedPaymentMethods @@ -154,9 +154,7 @@ public static ExcludedPaymentMethodsEnum fromValue(String value) { * Gets or Sets excludeCardNetworks */ public enum ExcludeCardNetworksEnum { - VISA(String.valueOf("visa")), - - MASTERCARD(String.valueOf("mastercard")), + VISA_MASTER_CARD(String.valueOf("visa_master_card")), AMEX(String.valueOf("amex")), @@ -361,7 +359,7 @@ public OrderCheckoutRequest addExcludeCardNetworksItem(ExcludeCardNetworksEnum e } /** - * List of card networks to exclude from the checkout. This field is only applicable for card payments. + * List of card networks to exclude from the checkout. This field is only applicable for card payments. Accepted values: 'visa_master_card' (a single token excluding both Visa and Mastercard) and 'amex'. * @return excludeCardNetworks */ @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/OrderDiscountLinesRequest.java b/src/main/java/com/conekta/model/OrderDiscountLinesRequest.java index cf710df..ca8cb83 100644 --- a/src/main/java/com/conekta/model/OrderDiscountLinesRequest.java +++ b/src/main/java/com/conekta/model/OrderDiscountLinesRequest.java @@ -35,7 +35,7 @@ OrderDiscountLinesRequest.JSON_PROPERTY_TYPE }) @JsonTypeName("order_discount_lines_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderDiscountLinesRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/OrderFiscalEntityAddressResponse.java b/src/main/java/com/conekta/model/OrderFiscalEntityAddressResponse.java index 52c909f..cd7680c 100644 --- a/src/main/java/com/conekta/model/OrderFiscalEntityAddressResponse.java +++ b/src/main/java/com/conekta/model/OrderFiscalEntityAddressResponse.java @@ -40,7 +40,7 @@ OrderFiscalEntityAddressResponse.JSON_PROPERTY_OBJECT }) @JsonTypeName("order_fiscal_entity_address_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderFiscalEntityAddressResponse { public static final String JSON_PROPERTY_STREET1 = "street1"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/OrderFiscalEntityRequest.java b/src/main/java/com/conekta/model/OrderFiscalEntityRequest.java index e36fedf..c0bb220 100644 --- a/src/main/java/com/conekta/model/OrderFiscalEntityRequest.java +++ b/src/main/java/com/conekta/model/OrderFiscalEntityRequest.java @@ -41,7 +41,7 @@ OrderFiscalEntityRequest.JSON_PROPERTY_TAX_ID }) @JsonTypeName("order_fiscal_entity_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderFiscalEntityRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/OrderFiscalEntityResponse.java b/src/main/java/com/conekta/model/OrderFiscalEntityResponse.java index 118250e..68a79d8 100644 --- a/src/main/java/com/conekta/model/OrderFiscalEntityResponse.java +++ b/src/main/java/com/conekta/model/OrderFiscalEntityResponse.java @@ -44,7 +44,7 @@ OrderFiscalEntityResponse.JSON_PROPERTY_PHONE }) @JsonTypeName("order_fiscal_entity_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderFiscalEntityResponse { public static final String JSON_PROPERTY_ADDRESS = "address"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/OrderNextActionResponse.java b/src/main/java/com/conekta/model/OrderNextActionResponse.java index e94ad43..db9433a 100644 --- a/src/main/java/com/conekta/model/OrderNextActionResponse.java +++ b/src/main/java/com/conekta/model/OrderNextActionResponse.java @@ -35,7 +35,7 @@ OrderNextActionResponse.JSON_PROPERTY_TYPE }) @JsonTypeName("order_next_action_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderNextActionResponse { public static final String JSON_PROPERTY_REDIRECT_TO_URL = "redirect_to_url"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/OrderNextActionResponseRedirectToUrl.java b/src/main/java/com/conekta/model/OrderNextActionResponseRedirectToUrl.java index 885f39f..26008ab 100644 --- a/src/main/java/com/conekta/model/OrderNextActionResponseRedirectToUrl.java +++ b/src/main/java/com/conekta/model/OrderNextActionResponseRedirectToUrl.java @@ -35,7 +35,7 @@ OrderNextActionResponseRedirectToUrl.JSON_PROPERTY_RETURN_URL }) @JsonTypeName("order_next_action_response_redirect_to_url") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderNextActionResponseRedirectToUrl { public static final String JSON_PROPERTY_URL = "url"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/OrderRefundRequest.java b/src/main/java/com/conekta/model/OrderRefundRequest.java index 461308b..acd66ce 100644 --- a/src/main/java/com/conekta/model/OrderRefundRequest.java +++ b/src/main/java/com/conekta/model/OrderRefundRequest.java @@ -35,7 +35,7 @@ OrderRefundRequest.JSON_PROPERTY_REASON }) @JsonTypeName("orderRefund_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderRefundRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/OrderRequest.java b/src/main/java/com/conekta/model/OrderRequest.java index f9989d7..df8947a 100644 --- a/src/main/java/com/conekta/model/OrderRequest.java +++ b/src/main/java/com/conekta/model/OrderRequest.java @@ -23,6 +23,7 @@ import com.conekta.model.OrderFiscalEntityRequest; import com.conekta.model.OrderRequestCustomerInfo; import com.conekta.model.OrderTaxRequest; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.conekta.model.Product; import com.conekta.model.ShippingRequest; import com.fasterxml.jackson.annotation.JsonInclude; @@ -56,13 +57,15 @@ OrderRequest.JSON_PROPERTY_PRE_AUTHORIZE, OrderRequest.JSON_PROPERTY_PROCESSING_MODE, OrderRequest.JSON_PROPERTY_RETURN_URL, + OrderRequest.JSON_PROPERTY_REUSE_CUSTOMER_CASH_REFERENCE, + OrderRequest.JSON_PROPERTY_REUSE_CUSTOMER_CLABE, OrderRequest.JSON_PROPERTY_SHIPPING_CONTACT, OrderRequest.JSON_PROPERTY_SHIPPING_LINES, OrderRequest.JSON_PROPERTY_TAX_LINES, OrderRequest.JSON_PROPERTY_THREE_DS_MODE }) @JsonTypeName("order_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderRequest { public static final String JSON_PROPERTY_CHARGES = "charges"; @javax.annotation.Nullable @@ -94,7 +97,7 @@ public class OrderRequest { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata = new HashMap<>(); + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_NEEDS_SHIPPING_CONTACT = "needs_shipping_contact"; @javax.annotation.Nullable @@ -112,6 +115,14 @@ public class OrderRequest { @javax.annotation.Nullable private URI returnUrl; + public static final String JSON_PROPERTY_REUSE_CUSTOMER_CASH_REFERENCE = "reuse_customer_cash_reference"; + @javax.annotation.Nullable + private Boolean reuseCustomerCashReference; + + public static final String JSON_PROPERTY_REUSE_CUSTOMER_CLABE = "reuse_customer_clabe"; + @javax.annotation.Nullable + private Boolean reuseCustomerClabe; + public static final String JSON_PROPERTY_SHIPPING_CONTACT = "shipping_contact"; @javax.annotation.Nullable private CustomerShippingContactsRequest shippingContact; @@ -124,9 +135,48 @@ public class OrderRequest { @javax.annotation.Nullable private List taxLines = new ArrayList<>(); + /** + * Indicates the 3DS2 mode: 'strict', 'not_strict' or 'smart'. The value is validated against the allowed set on creation; sending an explicit null is rejected. Omit the field to create the order without requesting 3DS through the API (company-level 3DS applies only to orders paid through Checkout or when antifraud forces 3DS). + */ + public enum ThreeDsModeEnum { + STRICT(String.valueOf("strict")), + + NOT_STRICT(String.valueOf("not_strict")), + + SMART(String.valueOf("smart")), + + UNKNOWN_DEFAULT_OPEN_API(String.valueOf("unknown_default_open_api")); + + private String value; + + ThreeDsModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ThreeDsModeEnum fromValue(String value) { + for (ThreeDsModeEnum b : ThreeDsModeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return UNKNOWN_DEFAULT_OPEN_API; + } + } + public static final String JSON_PROPERTY_THREE_DS_MODE = "three_ds_mode"; @javax.annotation.Nullable - private String threeDsMode; + private ThreeDsModeEnum threeDsMode; public OrderRequest() { } @@ -330,12 +380,12 @@ public void setLineItems(@javax.annotation.Nonnull List lineItems) { } - public OrderRequest metadata(@javax.annotation.Nullable Map metadata) { + public OrderRequest metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } - public OrderRequest putMetadataItem(String key, Object metadataItem) { + public OrderRequest putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { if (this.metadata == null) { this.metadata = new HashMap<>(); } @@ -344,21 +394,21 @@ public OrderRequest putMetadataItem(String key, Object metadataItem) { } /** - * Metadata associated with the order + * Metadata associated with the order. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. * @return metadata */ @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } @@ -463,6 +513,56 @@ public void setReturnUrl(@javax.annotation.Nullable URI returnUrl) { } + public OrderRequest reuseCustomerCashReference(@javax.annotation.Nullable Boolean reuseCustomerCashReference) { + this.reuseCustomerCashReference = reuseCustomerCashReference; + return this; + } + + /** + * Reuses the customer's recurrent cash reference (`cash_recurrent` payment source) in the order's cash charges instead of generating a new reference. Requires `customer_info.customer_id`. + * @return reuseCustomerCashReference + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_REUSE_CUSTOMER_CASH_REFERENCE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getReuseCustomerCashReference() { + return reuseCustomerCashReference; + } + + + @JsonProperty(value = JSON_PROPERTY_REUSE_CUSTOMER_CASH_REFERENCE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReuseCustomerCashReference(@javax.annotation.Nullable Boolean reuseCustomerCashReference) { + this.reuseCustomerCashReference = reuseCustomerCashReference; + } + + + public OrderRequest reuseCustomerClabe(@javax.annotation.Nullable Boolean reuseCustomerClabe) { + this.reuseCustomerClabe = reuseCustomerClabe; + return this; + } + + /** + * Reuses the customer's recurrent SPEI CLABE (`spei_recurrent` payment source) in the order's SPEI charges instead of generating a new CLABE. Requires `customer_info.customer_id`. + * @return reuseCustomerClabe + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_REUSE_CUSTOMER_CLABE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getReuseCustomerClabe() { + return reuseCustomerClabe; + } + + + @JsonProperty(value = JSON_PROPERTY_REUSE_CUSTOMER_CLABE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReuseCustomerClabe(@javax.annotation.Nullable Boolean reuseCustomerClabe) { + this.reuseCustomerClabe = reuseCustomerClabe; + } + + public OrderRequest shippingContact(@javax.annotation.Nullable CustomerShippingContactsRequest shippingContact) { this.shippingContact = shippingContact; return this; @@ -554,27 +654,27 @@ public void setTaxLines(@javax.annotation.Nullable List taxLine } - public OrderRequest threeDsMode(@javax.annotation.Nullable String threeDsMode) { + public OrderRequest threeDsMode(@javax.annotation.Nullable ThreeDsModeEnum threeDsMode) { this.threeDsMode = threeDsMode; return this; } /** - * Indicates the 3DS2 mode for the order, either smart or strict. This property is only applicable when 3DS is enabled. When 3DS is disabled, this field should be null. + * Indicates the 3DS2 mode: 'strict', 'not_strict' or 'smart'. The value is validated against the allowed set on creation; sending an explicit null is rejected. Omit the field to create the order without requesting 3DS through the API (company-level 3DS applies only to orders paid through Checkout or when antifraud forces 3DS). * @return threeDsMode */ @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_THREE_DS_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getThreeDsMode() { + public ThreeDsModeEnum getThreeDsMode() { return threeDsMode; } @JsonProperty(value = JSON_PROPERTY_THREE_DS_MODE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreeDsMode(@javax.annotation.Nullable String threeDsMode) { + public void setThreeDsMode(@javax.annotation.Nullable ThreeDsModeEnum threeDsMode) { this.threeDsMode = threeDsMode; } @@ -603,6 +703,8 @@ public boolean equals(Object o) { Objects.equals(this.preAuthorize, orderRequest.preAuthorize) && Objects.equals(this.processingMode, orderRequest.processingMode) && Objects.equals(this.returnUrl, orderRequest.returnUrl) && + Objects.equals(this.reuseCustomerCashReference, orderRequest.reuseCustomerCashReference) && + Objects.equals(this.reuseCustomerClabe, orderRequest.reuseCustomerClabe) && Objects.equals(this.shippingContact, orderRequest.shippingContact) && Objects.equals(this.shippingLines, orderRequest.shippingLines) && Objects.equals(this.taxLines, orderRequest.taxLines) && @@ -611,7 +713,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(charges, checkout, currency, customerInfo, discountLines, fiscalEntity, lineItems, metadata, needsShippingContact, preAuthorize, processingMode, returnUrl, shippingContact, shippingLines, taxLines, threeDsMode); + return Objects.hash(charges, checkout, currency, customerInfo, discountLines, fiscalEntity, lineItems, metadata, needsShippingContact, preAuthorize, processingMode, returnUrl, reuseCustomerCashReference, reuseCustomerClabe, shippingContact, shippingLines, taxLines, threeDsMode); } @Override @@ -630,6 +732,8 @@ public String toString() { sb.append(" preAuthorize: ").append(toIndentedString(preAuthorize)).append("\n"); sb.append(" processingMode: ").append(toIndentedString(processingMode)).append("\n"); sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); + sb.append(" reuseCustomerCashReference: ").append(toIndentedString(reuseCustomerCashReference)).append("\n"); + sb.append(" reuseCustomerClabe: ").append(toIndentedString(reuseCustomerClabe)).append("\n"); sb.append(" shippingContact: ").append(toIndentedString(shippingContact)).append("\n"); sb.append(" shippingLines: ").append(toIndentedString(shippingLines)).append("\n"); sb.append(" taxLines: ").append(toIndentedString(taxLines)).append("\n"); diff --git a/src/main/java/com/conekta/model/OrderRequestCustomerInfo.java b/src/main/java/com/conekta/model/OrderRequestCustomerInfo.java index 64c8646..60a6ddd 100644 --- a/src/main/java/com/conekta/model/OrderRequestCustomerInfo.java +++ b/src/main/java/com/conekta/model/OrderRequestCustomerInfo.java @@ -54,7 +54,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.conekta.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") @JsonDeserialize(using = OrderRequestCustomerInfo.OrderRequestCustomerInfoDeserializer.class) @JsonSerialize(using = OrderRequestCustomerInfo.OrderRequestCustomerInfoSerializer.class) public class OrderRequestCustomerInfo extends AbstractOpenApiSchema { diff --git a/src/main/java/com/conekta/model/OrderResponse.java b/src/main/java/com/conekta/model/OrderResponse.java index 50fcfe4..54021e5 100644 --- a/src/main/java/com/conekta/model/OrderResponse.java +++ b/src/main/java/com/conekta/model/OrderResponse.java @@ -68,10 +68,10 @@ OrderResponse.JSON_PROPERTY_UPDATED_AT }) @JsonTypeName("order_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private Integer amount; public static final String JSON_PROPERTY_AMOUNT_REFUNDED = "amount_refunded"; @@ -91,11 +91,11 @@ public class OrderResponse { private OrderResponseCheckout checkout; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private Long createdAt; public static final String JSON_PROPERTY_CURRENCY = "currency"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private String currency; public static final String JSON_PROPERTY_CUSTOMER_INFO = "customer_info"; @@ -119,7 +119,7 @@ public class OrderResponse { private OrderFiscalEntityResponse fiscalEntity; public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private String id; public static final String JSON_PROPERTY_IS_REFUNDABLE = "is_refundable"; @@ -131,7 +131,7 @@ public class OrderResponse { private OrderResponseProducts lineItems; public static final String JSON_PROPERTY_LIVEMODE = "livemode"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private Boolean livemode; public static final String JSON_PROPERTY_METADATA = "metadata"; @@ -143,7 +143,7 @@ public class OrderResponse { private OrderNextActionResponse nextAction; public static final String JSON_PROPERTY_OBJECT = "object"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private String _object; public static final String JSON_PROPERTY_PAYMENT_STATUS = "payment_status"; @@ -165,7 +165,7 @@ public class OrderResponse { public OrderResponse() { } - public OrderResponse amount(@javax.annotation.Nullable Integer amount) { + public OrderResponse amount(@javax.annotation.Nonnull Integer amount) { this.amount = amount; return this; } @@ -174,18 +174,18 @@ public OrderResponse amount(@javax.annotation.Nullable Integer amount) { * The total amount to be collected in cents * @return amount */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getAmount() { return amount; } - @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(@javax.annotation.Nullable Integer amount) { + @JsonProperty(value = JSON_PROPERTY_AMOUNT, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmount(@javax.annotation.Nonnull Integer amount) { this.amount = amount; } @@ -290,7 +290,7 @@ public void setCheckout(@javax.annotation.Nullable OrderResponseCheckout checkou } - public OrderResponse createdAt(@javax.annotation.Nullable Long createdAt) { + public OrderResponse createdAt(@javax.annotation.Nonnull Long createdAt) { this.createdAt = createdAt; return this; } @@ -299,23 +299,23 @@ public OrderResponse createdAt(@javax.annotation.Nullable Long createdAt) { * The time at which the object was created in seconds since the Unix epoch * @return createdAt */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public Long getCreatedAt() { return createdAt; } - @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(@javax.annotation.Nullable Long createdAt) { + @JsonProperty(value = JSON_PROPERTY_CREATED_AT, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCreatedAt(@javax.annotation.Nonnull Long createdAt) { this.createdAt = createdAt; } - public OrderResponse currency(@javax.annotation.Nullable String currency) { + public OrderResponse currency(@javax.annotation.Nonnull String currency) { this.currency = currency; return this; } @@ -324,18 +324,18 @@ public OrderResponse currency(@javax.annotation.Nullable String currency) { * The three-letter ISO 4217 currency code. The currency of the order. * @return currency */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_CURRENCY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_CURRENCY, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getCurrency() { return currency; } - @JsonProperty(value = JSON_PROPERTY_CURRENCY, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCurrency(@javax.annotation.Nullable String currency) { + @JsonProperty(value = JSON_PROPERTY_CURRENCY, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCurrency(@javax.annotation.Nonnull String currency) { this.currency = currency; } @@ -465,7 +465,7 @@ public void setFiscalEntity(@javax.annotation.Nullable OrderFiscalEntityResponse } - public OrderResponse id(@javax.annotation.Nullable String id) { + public OrderResponse id(@javax.annotation.Nonnull String id) { this.id = id; return this; } @@ -474,18 +474,18 @@ public OrderResponse id(@javax.annotation.Nullable String id) { * Get id * @return id */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_ID, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getId() { return id; } - @JsonProperty(value = JSON_PROPERTY_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@javax.annotation.Nullable String id) { + @JsonProperty(value = JSON_PROPERTY_ID, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(@javax.annotation.Nonnull String id) { this.id = id; } @@ -540,7 +540,7 @@ public void setLineItems(@javax.annotation.Nullable OrderResponseProducts lineIt } - public OrderResponse livemode(@javax.annotation.Nullable Boolean livemode) { + public OrderResponse livemode(@javax.annotation.Nonnull Boolean livemode) { this.livemode = livemode; return this; } @@ -549,18 +549,18 @@ public OrderResponse livemode(@javax.annotation.Nullable Boolean livemode) { * Whether the object exists in live mode or test mode * @return livemode */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_LIVEMODE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_LIVEMODE, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public Boolean getLivemode() { return livemode; } - @JsonProperty(value = JSON_PROPERTY_LIVEMODE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLivemode(@javax.annotation.Nullable Boolean livemode) { + @JsonProperty(value = JSON_PROPERTY_LIVEMODE, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLivemode(@javax.annotation.Nonnull Boolean livemode) { this.livemode = livemode; } @@ -623,7 +623,7 @@ public void setNextAction(@javax.annotation.Nullable OrderNextActionResponse nex } - public OrderResponse _object(@javax.annotation.Nullable String _object) { + public OrderResponse _object(@javax.annotation.Nonnull String _object) { this._object = _object; return this; } @@ -632,18 +632,18 @@ public OrderResponse _object(@javax.annotation.Nullable String _object) { * String representing the object’s type. Objects of the same type share the same value. * @return _object */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_OBJECT, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_OBJECT, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getObject() { return _object; } - @JsonProperty(value = JSON_PROPERTY_OBJECT, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setObject(@javax.annotation.Nullable String _object) { + @JsonProperty(value = JSON_PROPERTY_OBJECT, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setObject(@javax.annotation.Nonnull String _object) { this._object = _object; } diff --git a/src/main/java/com/conekta/model/OrderResponseCheckout.java b/src/main/java/com/conekta/model/OrderResponseCheckout.java index fd2d5f1..8e40faa 100644 --- a/src/main/java/com/conekta/model/OrderResponseCheckout.java +++ b/src/main/java/com/conekta/model/OrderResponseCheckout.java @@ -67,7 +67,7 @@ OrderResponseCheckout.JSON_PROPERTY_URL }) @JsonTypeName("order_response_checkout") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderResponseCheckout { public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS = "allowed_payment_methods"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/OrderResponseCustomerInfo.java b/src/main/java/com/conekta/model/OrderResponseCustomerInfo.java index ab1caf0..7462aaf 100644 --- a/src/main/java/com/conekta/model/OrderResponseCustomerInfo.java +++ b/src/main/java/com/conekta/model/OrderResponseCustomerInfo.java @@ -39,7 +39,7 @@ OrderResponseCustomerInfo.JSON_PROPERTY_CUSTOMER_ID }) @JsonTypeName("order_response_customer_info") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderResponseCustomerInfo { public static final String JSON_PROPERTY_OBJECT = "object"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/OrderResponseDiscountLines.java b/src/main/java/com/conekta/model/OrderResponseDiscountLines.java index ff63019..8d3915d 100644 --- a/src/main/java/com/conekta/model/OrderResponseDiscountLines.java +++ b/src/main/java/com/conekta/model/OrderResponseDiscountLines.java @@ -40,7 +40,7 @@ OrderResponseDiscountLines.JSON_PROPERTY_DATA }) @JsonTypeName("order_response_discount_lines") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderResponseDiscountLines { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/OrderResponseProducts.java b/src/main/java/com/conekta/model/OrderResponseProducts.java index 7431793..0a72770 100644 --- a/src/main/java/com/conekta/model/OrderResponseProducts.java +++ b/src/main/java/com/conekta/model/OrderResponseProducts.java @@ -40,7 +40,7 @@ OrderResponseProducts.JSON_PROPERTY_DATA }) @JsonTypeName("order_response_products") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderResponseProducts { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/OrderResponseShippingContact.java b/src/main/java/com/conekta/model/OrderResponseShippingContact.java index 9a7b596..d21faba 100644 --- a/src/main/java/com/conekta/model/OrderResponseShippingContact.java +++ b/src/main/java/com/conekta/model/OrderResponseShippingContact.java @@ -46,7 +46,7 @@ OrderResponseShippingContact.JSON_PROPERTY_DELETED }) @JsonTypeName("order_response_shipping_contact") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderResponseShippingContact { public static final String JSON_PROPERTY_CREATED_AT = "created_at"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/OrderResponseShippingLines.java b/src/main/java/com/conekta/model/OrderResponseShippingLines.java index 9caef4d..82c244d 100644 --- a/src/main/java/com/conekta/model/OrderResponseShippingLines.java +++ b/src/main/java/com/conekta/model/OrderResponseShippingLines.java @@ -40,7 +40,7 @@ OrderResponseShippingLines.JSON_PROPERTY_DATA }) @JsonTypeName("order_response_shipping_lines") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderResponseShippingLines { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/OrderResponseTaxLines.java b/src/main/java/com/conekta/model/OrderResponseTaxLines.java index 9ddccb9..dbdeaec 100644 --- a/src/main/java/com/conekta/model/OrderResponseTaxLines.java +++ b/src/main/java/com/conekta/model/OrderResponseTaxLines.java @@ -40,7 +40,7 @@ OrderResponseTaxLines.JSON_PROPERTY_DATA }) @JsonTypeName("order_response_tax_lines") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderResponseTaxLines { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/OrderTaxRequest.java b/src/main/java/com/conekta/model/OrderTaxRequest.java index de61b98..4c3351c 100644 --- a/src/main/java/com/conekta/model/OrderTaxRequest.java +++ b/src/main/java/com/conekta/model/OrderTaxRequest.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -37,7 +38,7 @@ OrderTaxRequest.JSON_PROPERTY_METADATA }) @JsonTypeName("order_tax_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderTaxRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull @@ -49,7 +50,7 @@ public class OrderTaxRequest { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata = new HashMap<>(); + private Map metadata = new HashMap<>(); public OrderTaxRequest() { } @@ -105,12 +106,12 @@ public void setDescription(@javax.annotation.Nonnull String description) { } - public OrderTaxRequest metadata(@javax.annotation.Nullable Map metadata) { + public OrderTaxRequest metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } - public OrderTaxRequest putMetadataItem(String key, Object metadataItem) { + public OrderTaxRequest putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { if (this.metadata == null) { this.metadata = new HashMap<>(); } @@ -124,16 +125,16 @@ public OrderTaxRequest putMetadataItem(String key, Object metadataItem) { */ @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/conekta/model/OrderTaxRequestMetadataValue.java b/src/main/java/com/conekta/model/OrderTaxRequestMetadataValue.java new file mode 100644 index 0000000..809a96c --- /dev/null +++ b/src/main/java/com/conekta/model/OrderTaxRequestMetadataValue.java @@ -0,0 +1,272 @@ +/* + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.3.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.conekta.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.math.BigDecimal; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.conekta.JSON; + + +import javax.ws.rs.core.GenericType; +import javax.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import com.conekta.JSON; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +@JsonDeserialize(using=OrderTaxRequestMetadataValue.OrderTaxRequestMetadataValueDeserializer.class) +@JsonSerialize(using = OrderTaxRequestMetadataValue.OrderTaxRequestMetadataValueSerializer.class) +public class OrderTaxRequestMetadataValue extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(OrderTaxRequestMetadataValue.class.getName()); + + public static class OrderTaxRequestMetadataValueSerializer extends StdSerializer { + public OrderTaxRequestMetadataValueSerializer(Class t) { + super(t); + } + + public OrderTaxRequestMetadataValueSerializer() { + this(null); + } + + @Override + public void serialize(OrderTaxRequestMetadataValue value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class OrderTaxRequestMetadataValueDeserializer extends StdDeserializer { + public OrderTaxRequestMetadataValueDeserializer() { + this(OrderTaxRequestMetadataValue.class); + } + + public OrderTaxRequestMetadataValueDeserializer(Class vc) { + super(vc); + } + + @Override + public OrderTaxRequestMetadataValue deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = ctxt.readTree(jp); + + Object deserialized = null; + // deserialize String + try { + deserialized = tree.traverse(jp.getCodec()).readValueAs(String.class); + OrderTaxRequestMetadataValue ret = new OrderTaxRequestMetadataValue(); + ret.setActualInstance(deserialized); + return ret; + } catch (Exception e) { + // deserialization failed, continue, log to help debugging + log.log(Level.FINER, "Input data does not match 'OrderTaxRequestMetadataValue'", e); + } + + // deserialize Integer + try { + deserialized = tree.traverse(jp.getCodec()).readValueAs(Integer.class); + OrderTaxRequestMetadataValue ret = new OrderTaxRequestMetadataValue(); + ret.setActualInstance(deserialized); + return ret; + } catch (Exception e) { + // deserialization failed, continue, log to help debugging + log.log(Level.FINER, "Input data does not match 'OrderTaxRequestMetadataValue'", e); + } + + // deserialize BigDecimal + try { + deserialized = tree.traverse(jp.getCodec()).readValueAs(BigDecimal.class); + OrderTaxRequestMetadataValue ret = new OrderTaxRequestMetadataValue(); + ret.setActualInstance(deserialized); + return ret; + } catch (Exception e) { + // deserialization failed, continue, log to help debugging + log.log(Level.FINER, "Input data does not match 'OrderTaxRequestMetadataValue'", e); + } + + // deserialize Boolean + try { + deserialized = tree.traverse(jp.getCodec()).readValueAs(Boolean.class); + OrderTaxRequestMetadataValue ret = new OrderTaxRequestMetadataValue(); + ret.setActualInstance(deserialized); + return ret; + } catch (Exception e) { + // deserialization failed, continue, log to help debugging + log.log(Level.FINER, "Input data does not match 'OrderTaxRequestMetadataValue'", e); + } + + throw new IOException("Failed deserialization for OrderTaxRequestMetadataValue: no match found"); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public OrderTaxRequestMetadataValue getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "OrderTaxRequestMetadataValue cannot be null"); + } + } + + // store a list of schema names defined in anyOf + public static final Map> schemas = new HashMap<>(); + + public OrderTaxRequestMetadataValue() { + super("anyOf", Boolean.FALSE); + } + + public OrderTaxRequestMetadataValue(String o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + public OrderTaxRequestMetadataValue(Integer o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + public OrderTaxRequestMetadataValue(BigDecimal o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + public OrderTaxRequestMetadataValue(Boolean o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("BigDecimal", new GenericType() { + }); + schemas.put("Boolean", new GenericType() { + }); + schemas.put("Integer", new GenericType() { + }); + schemas.put("String", new GenericType() { + }); + JSON.registerDescendants(OrderTaxRequestMetadataValue.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map> getSchemas() { + return OrderTaxRequestMetadataValue.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * BigDecimal, Boolean, Integer, String + * + * It could be an instance of the 'anyOf' schemas. + * The anyOf child schemas may themselves be a composed schema (allOf, anyOf, anyOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(String.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(Integer.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(BigDecimal.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(Boolean.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be BigDecimal, Boolean, Integer, String"); + } + + /** + * Get the actual instance, which can be the following: + * BigDecimal, Boolean, Integer, String + * + * @return The actual instance (BigDecimal, Boolean, Integer, String) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `String`. If the actual instance is not `String`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `String` + * @throws ClassCastException if the instance is not `String` + */ + public String getString() throws ClassCastException { + return (String)super.getActualInstance(); + } + + /** + * Get the actual instance of `Integer`. If the actual instance is not `Integer`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `Integer` + * @throws ClassCastException if the instance is not `Integer` + */ + public Integer getInteger() throws ClassCastException { + return (Integer)super.getActualInstance(); + } + + /** + * Get the actual instance of `BigDecimal`. If the actual instance is not `BigDecimal`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `BigDecimal` + * @throws ClassCastException if the instance is not `BigDecimal` + */ + public BigDecimal getBigDecimal() throws ClassCastException { + return (BigDecimal)super.getActualInstance(); + } + + /** + * Get the actual instance of `Boolean`. If the actual instance is not `Boolean`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `Boolean` + * @throws ClassCastException if the instance is not `Boolean` + */ + public Boolean getBoolean() throws ClassCastException { + return (Boolean)super.getActualInstance(); + } + +} + diff --git a/src/main/java/com/conekta/model/OrderTaxResponse.java b/src/main/java/com/conekta/model/OrderTaxResponse.java index 6f95467..36c9039 100644 --- a/src/main/java/com/conekta/model/OrderTaxResponse.java +++ b/src/main/java/com/conekta/model/OrderTaxResponse.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -40,7 +41,7 @@ OrderTaxResponse.JSON_PROPERTY_PARENT_ID }) @JsonTypeName("order_tax_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderTaxResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull @@ -52,7 +53,7 @@ public class OrderTaxResponse { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata = new HashMap<>(); + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nonnull @@ -120,12 +121,12 @@ public void setDescription(@javax.annotation.Nonnull String description) { } - public OrderTaxResponse metadata(@javax.annotation.Nullable Map metadata) { + public OrderTaxResponse metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } - public OrderTaxResponse putMetadataItem(String key, Object metadataItem) { + public OrderTaxResponse putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { if (this.metadata == null) { this.metadata = new HashMap<>(); } @@ -139,16 +140,16 @@ public OrderTaxResponse putMetadataItem(String key, Object metadataItem) { */ @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/conekta/model/OrderUpdate.java b/src/main/java/com/conekta/model/OrderUpdate.java index a3bc9b4..3f63471 100644 --- a/src/main/java/com/conekta/model/OrderUpdate.java +++ b/src/main/java/com/conekta/model/OrderUpdate.java @@ -21,6 +21,7 @@ import com.conekta.model.OrderCheckoutRequest; import com.conekta.model.OrderDiscountLinesRequest; import com.conekta.model.OrderTaxRequest; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.conekta.model.OrderUpdateCustomerInfo; import com.conekta.model.OrderUpdateFiscalEntityRequest; import com.conekta.model.Product; @@ -57,7 +58,7 @@ OrderUpdate.JSON_PROPERTY_TAX_LINES }) @JsonTypeName("order_update") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderUpdate { public static final String JSON_PROPERTY_CHARGES = "charges"; @javax.annotation.Nullable @@ -89,7 +90,7 @@ public class OrderUpdate { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata; + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_PRE_AUTHORIZE = "pre_authorize"; @javax.annotation.Nullable @@ -309,11 +310,19 @@ public void setLineItems(@javax.annotation.Nullable List lineItems) { } - public OrderUpdate metadata(@javax.annotation.Nullable Map metadata) { + public OrderUpdate metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } + public OrderUpdate putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * Get metadata * @return metadata @@ -322,14 +331,14 @@ public OrderUpdate metadata(@javax.annotation.Nullable Map metad @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/conekta/model/OrderUpdateCustomerInfo.java b/src/main/java/com/conekta/model/OrderUpdateCustomerInfo.java index 82893c1..54cfd70 100644 --- a/src/main/java/com/conekta/model/OrderUpdateCustomerInfo.java +++ b/src/main/java/com/conekta/model/OrderUpdateCustomerInfo.java @@ -54,7 +54,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.conekta.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") @JsonDeserialize(using = OrderUpdateCustomerInfo.OrderUpdateCustomerInfoDeserializer.class) @JsonSerialize(using = OrderUpdateCustomerInfo.OrderUpdateCustomerInfoSerializer.class) public class OrderUpdateCustomerInfo extends AbstractOpenApiSchema { diff --git a/src/main/java/com/conekta/model/OrderUpdateFiscalEntityRequest.java b/src/main/java/com/conekta/model/OrderUpdateFiscalEntityRequest.java index fd1dde4..f6f6e87 100644 --- a/src/main/java/com/conekta/model/OrderUpdateFiscalEntityRequest.java +++ b/src/main/java/com/conekta/model/OrderUpdateFiscalEntityRequest.java @@ -41,7 +41,7 @@ OrderUpdateFiscalEntityRequest.JSON_PROPERTY_TAX_ID }) @JsonTypeName("order_update_fiscal_entity_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrderUpdateFiscalEntityRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/OrdersUpdateTaxesRequest.java b/src/main/java/com/conekta/model/OrdersUpdateTaxesRequest.java index d483097..fcf6edd 100644 --- a/src/main/java/com/conekta/model/OrdersUpdateTaxesRequest.java +++ b/src/main/java/com/conekta/model/OrdersUpdateTaxesRequest.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -37,7 +38,7 @@ OrdersUpdateTaxesRequest.JSON_PROPERTY_METADATA }) @JsonTypeName("ordersUpdateTaxes_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class OrdersUpdateTaxesRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nullable @@ -49,7 +50,7 @@ public class OrdersUpdateTaxesRequest { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata; + private Map metadata = new HashMap<>(); public OrdersUpdateTaxesRequest() { } @@ -105,11 +106,19 @@ public void setDescription(@javax.annotation.Nullable String description) { } - public OrdersUpdateTaxesRequest metadata(@javax.annotation.Nullable Map metadata) { + public OrdersUpdateTaxesRequest metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } + public OrdersUpdateTaxesRequest putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * Get metadata * @return metadata @@ -118,14 +127,14 @@ public OrdersUpdateTaxesRequest metadata(@javax.annotation.Nullable Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/conekta/model/PaymentMethodBankTransfer.java b/src/main/java/com/conekta/model/PaymentMethodBankTransfer.java index 92545f3..60209d4 100644 --- a/src/main/java/com/conekta/model/PaymentMethodBankTransfer.java +++ b/src/main/java/com/conekta/model/PaymentMethodBankTransfer.java @@ -53,7 +53,7 @@ PaymentMethodBankTransfer.JSON_PROPERTY_CUSTOMER_IP_ADDRESS }) @JsonTypeName("payment_method_bank_transfer") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodBankTransfer { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/PaymentMethodBnplPayment.java b/src/main/java/com/conekta/model/PaymentMethodBnplPayment.java index f6d44f0..ca0f70c 100644 --- a/src/main/java/com/conekta/model/PaymentMethodBnplPayment.java +++ b/src/main/java/com/conekta/model/PaymentMethodBnplPayment.java @@ -40,7 +40,7 @@ PaymentMethodBnplPayment.JSON_PROPERTY_SUCCESS_URL }) @JsonTypeName("payment_method_bnpl_payment") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodBnplPayment { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/PaymentMethodBnplRequest.java b/src/main/java/com/conekta/model/PaymentMethodBnplRequest.java index d24f4e0..7238dc8 100644 --- a/src/main/java/com/conekta/model/PaymentMethodBnplRequest.java +++ b/src/main/java/com/conekta/model/PaymentMethodBnplRequest.java @@ -32,25 +32,25 @@ @JsonPropertyOrder({ PaymentMethodBnplRequest.JSON_PROPERTY_TYPE, PaymentMethodBnplRequest.JSON_PROPERTY_CANCEL_URL, - PaymentMethodBnplRequest.JSON_PROPERTY_CAN_NOT_EXPIRE, + PaymentMethodBnplRequest.JSON_PROPERTY_EXPIRES_AT, PaymentMethodBnplRequest.JSON_PROPERTY_FAILURE_URL, PaymentMethodBnplRequest.JSON_PROPERTY_PRODUCT_TYPE, PaymentMethodBnplRequest.JSON_PROPERTY_SUCCESS_URL }) @JsonTypeName("payment_method_bnpl_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodBnplRequest { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nonnull private String type; public static final String JSON_PROPERTY_CANCEL_URL = "cancel_url"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private String cancelUrl; - public static final String JSON_PROPERTY_CAN_NOT_EXPIRE = "can_not_expire"; - @javax.annotation.Nonnull - private Boolean canNotExpire; + public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; + @javax.annotation.Nullable + private Long expiresAt; public static final String JSON_PROPERTY_FAILURE_URL = "failure_url"; @javax.annotation.Nonnull @@ -133,53 +133,53 @@ public void setType(@javax.annotation.Nonnull String type) { } - public PaymentMethodBnplRequest cancelUrl(@javax.annotation.Nonnull String cancelUrl) { + public PaymentMethodBnplRequest cancelUrl(@javax.annotation.Nullable String cancelUrl) { this.cancelUrl = cancelUrl; return this; } /** - * URL to redirect the customer after a canceled payment + * Optional URL to redirect the customer after a canceled payment * @return cancelUrl */ - @javax.annotation.Nonnull - @JsonProperty(value = JSON_PROPERTY_CANCEL_URL, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_CANCEL_URL, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCancelUrl() { return cancelUrl; } - @JsonProperty(value = JSON_PROPERTY_CANCEL_URL, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCancelUrl(@javax.annotation.Nonnull String cancelUrl) { + @JsonProperty(value = JSON_PROPERTY_CANCEL_URL, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCancelUrl(@javax.annotation.Nullable String cancelUrl) { this.cancelUrl = cancelUrl; } - public PaymentMethodBnplRequest canNotExpire(@javax.annotation.Nonnull Boolean canNotExpire) { - this.canNotExpire = canNotExpire; + public PaymentMethodBnplRequest expiresAt(@javax.annotation.Nullable Long expiresAt) { + this.expiresAt = expiresAt; return this; } /** - * Indicates if the payment method can not expire - * @return canNotExpire + * Optional expiry for the BNPL order, expressed in seconds since the Unix epoch. Defaults to one month from creation when omitted. + * @return expiresAt */ - @javax.annotation.Nonnull - @JsonProperty(value = JSON_PROPERTY_CAN_NOT_EXPIRE, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getCanNotExpire() { - return canNotExpire; + public Long getExpiresAt() { + return expiresAt; } - @JsonProperty(value = JSON_PROPERTY_CAN_NOT_EXPIRE, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCanNotExpire(@javax.annotation.Nonnull Boolean canNotExpire) { - this.canNotExpire = canNotExpire; + @JsonProperty(value = JSON_PROPERTY_EXPIRES_AT, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setExpiresAt(@javax.annotation.Nullable Long expiresAt) { + this.expiresAt = expiresAt; } @@ -272,7 +272,7 @@ public boolean equals(Object o) { PaymentMethodBnplRequest paymentMethodBnplRequest = (PaymentMethodBnplRequest) o; return Objects.equals(this.type, paymentMethodBnplRequest.type) && Objects.equals(this.cancelUrl, paymentMethodBnplRequest.cancelUrl) && - Objects.equals(this.canNotExpire, paymentMethodBnplRequest.canNotExpire) && + Objects.equals(this.expiresAt, paymentMethodBnplRequest.expiresAt) && Objects.equals(this.failureUrl, paymentMethodBnplRequest.failureUrl) && Objects.equals(this.productType, paymentMethodBnplRequest.productType) && Objects.equals(this.successUrl, paymentMethodBnplRequest.successUrl); @@ -280,7 +280,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(type, cancelUrl, canNotExpire, failureUrl, productType, successUrl); + return Objects.hash(type, cancelUrl, expiresAt, failureUrl, productType, successUrl); } @Override @@ -289,7 +289,7 @@ public String toString() { sb.append("class PaymentMethodBnplRequest {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" cancelUrl: ").append(toIndentedString(cancelUrl)).append("\n"); - sb.append(" canNotExpire: ").append(toIndentedString(canNotExpire)).append("\n"); + sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append(" failureUrl: ").append(toIndentedString(failureUrl)).append("\n"); sb.append(" productType: ").append(toIndentedString(productType)).append("\n"); sb.append(" successUrl: ").append(toIndentedString(successUrl)).append("\n"); diff --git a/src/main/java/com/conekta/model/PaymentMethodCard.java b/src/main/java/com/conekta/model/PaymentMethodCard.java index fb69eb6..1c88583 100644 --- a/src/main/java/com/conekta/model/PaymentMethodCard.java +++ b/src/main/java/com/conekta/model/PaymentMethodCard.java @@ -48,7 +48,7 @@ PaymentMethodCard.JSON_PROPERTY_CUSTOMER_IP_ADDRESS }) @JsonTypeName("payment_method_card") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodCard { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/PaymentMethodCardRequest.java b/src/main/java/com/conekta/model/PaymentMethodCardRequest.java index 48146b0..724f560 100644 --- a/src/main/java/com/conekta/model/PaymentMethodCardRequest.java +++ b/src/main/java/com/conekta/model/PaymentMethodCardRequest.java @@ -36,10 +36,11 @@ PaymentMethodCardRequest.JSON_PROPERTY_EXP_YEAR, PaymentMethodCardRequest.JSON_PROPERTY_NAME, PaymentMethodCardRequest.JSON_PROPERTY_NUMBER, + PaymentMethodCardRequest.JSON_PROPERTY_CONTRACT_ID, PaymentMethodCardRequest.JSON_PROPERTY_CUSTOMER_IP_ADDRESS }) @JsonTypeName("payment_method_card_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodCardRequest { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nonnull @@ -65,6 +66,10 @@ public class PaymentMethodCardRequest { @javax.annotation.Nonnull private String number; + public static final String JSON_PROPERTY_CONTRACT_ID = "contract_id"; + @javax.annotation.Nullable + private String contractId; + public static final String JSON_PROPERTY_CUSTOMER_IP_ADDRESS = "customer_ip_address"; @javax.annotation.Nullable private String customerIpAddress; @@ -178,7 +183,7 @@ public PaymentMethodCardRequest name(@javax.annotation.Nonnull String name) { } /** - * Cardholder name + * Cardholder name. Must include first and last name separated by a space; single-word names are rejected. Letters (including accented Latin characters), spaces, and the characters , . ' - are accepted; digits and other symbols are rejected. * @return name */ @javax.annotation.Nonnull @@ -222,6 +227,31 @@ public void setNumber(@javax.annotation.Nonnull String number) { } + public PaymentMethodCardRequest contractId(@javax.annotation.Nullable String contractId) { + this.contractId = contractId; + return this; + } + + /** + * Optional merchant-supplied identifier (exactly 10 characters) that links a card transaction to a recurring/subscription contract at the acquiring bank. Forwarded to the bank gateway and stored on the resulting charge. Accepted on creation only; ignored on update. Do not place sensitive bank data here — the value is returned in charge responses. + * @return contractId + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_CONTRACT_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getContractId() { + return contractId; + } + + + @JsonProperty(value = JSON_PROPERTY_CONTRACT_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContractId(@javax.annotation.Nullable String contractId) { + this.contractId = contractId; + } + + public PaymentMethodCardRequest customerIpAddress(@javax.annotation.Nullable String customerIpAddress) { this.customerIpAddress = customerIpAddress; return this; @@ -265,12 +295,13 @@ public boolean equals(Object o) { Objects.equals(this.expYear, paymentMethodCardRequest.expYear) && Objects.equals(this.name, paymentMethodCardRequest.name) && Objects.equals(this.number, paymentMethodCardRequest.number) && + Objects.equals(this.contractId, paymentMethodCardRequest.contractId) && Objects.equals(this.customerIpAddress, paymentMethodCardRequest.customerIpAddress); } @Override public int hashCode() { - return Objects.hash(type, cvc, expMonth, expYear, name, number, customerIpAddress); + return Objects.hash(type, cvc, expMonth, expYear, name, number, contractId, customerIpAddress); } @Override @@ -283,6 +314,7 @@ public String toString() { sb.append(" expYear: ").append(toIndentedString(expYear)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" contractId: ").append(toIndentedString(contractId)).append("\n"); sb.append(" customerIpAddress: ").append(toIndentedString(customerIpAddress)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/conekta/model/PaymentMethodCardResponse.java b/src/main/java/com/conekta/model/PaymentMethodCardResponse.java index 4bcb5fa..8cc797e 100644 --- a/src/main/java/com/conekta/model/PaymentMethodCardResponse.java +++ b/src/main/java/com/conekta/model/PaymentMethodCardResponse.java @@ -48,7 +48,7 @@ PaymentMethodCardResponse.JSON_PROPERTY_PAYMENT_SOURCE_STATUS }) @JsonTypeName("payment_method_card_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodCardResponse { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PaymentMethodCash.java b/src/main/java/com/conekta/model/PaymentMethodCash.java index 0dfb8d1..75bf964 100644 --- a/src/main/java/com/conekta/model/PaymentMethodCash.java +++ b/src/main/java/com/conekta/model/PaymentMethodCash.java @@ -45,7 +45,7 @@ PaymentMethodCash.JSON_PROPERTY_CUSTOMER_IP_ADDRESS }) @JsonTypeName("payment_method_cash") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodCash { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/PaymentMethodCashRecurrentResponse.java b/src/main/java/com/conekta/model/PaymentMethodCashRecurrentResponse.java index ae22adb..5db815d 100644 --- a/src/main/java/com/conekta/model/PaymentMethodCashRecurrentResponse.java +++ b/src/main/java/com/conekta/model/PaymentMethodCashRecurrentResponse.java @@ -46,7 +46,7 @@ PaymentMethodCashRecurrentResponse.JSON_PROPERTY_PROVIDER }) @JsonTypeName("payment_method_cash_recurrent_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodCashRecurrentResponse { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PaymentMethodCashRequest.java b/src/main/java/com/conekta/model/PaymentMethodCashRequest.java index 51bef8b..47786d6 100644 --- a/src/main/java/com/conekta/model/PaymentMethodCashRequest.java +++ b/src/main/java/com/conekta/model/PaymentMethodCashRequest.java @@ -34,7 +34,7 @@ PaymentMethodCashRequest.JSON_PROPERTY_EXPIRES_AT }) @JsonTypeName("payment_method_cash_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodCashRequest { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PaymentMethodCashResponse.java b/src/main/java/com/conekta/model/PaymentMethodCashResponse.java index 9b02e1f..f1291e6 100644 --- a/src/main/java/com/conekta/model/PaymentMethodCashResponse.java +++ b/src/main/java/com/conekta/model/PaymentMethodCashResponse.java @@ -46,7 +46,7 @@ PaymentMethodCashResponse.JSON_PROPERTY_PROVIDER }) @JsonTypeName("payment_method_cash_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodCashResponse { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PaymentMethodGeneralRequest.java b/src/main/java/com/conekta/model/PaymentMethodGeneralRequest.java index c9779fc..f7edb84 100644 --- a/src/main/java/com/conekta/model/PaymentMethodGeneralRequest.java +++ b/src/main/java/com/conekta/model/PaymentMethodGeneralRequest.java @@ -40,7 +40,7 @@ PaymentMethodGeneralRequest.JSON_PROPERTY_CUSTOMER_IP_ADDRESS }) @JsonTypeName("payment_method_general_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodGeneralRequest { public static final String JSON_PROPERTY_EXPIRES_AT = "expires_at"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/PaymentMethodPbbPayment.java b/src/main/java/com/conekta/model/PaymentMethodPbbPayment.java index dc7ff59..31375fe 100644 --- a/src/main/java/com/conekta/model/PaymentMethodPbbPayment.java +++ b/src/main/java/com/conekta/model/PaymentMethodPbbPayment.java @@ -39,7 +39,7 @@ PaymentMethodPbbPayment.JSON_PROPERTY_REFERENCE }) @JsonTypeName("payment_method_pbb_payment") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodPbbPayment { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/PaymentMethodPbbRequest.java b/src/main/java/com/conekta/model/PaymentMethodPbbRequest.java index 75688fc..1a1ff3c 100644 --- a/src/main/java/com/conekta/model/PaymentMethodPbbRequest.java +++ b/src/main/java/com/conekta/model/PaymentMethodPbbRequest.java @@ -35,7 +35,7 @@ PaymentMethodPbbRequest.JSON_PROPERTY_PRODUCT_TYPE }) @JsonTypeName("payment_method_pbb_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodPbbRequest { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PaymentMethodSpeiRecurrentResponse.java b/src/main/java/com/conekta/model/PaymentMethodSpeiRecurrentResponse.java index 153c5fc..2226a07 100644 --- a/src/main/java/com/conekta/model/PaymentMethodSpeiRecurrentResponse.java +++ b/src/main/java/com/conekta/model/PaymentMethodSpeiRecurrentResponse.java @@ -40,7 +40,7 @@ PaymentMethodSpeiRecurrentResponse.JSON_PROPERTY_EXPIRES_AT }) @JsonTypeName("payment_method_spei_recurrent_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodSpeiRecurrentResponse { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PaymentMethodSpeiRequest.java b/src/main/java/com/conekta/model/PaymentMethodSpeiRequest.java index 50c4645..6b6daec 100644 --- a/src/main/java/com/conekta/model/PaymentMethodSpeiRequest.java +++ b/src/main/java/com/conekta/model/PaymentMethodSpeiRequest.java @@ -34,7 +34,7 @@ PaymentMethodSpeiRequest.JSON_PROPERTY_EXPIRES_AT }) @JsonTypeName("payment_method_spei_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodSpeiRequest { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PaymentMethodTokenRequest.java b/src/main/java/com/conekta/model/PaymentMethodTokenRequest.java index d2f61bf..d0ca998 100644 --- a/src/main/java/com/conekta/model/PaymentMethodTokenRequest.java +++ b/src/main/java/com/conekta/model/PaymentMethodTokenRequest.java @@ -34,7 +34,7 @@ PaymentMethodTokenRequest.JSON_PROPERTY_TOKEN_ID }) @JsonTypeName("payment_method_token_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PaymentMethodTokenRequest { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/Payout.java b/src/main/java/com/conekta/model/Payout.java index f722a1f..aa17904 100644 --- a/src/main/java/com/conekta/model/Payout.java +++ b/src/main/java/com/conekta/model/Payout.java @@ -34,7 +34,7 @@ Payout.JSON_PROPERTY_PAYOUT_METHOD }) @JsonTypeName("payout") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class Payout { public static final String JSON_PROPERTY_PAYOUT_METHOD = "payout_method"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PayoutMethod.java b/src/main/java/com/conekta/model/PayoutMethod.java index ce17f2b..e92b842 100644 --- a/src/main/java/com/conekta/model/PayoutMethod.java +++ b/src/main/java/com/conekta/model/PayoutMethod.java @@ -33,7 +33,7 @@ PayoutMethod.JSON_PROPERTY_TYPE }) @JsonTypeName("payout_method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PayoutMethod { public static final String JSON_PROPERTY_TYPE = "type"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PayoutOrderPayoutsItem.java b/src/main/java/com/conekta/model/PayoutOrderPayoutsItem.java index 98e8f40..09e5b33 100644 --- a/src/main/java/com/conekta/model/PayoutOrderPayoutsItem.java +++ b/src/main/java/com/conekta/model/PayoutOrderPayoutsItem.java @@ -40,7 +40,7 @@ PayoutOrderPayoutsItem.JSON_PROPERTY_STATUS }) @JsonTypeName("payout_order_payouts_item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PayoutOrderPayoutsItem { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PayoutOrderRequest.java b/src/main/java/com/conekta/model/PayoutOrderRequest.java index 3df9005..2eb2c10 100644 --- a/src/main/java/com/conekta/model/PayoutOrderRequest.java +++ b/src/main/java/com/conekta/model/PayoutOrderRequest.java @@ -46,7 +46,7 @@ PayoutOrderRequest.JSON_PROPERTY_REASON }) @JsonTypeName("payout_order_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PayoutOrderRequest { public static final String JSON_PROPERTY_ALLOWED_PAYOUT_METHODS = "allowed_payout_methods"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PayoutOrderRequestCustomerInfo.java b/src/main/java/com/conekta/model/PayoutOrderRequestCustomerInfo.java index 52dac83..345fc26 100644 --- a/src/main/java/com/conekta/model/PayoutOrderRequestCustomerInfo.java +++ b/src/main/java/com/conekta/model/PayoutOrderRequestCustomerInfo.java @@ -33,7 +33,7 @@ PayoutOrderRequestCustomerInfo.JSON_PROPERTY_CUSTOMER_ID }) @JsonTypeName("payout_order_request_customer_info") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PayoutOrderRequestCustomerInfo { public static final String JSON_PROPERTY_CUSTOMER_ID = "customer_id"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PayoutOrderResponse.java b/src/main/java/com/conekta/model/PayoutOrderResponse.java index 1195888..9ca5bf9 100644 --- a/src/main/java/com/conekta/model/PayoutOrderResponse.java +++ b/src/main/java/com/conekta/model/PayoutOrderResponse.java @@ -52,7 +52,7 @@ PayoutOrderResponse.JSON_PROPERTY_UPDATED_AT }) @JsonTypeName("payout_order_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PayoutOrderResponse { public static final String JSON_PROPERTY_ALLOWED_PAYOUT_METHODS = "allowed_payout_methods"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PayoutOrderResponseCustomerInfo.java b/src/main/java/com/conekta/model/PayoutOrderResponseCustomerInfo.java index b74bae4..77152e8 100644 --- a/src/main/java/com/conekta/model/PayoutOrderResponseCustomerInfo.java +++ b/src/main/java/com/conekta/model/PayoutOrderResponseCustomerInfo.java @@ -39,7 +39,7 @@ PayoutOrderResponseCustomerInfo.JSON_PROPERTY_OBJECT }) @JsonTypeName("payout_order_response_customer_info") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PayoutOrderResponseCustomerInfo { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PayoutOrdersResponse.java b/src/main/java/com/conekta/model/PayoutOrdersResponse.java index 040cc66..4d9767e 100644 --- a/src/main/java/com/conekta/model/PayoutOrdersResponse.java +++ b/src/main/java/com/conekta/model/PayoutOrdersResponse.java @@ -40,7 +40,7 @@ PayoutOrdersResponse.JSON_PROPERTY_PREVIOUS_PAGE_URL }) @JsonTypeName("payout_orders_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PayoutOrdersResponse { public static final String JSON_PROPERTY_DATA = "data"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/PlanRequest.java b/src/main/java/com/conekta/model/PlanRequest.java index 7874166..31b0dc0 100644 --- a/src/main/java/com/conekta/model/PlanRequest.java +++ b/src/main/java/com/conekta/model/PlanRequest.java @@ -42,7 +42,7 @@ PlanRequest.JSON_PROPERTY_RETRY_DELAY_HOURS }) @JsonTypeName("plan_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PlanRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/PlanResponse.java b/src/main/java/com/conekta/model/PlanResponse.java index 1e8cea7..40f20f0 100644 --- a/src/main/java/com/conekta/model/PlanResponse.java +++ b/src/main/java/com/conekta/model/PlanResponse.java @@ -45,7 +45,7 @@ PlanResponse.JSON_PROPERTY_RETRY_DELAY_HOURS }) @JsonTypeName("plan_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class PlanResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/Product.java b/src/main/java/com/conekta/model/Product.java index afc25ed..45c6c55 100644 --- a/src/main/java/com/conekta/model/Product.java +++ b/src/main/java/com/conekta/model/Product.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -45,7 +46,7 @@ Product.JSON_PROPERTY_UNIT_PRICE }) @JsonTypeName("product") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class Product { public static final String JSON_PROPERTY_ANTIFRAUD_INFO = "antifraud_info"; @javax.annotation.Nullable @@ -61,7 +62,7 @@ public class Product { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata = new HashMap<>(); + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_NAME = "name"; @javax.annotation.Nonnull @@ -169,12 +170,12 @@ public void setDescription(@javax.annotation.Nullable String description) { } - public Product metadata(@javax.annotation.Nullable Map metadata) { + public Product metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } - public Product putMetadataItem(String key, Object metadataItem) { + public Product putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { if (this.metadata == null) { this.metadata = new HashMap<>(); } @@ -183,21 +184,21 @@ public Product putMetadataItem(String key, Object metadataItem) { } /** - * It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. + * It is a key/value hash that can hold custom fields. Maximum 100 elements. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. * @return metadata */ @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/conekta/model/ProductDataResponse.java b/src/main/java/com/conekta/model/ProductDataResponse.java index bdd75a8..b9a7964 100644 --- a/src/main/java/com/conekta/model/ProductDataResponse.java +++ b/src/main/java/com/conekta/model/ProductDataResponse.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -48,7 +49,7 @@ ProductDataResponse.JSON_PROPERTY_PARENT_ID }) @JsonTypeName("product_data_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ProductDataResponse { public static final String JSON_PROPERTY_ANTIFRAUD_INFO = "antifraud_info"; @javax.annotation.Nullable @@ -64,7 +65,7 @@ public class ProductDataResponse { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata = new HashMap<>(); + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_NAME = "name"; @javax.annotation.Nonnull @@ -184,12 +185,12 @@ public void setDescription(@javax.annotation.Nullable String description) { } - public ProductDataResponse metadata(@javax.annotation.Nullable Map metadata) { + public ProductDataResponse metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } - public ProductDataResponse putMetadataItem(String key, Object metadataItem) { + public ProductDataResponse putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { if (this.metadata == null) { this.metadata = new HashMap<>(); } @@ -198,21 +199,21 @@ public ProductDataResponse putMetadataItem(String key, Object metadataItem) { } /** - * It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. + * It is a key/value hash that can hold custom fields. Maximum 100 elements. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. * @return metadata */ @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/conekta/model/ProductOrderResponse.java b/src/main/java/com/conekta/model/ProductOrderResponse.java index b66e099..3e0555e 100644 --- a/src/main/java/com/conekta/model/ProductOrderResponse.java +++ b/src/main/java/com/conekta/model/ProductOrderResponse.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -48,7 +49,7 @@ ProductOrderResponse.JSON_PROPERTY_PARENT_ID }) @JsonTypeName("product_order_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ProductOrderResponse { public static final String JSON_PROPERTY_ANTIFRAUD_INFO = "antifraud_info"; @javax.annotation.Nullable @@ -64,7 +65,7 @@ public class ProductOrderResponse { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata = new HashMap<>(); + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_NAME = "name"; @javax.annotation.Nonnull @@ -184,12 +185,12 @@ public void setDescription(@javax.annotation.Nullable String description) { } - public ProductOrderResponse metadata(@javax.annotation.Nullable Map metadata) { + public ProductOrderResponse metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } - public ProductOrderResponse putMetadataItem(String key, Object metadataItem) { + public ProductOrderResponse putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { if (this.metadata == null) { this.metadata = new HashMap<>(); } @@ -198,21 +199,21 @@ public ProductOrderResponse putMetadataItem(String key, Object metadataItem) { } /** - * It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. + * It is a key/value hash that can hold custom fields. Maximum 100 elements. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. * @return metadata */ @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/conekta/model/ResendEventRequest.java b/src/main/java/com/conekta/model/ResendEventRequest.java index 277f49e..1b36b9c 100644 --- a/src/main/java/com/conekta/model/ResendEventRequest.java +++ b/src/main/java/com/conekta/model/ResendEventRequest.java @@ -35,16 +35,16 @@ ResendEventRequest.JSON_PROPERTY_WEBHOOKS_IDS }) @JsonTypeName("resendEvent_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ResendEventRequest { public static final String JSON_PROPERTY_WEBHOOKS_IDS = "webhooks_ids"; - @javax.annotation.Nonnull + @javax.annotation.Nullable private List webhooksIds = new ArrayList<>(); public ResendEventRequest() { } - public ResendEventRequest webhooksIds(@javax.annotation.Nonnull List webhooksIds) { + public ResendEventRequest webhooksIds(@javax.annotation.Nullable List webhooksIds) { this.webhooksIds = webhooksIds; return this; } @@ -61,18 +61,18 @@ public ResendEventRequest addWebhooksIdsItem(String webhooksIdsItem) { * webhooks ids to resend event * @return webhooksIds */ - @javax.annotation.Nonnull - @JsonProperty(value = JSON_PROPERTY_WEBHOOKS_IDS, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_WEBHOOKS_IDS, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getWebhooksIds() { return webhooksIds; } - @JsonProperty(value = JSON_PROPERTY_WEBHOOKS_IDS, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setWebhooksIds(@javax.annotation.Nonnull List webhooksIds) { + @JsonProperty(value = JSON_PROPERTY_WEBHOOKS_IDS, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWebhooksIds(@javax.annotation.Nullable List webhooksIds) { this.webhooksIds = webhooksIds; } diff --git a/src/main/java/com/conekta/model/RiskRulesData.java b/src/main/java/com/conekta/model/RiskRulesData.java index 8257da9..2947d1b 100644 --- a/src/main/java/com/conekta/model/RiskRulesData.java +++ b/src/main/java/com/conekta/model/RiskRulesData.java @@ -39,7 +39,7 @@ RiskRulesData.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("risk_rules_data") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class RiskRulesData { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/RiskRulesList.java b/src/main/java/com/conekta/model/RiskRulesList.java index 09a5a20..38a822d 100644 --- a/src/main/java/com/conekta/model/RiskRulesList.java +++ b/src/main/java/com/conekta/model/RiskRulesList.java @@ -40,7 +40,7 @@ RiskRulesList.JSON_PROPERTY_DATA }) @JsonTypeName("risk_rules_list") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class RiskRulesList { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/ShippingContactAddress.java b/src/main/java/com/conekta/model/ShippingContactAddress.java new file mode 100644 index 0000000..21bd4e7 --- /dev/null +++ b/src/main/java/com/conekta/model/ShippingContactAddress.java @@ -0,0 +1,300 @@ +/* + * Conekta API + * Conekta sdk + * + * The version of the OpenAPI document: 2.3.0 + * Contact: engineering@conekta.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.conekta.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.conekta.JSON; + + +/** + * Address of the person who will receive the order + */ +@JsonPropertyOrder({ + ShippingContactAddress.JSON_PROPERTY_STREET1, + ShippingContactAddress.JSON_PROPERTY_STREET2, + ShippingContactAddress.JSON_PROPERTY_POSTAL_CODE, + ShippingContactAddress.JSON_PROPERTY_CITY, + ShippingContactAddress.JSON_PROPERTY_STATE, + ShippingContactAddress.JSON_PROPERTY_COUNTRY, + ShippingContactAddress.JSON_PROPERTY_RESIDENTIAL +}) +@JsonTypeName("shipping_contact_address") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") +public class ShippingContactAddress { + public static final String JSON_PROPERTY_STREET1 = "street1"; + @javax.annotation.Nullable + private String street1; + + public static final String JSON_PROPERTY_STREET2 = "street2"; + @javax.annotation.Nullable + private String street2; + + public static final String JSON_PROPERTY_POSTAL_CODE = "postal_code"; + @javax.annotation.Nullable + private String postalCode; + + public static final String JSON_PROPERTY_CITY = "city"; + @javax.annotation.Nullable + private String city; + + public static final String JSON_PROPERTY_STATE = "state"; + @javax.annotation.Nullable + private String state; + + public static final String JSON_PROPERTY_COUNTRY = "country"; + @javax.annotation.Nullable + private String country; + + public static final String JSON_PROPERTY_RESIDENTIAL = "residential"; + @javax.annotation.Nullable + private Boolean residential = true; + + public ShippingContactAddress() { + } + + public ShippingContactAddress street1(@javax.annotation.Nullable String street1) { + this.street1 = street1; + return this; + } + + /** + * Street and number of the delivery address. + * @return street1 + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_STREET1, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getStreet1() { + return street1; + } + + + @JsonProperty(value = JSON_PROPERTY_STREET1, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStreet1(@javax.annotation.Nullable String street1) { + this.street1 = street1; + } + + + public ShippingContactAddress street2(@javax.annotation.Nullable String street2) { + this.street2 = street2; + return this; + } + + /** + * Apartment, suite or interior reference for the delivery address. + * @return street2 + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_STREET2, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getStreet2() { + return street2; + } + + + @JsonProperty(value = JSON_PROPERTY_STREET2, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStreet2(@javax.annotation.Nullable String street2) { + this.street2 = street2; + } + + + public ShippingContactAddress postalCode(@javax.annotation.Nullable String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** + * Postal code of the delivery address. For Mexican addresses (country MX) it must be a 5-digit postal code. + * @return postalCode + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_POSTAL_CODE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPostalCode() { + return postalCode; + } + + + @JsonProperty(value = JSON_PROPERTY_POSTAL_CODE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPostalCode(@javax.annotation.Nullable String postalCode) { + this.postalCode = postalCode; + } + + + public ShippingContactAddress city(@javax.annotation.Nullable String city) { + this.city = city; + return this; + } + + /** + * City of the delivery address. Must contain at least two consecutive ASCII letters. + * @return city + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_CITY, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCity() { + return city; + } + + + @JsonProperty(value = JSON_PROPERTY_CITY, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCity(@javax.annotation.Nullable String city) { + this.city = city; + } + + + public ShippingContactAddress state(@javax.annotation.Nullable String state) { + this.state = state; + return this; + } + + /** + * State of the delivery address. + * @return state + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_STATE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getState() { + return state; + } + + + @JsonProperty(value = JSON_PROPERTY_STATE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setState(@javax.annotation.Nullable String state) { + this.state = state; + } + + + public ShippingContactAddress country(@javax.annotation.Nullable String country) { + this.country = country; + return this; + } + + /** + * Country of the delivery address. This field follows the [ISO 3166-1 alpha-2 standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). + * @return country + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCountry() { + return country; + } + + + @JsonProperty(value = JSON_PROPERTY_COUNTRY, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCountry(@javax.annotation.Nullable String country) { + this.country = country; + } + + + public ShippingContactAddress residential(@javax.annotation.Nullable Boolean residential) { + this.residential = residential; + return this; + } + + /** + * Indicates whether the delivery address is residential. + * @return residential + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_RESIDENTIAL, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResidential() { + return residential; + } + + + @JsonProperty(value = JSON_PROPERTY_RESIDENTIAL, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResidential(@javax.annotation.Nullable Boolean residential) { + this.residential = residential; + } + + + /** + * Return true if this shipping_contact_address object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ShippingContactAddress shippingContactAddress = (ShippingContactAddress) o; + return Objects.equals(this.street1, shippingContactAddress.street1) && + Objects.equals(this.street2, shippingContactAddress.street2) && + Objects.equals(this.postalCode, shippingContactAddress.postalCode) && + Objects.equals(this.city, shippingContactAddress.city) && + Objects.equals(this.state, shippingContactAddress.state) && + Objects.equals(this.country, shippingContactAddress.country) && + Objects.equals(this.residential, shippingContactAddress.residential); + } + + @Override + public int hashCode() { + return Objects.hash(street1, street2, postalCode, city, state, country, residential); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShippingContactAddress {\n"); + sb.append(" street1: ").append(toIndentedString(street1)).append("\n"); + sb.append(" street2: ").append(toIndentedString(street2)).append("\n"); + sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); + sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" residential: ").append(toIndentedString(residential)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/conekta/model/ShippingLinesDataResponse.java b/src/main/java/com/conekta/model/ShippingLinesDataResponse.java index b51ab32..4f44fe2 100644 --- a/src/main/java/com/conekta/model/ShippingLinesDataResponse.java +++ b/src/main/java/com/conekta/model/ShippingLinesDataResponse.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -42,7 +43,7 @@ ShippingLinesDataResponse.JSON_PROPERTY_PARENT_ID }) @JsonTypeName("shipping_lines_data_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ShippingLinesDataResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull @@ -62,7 +63,7 @@ public class ShippingLinesDataResponse { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata = new HashMap<>(); + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable @@ -180,12 +181,12 @@ public void setMethod(@javax.annotation.Nullable String method) { } - public ShippingLinesDataResponse metadata(@javax.annotation.Nullable Map metadata) { + public ShippingLinesDataResponse metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } - public ShippingLinesDataResponse putMetadataItem(String key, Object metadataItem) { + public ShippingLinesDataResponse putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { if (this.metadata == null) { this.metadata = new HashMap<>(); } @@ -194,21 +195,21 @@ public ShippingLinesDataResponse putMetadataItem(String key, Object metadataItem } /** - * Hash where the user can send additional information for each 'shipping'. + * Hash where the user can send additional information for each 'shipping'. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. * @return metadata */ @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/conekta/model/ShippingOrderResponse.java b/src/main/java/com/conekta/model/ShippingOrderResponse.java index e9549b3..f8ea6e7 100644 --- a/src/main/java/com/conekta/model/ShippingOrderResponse.java +++ b/src/main/java/com/conekta/model/ShippingOrderResponse.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -42,7 +43,7 @@ ShippingOrderResponse.JSON_PROPERTY_PARENT_ID }) @JsonTypeName("shipping_order_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ShippingOrderResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull @@ -62,7 +63,7 @@ public class ShippingOrderResponse { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata = new HashMap<>(); + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable @@ -180,12 +181,12 @@ public void setMethod(@javax.annotation.Nullable String method) { } - public ShippingOrderResponse metadata(@javax.annotation.Nullable Map metadata) { + public ShippingOrderResponse metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } - public ShippingOrderResponse putMetadataItem(String key, Object metadataItem) { + public ShippingOrderResponse putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { if (this.metadata == null) { this.metadata = new HashMap<>(); } @@ -194,21 +195,21 @@ public ShippingOrderResponse putMetadataItem(String key, Object metadataItem) { } /** - * Hash where the user can send additional information for each 'shipping'. + * Hash where the user can send additional information for each 'shipping'. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. * @return metadata */ @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/conekta/model/ShippingRequest.java b/src/main/java/com/conekta/model/ShippingRequest.java index 7898ef4..125042c 100644 --- a/src/main/java/com/conekta/model/ShippingRequest.java +++ b/src/main/java/com/conekta/model/ShippingRequest.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -39,7 +40,7 @@ ShippingRequest.JSON_PROPERTY_METADATA }) @JsonTypeName("shipping_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class ShippingRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull @@ -59,7 +60,7 @@ public class ShippingRequest { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata = new HashMap<>(); + private Map metadata = new HashMap<>(); public ShippingRequest() { } @@ -165,12 +166,12 @@ public void setMethod(@javax.annotation.Nullable String method) { } - public ShippingRequest metadata(@javax.annotation.Nullable Map metadata) { + public ShippingRequest metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } - public ShippingRequest putMetadataItem(String key, Object metadataItem) { + public ShippingRequest putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { if (this.metadata == null) { this.metadata = new HashMap<>(); } @@ -179,21 +180,21 @@ public ShippingRequest putMetadataItem(String key, Object metadataItem) { } /** - * Hash where the user can send additional information for each 'shipping'. + * Hash where the user can send additional information for each 'shipping'. Values must be scalar (string of at most 249 characters, integer, number or boolean); nested objects and arrays are not supported. * @return metadata */ @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/conekta/model/SmsCheckoutRequest.java b/src/main/java/com/conekta/model/SmsCheckoutRequest.java deleted file mode 100644 index 538377d..0000000 --- a/src/main/java/com/conekta/model/SmsCheckoutRequest.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Conekta API - * Conekta sdk - * - * The version of the OpenAPI document: 2.3.0 - * Contact: engineering@conekta.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.conekta.model; - -import java.util.Objects; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.conekta.JSON; - - -/** - * SmsCheckoutRequest - */ -@JsonPropertyOrder({ - SmsCheckoutRequest.JSON_PROPERTY_PHONENUMBER -}) -@JsonTypeName("smsCheckout_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") -public class SmsCheckoutRequest { - public static final String JSON_PROPERTY_PHONENUMBER = "phonenumber"; - @javax.annotation.Nonnull - private String phonenumber; - - public SmsCheckoutRequest() { - } - - public SmsCheckoutRequest phonenumber(@javax.annotation.Nonnull String phonenumber) { - this.phonenumber = phonenumber; - return this; - } - - /** - * Get phonenumber - * @return phonenumber - */ - @javax.annotation.Nonnull - @JsonProperty(value = JSON_PROPERTY_PHONENUMBER, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getPhonenumber() { - return phonenumber; - } - - - @JsonProperty(value = JSON_PROPERTY_PHONENUMBER, required = true) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setPhonenumber(@javax.annotation.Nonnull String phonenumber) { - this.phonenumber = phonenumber; - } - - - /** - * Return true if this smsCheckout_request object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SmsCheckoutRequest smsCheckoutRequest = (SmsCheckoutRequest) o; - return Objects.equals(this.phonenumber, smsCheckoutRequest.phonenumber); - } - - @Override - public int hashCode() { - return Objects.hash(phonenumber); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SmsCheckoutRequest {\n"); - sb.append(" phonenumber: ").append(toIndentedString(phonenumber)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - return o == null ? "null" : o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/com/conekta/model/SubscriptionDetails.java b/src/main/java/com/conekta/model/SubscriptionDetails.java index 8e53d3b..3a15cc6 100644 --- a/src/main/java/com/conekta/model/SubscriptionDetails.java +++ b/src/main/java/com/conekta/model/SubscriptionDetails.java @@ -44,7 +44,7 @@ SubscriptionDetails.JSON_PROPERTY_UPDATED_AT }) @JsonTypeName("subscription_details") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class SubscriptionDetails { public static final String JSON_PROPERTY_CARD = "card"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/SubscriptionDetailsCard.java b/src/main/java/com/conekta/model/SubscriptionDetailsCard.java index f6b07af..b802490 100644 --- a/src/main/java/com/conekta/model/SubscriptionDetailsCard.java +++ b/src/main/java/com/conekta/model/SubscriptionDetailsCard.java @@ -44,7 +44,7 @@ SubscriptionDetailsCard.JSON_PROPERTY_CUSTOMER_CUSTOM_REFERENCE }) @JsonTypeName("subscription_details_card") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class SubscriptionDetailsCard { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/SubscriptionDetailsPlan.java b/src/main/java/com/conekta/model/SubscriptionDetailsPlan.java index 1312c11..0541a86 100644 --- a/src/main/java/com/conekta/model/SubscriptionDetailsPlan.java +++ b/src/main/java/com/conekta/model/SubscriptionDetailsPlan.java @@ -42,7 +42,7 @@ SubscriptionDetailsPlan.JSON_PROPERTY_CREATED_AT }) @JsonTypeName("subscription_details_plan") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class SubscriptionDetailsPlan { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/SubscriptionEventsResponse.java b/src/main/java/com/conekta/model/SubscriptionEventsResponse.java index 56c0397..1329ff4 100644 --- a/src/main/java/com/conekta/model/SubscriptionEventsResponse.java +++ b/src/main/java/com/conekta/model/SubscriptionEventsResponse.java @@ -40,7 +40,7 @@ SubscriptionEventsResponse.JSON_PROPERTY_DATA }) @JsonTypeName("subscription_events_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class SubscriptionEventsResponse { public static final String JSON_PROPERTY_HAS_MORE = "has_more"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/SubscriptionRequest.java b/src/main/java/com/conekta/model/SubscriptionRequest.java index a36fee1..e921585 100644 --- a/src/main/java/com/conekta/model/SubscriptionRequest.java +++ b/src/main/java/com/conekta/model/SubscriptionRequest.java @@ -35,7 +35,7 @@ SubscriptionRequest.JSON_PROPERTY_TRIAL_END }) @JsonTypeName("subscription_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class SubscriptionRequest { public static final String JSON_PROPERTY_PLAN_ID = "plan_id"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/SubscriptionResponse.java b/src/main/java/com/conekta/model/SubscriptionResponse.java index c89710b..582eed4 100644 --- a/src/main/java/com/conekta/model/SubscriptionResponse.java +++ b/src/main/java/com/conekta/model/SubscriptionResponse.java @@ -50,7 +50,7 @@ SubscriptionResponse.JSON_PROPERTY_TRIAL_END }) @JsonTypeName("subscription_response_1") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class SubscriptionResponse { public static final String JSON_PROPERTY_BILLING_CYCLE_START = "billing_cycle_start"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/TaxLinesDataResponse.java b/src/main/java/com/conekta/model/TaxLinesDataResponse.java index eb59abb..0a785b9 100644 --- a/src/main/java/com/conekta/model/TaxLinesDataResponse.java +++ b/src/main/java/com/conekta/model/TaxLinesDataResponse.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -40,7 +41,7 @@ TaxLinesDataResponse.JSON_PROPERTY_PARENT_ID }) @JsonTypeName("tax_lines_data_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TaxLinesDataResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull @@ -52,7 +53,7 @@ public class TaxLinesDataResponse { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata = new HashMap<>(); + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nonnull @@ -120,12 +121,12 @@ public void setDescription(@javax.annotation.Nonnull String description) { } - public TaxLinesDataResponse metadata(@javax.annotation.Nullable Map metadata) { + public TaxLinesDataResponse metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } - public TaxLinesDataResponse putMetadataItem(String key, Object metadataItem) { + public TaxLinesDataResponse putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { if (this.metadata == null) { this.metadata = new HashMap<>(); } @@ -139,16 +140,16 @@ public TaxLinesDataResponse putMetadataItem(String key, Object metadataItem) { */ @javax.annotation.Nullable @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/conekta/model/TokenRequest.java b/src/main/java/com/conekta/model/TokenRequest.java index d5025ed..a6b71a3 100644 --- a/src/main/java/com/conekta/model/TokenRequest.java +++ b/src/main/java/com/conekta/model/TokenRequest.java @@ -36,7 +36,7 @@ TokenRequest.JSON_PROPERTY_CHECKOUT }) @JsonTypeName("token_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TokenRequest { public static final String JSON_PROPERTY_CARD = "card"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/TokenRequestCard.java b/src/main/java/com/conekta/model/TokenRequestCard.java index dd2ad2a..92670aa 100644 --- a/src/main/java/com/conekta/model/TokenRequestCard.java +++ b/src/main/java/com/conekta/model/TokenRequestCard.java @@ -38,7 +38,7 @@ TokenRequestCard.JSON_PROPERTY_NUMBER }) @JsonTypeName("token_request_card") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TokenRequestCard { public static final String JSON_PROPERTY_CVC = "cvc"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/TokenRequestCheckout.java b/src/main/java/com/conekta/model/TokenRequestCheckout.java index 058c98e..6ea7d39 100644 --- a/src/main/java/com/conekta/model/TokenRequestCheckout.java +++ b/src/main/java/com/conekta/model/TokenRequestCheckout.java @@ -35,7 +35,7 @@ TokenRequestCheckout.JSON_PROPERTY_RETURNS_CONTROL_ON }) @JsonTypeName("token_request_checkout") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TokenRequestCheckout { public static final String JSON_PROPERTY_RETURNS_CONTROL_ON = "returns_control_on"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/TokenResponse.java b/src/main/java/com/conekta/model/TokenResponse.java index cb13377..484191b 100644 --- a/src/main/java/com/conekta/model/TokenResponse.java +++ b/src/main/java/com/conekta/model/TokenResponse.java @@ -38,7 +38,7 @@ TokenResponse.JSON_PROPERTY_USED }) @JsonTypeName("token_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TokenResponse { public static final String JSON_PROPERTY_CHECKOUT = "checkout"; @Deprecated diff --git a/src/main/java/com/conekta/model/TokenResponseCheckout.java b/src/main/java/com/conekta/model/TokenResponseCheckout.java index 52a733b..5f521c7 100644 --- a/src/main/java/com/conekta/model/TokenResponseCheckout.java +++ b/src/main/java/com/conekta/model/TokenResponseCheckout.java @@ -61,7 +61,7 @@ TokenResponseCheckout.JSON_PROPERTY_TYPE }) @JsonTypeName("token_response_checkout") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TokenResponseCheckout { public static final String JSON_PROPERTY_ALLOWED_PAYMENT_METHODS = "allowed_payment_methods"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/TransactionResponse.java b/src/main/java/com/conekta/model/TransactionResponse.java index f525045..de453c5 100644 --- a/src/main/java/com/conekta/model/TransactionResponse.java +++ b/src/main/java/com/conekta/model/TransactionResponse.java @@ -43,7 +43,7 @@ TransactionResponse.JSON_PROPERTY_TYPE }) @JsonTypeName("transaction_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TransactionResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/TransferDestinationResponse.java b/src/main/java/com/conekta/model/TransferDestinationResponse.java index 241b65d..b1a18d3 100644 --- a/src/main/java/com/conekta/model/TransferDestinationResponse.java +++ b/src/main/java/com/conekta/model/TransferDestinationResponse.java @@ -40,7 +40,7 @@ TransferDestinationResponse.JSON_PROPERTY_TYPE }) @JsonTypeName("transfer_destination_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TransferDestinationResponse { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "account_holder"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/TransferMethodResponse.java b/src/main/java/com/conekta/model/TransferMethodResponse.java index 8638a7a..8d1ca87 100644 --- a/src/main/java/com/conekta/model/TransferMethodResponse.java +++ b/src/main/java/com/conekta/model/TransferMethodResponse.java @@ -40,7 +40,7 @@ TransferMethodResponse.JSON_PROPERTY_TYPE }) @JsonTypeName("transfer_method_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TransferMethodResponse { public static final String JSON_PROPERTY_ACCOUNT_HOLDER = "account_holder"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/TransferResponse.java b/src/main/java/com/conekta/model/TransferResponse.java index d5c5dc6..c1d93d4 100644 --- a/src/main/java/com/conekta/model/TransferResponse.java +++ b/src/main/java/com/conekta/model/TransferResponse.java @@ -43,7 +43,7 @@ TransferResponse.JSON_PROPERTY_STATUS }) @JsonTypeName("transfer_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TransferResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/TransfersResponse.java b/src/main/java/com/conekta/model/TransfersResponse.java index 5fa4821..7d0d03f 100644 --- a/src/main/java/com/conekta/model/TransfersResponse.java +++ b/src/main/java/com/conekta/model/TransfersResponse.java @@ -43,7 +43,7 @@ TransfersResponse.JSON_PROPERTY_STATUS }) @JsonTypeName("transfers_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class TransfersResponse { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/UpdateCustomer.java b/src/main/java/com/conekta/model/UpdateCustomer.java index 7376803..9fbbd4c 100644 --- a/src/main/java/com/conekta/model/UpdateCustomer.java +++ b/src/main/java/com/conekta/model/UpdateCustomer.java @@ -57,7 +57,7 @@ UpdateCustomer.JSON_PROPERTY_SUBSCRIPTION }) @JsonTypeName("update_customer") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class UpdateCustomer { public static final String JSON_PROPERTY_ANTIFRAUD_INFO = "antifraud_info"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/UpdateCustomerAntifraudInfo.java b/src/main/java/com/conekta/model/UpdateCustomerAntifraudInfo.java index 628cc44..15594c5 100644 --- a/src/main/java/com/conekta/model/UpdateCustomerAntifraudInfo.java +++ b/src/main/java/com/conekta/model/UpdateCustomerAntifraudInfo.java @@ -34,7 +34,7 @@ UpdateCustomerAntifraudInfo.JSON_PROPERTY_FIRST_PAID_AT }) @JsonTypeName("update_customer_antifraud_info") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class UpdateCustomerAntifraudInfo { public static final String JSON_PROPERTY_ACCOUNT_CREATED_AT = "account_created_at"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/UpdateCustomerFiscalEntitiesResponse.java b/src/main/java/com/conekta/model/UpdateCustomerFiscalEntitiesResponse.java index 7bf7409..1b75948 100644 --- a/src/main/java/com/conekta/model/UpdateCustomerFiscalEntitiesResponse.java +++ b/src/main/java/com/conekta/model/UpdateCustomerFiscalEntitiesResponse.java @@ -46,7 +46,7 @@ UpdateCustomerFiscalEntitiesResponse.JSON_PROPERTY_DEFAULT }) @JsonTypeName("update_customer_fiscal_entities_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class UpdateCustomerFiscalEntitiesResponse { public static final String JSON_PROPERTY_ADDRESS = "address"; @javax.annotation.Nonnull @@ -66,7 +66,7 @@ public class UpdateCustomerFiscalEntitiesResponse { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata; + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_COMPANY_NAME = "company_name"; @javax.annotation.Nullable @@ -200,6 +200,14 @@ public UpdateCustomerFiscalEntitiesResponse metadata(@javax.annotation.Nullable return this; } + public UpdateCustomerFiscalEntitiesResponse putMetadataItem(String key, Object metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * Get metadata * @return metadata diff --git a/src/main/java/com/conekta/model/UpdateCustomerPaymentMethodsResponse.java b/src/main/java/com/conekta/model/UpdateCustomerPaymentMethodsResponse.java index e30863c..008b56b 100644 --- a/src/main/java/com/conekta/model/UpdateCustomerPaymentMethodsResponse.java +++ b/src/main/java/com/conekta/model/UpdateCustomerPaymentMethodsResponse.java @@ -62,7 +62,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.conekta.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") @JsonDeserialize(using = UpdateCustomerPaymentMethodsResponse.UpdateCustomerPaymentMethodsResponseDeserializer.class) @JsonSerialize(using = UpdateCustomerPaymentMethodsResponse.UpdateCustomerPaymentMethodsResponseSerializer.class) public class UpdateCustomerPaymentMethodsResponse extends AbstractOpenApiSchema { diff --git a/src/main/java/com/conekta/model/UpdateFiscalEntityRequest.java b/src/main/java/com/conekta/model/UpdateFiscalEntityRequest.java index cb5f6ac..08610a4 100644 --- a/src/main/java/com/conekta/model/UpdateFiscalEntityRequest.java +++ b/src/main/java/com/conekta/model/UpdateFiscalEntityRequest.java @@ -41,7 +41,7 @@ UpdateFiscalEntityRequest.JSON_PROPERTY_COMPANY_NAME }) @JsonTypeName("update_fiscal_entity_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class UpdateFiscalEntityRequest { public static final String JSON_PROPERTY_ADDRESS = "address"; @javax.annotation.Nullable @@ -61,7 +61,7 @@ public class UpdateFiscalEntityRequest { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata; + private Map metadata = new HashMap<>(); public static final String JSON_PROPERTY_COMPANY_NAME = "company_name"; @javax.annotation.Nullable @@ -175,6 +175,14 @@ public UpdateFiscalEntityRequest metadata(@javax.annotation.Nullable Map(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * Get metadata * @return metadata diff --git a/src/main/java/com/conekta/model/UpdateOrderDiscountLinesRequest.java b/src/main/java/com/conekta/model/UpdateOrderDiscountLinesRequest.java index 69a72c8..74043f3 100644 --- a/src/main/java/com/conekta/model/UpdateOrderDiscountLinesRequest.java +++ b/src/main/java/com/conekta/model/UpdateOrderDiscountLinesRequest.java @@ -35,7 +35,7 @@ UpdateOrderDiscountLinesRequest.JSON_PROPERTY_TYPE }) @JsonTypeName("update_order_discount_lines_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class UpdateOrderDiscountLinesRequest { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/UpdatePaymentMethodsCard.java b/src/main/java/com/conekta/model/UpdatePaymentMethodsCard.java index b860738..2151d19 100644 --- a/src/main/java/com/conekta/model/UpdatePaymentMethodsCard.java +++ b/src/main/java/com/conekta/model/UpdatePaymentMethodsCard.java @@ -34,7 +34,7 @@ UpdatePaymentMethodsCard.JSON_PROPERTY_EXPIRES_AT }) @JsonTypeName("update_payment_methods_card") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class UpdatePaymentMethodsCard { public static final String JSON_PROPERTY_NAME = "name"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/UpdatePlan.java b/src/main/java/com/conekta/model/UpdatePlan.java index 6cf6de1..7af87e5 100644 --- a/src/main/java/com/conekta/model/UpdatePlan.java +++ b/src/main/java/com/conekta/model/UpdatePlan.java @@ -36,7 +36,7 @@ UpdatePlan.JSON_PROPERTY_NAME }) @JsonTypeName("update_plan") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class UpdatePlan { public static final String JSON_PROPERTY_AMOUNT = "amount"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/UpdateProduct.java b/src/main/java/com/conekta/model/UpdateProduct.java index bb23751..0b95859 100644 --- a/src/main/java/com/conekta/model/UpdateProduct.java +++ b/src/main/java/com/conekta/model/UpdateProduct.java @@ -16,6 +16,7 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.conekta.model.OrderTaxRequestMetadataValue; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -45,11 +46,11 @@ UpdateProduct.JSON_PROPERTY_METADATA }) @JsonTypeName("update_product") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class UpdateProduct { public static final String JSON_PROPERTY_ANTIFRAUD_INFO = "antifraud_info"; @javax.annotation.Nullable - private Map antifraudInfo; + private Map antifraudInfo = new HashMap<>(); public static final String JSON_PROPERTY_DESCRIPTION = "description"; @javax.annotation.Nullable @@ -81,7 +82,7 @@ public class UpdateProduct { public static final String JSON_PROPERTY_METADATA = "metadata"; @javax.annotation.Nullable - private Map metadata; + private Map metadata = new HashMap<>(); public UpdateProduct() { } @@ -91,6 +92,14 @@ public UpdateProduct antifraudInfo(@javax.annotation.Nullable Map(); + } + this.antifraudInfo.put(key, antifraudInfoItem); + return this; + } + /** * Get antifraudInfo * @return antifraudInfo @@ -296,11 +305,19 @@ public void setBrand(@javax.annotation.Nullable String brand) { } - public UpdateProduct metadata(@javax.annotation.Nullable Map metadata) { + public UpdateProduct metadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; return this; } + public UpdateProduct putMetadataItem(String key, OrderTaxRequestMetadataValue metadataItem) { + if (this.metadata == null) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, metadataItem); + return this; + } + /** * Get metadata * @return metadata @@ -309,14 +326,14 @@ public UpdateProduct metadata(@javax.annotation.Nullable Map met @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { + public Map getMetadata() { return metadata; } @JsonProperty(value = JSON_PROPERTY_METADATA, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMetadata(@javax.annotation.Nullable Map metadata) { + public void setMetadata(@javax.annotation.Nullable Map metadata) { this.metadata = metadata; } diff --git a/src/main/java/com/conekta/model/UpdateWebhook.java b/src/main/java/com/conekta/model/UpdateWebhook.java index 24eb80f..aa8b76e 100644 --- a/src/main/java/com/conekta/model/UpdateWebhook.java +++ b/src/main/java/com/conekta/model/UpdateWebhook.java @@ -37,7 +37,7 @@ UpdateWebhook.JSON_PROPERTY_ACTIVE }) @JsonTypeName("update_webhook") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class UpdateWebhook { public static final String JSON_PROPERTY_URL = "url"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/UpdatesASubscription.java b/src/main/java/com/conekta/model/UpdatesASubscription.java index 61b2d0b..26d5dbd 100644 --- a/src/main/java/com/conekta/model/UpdatesASubscription.java +++ b/src/main/java/com/conekta/model/UpdatesASubscription.java @@ -35,7 +35,7 @@ UpdatesASubscription.JSON_PROPERTY_TRIAL_END }) @JsonTypeName("updates_a_subscription") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class UpdatesASubscription { public static final String JSON_PROPERTY_PLAN_ID = "plan_id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/WebhookKeyCreateResponse.java b/src/main/java/com/conekta/model/WebhookKeyCreateResponse.java index ee24fa7..babca04 100644 --- a/src/main/java/com/conekta/model/WebhookKeyCreateResponse.java +++ b/src/main/java/com/conekta/model/WebhookKeyCreateResponse.java @@ -38,7 +38,7 @@ WebhookKeyCreateResponse.JSON_PROPERTY_PUBLIC_KEY }) @JsonTypeName("webhook_key_create_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class WebhookKeyCreateResponse { public static final String JSON_PROPERTY_ACTIVE = "active"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/WebhookKeyDeleteResponse.java b/src/main/java/com/conekta/model/WebhookKeyDeleteResponse.java index 0db08c9..8da3fd4 100644 --- a/src/main/java/com/conekta/model/WebhookKeyDeleteResponse.java +++ b/src/main/java/com/conekta/model/WebhookKeyDeleteResponse.java @@ -38,7 +38,7 @@ WebhookKeyDeleteResponse.JSON_PROPERTY_OBJECT }) @JsonTypeName("webhook_key_delete_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class WebhookKeyDeleteResponse { public static final String JSON_PROPERTY_ACTIVE = "active"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/WebhookKeyRequest.java b/src/main/java/com/conekta/model/WebhookKeyRequest.java index 81dcdeb..4a5a423 100644 --- a/src/main/java/com/conekta/model/WebhookKeyRequest.java +++ b/src/main/java/com/conekta/model/WebhookKeyRequest.java @@ -33,7 +33,7 @@ WebhookKeyRequest.JSON_PROPERTY_ACTIVE }) @JsonTypeName("webhook_key_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class WebhookKeyRequest { public static final String JSON_PROPERTY_ACTIVE = "active"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/WebhookKeyResponse.java b/src/main/java/com/conekta/model/WebhookKeyResponse.java index eb5480b..f54df12 100644 --- a/src/main/java/com/conekta/model/WebhookKeyResponse.java +++ b/src/main/java/com/conekta/model/WebhookKeyResponse.java @@ -39,7 +39,7 @@ WebhookKeyResponse.JSON_PROPERTY_OBJECT }) @JsonTypeName("webhook_key_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class WebhookKeyResponse { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/WebhookKeyUpdateRequest.java b/src/main/java/com/conekta/model/WebhookKeyUpdateRequest.java index 94155c9..8047391 100644 --- a/src/main/java/com/conekta/model/WebhookKeyUpdateRequest.java +++ b/src/main/java/com/conekta/model/WebhookKeyUpdateRequest.java @@ -33,7 +33,7 @@ WebhookKeyUpdateRequest.JSON_PROPERTY_ACTIVE }) @JsonTypeName("webhook_key_update_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class WebhookKeyUpdateRequest { public static final String JSON_PROPERTY_ACTIVE = "active"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/WebhookLog.java b/src/main/java/com/conekta/model/WebhookLog.java index ed3a054..fb689c9 100644 --- a/src/main/java/com/conekta/model/WebhookLog.java +++ b/src/main/java/com/conekta/model/WebhookLog.java @@ -41,7 +41,7 @@ WebhookLog.JSON_PROPERTY_RESPONSE_DATA, WebhookLog.JSON_PROPERTY_URL }) -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class WebhookLog { public static final String JSON_PROPERTY_FAILED_ATTEMPTS = "failed_attempts"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/WebhookRequest.java b/src/main/java/com/conekta/model/WebhookRequest.java index b6959c0..32973a1 100644 --- a/src/main/java/com/conekta/model/WebhookRequest.java +++ b/src/main/java/com/conekta/model/WebhookRequest.java @@ -36,7 +36,7 @@ WebhookRequest.JSON_PROPERTY_SUBSCRIBED_EVENTS }) @JsonTypeName("webhook_request") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class WebhookRequest { public static final String JSON_PROPERTY_URL = "url"; @javax.annotation.Nonnull diff --git a/src/main/java/com/conekta/model/WebhookResponse.java b/src/main/java/com/conekta/model/WebhookResponse.java index d523294..c9551aa 100644 --- a/src/main/java/com/conekta/model/WebhookResponse.java +++ b/src/main/java/com/conekta/model/WebhookResponse.java @@ -42,7 +42,7 @@ WebhookResponse.JSON_PROPERTY_URL }) @JsonTypeName("webhook_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class WebhookResponse { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable diff --git a/src/main/java/com/conekta/model/WhitelistlistRuleResponse.java b/src/main/java/com/conekta/model/WhitelistlistRuleResponse.java index a9970e1..2ad1e6d 100644 --- a/src/main/java/com/conekta/model/WhitelistlistRuleResponse.java +++ b/src/main/java/com/conekta/model/WhitelistlistRuleResponse.java @@ -36,7 +36,7 @@ WhitelistlistRuleResponse.JSON_PROPERTY_DESCRIPTION }) @JsonTypeName("whitelistlist_rule_response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.24.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.25.0") public class WhitelistlistRuleResponse { public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable From b4ad41e1659ef333b729e4e4c68243eff61ad82c Mon Sep 17 00:00:00 2001 From: franklin Date: Mon, 5 Oct 2026 09:36:19 -0500 Subject: [PATCH 2/2] feat: Update API test cases to include additional parameters and fix assertions --- .github/workflows/maven.yml | 2 +- src/test/java/com/conekta/ChargesApiTest.java | 2 ++ src/test/java/com/conekta/LogsApiTest.java | 2 +- src/test/java/com/conekta/OrdersApiTest.java | 10 +++++----- src/test/java/com/conekta/PaymentLinkApiTest.java | 10 +--------- 5 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c5e9d7b..aa14d37 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -31,7 +31,7 @@ jobs: - name: Run Mockoon CLI uses: mockoon/cli-action@v3 with: - data-file: 'https://raw.githubusercontent.com/conekta/openapi/refs/heads/release/v2.3.0/mocks/conekta_api.json' + data-file: 'https://raw.githubusercontent.com/conekta/openapi/refs/heads/main/mocks/conekta_api.json' port: 3000 - name: Build with Maven run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/src/test/java/com/conekta/ChargesApiTest.java b/src/test/java/com/conekta/ChargesApiTest.java index ff40b5a..35bc48b 100644 --- a/src/test/java/com/conekta/ChargesApiTest.java +++ b/src/test/java/com/conekta/ChargesApiTest.java @@ -58,6 +58,7 @@ public void ordersCreateChargeTest() throws ApiException { "ord_2tVKxbhNzfUnGjnXG", buildCashChargeRequest(), "es", + null, null); Assertions.assertAll("charge on order", () -> Assertions.assertNotNull(response), @@ -73,6 +74,7 @@ public void ordersCreateChargesTest() throws ApiException { "ord_2wrW9arie9fUG4MfD", buildCashChargeRequest(), "es", + null, null); Assertions.assertAll("charges list on order", () -> Assertions.assertNotNull(response), diff --git a/src/test/java/com/conekta/LogsApiTest.java b/src/test/java/com/conekta/LogsApiTest.java index 0804bd8..925ffc3 100644 --- a/src/test/java/com/conekta/LogsApiTest.java +++ b/src/test/java/com/conekta/LogsApiTest.java @@ -33,7 +33,7 @@ public void getLogByIdTest() throws ApiException { @Test public void getLogsTest() throws ApiException { - LogsResponseForRequest response = api.getLogs("es", null, 20, null, null, null); + LogsResponseForRequest response = api.getLogs("es", null, 20, null, null, null, null); Assertions.assertNotNull(response); } diff --git a/src/test/java/com/conekta/OrdersApiTest.java b/src/test/java/com/conekta/OrdersApiTest.java index ed6b8c7..e244602 100644 --- a/src/test/java/com/conekta/OrdersApiTest.java +++ b/src/test/java/com/conekta/OrdersApiTest.java @@ -73,21 +73,21 @@ public void createOrderTest() throws ApiException { OrderRequest orderRequest = new OrderRequest() .currency("MXN") - .threeDsMode("smart") + .threeDsMode(OrderRequest.ThreeDsModeEnum.STRICT) .customerInfo(customerInfo) .addChargesItem(new ChargeRequest().amount(1000L).paymentMethod(paymentMethod)) .addLineItemsItem(new Product().name("test").quantity(1).unitPrice(1000)); - OrderResponse response = api.createOrder(orderRequest, "es", null); + OrderResponse response = api.createOrder(orderRequest, "es", null, null); Assertions.assertAll("created order", () -> Assertions.assertNotNull(response), () -> Assertions.assertNotNull(response.getId()), () -> Assertions.assertEquals("order", response.getObject()), () -> Assertions.assertEquals("MXN", response.getCurrency()), () -> Assertions.assertEquals("paid", response.getPaymentStatus()), - () -> Assertions.assertEquals(2100, response.getAmount()), + () -> Assertions.assertEquals(10000, response.getAmount()), () -> Assertions.assertEquals(0, response.getAmountRefunded()), () -> Assertions.assertTrue(response.getIsRefundable()), - () -> Assertions.assertTrue(response.getLivemode()), + () -> Assertions.assertFalse(response.getLivemode()), () -> Assertions.assertNull(response.getTaxLines()), () -> Assertions.assertNull(response.getDiscountLines()), () -> Assertions.assertNotNull(response.getShippingLines()), @@ -130,7 +130,7 @@ public void getOrderByIdTest() throws ApiException { @Test public void getOrdersTest() throws ApiException { GetOrdersResponse response = api.getOrders( - "es", null, 20, null, null, null, null, null, null, null, null, null, null); + "es", null, 20, null, null, null, null, null, null, null, null, null, null, null); Assertions.assertAll("orders list", () -> Assertions.assertNotNull(response), () -> Assertions.assertEquals("list", response.getObject()), diff --git a/src/test/java/com/conekta/PaymentLinkApiTest.java b/src/test/java/com/conekta/PaymentLinkApiTest.java index 16e6a2e..de1bf02 100644 --- a/src/test/java/com/conekta/PaymentLinkApiTest.java +++ b/src/test/java/com/conekta/PaymentLinkApiTest.java @@ -16,7 +16,6 @@ import com.conekta.model.CheckoutResponse; import com.conekta.model.CheckoutsResponse; import com.conekta.model.EmailCheckoutRequest; -import com.conekta.model.SmsCheckoutRequest; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; @@ -40,7 +39,7 @@ public void createCheckoutTest() throws ApiException { .name("Test Checkout") .type("PaymentLink") .recurrent(false); - CheckoutResponse response = api.createCheckout(checkout, "es", null); + CheckoutResponse response = api.createCheckout(checkout, "es", null, null); Assertions.assertNotNull(response); } @@ -64,12 +63,5 @@ public void getCheckoutsTest() throws ApiException { Assertions.assertNotNull(response); } - @Test - public void smsCheckoutTest() throws ApiException { - SmsCheckoutRequest smsCheckoutRequest = new SmsCheckoutRequest().phonenumber("+5215555555555"); - CheckoutResponse response = api.smsCheckout( - "ce1076bb-5ee6-4d08-a0e2-ec0bfbc49883", smsCheckoutRequest, "es", null); - Assertions.assertNotNull(response); - } }