Skip to content

Commit 305bb31

Browse files
committed
Merge branch 'customer-fields' into release/v2.2.0
2 parents df4ac3e + cbc4bfb commit 305bb31

File tree

7 files changed

+65
-3
lines changed

7 files changed

+65
-3
lines changed

_build/api.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12567,6 +12567,11 @@ components:
1256712567
description: Custom reference
1256812568
example: custom_reference
1256912569
type: string
12570+
date_of_birth:
12571+
description: It is a parameter that allows to identify the date of birth
12572+
of the client.
12573+
example: 24/07/1992
12574+
type: string
1257012575
default_fiscal_entity_id:
1257112576
example: fis_ent_2tKqqAfqPi21oCmEJ
1257212577
nullable: true
@@ -12597,6 +12602,11 @@ components:
1259712602
description: Customer's name
1259812603
example: Felipe
1259912604
type: string
12605+
national_id:
12606+
description: It is a parameter that allows to identify the national identification
12607+
number of the client.
12608+
example: HEGG560427MVZRRL04
12609+
type: string
1260012610
metadata:
1260112611
additionalProperties: true
1260212612
maxProperties: 100
@@ -13845,6 +13855,11 @@ components:
1384513855
custom_reference:
1384613856
description: It is an undefined value.
1384713857
type: string
13858+
date_of_birth:
13859+
description: It is a parameter that allows to identify the date of birth
13860+
of the client.
13861+
example: 24/07/1992
13862+
type: string
1384813863
email:
1384913864
description: "An email address is a series of customizable characters followed\
1385013865
\ by a universal Internet symbol, the at symbol (@), the name of a host\
@@ -13874,6 +13889,11 @@ components:
1387413889
description: Client's name
1387513890
example: miguel
1387613891
type: string
13892+
national_id:
13893+
description: It is a parameter that allows to identify the national identification
13894+
number of the client.
13895+
example: HEGG560427MVZRRL04
13896+
type: string
1387713897
payment_sources:
1387813898
description: Contains details of the payment methods that the customer has
1387913899
active or has used in Conekta
@@ -13908,6 +13928,11 @@ components:
1390813928
properties:
1390913929
antifraud_info:
1391013930
$ref: '#/components/schemas/update_customer_antifraud_info'
13931+
date_of_birth:
13932+
description: It is a parameter that allows to identify the date of birth
13933+
of the client.
13934+
example: 24/07/1992
13935+
type: string
1391113936
default_payment_source_id:
1391213937
description: "It is a parameter that allows to identify in the response,\
1391313938
\ the Conekta ID of a payment method (payment_id)"
@@ -13954,6 +13979,11 @@ components:
1395413979
additionalProperties: true
1395513980
maxProperties: 100
1395613981
type: object
13982+
national_id:
13983+
description: It is a parameter that allows to identify the national identification
13984+
number of the client.
13985+
example: HEGG560427MVZRRL04
13986+
type: string
1395713987
payment_sources:
1395813988
description: Contains details of the payment methods that the customer has
1395913989
active or has used in Conekta
@@ -16190,6 +16220,7 @@ components:
1619016220
failed
1619116221
example: 3
1619216222
format: int8
16223+
nullable: true
1619316224
type: integer
1619416225
metadata:
1619516226
additionalProperties: true
@@ -16911,16 +16942,19 @@ components:
1691116942
example: "12"
1691216943
maxLength: 2
1691316944
type: string
16945+
x-encripted: true
1691416946
exp_year:
1691516947
description: It is a value that allows identifying the expiration year of
1691616948
the card.
1691716949
example: "26"
1691816950
maxLength: 2
1691916951
type: string
16952+
x-encripted: true
1692016953
name:
1692116954
description: It is a value that allows identifying the name of the cardholder.
1692216955
example: Miguel
1692316956
type: string
16957+
x-encripted: true
1692416958
number:
1692516959
description: It is a value that allows identifying the number of the card.
1692616960
example: "4242424242424242"

mocks/conekta_api.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9579,9 +9579,9 @@
95799579
"sendFileAsBody": false,
95809580
"rules": [
95819581
{
9582-
"target": "body",
9583-
"modifier": "card.name",
9584-
"value": "fran fail",
9582+
"target": "header",
9583+
"modifier": "Accept-language",
9584+
"value": "en",
95859585
"invert": false,
95869586
"operator": "equals"
95879587
}

schemas/customers/customer.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ properties:
2626
custom_reference:
2727
type: string
2828
description: It is an undefined value.
29+
date_of_birth:
30+
type: string
31+
description: "It is a parameter that allows to identify the date of birth of the client."
32+
example: "24/07/1992"
2933
email:
3034
type: string
3135
description: "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)."
@@ -51,6 +55,10 @@ properties:
5155
type: string
5256
description: Client's name
5357
example: miguel
58+
national_id:
59+
type: string
60+
description: "It is a parameter that allows to identify the national identification number of the client."
61+
example: "HEGG560427MVZRRL04"
5462
payment_sources:
5563
description: Contains details of the payment methods that the customer has active or has used in Conekta
5664
type: array

schemas/customers/customer_response.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ properties:
3232
type: string
3333
example: "custom_reference"
3434
description: Custom reference
35+
date_of_birth:
36+
type: string
37+
description: "It is a parameter that allows to identify the date of birth of the client."
38+
example: "24/07/1992"
3539
default_fiscal_entity_id:
3640
type: string
3741
nullable: true
@@ -92,6 +96,10 @@ properties:
9296
type: string
9397
example: Felipe
9498
description: Customer's name
99+
national_id:
100+
type: string
101+
description: "It is a parameter that allows to identify the national identification number of the client."
102+
example: "HEGG560427MVZRRL04"
95103
metadata:
96104
type: object
97105
additionalProperties: true

schemas/customers/update_customer.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ properties:
1313
first_paid_at:
1414
type: integer
1515
example: 1485151007
16+
date_of_birth:
17+
type: string
18+
description: "It is a parameter that allows to identify the date of birth of the client."
19+
example: "24/07/1992"
1620
default_payment_source_id:
1721
type: string
1822
description: "It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id)"
@@ -53,6 +57,10 @@ properties:
5357
type: object
5458
additionalProperties: true
5559
maxProperties: 100
60+
national_id:
61+
type: string
62+
description: "It is a parameter that allows to identify the national identification number of the client."
63+
example: "HEGG560427MVZRRL04"
5664
payment_sources:
5765
description: Contains details of the payment methods that the customer has active or has used in Conekta
5866
type: array

schemas/orders/order_response.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ properties:
7676
example: 3
7777
format: int8
7878
description: "Number of retries allowed before the checkout is marked as failed"
79+
nullable: true
7980
metadata:
8081
additionalProperties: true
8182
maxProperties: 100

schemas/tokens/token.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@ properties:
2727
description: "It is a value that allows identifying the expiration month of the card."
2828
example: "12"
2929
maxLength: 2
30+
x-encripted: true
3031
exp_year:
3132
type: string
3233
description: "It is a value that allows identifying the expiration year of the card."
3334
example: "26"
3435
maxLength: 2
36+
x-encripted: true
3537
name:
3638
type: string
3739
description: "It is a value that allows identifying the name of the cardholder."
3840
example: "Miguel"
41+
x-encripted: true
3942
number:
4043
type: string
4144
description: "It is a value that allows identifying the number of the card."

0 commit comments

Comments
 (0)