Skip to content

Instantly share code, notes, and snippets.

@pablo-fernandez
Last active October 18, 2017 18:15
Show Gist options
  • Select an option

  • Save pablo-fernandez/3e6755a641ddc8046662481532c780ef to your computer and use it in GitHub Desktop.

Select an option

Save pablo-fernandez/3e6755a641ddc8046662481532c780ef to your computer and use it in GitHub Desktop.
ReviewConfirmResp
{
"status": "Success",
"current_step": "review",
"data": {
"components": [],
"flow_id": "17383389-84b0-4b1c-b07a-4369ab2eca65",
"configurations": [
{
"id": "brand_name",
"value": null
}
],
"ui_components": [
{
"text": "Revisa tu pago",
"type": "title"
},
{
"errors": {},
"validations": [],
"value": [
{
"errors": {},
"validations": [],
"value": [
{
"text": "Total a pagar",
"type": "text"
},
{
"text": "$ 100.0",
"type": "price"
}
],
"label": "",
"type": "row_cart_total",
"id": "row_cart_total"
}
],
"label": "",
"type": "group_cart",
"id": "cart"
},
{
"errors": {},
"validations": [],
"value": [
{
"errors": {},
"validations": [],
"value": [
{
"errors": {},
"validations": [],
"value": [
{
"text": "Visa **** 1730",
"type": "text_title"
},
{
"text": "Test test",
"type": "text"
}
],
"label": "",
"type": "group_details",
"id": "payment_details"
},
{
"type": "button_step",
"id": "change_payment_method",
"value": "card_form",
"label": "Cambiar"
}
],
"label": "",
"type": "row_payment",
"id": "payment_method"
},
{
"errors": {},
"validations": [],
"value": [
{
"errors": {},
"validations": [],
"value": [
{
"text": "1x $ 100.0",
"type": "text_title"
},
{
"text": "Sin inter\u00e9s",
"type": "text_interest_promo"
},
{
"text": "($ 100.0)",
"type": "text_interest_total"
},
{
"text": "CFT 0,00% TEA 0,00%",
"type": "text_cft"
}
],
"label": "",
"type": "group_details",
"id": "installment_details"
},
{
"type": "button_step",
"id": "change_installments",
"value": "installments_form",
"label": "Cambiar"
}
],
"label": "",
"type": "row_payment",
"id": "installments"
}
],
"label": "",
"type": "group_payment",
"id": "payment"
},
{
"errors": {},
"validations": [],
"value": [
{
"type": "button",
"id": "pay",
"label": "Pagar 1x $ 100.0"
}
],
"label": "",
"type": "group_form",
"id": "group_pay"
}
],
"id": "21",
"operationId": "21"
}
}
@megaFatXR
Copy link

En este ejemplo sería simplemente este cambio:
Linea #55, #87 en lugar de type "text", usar "text_title".

Pero haciendo un desglose en detalle de los casos posibles según el diseño sería así:

screen shot 2017-09-06 at 13 28 48
"text_title"

screen shot 2017-09-06 at 13 28 54
"text"

screen shot 2017-09-06 at 13 26 24
"text_interest_total"

screen shot 2017-09-06 at 13 26 44
"text_interest_promo"

screen shot 2017-09-06 at 13 26 31
"text_cft"

screen shot 2017-09-06 at 13 26 39
"text_promo"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment