Skip to content

Commit

Permalink
update entities (#87)
Browse files Browse the repository at this point in the history
* update entities

* fix codeclimate
  • Loading branch information
fcarrero authored Apr 24, 2024
1 parent c605cb7 commit db3e60f
Show file tree
Hide file tree
Showing 213 changed files with 792 additions and 525 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@ jobs:
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/
env:
BASE_PATH: http://localhost:3000
- name: publish code coverage
- name: Test and publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
BASE_PATH: http://localhost:3000
with:
coverageCommand: dotnet test ./src/Conekta.net.Test/Conekta.net.Test.csproj --no-build -p:CollectCoverage=true -p:CoverletOutputFormat=lcov -p:CoverletOutput=coverage/
coverageLocations: |
${{github.workspace}}/src/Conekta.net.Test/coverage/coverage.net6.0.info:lcov
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.4.0
7.5.0
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", "{9AD6031F-BA27-4EE7-995D-669E9497AE86}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net", "src\Conekta.net\Conekta.net.csproj", "{F7CF1CA4-FB32-4B79-929C-55DA32E75F20}"
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
{9AD6031F-BA27-4EE7-995D-669E9497AE86}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9AD6031F-BA27-4EE7-995D-669E9497AE86}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9AD6031F-BA27-4EE7-995D-669E9497AE86}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9AD6031F-BA27-4EE7-995D-669E9497AE86}.Release|Any CPU.Build.0 = Release|Any CPU
{F7CF1CA4-FB32-4B79-929C-55DA32E75F20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F7CF1CA4-FB32-4B79-929C-55DA32E75F20}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F7CF1CA4-FB32-4B79-929C-55DA32E75F20}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F7CF1CA4-FB32-4B79-929C-55DA32E75F20}.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 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ csharp:
rm -rf /docs && \
rm -rf src/Conekta.net/Model && \
docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.4.0 generate \
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.5.0 generate \
-i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \
-g csharp \
-o /local \
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.9
6.0.10
147 changes: 145 additions & 2 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4034,6 +4034,74 @@ paths:
schema:
type: string
style: form
- description: Filters by order status
explode: true
in: query
name: payment_status
required: false
schema:
example: paid
type: string
style: form
- description: Filters by last payment info status
explode: true
in: query
name: last_payment_info.status
required: false
schema:
example: pending_payment
type: string
style: form
- description: created equal to
explode: true
in: query
name: created_at
required: false
schema:
example: 1612137600
format: int64
type: integer
style: form
- description: created at greater than or equal to
explode: true
in: query
name: created_at.gte
required: false
schema:
example: 1612137600
format: int64
type: integer
style: form
- description: created at less than or equal to
explode: true
in: query
name: created_at.lte
required: false
schema:
example: 1612137600
format: int64
type: integer
style: form
- description: updated at greater than or equal to
explode: true
in: query
name: updated_at.gte
required: false
schema:
example: 1612137600
format: int64
type: integer
style: form
- description: updated at less than or equal to
explode: true
in: query
name: updated_at.lte
required: false
schema:
example: 1612137600
format: int64
type: integer
style: form
responses:
"200":
content:
Expand Down Expand Up @@ -12430,6 +12498,81 @@ components:
schema:
type: string
style: simple
payment_status:
description: Filters by order status
explode: true
in: query
name: payment_status
required: false
schema:
example: paid
type: string
style: form
last_payment_infostatus:
description: Filters by last payment info status
explode: true
in: query
name: last_payment_info.status
required: false
schema:
example: pending_payment
type: string
style: form
created_at:
description: created equal to
explode: true
in: query
name: created_at
required: false
schema:
example: 1612137600
format: int64
type: integer
style: form
created_at_gte:
description: created at greater than or equal to
explode: true
in: query
name: created_at.gte
required: false
schema:
example: 1612137600
format: int64
type: integer
style: form
created_at_lte:
description: created at less than or equal to
explode: true
in: query
name: created_at.lte
required: false
schema:
example: 1612137600
format: int64
type: integer
style: form
updated_at_gte:
description: updated at greater than or equal to
explode: true
in: query
name: updated_at.gte
required: false
schema:
example: 1612137600
format: int64
type: integer
style: form
updated_at_lte:
description: updated at less than or equal to
explode: true
in: query
name: updated_at.lte
required: false
schema:
example: 1612137600
format: int64
type: integer
style: form
line_items_id:
description: identifier
example: line_item_2tQ8HkkfbauaKP9Ho
Expand Down Expand Up @@ -14907,8 +15050,8 @@ components:
maxLength: 250
type: string
metadata:
additionalProperties:
type: string
additionalProperties: true
default: {}
description: It is a key/value hash that can hold custom fields. Maximum
100 elements and allows special characters.
example:
Expand Down
2 changes: 1 addition & 1 deletion config-netcore.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
"packageCopyright" : "Conekta",
"PackageReleaseNotes" : "add support for payout orders",
"releaseNote" : "update entity webhook, nuget config",
"packageVersion" : "6.0.9"
"packageVersion" : "6.0.10"
}
2 changes: 1 addition & 1 deletion docs/ApiKeyCreateResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**Id** | **string** | Unique identifier of the api key | [optional]
**Livemode** | **bool** | Indicates if the api key is in production | [optional]
**Deleted** | **bool** | Indicates if the api key was deleted | [optional]
**VarObject** | **string** | Object name, value is 'api_key' | [optional]
**Object** | **string** | Object name, value is 'api_key' | [optional]
**Prefix** | **string** | The first few characters of the authentication_token | [optional]
**Role** | **string** | Indicates if the api key is private or public | [optional]
**AuthenticationToken** | **string** | It is occupied as a user when authenticated with basic authentication, with a blank password. This value will only appear once, in the request to create a new key. Copy and save it in a safe place. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ApiKeyResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**Id** | **string** | Unique identifier of the api key | [optional]
**Livemode** | **bool** | Indicates if the api key is in production | [optional]
**Deleted** | **bool** | Indicates if the api key was deleted | [optional]
**VarObject** | **string** | Object name, value is 'api_key' | [optional]
**Object** | **string** | Object name, value is 'api_key' | [optional]
**Prefix** | **string** | The first few characters of the authentication_token | [optional]
**Role** | **string** | Indicates if the api key is private or public | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/ApiKeyResponseOnDelete.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**Livemode** | **bool** | Indicates if the api key is in production | [optional]
**Prefix** | **string** | The first few characters of the authentication_token | [optional]
**Id** | **string** | Unique identifier of the api key | [optional]
**VarObject** | **string** | Object name, value is 'api_key' | [optional]
**Object** | **string** | Object name, value is 'api_key' | [optional]
**Deleted** | **bool** | Indicates if the api key was deleted | [optional]
**Role** | **string** | Indicates if the api key is private or public | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/ChargeOrderResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Name | Type | Description | Notes
**Id** | **string** | | [optional]
**Livemode** | **bool** | | [optional]
**MonthlyInstallments** | **int?** | | [optional]
**VarObject** | **string** | | [optional]
**Object** | **string** | | [optional]
**OrderId** | **string** | | [optional]
**PaidAt** | **int?** | | [optional]
**PaymentMethod** | [**ChargeOrderResponsePaymentMethod**](ChargeOrderResponsePaymentMethod.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ChargeOrderResponsePaymentMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Type** | **string** | | [optional]
**VarObject** | **string** | |
**Object** | **string** | |
**AuthCode** | **string** | | [optional]
**CashierId** | **string** | | [optional]
**Reference** | **string** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ChargeResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Name | Type | Description | Notes
**FailureMessage** | **string** | | [optional]
**Id** | **string** | | [optional]
**Livemode** | **bool** | | [optional]
**VarObject** | **string** | | [optional]
**Object** | **string** | | [optional]
**OrderId** | **string** | | [optional]
**PaidAt** | **int?** | | [optional]
**PaymentMethod** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ChargeResponsePaymentMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Type** | **string** | | [optional]
**VarObject** | **string** | |
**Object** | **string** | |
**AuthCode** | **string** | | [optional]
**CashierId** | **string** | | [optional]
**Reference** | **string** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ChargeResponseRefunds.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**HasMore** | **bool** | Indicates if there are more pages to be requested |
**VarObject** | **string** | Object type, in this case is list |
**Object** | **string** | Object type, in this case is list |
**NextPageUrl** | **string** | URL of the next page. | [optional]
**PreviousPageUrl** | **string** | Url of the previous page. | [optional]
**Data** | [**List<ChargeResponseRefundsData>**](ChargeResponseRefundsData.md) | refunds | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ChargeResponseRefundsData.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**CreatedAt** | **long** | |
**ExpiresAt** | **long** | refund expiration date | [optional]
**Id** | **string** | |
**VarObject** | **string** | |
**Object** | **string** | |
**Status** | **string** | refund status | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/ChargesDataResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Name | Type | Description | Notes
**FailureMessage** | **string** | | [optional]
**Id** | **string** | | [optional]
**Livemode** | **bool** | | [optional]
**VarObject** | **string** | | [optional]
**Object** | **string** | | [optional]
**OrderId** | **string** | | [optional]
**PaidAt** | **int?** | | [optional]
**PaymentMethod** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/CheckoutOrderTemplateCustomerInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**Email** | **string** | |
**Phone** | **string** | |
**Corporate** | **bool** | | [optional]
**VarObject** | **string** | | [optional]
**Object** | **string** | | [optional]
**CustomerId** | **string** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/CheckoutResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Name | Type | Description | Notes
**MonthlyInstallmentsOptions** | **List<int>** | | [optional]
**Name** | **string** | Reason for charge |
**NeedsShippingContact** | **bool** | | [optional]
**VarObject** | **string** | |
**Object** | **string** | |
**PaidPaymentsCount** | **int** | | [optional]
**PaymentsLimitCount** | **int?** | | [optional]
**Recurrent** | **bool** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/CheckoutsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**HasMore** | **bool** | Indicates if there are more pages to be requested |
**VarObject** | **string** | Object type, in this case is list |
**Object** | **string** | Object type, in this case is list |
**NextPageUrl** | **string** | URL of the next page. | [optional]
**PreviousPageUrl** | **string** | Url of the previous page. | [optional]
**Data** | [**List<CheckoutResponse>**](CheckoutResponse.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/CompanyFiscalInfoAddressResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Company fiscal info address model

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VarObject** | **string** | The resource's type | [optional]
**Object** | **string** | The resource's type | [optional]
**Street1** | **string** | Street Address | [optional]
**Street2** | **string** | Colonia | [optional]
**City** | **string** | City | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/CompanyFiscalInfoResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Company fiscal info model

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VarObject** | **string** | The resource's type | [optional]
**Object** | **string** | The resource's type | [optional]
**TaxId** | **string** | Tax ID of the company | [optional]
**LegalEntityName** | **string** | Legal name of the company | [optional]
**BusinessType** | **string** | Business type of the company | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/CompanyPayoutDestinationResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Company payout destination model

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VarObject** | **string** | The resource's type | [optional]
**Object** | **string** | The resource's type | [optional]
**Currency** | **string** | currency of the receiving account | [optional]
**AccountHolderName** | **string** | Name of the account holder | [optional]
**Bank** | **string** | Name of the bank | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/CompanyResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**Id** | **string** | The child company's unique identifier | [optional]
**CreatedAt** | **long** | The resource's creation date (unix timestamp) | [optional]
**Name** | **string** | The child company's name | [optional]
**VarObject** | **string** | The resource's type | [optional]
**Object** | **string** | The resource's type | [optional]
**ParentCompanyId** | **string** | Id of the parent company | [optional]
**UseParentFiscalData** | **bool** | Whether the parent company's fiscal data is to be used for liquidation and tax purposes | [optional]
**PayoutDestination** | [**CompanyPayoutDestinationResponse**](CompanyPayoutDestinationResponse.md) | | [optional]
Expand Down
4 changes: 2 additions & 2 deletions docs/CreateCustomerFiscalEntitiesResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ Name | Type | Description | Notes
**Metadata** | **Dictionary<string, Object>** | | [optional]
**CompanyName** | **string** | | [optional]
**Id** | **string** | |
**VarObject** | **string** | |
**Object** | **string** | |
**CreatedAt** | **long** | |
**ParentId** | **string** | | [optional]
**VarDefault** | **bool** | | [optional]
**Default** | **bool** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Loading

0 comments on commit db3e60f

Please sign in to comment.