diff --git a/Conekta.net.sln b/Conekta.net.sln
index 1467b8e..5f14f43 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", "{603464E7-D19E-4B64-B1B1-A0185A58D4A6}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Conekta.net", "src\Conekta.net\Conekta.net.csproj", "{F5668AFC-5CB1-4F0A-B50D-7BDE98211B17}"
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
- {603464E7-D19E-4B64-B1B1-A0185A58D4A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {603464E7-D19E-4B64-B1B1-A0185A58D4A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {603464E7-D19E-4B64-B1B1-A0185A58D4A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {603464E7-D19E-4B64-B1B1-A0185A58D4A6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F5668AFC-5CB1-4F0A-B50D-7BDE98211B17}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F5668AFC-5CB1-4F0A-B50D-7BDE98211B17}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F5668AFC-5CB1-4F0A-B50D-7BDE98211B17}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F5668AFC-5CB1-4F0A-B50D-7BDE98211B17}.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 eabfd97..69d78d7 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-6.0.14
+6.0.15
diff --git a/api/openapi.yaml b/api/openapi.yaml
index d1a04ba..4b25421 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -13695,6 +13695,11 @@ components:
description: Custom reference
example: custom_reference
type: string
+ date_of_birth:
+ description: It is a parameter that allows to identify the date of birth
+ of the client.
+ example: 24/07/1992
+ type: string
default_fiscal_entity_id:
example: fis_ent_2tKqqAfqPi21oCmEJ
nullable: true
@@ -13725,6 +13730,11 @@ components:
description: Customer's name
example: Felipe
type: string
+ national_id:
+ description: It is a parameter that allows to identify the national identification
+ number of the client.
+ example: HEGG560427MVZRRL04
+ type: string
metadata:
additionalProperties: true
maxProperties: 100
@@ -14953,6 +14963,11 @@ components:
custom_reference:
description: It is an undefined value.
type: string
+ date_of_birth:
+ description: It is a parameter that allows to identify the date of birth
+ of the client.
+ example: 24/07/1992
+ type: string
email:
description: "An email address is a series of customizable characters followed\
\ by a universal Internet symbol, the at symbol (@), the name of a host\
@@ -14982,6 +14997,11 @@ components:
description: Client's name
example: miguel
type: string
+ national_id:
+ description: It is a parameter that allows to identify the national identification
+ number of the client.
+ example: HEGG560427MVZRRL04
+ type: string
payment_sources:
description: Contains details of the payment methods that the customer has
active or has used in Conekta
@@ -15016,6 +15036,11 @@ components:
properties:
antifraud_info:
$ref: '#/components/schemas/update_customer_antifraud_info'
+ date_of_birth:
+ description: It is a parameter that allows to identify the date of birth
+ of the client.
+ example: 24/07/1992
+ type: string
default_payment_source_id:
description: "It is a parameter that allows to identify in the response,\
\ the Conekta ID of a payment method (payment_id)"
@@ -15062,6 +15087,11 @@ components:
additionalProperties: true
maxProperties: 100
type: object
+ national_id:
+ description: It is a parameter that allows to identify the national identification
+ number of the client.
+ example: HEGG560427MVZRRL04
+ type: string
payment_sources:
description: Contains details of the payment methods that the customer has
active or has used in Conekta
@@ -16669,7 +16699,6 @@ components:
expires_at:
example: 1553273553
format: int64
- nullable: true
type: integer
reason:
description: Reason for the refund
diff --git a/config-netcore.json b/config-netcore.json
index 61cf8b5..3e34fd6 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.14"
+ "packageVersion" : "6.0.15"
}
diff --git a/docs/Customer.md b/docs/Customer.md
index fdcc9a6..fe21fc4 100644
--- a/docs/Customer.md
+++ b/docs/Customer.md
@@ -8,12 +8,14 @@ Name | Type | Description | Notes
**AntifraudInfo** | [**CustomerAntifraudInfo**](CustomerAntifraudInfo.md) | | [optional]
**Corporate** | **bool** | It is a value that allows identifying if the email is corporate or not. | [optional] [default to false]
**CustomReference** | **string** | It is an undefined value. | [optional]
+**DateOfBirth** | **string** | It is a parameter that allows to identify the date of birth of the client. | [optional]
**Email** | **string** | An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc). |
**DefaultPaymentSourceId** | **string** | It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id) | [optional]
**DefaultShippingContactId** | **string** | It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact) | [optional]
**FiscalEntities** | [**List<CustomerFiscalEntitiesRequest>**](CustomerFiscalEntitiesRequest.md) | | [optional]
**Metadata** | **Dictionary<string, Object>** | | [optional]
**Name** | **string** | Client's name |
+**NationalId** | **string** | It is a parameter that allows to identify the national identification number of the client. | [optional]
**PaymentSources** | [**List<CustomerPaymentMethodsRequest>**](CustomerPaymentMethodsRequest.md) | Contains details of the payment methods that the customer has active or has used in Conekta | [optional]
**Phone** | **string** | Is the customer's phone number |
**PlanId** | **string** | Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription | [optional]
diff --git a/docs/CustomerResponse.md b/docs/CustomerResponse.md
index 65530f5..cf5441a 100644
--- a/docs/CustomerResponse.md
+++ b/docs/CustomerResponse.md
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
**Corporate** | **bool** | true if the customer is a company | [optional]
**CreatedAt** | **long** | Creation date of the object |
**CustomReference** | **string** | Custom reference | [optional]
+**DateOfBirth** | **string** | It is a parameter that allows to identify the date of birth of the client. | [optional]
**DefaultFiscalEntityId** | **string** | | [optional]
**DefaultShippingContactId** | **string** | | [optional]
**DefaultPaymentSourceId** | **string** | | [optional]
@@ -17,6 +18,7 @@ Name | Type | Description | Notes
**Id** | **string** | Customer's ID |
**Livemode** | **bool** | true if the object exists in live mode or the value false if the object exists in test mode |
**Name** | **string** | Customer's name |
+**NationalId** | **string** | It is a parameter that allows to identify the national identification number of the client. | [optional]
**Metadata** | **Dictionary<string, Object>** | | [optional]
**Object** | **string** | |
**PaymentSources** | [**CustomerPaymentMethodsResponse**](CustomerPaymentMethodsResponse.md) | | [optional]
diff --git a/docs/OrderRefundRequest.md b/docs/OrderRefundRequest.md
index 1cdad54..4e603db 100644
--- a/docs/OrderRefundRequest.md
+++ b/docs/OrderRefundRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Amount** | **int** | Amount to be refunded in cents |
-**ExpiresAt** | **long?** | | [optional]
+**ExpiresAt** | **long** | | [optional]
**Reason** | **string** | Reason for the refund |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/UpdateCustomer.md b/docs/UpdateCustomer.md
index 45684d1..d92c55c 100644
--- a/docs/UpdateCustomer.md
+++ b/docs/UpdateCustomer.md
@@ -6,6 +6,7 @@ update customer
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AntifraudInfo** | [**UpdateCustomerAntifraudInfo**](UpdateCustomerAntifraudInfo.md) | | [optional]
+**DateOfBirth** | **string** | It is a parameter that allows to identify the date of birth of the client. | [optional]
**DefaultPaymentSourceId** | **string** | It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id) | [optional]
**Email** | **string** | An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc). | [optional]
**Name** | **string** | Client's name | [optional]
@@ -16,6 +17,7 @@ Name | Type | Description | Notes
**CustomReference** | **string** | It is an undefined value. | [optional]
**FiscalEntities** | [**List<CustomerFiscalEntitiesRequest>**](CustomerFiscalEntitiesRequest.md) | | [optional]
**Metadata** | **Dictionary<string, Object>** | | [optional]
+**NationalId** | **string** | It is a parameter that allows to identify the national identification number of the client. | [optional]
**PaymentSources** | [**List<CustomerPaymentMethodsRequest>**](CustomerPaymentMethodsRequest.md) | Contains details of the payment methods that the customer has active or has used in Conekta | [optional]
**ShippingContacts** | [**List<CustomerShippingContacts>**](CustomerShippingContacts.md) | Contains the detail of the shipping addresses that the client has active or has used in Conekta | [optional]
**Subscription** | [**SubscriptionRequest**](SubscriptionRequest.md) | | [optional]
diff --git a/src/Conekta.net/Client/Configuration.cs b/src/Conekta.net/Client/Configuration.cs
index 6533df3..0fe8a21 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.14";
+ public const string Version = "6.0.15";
///
/// 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.14\n";
+ report += " SDK Package Version: 6.0.15\n";
return report;
}
diff --git a/src/Conekta.net/Conekta.net.csproj b/src/Conekta.net/Conekta.net.csproj
index 0548540..79c6c56 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.14
+ 6.0.15
bin\$(Configuration)\$(TargetFramework)\Conekta.net.xml
https://github.com/conekta/conekta-.net.git
git
diff --git a/src/Conekta.net/Model/Customer.cs b/src/Conekta.net/Model/Customer.cs
index bb35953..ad071b2 100644
--- a/src/Conekta.net/Model/Customer.cs
+++ b/src/Conekta.net/Model/Customer.cs
@@ -43,18 +43,20 @@ protected Customer() { }
/// antifraudInfo.
/// It is a value that allows identifying if the email is corporate or not. (default to false).
/// It is an undefined value..
+ /// It is a parameter that allows to identify the date of birth of the client..
/// An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc). (required).
/// It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id).
/// It is a parameter that allows to identify in the response, the Conekta ID of the shipping address (shipping_contact).
/// fiscalEntities.
/// metadata.
/// Client's name (required).
+ /// It is a parameter that allows to identify the national identification number of the client..
/// Contains details of the payment methods that the customer has active or has used in Conekta.
/// Is the customer's phone number (required).
/// Contains the ID of a plan, which could together with name, email and phone create a client directly to a subscription.
/// Contains the detail of the shipping addresses that the client has active or has used in Conekta.
/// subscription.
- public Customer(CustomerAntifraudInfo antifraudInfo = default(CustomerAntifraudInfo), bool corporate = false, string customReference = default(string), string email = default(string), string defaultPaymentSourceId = default(string), string defaultShippingContactId = default(string), List fiscalEntities = default(List), Dictionary metadata = default(Dictionary), string name = default(string), List paymentSources = default(List), string phone = default(string), string planId = default(string), List shippingContacts = default(List), SubscriptionRequest subscription = default(SubscriptionRequest))
+ public Customer(CustomerAntifraudInfo antifraudInfo = default(CustomerAntifraudInfo), bool corporate = false, string customReference = default(string), string dateOfBirth = default(string), string email = default(string), string defaultPaymentSourceId = default(string), string defaultShippingContactId = default(string), List fiscalEntities = default(List), Dictionary metadata = default(Dictionary), string name = default(string), string nationalId = default(string), List paymentSources = default(List), string phone = default(string), string planId = default(string), List shippingContacts = default(List), SubscriptionRequest subscription = default(SubscriptionRequest))
{
// to ensure "email" is required (not null)
if (email == null)
@@ -77,10 +79,12 @@ protected Customer() { }
this.AntifraudInfo = antifraudInfo;
this.Corporate = corporate;
this.CustomReference = customReference;
+ this.DateOfBirth = dateOfBirth;
this.DefaultPaymentSourceId = defaultPaymentSourceId;
this.DefaultShippingContactId = defaultShippingContactId;
this.FiscalEntities = fiscalEntities;
this.Metadata = metadata;
+ this.NationalId = nationalId;
this.PaymentSources = paymentSources;
this.PlanId = planId;
this.ShippingContacts = shippingContacts;
@@ -110,6 +114,16 @@ protected Customer() { }
[DataMember(Name = "custom_reference", EmitDefaultValue = false)]
public string CustomReference { get; set; }
+ ///
+ /// It is a parameter that allows to identify the date of birth of the client.
+ ///
+ /// It is a parameter that allows to identify the date of birth of the client.
+ /*
+ 24/07/1992
+ */
+ [DataMember(Name = "date_of_birth", EmitDefaultValue = false)]
+ public string DateOfBirth { get; set; }
+
///
/// An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc).
///
@@ -162,6 +176,16 @@ protected Customer() { }
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
public string Name { get; set; }
+ ///
+ /// It is a parameter that allows to identify the national identification number of the client.
+ ///
+ /// It is a parameter that allows to identify the national identification number of the client.
+ /*
+ HEGG560427MVZRRL04
+ */
+ [DataMember(Name = "national_id", EmitDefaultValue = false)]
+ public string NationalId { get; set; }
+
///
/// Contains details of the payment methods that the customer has active or has used in Conekta
///
@@ -213,12 +237,14 @@ public override string ToString()
sb.Append(" AntifraudInfo: ").Append(AntifraudInfo).Append("\n");
sb.Append(" Corporate: ").Append(Corporate).Append("\n");
sb.Append(" CustomReference: ").Append(CustomReference).Append("\n");
+ sb.Append(" DateOfBirth: ").Append(DateOfBirth).Append("\n");
sb.Append(" Email: ").Append(Email).Append("\n");
sb.Append(" DefaultPaymentSourceId: ").Append(DefaultPaymentSourceId).Append("\n");
sb.Append(" DefaultShippingContactId: ").Append(DefaultShippingContactId).Append("\n");
sb.Append(" FiscalEntities: ").Append(FiscalEntities).Append("\n");
sb.Append(" Metadata: ").Append(Metadata).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
+ sb.Append(" NationalId: ").Append(NationalId).Append("\n");
sb.Append(" PaymentSources: ").Append(PaymentSources).Append("\n");
sb.Append(" Phone: ").Append(Phone).Append("\n");
sb.Append(" PlanId: ").Append(PlanId).Append("\n");
diff --git a/src/Conekta.net/Model/CustomerResponse.cs b/src/Conekta.net/Model/CustomerResponse.cs
index 34fbfcc..bded349 100644
--- a/src/Conekta.net/Model/CustomerResponse.cs
+++ b/src/Conekta.net/Model/CustomerResponse.cs
@@ -44,6 +44,7 @@ protected CustomerResponse() { }
/// true if the customer is a company.
/// Creation date of the object (required).
/// Custom reference.
+ /// It is a parameter that allows to identify the date of birth of the client..
/// defaultFiscalEntityId.
/// defaultShippingContactId.
/// defaultPaymentSourceId.
@@ -52,13 +53,14 @@ protected CustomerResponse() { }
/// Customer's ID (required).
/// true if the object exists in live mode or the value false if the object exists in test mode (required).
/// Customer's name (required).
+ /// It is a parameter that allows to identify the national identification number of the client..
/// metadata.
/// varObject (required).
/// paymentSources.
/// Customer's phone number.
/// shippingContacts.
/// subscription.
- public CustomerResponse(CustomerAntifraudInfoResponse antifraudInfo = default(CustomerAntifraudInfoResponse), bool corporate = default(bool), long createdAt = default(long), string customReference = default(string), string defaultFiscalEntityId = default(string), string defaultShippingContactId = default(string), string defaultPaymentSourceId = default(string), string email = default(string), CustomerFiscalEntitiesResponse fiscalEntities = default(CustomerFiscalEntitiesResponse), string id = default(string), bool livemode = default(bool), string name = default(string), Dictionary metadata = default(Dictionary), string varObject = default(string), CustomerPaymentMethodsResponse paymentSources = default(CustomerPaymentMethodsResponse), string phone = default(string), CustomerResponseShippingContacts shippingContacts = default(CustomerResponseShippingContacts), SubscriptionResponse subscription = default(SubscriptionResponse))
+ public CustomerResponse(CustomerAntifraudInfoResponse antifraudInfo = default(CustomerAntifraudInfoResponse), bool corporate = default(bool), long createdAt = default(long), string customReference = default(string), string dateOfBirth = default(string), string defaultFiscalEntityId = default(string), string defaultShippingContactId = default(string), string defaultPaymentSourceId = default(string), string email = default(string), CustomerFiscalEntitiesResponse fiscalEntities = default(CustomerFiscalEntitiesResponse), string id = default(string), bool livemode = default(bool), string name = default(string), string nationalId = default(string), Dictionary metadata = default(Dictionary), string varObject = default(string), CustomerPaymentMethodsResponse paymentSources = default(CustomerPaymentMethodsResponse), string phone = default(string), CustomerResponseShippingContacts shippingContacts = default(CustomerResponseShippingContacts), SubscriptionResponse subscription = default(SubscriptionResponse))
{
this.CreatedAt = createdAt;
// to ensure "id" is required (not null)
@@ -83,11 +85,13 @@ protected CustomerResponse() { }
this.AntifraudInfo = antifraudInfo;
this.Corporate = corporate;
this.CustomReference = customReference;
+ this.DateOfBirth = dateOfBirth;
this.DefaultFiscalEntityId = defaultFiscalEntityId;
this.DefaultShippingContactId = defaultShippingContactId;
this.DefaultPaymentSourceId = defaultPaymentSourceId;
this.Email = email;
this.FiscalEntities = fiscalEntities;
+ this.NationalId = nationalId;
this.Metadata = metadata;
this.PaymentSources = paymentSources;
this.Phone = phone;
@@ -128,6 +132,16 @@ protected CustomerResponse() { }
[DataMember(Name = "custom_reference", EmitDefaultValue = false)]
public string CustomReference { get; set; }
+ ///
+ /// It is a parameter that allows to identify the date of birth of the client.
+ ///
+ /// It is a parameter that allows to identify the date of birth of the client.
+ /*
+ 24/07/1992
+ */
+ [DataMember(Name = "date_of_birth", EmitDefaultValue = false)]
+ public string DateOfBirth { get; set; }
+
///
/// Gets or Sets DefaultFiscalEntityId
///
@@ -200,6 +214,16 @@ protected CustomerResponse() { }
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
public string Name { get; set; }
+ ///
+ /// It is a parameter that allows to identify the national identification number of the client.
+ ///
+ /// It is a parameter that allows to identify the national identification number of the client.
+ /*
+ HEGG560427MVZRRL04
+ */
+ [DataMember(Name = "national_id", EmitDefaultValue = false)]
+ public string NationalId { get; set; }
+
///
/// Gets or Sets Metadata
///
@@ -255,6 +279,7 @@ public override string ToString()
sb.Append(" Corporate: ").Append(Corporate).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" CustomReference: ").Append(CustomReference).Append("\n");
+ sb.Append(" DateOfBirth: ").Append(DateOfBirth).Append("\n");
sb.Append(" DefaultFiscalEntityId: ").Append(DefaultFiscalEntityId).Append("\n");
sb.Append(" DefaultShippingContactId: ").Append(DefaultShippingContactId).Append("\n");
sb.Append(" DefaultPaymentSourceId: ").Append(DefaultPaymentSourceId).Append("\n");
@@ -263,6 +288,7 @@ public override string ToString()
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Livemode: ").Append(Livemode).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
+ sb.Append(" NationalId: ").Append(NationalId).Append("\n");
sb.Append(" Metadata: ").Append(Metadata).Append("\n");
sb.Append(" Object: ").Append(Object).Append("\n");
sb.Append(" PaymentSources: ").Append(PaymentSources).Append("\n");
diff --git a/src/Conekta.net/Model/OrderRefundRequest.cs b/src/Conekta.net/Model/OrderRefundRequest.cs
index a20548e..5e3fa74 100644
--- a/src/Conekta.net/Model/OrderRefundRequest.cs
+++ b/src/Conekta.net/Model/OrderRefundRequest.cs
@@ -43,7 +43,7 @@ protected OrderRefundRequest() { }
/// Amount to be refunded in cents (required).
/// expiresAt.
/// Reason for the refund (required).
- public OrderRefundRequest(int amount = default(int), long? expiresAt = default(long?), string reason = default(string))
+ public OrderRefundRequest(int amount = default(int), long expiresAt = default(long), string reason = default(string))
{
this.Amount = amount;
// to ensure "reason" is required (not null)
@@ -71,8 +71,8 @@ protected OrderRefundRequest() { }
/*
1553273553
*/
- [DataMember(Name = "expires_at", EmitDefaultValue = true)]
- public long? ExpiresAt { get; set; }
+ [DataMember(Name = "expires_at", EmitDefaultValue = false)]
+ public long ExpiresAt { get; set; }
///
/// Reason for the refund
diff --git a/src/Conekta.net/Model/UpdateCustomer.cs b/src/Conekta.net/Model/UpdateCustomer.cs
index 9fb26f5..3fa86e6 100644
--- a/src/Conekta.net/Model/UpdateCustomer.cs
+++ b/src/Conekta.net/Model/UpdateCustomer.cs
@@ -36,6 +36,7 @@ public partial class UpdateCustomer : IValidatableObject
/// Initializes a new instance of the class.
///
/// antifraudInfo.
+ /// It is a parameter that allows to identify the date of birth of the client..
/// It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id).
/// An email address is a series of customizable characters followed by a universal Internet symbol, the at symbol (@), the name of a host server, and a web domain ending (.mx, .com, .org, . net, etc)..
/// Client's name.
@@ -46,12 +47,14 @@ public partial class UpdateCustomer : IValidatableObject
/// It is an undefined value..
/// fiscalEntities.
/// metadata.
+ /// It is a parameter that allows to identify the national identification number of the client..
/// Contains details of the payment methods that the customer has active or has used in Conekta.
/// Contains the detail of the shipping addresses that the client has active or has used in Conekta.
/// subscription.
- public UpdateCustomer(UpdateCustomerAntifraudInfo antifraudInfo = default(UpdateCustomerAntifraudInfo), string defaultPaymentSourceId = default(string), string email = default(string), string name = default(string), string phone = default(string), string planId = default(string), string defaultShippingContactId = default(string), bool corporate = false, string customReference = default(string), List fiscalEntities = default(List), Dictionary metadata = default(Dictionary), List paymentSources = default(List), List shippingContacts = default(List), SubscriptionRequest subscription = default(SubscriptionRequest))
+ public UpdateCustomer(UpdateCustomerAntifraudInfo antifraudInfo = default(UpdateCustomerAntifraudInfo), string dateOfBirth = default(string), string defaultPaymentSourceId = default(string), string email = default(string), string name = default(string), string phone = default(string), string planId = default(string), string defaultShippingContactId = default(string), bool corporate = false, string customReference = default(string), List fiscalEntities = default(List), Dictionary metadata = default(Dictionary), string nationalId = default(string), List paymentSources = default(List), List shippingContacts = default(List), SubscriptionRequest subscription = default(SubscriptionRequest))
{
this.AntifraudInfo = antifraudInfo;
+ this.DateOfBirth = dateOfBirth;
this.DefaultPaymentSourceId = defaultPaymentSourceId;
this.Email = email;
this.Name = name;
@@ -62,6 +65,7 @@ public partial class UpdateCustomer : IValidatableObject
this.CustomReference = customReference;
this.FiscalEntities = fiscalEntities;
this.Metadata = metadata;
+ this.NationalId = nationalId;
this.PaymentSources = paymentSources;
this.ShippingContacts = shippingContacts;
this.Subscription = subscription;
@@ -73,6 +77,16 @@ public partial class UpdateCustomer : IValidatableObject
[DataMember(Name = "antifraud_info", EmitDefaultValue = true)]
public UpdateCustomerAntifraudInfo AntifraudInfo { get; set; }
+ ///
+ /// It is a parameter that allows to identify the date of birth of the client.
+ ///
+ /// It is a parameter that allows to identify the date of birth of the client.
+ /*
+ 24/07/1992
+ */
+ [DataMember(Name = "date_of_birth", EmitDefaultValue = false)]
+ public string DateOfBirth { get; set; }
+
///
/// It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id)
///
@@ -162,6 +176,16 @@ public partial class UpdateCustomer : IValidatableObject
[DataMember(Name = "metadata", EmitDefaultValue = false)]
public Dictionary Metadata { get; set; }
+ ///
+ /// It is a parameter that allows to identify the national identification number of the client.
+ ///
+ /// It is a parameter that allows to identify the national identification number of the client.
+ /*
+ HEGG560427MVZRRL04
+ */
+ [DataMember(Name = "national_id", EmitDefaultValue = false)]
+ public string NationalId { get; set; }
+
///
/// Contains details of the payment methods that the customer has active or has used in Conekta
///
@@ -191,6 +215,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class UpdateCustomer {\n");
sb.Append(" AntifraudInfo: ").Append(AntifraudInfo).Append("\n");
+ sb.Append(" DateOfBirth: ").Append(DateOfBirth).Append("\n");
sb.Append(" DefaultPaymentSourceId: ").Append(DefaultPaymentSourceId).Append("\n");
sb.Append(" Email: ").Append(Email).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
@@ -201,6 +226,7 @@ public override string ToString()
sb.Append(" CustomReference: ").Append(CustomReference).Append("\n");
sb.Append(" FiscalEntities: ").Append(FiscalEntities).Append("\n");
sb.Append(" Metadata: ").Append(Metadata).Append("\n");
+ sb.Append(" NationalId: ").Append(NationalId).Append("\n");
sb.Append(" PaymentSources: ").Append(PaymentSources).Append("\n");
sb.Append(" ShippingContacts: ").Append(ShippingContacts).Append("\n");
sb.Append(" Subscription: ").Append(Subscription).Append("\n");