Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

new entities #65

Merged
merged 3 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.sdk }}
- name: Install Mockserver
run: |
npm install -g @mockoon/cli
npx mockoon-cli start --data https://raw.githubusercontent.com/conekta/openapi/main/mocks/conekta_api.json --port 3000
- name: Run Mockoon CLI
uses: mockoon/cli-action@v1
with:
version: 'latest'
data-file: 'https://raw.githubusercontent.com/conekta/openapi/main/mocks/conekta_api.json'
port: 3000
- name: Run tests
run: |
go test -v --race ./...
Expand Down
76 changes: 43 additions & 33 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ api_webhooks.go
client.go
conekta.png
configuration.go
docs/AntifraudApi.md
docs/AntifraudAPI.md
docs/ApiKeyCreateResponse.md
docs/ApiKeyCreateResponseAllOf.md
docs/ApiKeyRequest.md
docs/ApiKeyResponse.md
docs/ApiKeyResponseOnDelete.md
docs/ApiKeyUpdateRequest.md
docs/ApiKeysApi.md
docs/ApiKeysAPI.md
docs/BalanceCommonField.md
docs/BalanceResponse.md
docs/BalancesApi.md
docs/BalancesAPI.md
docs/BlacklistRuleResponse.md
docs/ChargeDataPaymentMethodBankTransferResponse.md
docs/ChargeDataPaymentMethodCardResponse.md
Expand All @@ -54,7 +54,8 @@ docs/ChargeResponsePaymentMethod.md
docs/ChargeResponseRefunds.md
docs/ChargeResponseRefundsAllOf.md
docs/ChargeResponseRefundsData.md
docs/ChargesApi.md
docs/ChargeUpdateRequest.md
docs/ChargesAPI.md
docs/ChargesDataResponse.md
docs/Checkout.md
docs/CheckoutOrderTemplate.md
Expand All @@ -63,7 +64,7 @@ docs/CheckoutRequest.md
docs/CheckoutResponse.md
docs/CheckoutsResponse.md
docs/CheckoutsResponseAllOf.md
docs/CompaniesApi.md
docs/CompaniesAPI.md
docs/CompanyFiscalInfoAddressResponse.md
docs/CompanyFiscalInfoResponse.md
docs/CompanyPayoutDestinationResponse.md
Expand All @@ -85,7 +86,6 @@ docs/CustomerFiscalEntitiesResponseAllOf.md
docs/CustomerInfo.md
docs/CustomerInfoJustCustomerId.md
docs/CustomerInfoJustCustomerIdResponse.md
docs/CustomerInfoResponse.md
docs/CustomerPaymentMethodRequest.md
docs/CustomerPaymentMethods.md
docs/CustomerPaymentMethodsData.md
Expand All @@ -102,7 +102,7 @@ docs/CustomerShippingContactsResponse.md
docs/CustomerShippingContactsResponseAddress.md
docs/CustomerUpdateFiscalEntitiesRequest.md
docs/CustomerUpdateShippingContacts.md
docs/CustomersApi.md
docs/CustomersAPI.md
docs/CustomersResponse.md
docs/CustomersResponseAllOf.md
docs/DeleteApiKeysResponse.md
Expand All @@ -114,12 +114,13 @@ docs/DetailsError.md
docs/DiscountLinesDataResponse.md
docs/DiscountLinesResponse.md
docs/DiscountLinesResponseAllOf.md
docs/DiscountsApi.md
docs/DiscountsAPI.md
docs/EmailCheckoutRequest.md
docs/ErrorAllOf.md
docs/EventResponse.md
docs/EventsApi.md
docs/EventsAPI.md
docs/EventsResendResponse.md
docs/FiscalEntityAddress.md
docs/GetApiKeysResponse.md
docs/GetApiKeysResponseAllOf.md
docs/GetChargesResponse.md
Expand All @@ -145,12 +146,19 @@ docs/GetWebhookKeysResponseAllOf.md
docs/GetWebhooksResponse.md
docs/GetWebhooksResponseAllOf.md
docs/LogResponse.md
docs/LogsApi.md
docs/LogsAPI.md
docs/LogsResponse.md
docs/LogsResponseData.md
docs/ModelError.md
docs/OrderCaptureRequest.md
docs/OrderCustomerInfoResponse.md
docs/OrderDiscountLinesRequest.md
docs/OrderFiscalEntityAddressResponse.md
docs/OrderFiscalEntityAddressResponseAllOf.md
docs/OrderFiscalEntityRequest.md
docs/OrderFiscalEntityResponse.md
docs/OrderNextActionResponse.md
docs/OrderNextActionResponseRedirectToUrl.md
docs/OrderRefundRequest.md
docs/OrderRequest.md
docs/OrderRequestCustomerInfo.md
Expand All @@ -162,21 +170,19 @@ docs/OrderResponseCustomerInfo.md
docs/OrderResponseCustomerInfoAllOf.md
docs/OrderResponseDiscountLines.md
docs/OrderResponseDiscountLinesAllOf.md
docs/OrderResponseFiscalEntity.md
docs/OrderResponseFiscalEntityAddress.md
docs/OrderResponseFiscalEntityAddressAllOf.md
docs/OrderResponseProducts.md
docs/OrderResponseProductsAllOf.md
docs/OrderResponseShippingContact.md
docs/OrderResponseShippingContactAllOf.md
docs/OrderTaxRequest.md
docs/OrderUpdateFiscalEntityRequest.md
docs/OrderUpdateRequest.md
docs/OrderUpdateRequestCustomerInfo.md
docs/OrdersApi.md
docs/OrdersAPI.md
docs/OrdersResponse.md
docs/Page.md
docs/Pagination.md
docs/PaymentLinkApi.md
docs/PaymentLinkAPI.md
docs/PaymentMethod.md
docs/PaymentMethodBankTransfer.md
docs/PaymentMethodCard.md
Expand All @@ -193,43 +199,43 @@ docs/PaymentMethodResponse.md
docs/PaymentMethodSpeiRecurrent.md
docs/PaymentMethodSpeiRecurrentAllOf.md
docs/PaymentMethodSpeiRequest.md
docs/PaymentMethodsApi.md
docs/PaymentMethodsAPI.md
docs/PlanRequest.md
docs/PlanResponse.md
docs/PlanUpdateRequest.md
docs/PlansApi.md
docs/PlansAPI.md
docs/Product.md
docs/ProductDataResponse.md
docs/ProductDataResponseAllOf.md
docs/ProductOrderResponse.md
docs/ProductOrderResponseAllOf.md
docs/ProductsApi.md
docs/ProductsAPI.md
docs/RiskRules.md
docs/RiskRulesData.md
docs/RiskRulesList.md
docs/ShippingContactsApi.md
docs/ShippingContactsAPI.md
docs/ShippingOrderResponse.md
docs/ShippingRequest.md
docs/ShippingsApi.md
docs/ShippingsAPI.md
docs/SmsCheckoutRequest.md
docs/SubscriptionEventsResponse.md
docs/SubscriptionRequest.md
docs/SubscriptionResponse.md
docs/SubscriptionUpdateRequest.md
docs/SubscriptionsApi.md
docs/TaxesApi.md
docs/SubscriptionsAPI.md
docs/TaxesAPI.md
docs/Token.md
docs/TokenCard.md
docs/TokenCheckout.md
docs/TokenResponse.md
docs/TokenResponseCheckout.md
docs/TokensApi.md
docs/TokensAPI.md
docs/TransactionResponse.md
docs/TransactionsApi.md
docs/TransactionsAPI.md
docs/TransferDestinationResponse.md
docs/TransferMethodResponse.md
docs/TransferResponse.md
docs/TransfersApi.md
docs/TransfersAPI.md
docs/TransfersResponse.md
docs/UpdateCustomer.md
docs/UpdateCustomerAntifraudInfo.md
Expand All @@ -247,15 +253,13 @@ docs/WebhookKeyDeleteResponse.md
docs/WebhookKeyRequest.md
docs/WebhookKeyResponse.md
docs/WebhookKeyUpdateRequest.md
docs/WebhookKeysApi.md
docs/WebhookKeysAPI.md
docs/WebhookLog.md
docs/WebhookRequest.md
docs/WebhookResponse.md
docs/WebhookUpdateRequest.md
docs/WebhooksApi.md
docs/WebhooksAPI.md
docs/WhitelistlistRuleResponse.md
go.mod
go.sum
model_api_key_create_response.go
model_api_key_create_response_all_of.go
model_api_key_request.go
Expand All @@ -278,6 +282,7 @@ model_charge_response_payment_method.go
model_charge_response_refunds.go
model_charge_response_refunds_all_of.go
model_charge_response_refunds_data.go
model_charge_update_request.go
model_charges_data_response.go
model_checkout.go
model_checkout_order_template.go
Expand Down Expand Up @@ -307,7 +312,6 @@ model_customer_fiscal_entities_response_all_of.go
model_customer_info.go
model_customer_info_just_customer_id.go
model_customer_info_just_customer_id_response.go
model_customer_info_response.go
model_customer_payment_method_request.go
model_customer_payment_methods.go
model_customer_payment_methods_data.go
Expand Down Expand Up @@ -340,6 +344,7 @@ model_error.go
model_error_all_of.go
model_event_response.go
model_events_resend_response.go
model_fiscal_entity_address.go
model_get_api_keys_response.go
model_get_api_keys_response_all_of.go
model_get_charges_response.go
Expand Down Expand Up @@ -368,7 +373,14 @@ model_log_response.go
model_logs_response.go
model_logs_response_data.go
model_order_capture_request.go
model_order_customer_info_response.go
model_order_discount_lines_request.go
model_order_fiscal_entity_address_response.go
model_order_fiscal_entity_address_response_all_of.go
model_order_fiscal_entity_request.go
model_order_fiscal_entity_response.go
model_order_next_action_response.go
model_order_next_action_response_redirect_to_url.go
model_order_refund_request.go
model_order_request.go
model_order_request_customer_info.go
Expand All @@ -380,14 +392,12 @@ model_order_response_customer_info.go
model_order_response_customer_info_all_of.go
model_order_response_discount_lines.go
model_order_response_discount_lines_all_of.go
model_order_response_fiscal_entity.go
model_order_response_fiscal_entity_address.go
model_order_response_fiscal_entity_address_all_of.go
model_order_response_products.go
model_order_response_products_all_of.go
model_order_response_shipping_contact.go
model_order_response_shipping_contact_all_of.go
model_order_tax_request.go
model_order_update_fiscal_entity_request.go
model_order_update_request.go
model_order_update_request_customer_info.go
model_orders_response.go
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.6.0
7.1.0
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

ci-test:
go test ./...
go:
rm -rf /docs \
&& rm model_*
docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.1.0 generate \
-i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \
-g go \
-o /local \
-c /local/config-go.json \
--global-property modelTests=false \
--additional-properties=hideGenerationTimestamp=true
Loading