From 8f30be81d09b0a187eb10cf5db4e60f63114ebbb Mon Sep 17 00:00:00 2001 From: AleFossati Date: Tue, 20 Jun 2023 16:59:56 -0300 Subject: [PATCH 1/2] added missing props to TicketData --- API/bricks/payment.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/API/bricks/payment.md b/API/bricks/payment.md index dbaa3e4..ef87487 100644 --- a/API/bricks/payment.md +++ b/API/bricks/payment.md @@ -249,11 +249,14 @@ The callbacks object contains the callbacks functions the brick will call during { 'payment_method_id': string, 'transaction_amount': number, + 'transaction_details?': { + 'financial_institution': string, + }, 'payer': { 'email': string, 'identification?': { - 'type': string, - 'number': string + 'type': string, + 'number': string }, 'first_name?': string, 'last_name?': string, @@ -265,6 +268,10 @@ The callbacks object contains the callbacks functions the brick will call during 'street_number': string, 'zip_code': string } + }, + 'metadata?': { + 'payment_point?': string, + 'payment_mode?': string } } ``` From b142d5df2c4d8875b2b910a8143a91f38ccb7343 Mon Sep 17 00:00:00 2001 From: AleFossati Date: Tue, 20 Jun 2023 17:28:58 -0300 Subject: [PATCH 2/2] fix question mark position --- API/bricks/payment.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/API/bricks/payment.md b/API/bricks/payment.md index ef87487..a9579a6 100644 --- a/API/bricks/payment.md +++ b/API/bricks/payment.md @@ -249,18 +249,18 @@ The callbacks object contains the callbacks functions the brick will call during { 'payment_method_id': string, 'transaction_amount': number, - 'transaction_details?': { + 'transaction_details'?: { 'financial_institution': string, }, 'payer': { 'email': string, - 'identification?': { + 'identification'?: { 'type': string, 'number': string }, - 'first_name?': string, - 'last_name?': string, - 'address?': { + 'first_name'?: string, + 'last_name'?: string, + 'address'?: { 'city': string, 'federal_unit': string, 'neighborhood': string, @@ -269,9 +269,9 @@ The callbacks object contains the callbacks functions the brick will call during 'zip_code': string } }, - 'metadata?': { - 'payment_point?': string, - 'payment_mode?': string + 'metadata'?: { + 'payment_point'?: string, + 'payment_mode'?: string } } ```