Skip to content

Commit

Permalink
Generate sdk based on Openapi (#55)
Browse files Browse the repository at this point in the history
* support openapi new version

* add documentation

* fix unit test

* add missing documentation and fix unit test

* update documentation

* create 6.0.0-alpha-2 version

* using openapi file mock

* update documentation

* update documentation

* update readme

* add missing documentation for white and black endpoints

* rename line items by product

* shipping_line rename by shipping

shipping_line rename by shipping

* fix tax lines by taxes

* rename payment sources by payment methods

* add metadata to customers

* required: true

* Fix issues, Rename models, Clean unused models

* order capture request body

* expires at refund orders

* antifraud tests

* add child company

* tokens endpoint

* deprecated empty token

* fix customer instead of consumer

* add changelog and 6.0.0 version
  • Loading branch information
fcarrero authored May 4, 2023
1 parent 8b88c5e commit 6c4f091
Show file tree
Hide file tree
Showing 480 changed files with 91,229 additions and 3,904 deletions.
41 changes: 41 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "Existing Dockerfile",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerfile": "../Dockerfile"
}
// Features to add to the dev container. More info: https://containers.dev/features.
,"features": {
"ghcr.io/jungaretti/features/make:1" : {
"version" : "latest"
}
}
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "cat /etc/os-release",
// Configure tool-specific properties.
,

"customizations": {
"vscode": {
"extensions": [
"doggy8088.netcore-extension-pack",
"Lesan.vscode-netcore-ide",
"kishoreithadi.dotnet-core-essentials",
"mfery.dotnetexplorer",
"matijarmk.dotnet-core-commands",
"leo-labs.dotnet",
"ms-dotnettools.csharp",
"GitHub.copilot"
]
}
}
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer"

}
366 changes: 290 additions & 76 deletions .editorconfig

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @fcarrero @macuartin @agatto-conekta @fernandosaenzconekta @ezerozen
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dotnet version: x.y.z Library version: x.y.z Description
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**Description**
<!-- Please provide a description of the changes proposed in the Pull Request -->

**Tested scenarios**
<!-- Description of tested scenarios -->

**Fixed issue**: <!-- #-prefixed issue number -->
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: nuget
directory: "/"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 20
67 changes: 0 additions & 67 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
#
# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech)

name: dotnet CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test
run: DOCKER_BUILDKIT=1 docker-compose -f docker-compose.yml -p ${{ github.run_id }} run --rm service dotnet test ./src/Conekta.net.Test/Conekta.net.Test.csproj
- name: remove containers
if: always()
run: docker-compose -f docker-compose.yml -p ${{ github.run_id }} down
Loading

0 comments on commit 6c4f091

Please sign in to comment.