Skip to content

supports net framework 4.7 #68

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
// "postCreateCommand": "cat /etc/os-release",
// Configure tool-specific properties.
,

"containerEnv": {
"BASE_PATH" : "http://host.docker.internal:3000"
},
"customizations": {
"vscode": {
"extensions": [
Expand Down
37 changes: 31 additions & 6 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,47 @@ on:
pull_request:
branches: [ main, master ]
jobs:
dotnet-framework-test:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup MSBuild path
uses: microsoft/[email protected]

- name: Run Mockoon CLI
uses: mockoon/cli-action@v1
with:
version: 'latest'
data-file: 'https://raw.githubusercontent.com/conekta/openapi/20230801/mocks/conekta_api.json'
port: 3001

- name: Execute dotnet
run: dotnet build

- name: Build and run tests for .NET Framework
run: dotnet test ./src/Conekta.net.Test/Conekta.net.Test.csproj --no-build -f net47
env:
BASE_PATH: http://localhost:3001

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- uses: actions/setup-node@v2
- name: start 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/20230801/mocks/conekta_api.json'
port: 3000
- name: Execute dotnet
run: dotnet build
- name: Test
run: dotnet test ./src/Conekta.net.Test/Conekta.net.Test.csproj --no-build -p:CollectCoverage=true -p:CoverletOutputFormat=lcov -p:CoverletOutput=coverage/
run: dotnet test ./src/Conekta.net.Test/Conekta.net.Test.csproj --no-build -p:CollectCoverage=true -p:CoverletOutputFormat=lcov -p:CoverletOutput=coverage/ -f net6.0
env:
BASE_PATH: http://localhost:3000
- name: publish code coverage
Expand Down
15 changes: 15 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.gitignore
AUTHORS.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Conekta.net.sln
LICENSE
VERSION
Expand All @@ -11,8 +12,12 @@ docs/ApiKeyCreateResponse.md
docs/ApiKeyCreateResponseAllOf.md
docs/ApiKeyRequest.md
docs/ApiKeyResponse.md
docs/ApiKeyResponseOnDelete.md
docs/ApiKeyUpdateRequest.md
docs/ApiKeysApi.md
docs/BalanceCommonField.md
docs/BalanceResponse.md
docs/BalancesApi.md
docs/BlacklistRuleResponse.md
docs/ChargeDataPaymentMethodBankTransferResponse.md
docs/ChargeDataPaymentMethodCardResponse.md
Expand Down Expand Up @@ -103,6 +108,8 @@ docs/GetCompaniesResponseAllOf.md
docs/GetCustomerPaymentMethodDataResponse.md
docs/GetEventsResponse.md
docs/GetEventsResponseAllOf.md
docs/GetOrderDiscountLinesResponse.md
docs/GetOrderDiscountLinesResponseAllOf.md
docs/GetOrdersResponse.md
docs/GetPaymentMethodResponse.md
docs/GetPaymentMethodResponseAllOf.md
Expand Down Expand Up @@ -142,6 +149,7 @@ docs/OrderResponseShippingContact.md
docs/OrderResponseShippingContactAllOf.md
docs/OrderTaxRequest.md
docs/OrderUpdateRequest.md
docs/OrderUpdateRequestCustomerInfo.md
docs/OrdersApi.md
docs/OrdersResponse.md
docs/Page.md
Expand Down Expand Up @@ -227,6 +235,7 @@ docs/WhitelistlistRuleResponse.md
src/Conekta.net.Test/Conekta.net.Test.csproj
src/Conekta.net/Api/AntifraudApi.cs
src/Conekta.net/Api/ApiKeysApi.cs
src/Conekta.net/Api/BalancesApi.cs
src/Conekta.net/Api/ChargesApi.cs
src/Conekta.net/Api/CompaniesApi.cs
src/Conekta.net/Api/CustomersApi.cs
Expand Down Expand Up @@ -269,7 +278,10 @@ src/Conekta.net/Model/ApiKeyCreateResponse.cs
src/Conekta.net/Model/ApiKeyCreateResponseAllOf.cs
src/Conekta.net/Model/ApiKeyRequest.cs
src/Conekta.net/Model/ApiKeyResponse.cs
src/Conekta.net/Model/ApiKeyResponseOnDelete.cs
src/Conekta.net/Model/ApiKeyUpdateRequest.cs
src/Conekta.net/Model/BalanceCommonField.cs
src/Conekta.net/Model/BalanceResponse.cs
src/Conekta.net/Model/BlacklistRuleResponse.cs
src/Conekta.net/Model/ChargeDataPaymentMethodBankTransferResponse.cs
src/Conekta.net/Model/ChargeDataPaymentMethodCardResponse.cs
Expand Down Expand Up @@ -355,6 +367,8 @@ src/Conekta.net/Model/GetCompaniesResponseAllOf.cs
src/Conekta.net/Model/GetCustomerPaymentMethodDataResponse.cs
src/Conekta.net/Model/GetEventsResponse.cs
src/Conekta.net/Model/GetEventsResponseAllOf.cs
src/Conekta.net/Model/GetOrderDiscountLinesResponse.cs
src/Conekta.net/Model/GetOrderDiscountLinesResponseAllOf.cs
src/Conekta.net/Model/GetOrdersResponse.cs
src/Conekta.net/Model/GetPaymentMethodResponse.cs
src/Conekta.net/Model/GetPaymentMethodResponseAllOf.cs
Expand Down Expand Up @@ -393,6 +407,7 @@ src/Conekta.net/Model/OrderResponseShippingContact.cs
src/Conekta.net/Model/OrderResponseShippingContactAllOf.cs
src/Conekta.net/Model/OrderTaxRequest.cs
src/Conekta.net/Model/OrderUpdateRequest.cs
src/Conekta.net/Model/OrderUpdateRequestCustomerInfo.cs
src/Conekta.net/Model/OrdersResponse.cs
src/Conekta.net/Model/Page.cs
src/Conekta.net/Model/Pagination.cs
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## How to contribute step-by-step

1. Fork the `conekta/conekta-.net repository.
1. Fork the `conekta/#$repo repository.
2. Create a new branch from `main` in your fork. This makes it easier for you to keep track of your changes.
3. Make the desired changes to the code.
* If you are adding new functionality or fixing a bug, we recommend you add unit tests that cover it.
4. Push the changes to your fork.
5. Create a pull request to the `conekta/conekta-.net` repository.
5. Create a pull request to the `conekta/#$repo` repository.
6. In your pull request, please describe in detail:
* What problem you’re solving
* Your approach to fixing the problem
Expand Down
10 changes: 5 additions & 5 deletions Conekta.net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net", "src\Conekta.net\Conekta.net.csproj", "{6B791F6F-08B5-4902-A1AC-B362F3DD98AB}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net", "src\Conekta.net\Conekta.net.csproj", "{6B22B024-0267-4D9B-9C92-267E76A94CD7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net.Test", "src\Conekta.net.Test\Conekta.net.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6B791F6F-08B5-4902-A1AC-B362F3DD98AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B791F6F-08B5-4902-A1AC-B362F3DD98AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6B791F6F-08B5-4902-A1AC-B362F3DD98AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6B791F6F-08B5-4902-A1AC-B362F3DD98AB}.Release|Any CPU.Build.0 = Release|Any CPU
{6B22B024-0267-4D9B-9C92-267E76A94CD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B22B024-0267-4D9B-9C92-267E76A94CD7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6B22B024-0267-4D9B-9C92-267E76A94CD7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6B22B024-0267-4D9B-9C92-267E76A94CD7}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.4
6.0.5
Loading