Changelog

Campos adicionales en respuesta GET Payment Methods

Se modifica cuerpo de la respuesta al obtener PaymentMethods. Se agregan los siguientes campos:

"external_id", "phone", "mail", "pac_account_number", "pac_account_type", "account_name"

Ademas, se añaden campos adicionales de Customer y Subscription en caso de existir. Ejemplo:

[
  {
        "id": "pm_mszi-UXJpwUuUvWh3wqkD--TUdXeEfW5",
        "created_at": "2021-07-27T03:44:37+0000",
        "deleted_at": null,
        "customer": "cus_M2aYvh3QOfVylcre5gIMyIhYPrHBKfw2",
        "external_id": "18579878K",
        "government_id": "18579878K",
        "name": "Jon Snow",
        "mail": "[email protected]",
        "phone": "+56987654321",
        "card_type": "MasterCard",
        "card_number": "8688",
        "status": "chargeable",
        "gateway": "transbank_oneclick",
        "pac_government_id": null,
        "pac_mandate_id": null,
        "pac_institution_name": null,
        "pac_account_number": null,
        "pac_account_type": null,
        "pac_voucher_url": null,
        "product_id": null,
        "last_payment_intent_response_code": null,
        "account_name": null,
        "variable_adicional_customer": "adicional",
        "variable_adicional_subscription": "adicional"
    }
]