diff --git a/Conekta.net.sln b/Conekta.net.sln index 20c51b9..d6642f7 100644 --- a/Conekta.net.sln +++ b/Conekta.net.sln @@ -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", "{604EDD2F-2B46-4DDC-8212-DC4E6595C4E6}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net", "src\Conekta.net\Conekta.net.csproj", "{BC7C545E-C9C4-4F7B-8BA2-1F5C0C7C8B5F}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net.Test", "src\Conekta.net.Test\Conekta.net.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {604EDD2F-2B46-4DDC-8212-DC4E6595C4E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {604EDD2F-2B46-4DDC-8212-DC4E6595C4E6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {604EDD2F-2B46-4DDC-8212-DC4E6595C4E6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {604EDD2F-2B46-4DDC-8212-DC4E6595C4E6}.Release|Any CPU.Build.0 = Release|Any CPU + {BC7C545E-C9C4-4F7B-8BA2-1F5C0C7C8B5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BC7C545E-C9C4-4F7B-8BA2-1F5C0C7C8B5F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BC7C545E-C9C4-4F7B-8BA2-1F5C0C7C8B5F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BC7C545E-C9C4-4F7B-8BA2-1F5C0C7C8B5F}.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 diff --git a/VERSION b/VERSION index 9eaadd7..dd6bb26 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.0.12 +6.0.13 diff --git a/api/openapi.yaml b/api/openapi.yaml index 65ff983..f9df094 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1704,6 +1704,7 @@ paths: description: internal server error security: - bearerAuth: [] + summary: Create charges tags: - Charges /companies: @@ -13412,10 +13413,6 @@ components: type: object charge_response: properties: - agreement: - description: Agreement ID - example: agreement_2tN73UdUSNrYRPD9r - type: string amount: example: 4321 type: integer @@ -13466,11 +13463,6 @@ components: type: integer payment_method: $ref: '#/components/schemas/charge_response_payment_method' - product_type: - description: "Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in,\ - \ etc." - example: bbva_cash_in - type: string reference_id: description: Reference ID of the charge example: ref_2tN73UdUSNrYRPD9r @@ -15781,6 +15773,10 @@ components: - $ref: '#/components/schemas/payment_method' - description: use for cash responses properties: + agreement: + description: Agreement ID + example: agreement_2tN73UdUSNrYRPD9r + type: string auth_code: example: 542563 nullable: true @@ -15799,6 +15795,11 @@ components: example: 0 format: int64 type: integer + product_type: + description: "Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in,\ + \ etc." + example: bbva_cash_in + type: string service_name: example: OxxoPay type: string diff --git a/config-netcore.json b/config-netcore.json index f9f21b9..a378eb8 100644 --- a/config-netcore.json +++ b/config-netcore.json @@ -33,5 +33,5 @@ "packageCopyright" : "Conekta", "PackageReleaseNotes" : "add support for payout orders", "releaseNote" : "update entity webhook, nuget config", - "packageVersion" : "6.0.12" + "packageVersion" : "6.0.13" } diff --git a/docs/ChargeOrderResponsePaymentMethod.md b/docs/ChargeOrderResponsePaymentMethod.md index 84cec6c..7ee342e 100644 --- a/docs/ChargeOrderResponsePaymentMethod.md +++ b/docs/ChargeOrderResponsePaymentMethod.md @@ -6,11 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | [optional] **Object** | **string** | | +**Agreement** | **string** | Agreement ID | [optional] **AuthCode** | **string** | | [optional] **CashierId** | **string** | | [optional] **Reference** | **string** | | [optional] **BarcodeUrl** | **string** | | [optional] **ExpiresAt** | **long** | | [optional] +**ProductType** | **string** | Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. | [optional] **ServiceName** | **string** | | [optional] **Store** | **string** | | [optional] **StoreName** | **string** | | [optional] diff --git a/docs/ChargeResponse.md b/docs/ChargeResponse.md index 37f1a16..20cc653 100644 --- a/docs/ChargeResponse.md +++ b/docs/ChargeResponse.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Agreement** | **string** | Agreement ID | [optional] **Amount** | **int** | | [optional] **Channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] **CreatedAt** | **long** | | [optional] @@ -20,7 +19,6 @@ Name | Type | Description | Notes **OrderId** | **string** | Order ID | [optional] **PaidAt** | **long?** | Payment date | [optional] **PaymentMethod** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] -**ProductType** | **string** | Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. | [optional] **ReferenceId** | **string** | Reference ID of the charge | [optional] **Refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] **Status** | **string** | | [optional] diff --git a/docs/ChargeResponsePaymentMethod.md b/docs/ChargeResponsePaymentMethod.md index 8c6f9f3..cea5469 100644 --- a/docs/ChargeResponsePaymentMethod.md +++ b/docs/ChargeResponsePaymentMethod.md @@ -6,11 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | [optional] **Object** | **string** | | +**Agreement** | **string** | Agreement ID | [optional] **AuthCode** | **string** | | [optional] **CashierId** | **string** | | [optional] **Reference** | **string** | | [optional] **BarcodeUrl** | **string** | | [optional] **ExpiresAt** | **long** | | [optional] +**ProductType** | **string** | Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. | [optional] **ServiceName** | **string** | | [optional] **Store** | **string** | | [optional] **StoreName** | **string** | | [optional] diff --git a/docs/ChargesApi.md b/docs/ChargesApi.md index 69d3cb5..53ffc03 100644 --- a/docs/ChargesApi.md +++ b/docs/ChargesApi.md @@ -6,7 +6,7 @@ All URIs are relative to *https://api.conekta.io* |--------|--------------|-------------| | [**GetCharges**](ChargesApi.md#getcharges) | **GET** /charges | Get A List of Charges | | [**OrdersCreateCharge**](ChargesApi.md#orderscreatecharge) | **POST** /orders/{id}/charges | Create charge | -| [**OrdersCreateCharges**](ChargesApi.md#orderscreatecharges) | **POST** /orders/{id}/add_charges | | +| [**OrdersCreateCharges**](ChargesApi.md#orderscreatecharges) | **POST** /orders/{id}/add_charges | Create charges | | [**UpdateCharge**](ChargesApi.md#updatecharge) | **PUT** /charges/{id} | Update a charge | @@ -221,7 +221,7 @@ catch (ApiException e) # **OrdersCreateCharges** > ChargesOrderResponse OrdersCreateCharges (string id, ChargeRequest chargeRequest, string acceptLanguage = null, string xChildCompanyId = null) - +Create charges Create charges for an existing orden @@ -252,6 +252,7 @@ namespace Example try { + // Create charges ChargesOrderResponse result = apiInstance.OrdersCreateCharges(id, chargeRequest, acceptLanguage, xChildCompanyId); Debug.WriteLine(result); } @@ -272,6 +273,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { + // Create charges ApiResponse response = apiInstance.OrdersCreateChargesWithHttpInfo(id, chargeRequest, acceptLanguage, xChildCompanyId); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); diff --git a/docs/ChargesDataResponse.md b/docs/ChargesDataResponse.md index 8bfebf5..df2d37c 100644 --- a/docs/ChargesDataResponse.md +++ b/docs/ChargesDataResponse.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Agreement** | **string** | Agreement ID | [optional] **Amount** | **int** | | [optional] **Channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] **CreatedAt** | **long** | | [optional] @@ -20,7 +19,6 @@ Name | Type | Description | Notes **OrderId** | **string** | Order ID | [optional] **PaidAt** | **long?** | Payment date | [optional] **PaymentMethod** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] -**ProductType** | **string** | Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. | [optional] **ReferenceId** | **string** | Reference ID of the charge | [optional] **Refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] **Status** | **string** | | [optional] diff --git a/docs/ChargesOrderResponseAllOfData.md b/docs/ChargesOrderResponseAllOfData.md index a2d6b5d..0882b52 100644 --- a/docs/ChargesOrderResponseAllOfData.md +++ b/docs/ChargesOrderResponseAllOfData.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Agreement** | **string** | Agreement ID | [optional] **Amount** | **int** | | [optional] **Channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] **CreatedAt** | **long** | | [optional] @@ -20,7 +19,6 @@ Name | Type | Description | Notes **OrderId** | **string** | Order ID | [optional] **PaidAt** | **long?** | Payment date | [optional] **PaymentMethod** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] -**ProductType** | **string** | Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. | [optional] **ReferenceId** | **string** | Reference ID of the charge | [optional] **Refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] **Status** | **string** | | [optional] diff --git a/docs/PaymentMethodCash.md b/docs/PaymentMethodCash.md index 53eee1d..95be7e7 100644 --- a/docs/PaymentMethodCash.md +++ b/docs/PaymentMethodCash.md @@ -6,11 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **string** | | [optional] **Object** | **string** | | +**Agreement** | **string** | Agreement ID | [optional] **AuthCode** | **int?** | | [optional] **CashierId** | **string** | | [optional] **Reference** | **string** | | [optional] **BarcodeUrl** | **string** | | [optional] **ExpiresAt** | **long** | | [optional] +**ProductType** | **string** | Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. | [optional] **ServiceName** | **string** | | [optional] **Store** | **string** | | [optional] **StoreName** | **string** | | [optional] diff --git a/src/Conekta.net.Test/Api/ChargesApiTests.cs b/src/Conekta.net.Test/Api/ChargesApiTests.cs index cd4cd2e..7cfc117 100644 --- a/src/Conekta.net.Test/Api/ChargesApiTests.cs +++ b/src/Conekta.net.Test/Api/ChargesApiTests.cs @@ -122,6 +122,7 @@ public void OrdersCreateChargesCashTest() Assert.IsType(response); Assert.Equal(2, response.Data.Count); + Assert.Equal("2409992", response.Data[0].PaymentMethod.GetPaymentMethodCash().Agreement); } /// diff --git a/src/Conekta.net/Api/ChargesApi.cs b/src/Conekta.net/Api/ChargesApi.cs index 9a7cb2b..609769e 100644 --- a/src/Conekta.net/Api/ChargesApi.cs +++ b/src/Conekta.net/Api/ChargesApi.cs @@ -87,7 +87,7 @@ public interface IChargesApiSync : IApiAccessor /// ApiResponse of ChargeOrderResponse ApiResponse OrdersCreateChargeWithHttpInfo(string id, ChargeRequest chargeRequest, string acceptLanguage = default(string), string xChildCompanyId = default(string), int operationIndex = 0); /// - /// + /// Create charges /// /// /// Create charges for an existing orden @@ -102,7 +102,7 @@ public interface IChargesApiSync : IApiAccessor ChargesOrderResponse OrdersCreateCharges(string id, ChargeRequest chargeRequest, string acceptLanguage = default(string), string xChildCompanyId = default(string), int operationIndex = 0); /// - /// + /// Create charges /// /// /// Create charges for an existing orden @@ -217,7 +217,7 @@ public interface IChargesApiAsync : IApiAccessor /// Task of ApiResponse (ChargeOrderResponse) System.Threading.Tasks.Task> OrdersCreateChargeWithHttpInfoAsync(string id, ChargeRequest chargeRequest, string acceptLanguage = default(string), string xChildCompanyId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// + /// Create charges /// /// /// Create charges for an existing orden @@ -233,7 +233,7 @@ public interface IChargesApiAsync : IApiAccessor System.Threading.Tasks.Task OrdersCreateChargesAsync(string id, ChargeRequest chargeRequest, string acceptLanguage = default(string), string xChildCompanyId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// - /// + /// Create charges /// /// /// Create charges for an existing orden @@ -809,7 +809,7 @@ public Conekta.net.Client.ExceptionFactory ExceptionFactory } /// - /// Create charges for an existing orden + /// Create charges Create charges for an existing orden /// /// Thrown when fails to make API call /// Identifier of the resource @@ -825,7 +825,7 @@ public Conekta.net.Client.ExceptionFactory ExceptionFactory } /// - /// Create charges for an existing orden + /// Create charges Create charges for an existing orden /// /// Thrown when fails to make API call /// Identifier of the resource @@ -907,7 +907,7 @@ public Conekta.net.Client.ExceptionFactory ExceptionFactory } /// - /// Create charges for an existing orden + /// Create charges Create charges for an existing orden /// /// Thrown when fails to make API call /// Identifier of the resource @@ -924,7 +924,7 @@ public Conekta.net.Client.ExceptionFactory ExceptionFactory } /// - /// Create charges for an existing orden + /// Create charges Create charges for an existing orden /// /// Thrown when fails to make API call /// Identifier of the resource diff --git a/src/Conekta.net/Client/Configuration.cs b/src/Conekta.net/Client/Configuration.cs index ed00b41..4eca5ee 100644 --- a/src/Conekta.net/Client/Configuration.cs +++ b/src/Conekta.net/Client/Configuration.cs @@ -34,7 +34,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "6.0.12"; + public const string Version = "6.0.13"; /// /// Identifier for ISO 8601 DateTime Format @@ -536,7 +536,7 @@ public static string ToDebugReport() report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 2.1.0\n"; - report += " SDK Package Version: 6.0.12\n"; + report += " SDK Package Version: 6.0.13\n"; return report; } diff --git a/src/Conekta.net/Conekta.net.csproj b/src/Conekta.net/Conekta.net.csproj index 87b5d10..52884d2 100644 --- a/src/Conekta.net/Conekta.net.csproj +++ b/src/Conekta.net/Conekta.net.csproj @@ -12,7 +12,7 @@ This is a .net library that allows interaction with https://api.conekta.io API. Conekta Conekta.net - 6.0.12 + 6.0.13 bin\$(Configuration)\$(TargetFramework)\Conekta.net.xml https://github.com/conekta/conekta-.net.git git diff --git a/src/Conekta.net/Model/ChargeResponse.cs b/src/Conekta.net/Model/ChargeResponse.cs index e298604..eace11f 100644 --- a/src/Conekta.net/Model/ChargeResponse.cs +++ b/src/Conekta.net/Model/ChargeResponse.cs @@ -35,7 +35,6 @@ public partial class ChargeResponse : IValidatableObject /// /// Initializes a new instance of the class. /// - /// Agreement ID. /// amount. /// channel. /// createdAt. @@ -51,13 +50,11 @@ public partial class ChargeResponse : IValidatableObject /// Order ID. /// Payment date. /// paymentMethod. - /// Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc.. /// Reference ID of the charge. /// refunds. /// status. - public ChargeResponse(string agreement = default(string), int amount = default(int), ChargeResponseChannel channel = default(ChargeResponseChannel), long createdAt = default(long), string currency = default(string), string customerId = default(string), string description = default(string), string deviceFingerprint = default(string), string failureCode = default(string), string failureMessage = default(string), string id = default(string), bool livemode = default(bool), string varObject = default(string), string orderId = default(string), long? paidAt = default(long?), ChargeResponsePaymentMethod paymentMethod = default(ChargeResponsePaymentMethod), string productType = default(string), string referenceId = default(string), ChargeResponseRefunds refunds = default(ChargeResponseRefunds), string status = default(string)) + public ChargeResponse(int amount = default(int), ChargeResponseChannel channel = default(ChargeResponseChannel), long createdAt = default(long), string currency = default(string), string customerId = default(string), string description = default(string), string deviceFingerprint = default(string), string failureCode = default(string), string failureMessage = default(string), string id = default(string), bool livemode = default(bool), string varObject = default(string), string orderId = default(string), long? paidAt = default(long?), ChargeResponsePaymentMethod paymentMethod = default(ChargeResponsePaymentMethod), string referenceId = default(string), ChargeResponseRefunds refunds = default(ChargeResponseRefunds), string status = default(string)) { - this.Agreement = agreement; this.Amount = amount; this.Channel = channel; this.CreatedAt = createdAt; @@ -73,22 +70,11 @@ public partial class ChargeResponse : IValidatableObject this.OrderId = orderId; this.PaidAt = paidAt; this.PaymentMethod = paymentMethod; - this.ProductType = productType; this.ReferenceId = referenceId; this.Refunds = refunds; this.Status = status; } - /// - /// Agreement ID - /// - /// Agreement ID - /* - agreement_2tN73UdUSNrYRPD9r - */ - [DataMember(Name = "agreement", EmitDefaultValue = false)] - public string Agreement { get; set; } - /// /// Gets or Sets Amount /// @@ -219,16 +205,6 @@ public partial class ChargeResponse : IValidatableObject [DataMember(Name = "payment_method", EmitDefaultValue = false)] public ChargeResponsePaymentMethod PaymentMethod { get; set; } - /// - /// Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. - /// - /// Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. - /* - bbva_cash_in - */ - [DataMember(Name = "product_type", EmitDefaultValue = false)] - public string ProductType { get; set; } - /// /// Reference ID of the charge /// @@ -262,7 +238,6 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class ChargeResponse {\n"); - sb.Append(" Agreement: ").Append(Agreement).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); sb.Append(" Channel: ").Append(Channel).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); @@ -278,7 +253,6 @@ public override string ToString() sb.Append(" OrderId: ").Append(OrderId).Append("\n"); sb.Append(" PaidAt: ").Append(PaidAt).Append("\n"); sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" ProductType: ").Append(ProductType).Append("\n"); sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); sb.Append(" Refunds: ").Append(Refunds).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); diff --git a/src/Conekta.net/Model/ChargesDataResponse.cs b/src/Conekta.net/Model/ChargesDataResponse.cs index 3ccb79e..8ec0f6f 100644 --- a/src/Conekta.net/Model/ChargesDataResponse.cs +++ b/src/Conekta.net/Model/ChargesDataResponse.cs @@ -35,7 +35,6 @@ public partial class ChargesDataResponse : IValidatableObject /// /// Initializes a new instance of the class. /// - /// Agreement ID. /// amount. /// channel. /// createdAt. @@ -51,13 +50,11 @@ public partial class ChargesDataResponse : IValidatableObject /// Order ID. /// Payment date. /// paymentMethod. - /// Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc.. /// Reference ID of the charge. /// refunds. /// status. - public ChargesDataResponse(string agreement = default(string), int amount = default(int), ChargeResponseChannel channel = default(ChargeResponseChannel), long createdAt = default(long), string currency = default(string), string customerId = default(string), string description = default(string), string deviceFingerprint = default(string), string failureCode = default(string), string failureMessage = default(string), string id = default(string), bool livemode = default(bool), string varObject = default(string), string orderId = default(string), long? paidAt = default(long?), ChargeResponsePaymentMethod paymentMethod = default(ChargeResponsePaymentMethod), string productType = default(string), string referenceId = default(string), ChargeResponseRefunds refunds = default(ChargeResponseRefunds), string status = default(string)) + public ChargesDataResponse(int amount = default(int), ChargeResponseChannel channel = default(ChargeResponseChannel), long createdAt = default(long), string currency = default(string), string customerId = default(string), string description = default(string), string deviceFingerprint = default(string), string failureCode = default(string), string failureMessage = default(string), string id = default(string), bool livemode = default(bool), string varObject = default(string), string orderId = default(string), long? paidAt = default(long?), ChargeResponsePaymentMethod paymentMethod = default(ChargeResponsePaymentMethod), string referenceId = default(string), ChargeResponseRefunds refunds = default(ChargeResponseRefunds), string status = default(string)) { - this.Agreement = agreement; this.Amount = amount; this.Channel = channel; this.CreatedAt = createdAt; @@ -73,22 +70,11 @@ public partial class ChargesDataResponse : IValidatableObject this.OrderId = orderId; this.PaidAt = paidAt; this.PaymentMethod = paymentMethod; - this.ProductType = productType; this.ReferenceId = referenceId; this.Refunds = refunds; this.Status = status; } - /// - /// Agreement ID - /// - /// Agreement ID - /* - agreement_2tN73UdUSNrYRPD9r - */ - [DataMember(Name = "agreement", EmitDefaultValue = false)] - public string Agreement { get; set; } - /// /// Gets or Sets Amount /// @@ -219,16 +205,6 @@ public partial class ChargesDataResponse : IValidatableObject [DataMember(Name = "payment_method", EmitDefaultValue = false)] public ChargeResponsePaymentMethod PaymentMethod { get; set; } - /// - /// Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. - /// - /// Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. - /* - bbva_cash_in - */ - [DataMember(Name = "product_type", EmitDefaultValue = false)] - public string ProductType { get; set; } - /// /// Reference ID of the charge /// @@ -262,7 +238,6 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class ChargesDataResponse {\n"); - sb.Append(" Agreement: ").Append(Agreement).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); sb.Append(" Channel: ").Append(Channel).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); @@ -278,7 +253,6 @@ public override string ToString() sb.Append(" OrderId: ").Append(OrderId).Append("\n"); sb.Append(" PaidAt: ").Append(PaidAt).Append("\n"); sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" ProductType: ").Append(ProductType).Append("\n"); sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); sb.Append(" Refunds: ").Append(Refunds).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); diff --git a/src/Conekta.net/Model/ChargesOrderResponseAllOfData.cs b/src/Conekta.net/Model/ChargesOrderResponseAllOfData.cs index 12162e4..fe3a3e8 100644 --- a/src/Conekta.net/Model/ChargesOrderResponseAllOfData.cs +++ b/src/Conekta.net/Model/ChargesOrderResponseAllOfData.cs @@ -35,7 +35,6 @@ public partial class ChargesOrderResponseAllOfData : IValidatableObject /// /// Initializes a new instance of the class. /// - /// Agreement ID. /// amount. /// channel. /// createdAt. @@ -51,13 +50,11 @@ public partial class ChargesOrderResponseAllOfData : IValidatableObject /// Order ID. /// Payment date. /// paymentMethod. - /// Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc.. /// Reference ID of the charge. /// refunds. /// status. - public ChargesOrderResponseAllOfData(string agreement = default(string), int amount = default(int), ChargeResponseChannel channel = default(ChargeResponseChannel), long createdAt = default(long), string currency = default(string), string customerId = default(string), string description = default(string), string deviceFingerprint = default(string), string failureCode = default(string), string failureMessage = default(string), string id = default(string), bool livemode = default(bool), string varObject = default(string), string orderId = default(string), long? paidAt = default(long?), ChargeResponsePaymentMethod paymentMethod = default(ChargeResponsePaymentMethod), string productType = default(string), string referenceId = default(string), ChargeResponseRefunds refunds = default(ChargeResponseRefunds), string status = default(string)) + public ChargesOrderResponseAllOfData(int amount = default(int), ChargeResponseChannel channel = default(ChargeResponseChannel), long createdAt = default(long), string currency = default(string), string customerId = default(string), string description = default(string), string deviceFingerprint = default(string), string failureCode = default(string), string failureMessage = default(string), string id = default(string), bool livemode = default(bool), string varObject = default(string), string orderId = default(string), long? paidAt = default(long?), ChargeResponsePaymentMethod paymentMethod = default(ChargeResponsePaymentMethod), string referenceId = default(string), ChargeResponseRefunds refunds = default(ChargeResponseRefunds), string status = default(string)) { - this.Agreement = agreement; this.Amount = amount; this.Channel = channel; this.CreatedAt = createdAt; @@ -73,22 +70,11 @@ public partial class ChargesOrderResponseAllOfData : IValidatableObject this.OrderId = orderId; this.PaidAt = paidAt; this.PaymentMethod = paymentMethod; - this.ProductType = productType; this.ReferenceId = referenceId; this.Refunds = refunds; this.Status = status; } - /// - /// Agreement ID - /// - /// Agreement ID - /* - agreement_2tN73UdUSNrYRPD9r - */ - [DataMember(Name = "agreement", EmitDefaultValue = false)] - public string Agreement { get; set; } - /// /// Gets or Sets Amount /// @@ -219,16 +205,6 @@ public partial class ChargesOrderResponseAllOfData : IValidatableObject [DataMember(Name = "payment_method", EmitDefaultValue = false)] public ChargeResponsePaymentMethod PaymentMethod { get; set; } - /// - /// Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. - /// - /// Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. - /* - bbva_cash_in - */ - [DataMember(Name = "product_type", EmitDefaultValue = false)] - public string ProductType { get; set; } - /// /// Reference ID of the charge /// @@ -262,7 +238,6 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class ChargesOrderResponseAllOfData {\n"); - sb.Append(" Agreement: ").Append(Agreement).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); sb.Append(" Channel: ").Append(Channel).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); @@ -278,7 +253,6 @@ public override string ToString() sb.Append(" OrderId: ").Append(OrderId).Append("\n"); sb.Append(" PaidAt: ").Append(PaidAt).Append("\n"); sb.Append(" PaymentMethod: ").Append(PaymentMethod).Append("\n"); - sb.Append(" ProductType: ").Append(ProductType).Append("\n"); sb.Append(" ReferenceId: ").Append(ReferenceId).Append("\n"); sb.Append(" Refunds: ").Append(Refunds).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); diff --git a/src/Conekta.net/Model/PaymentMethodCash.cs b/src/Conekta.net/Model/PaymentMethodCash.cs index f9d256f..4b03ab8 100644 --- a/src/Conekta.net/Model/PaymentMethodCash.cs +++ b/src/Conekta.net/Model/PaymentMethodCash.cs @@ -42,16 +42,18 @@ protected PaymentMethodCash() { } /// /// type. /// varObject (required). + /// Agreement ID. /// authCode. /// cashierId. /// reference. /// barcodeUrl. /// expiresAt. + /// Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc.. /// serviceName. /// store. /// storeName. /// customerIpAddress. - public PaymentMethodCash(string type = default(string), string varObject = default(string), int? authCode = default(int?), string cashierId = default(string), string reference = default(string), string barcodeUrl = default(string), long expiresAt = default(long), string serviceName = default(string), string store = default(string), string storeName = default(string), string customerIpAddress = default(string)) + public PaymentMethodCash(string type = default(string), string varObject = default(string), string agreement = default(string), int? authCode = default(int?), string cashierId = default(string), string reference = default(string), string barcodeUrl = default(string), long expiresAt = default(long), string productType = default(string), string serviceName = default(string), string store = default(string), string storeName = default(string), string customerIpAddress = default(string)) { // to ensure "varObject" is required (not null) if (varObject == null) @@ -60,11 +62,13 @@ protected PaymentMethodCash() { } } this.Object = varObject; this.Type = type; + this.Agreement = agreement; this.AuthCode = authCode; this.CashierId = cashierId; this.Reference = reference; this.BarcodeUrl = barcodeUrl; this.ExpiresAt = expiresAt; + this.ProductType = productType; this.ServiceName = serviceName; this.Store = store; this.StoreName = storeName; @@ -86,6 +90,16 @@ protected PaymentMethodCash() { } [DataMember(Name = "object", IsRequired = true, EmitDefaultValue = true)] public string Object { get; set; } + /// + /// Agreement ID + /// + /// Agreement ID + /* + agreement_2tN73UdUSNrYRPD9r + */ + [DataMember(Name = "agreement", EmitDefaultValue = false)] + public string Agreement { get; set; } + /// /// Gets or Sets AuthCode /// @@ -131,6 +145,16 @@ protected PaymentMethodCash() { } [DataMember(Name = "expires_at", EmitDefaultValue = false)] public long ExpiresAt { get; set; } + /// + /// Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. + /// + /// Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc. + /* + bbva_cash_in + */ + [DataMember(Name = "product_type", EmitDefaultValue = false)] + public string ProductType { get; set; } + /// /// Gets or Sets ServiceName /// @@ -177,11 +201,13 @@ public override string ToString() sb.Append("class PaymentMethodCash {\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Object: ").Append(Object).Append("\n"); + sb.Append(" Agreement: ").Append(Agreement).Append("\n"); sb.Append(" AuthCode: ").Append(AuthCode).Append("\n"); sb.Append(" CashierId: ").Append(CashierId).Append("\n"); sb.Append(" Reference: ").Append(Reference).Append("\n"); sb.Append(" BarcodeUrl: ").Append(BarcodeUrl).Append("\n"); sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n"); + sb.Append(" ProductType: ").Append(ProductType).Append("\n"); sb.Append(" ServiceName: ").Append(ServiceName).Append("\n"); sb.Append(" Store: ").Append(Store).Append("\n"); sb.Append(" StoreName: ").Append(StoreName).Append("\n");