Untitled

mail@pastecode.io avatar
unknown
json
15 days ago
6.4 kB
2
Indexable
Never
// [CREATE]
// erro quando days_to_fine_type é null

{
    "name": "BANCO TESTE",
    "zipcode": null,
    "address": null,
    "address_number": null,
    "district": null,
    "complement": null,
    "city": null,
    "cod_ibge_city": null,
    "uf": null,
    "cnpj": null,
    "ie": null,
    "email": null,
    "telephone": null,
    "cellphone": null,
    "observation": null,
    "pin_pad_rent": null,
    "pos_rent": null,
    "ted": null,
    "cut_off_time": null,
    "card_flags": [
        {
            "name": "BANDEIRA",
            "type": "debit",
            "status": "active",
            "sped_flag": null,
            "bank_account": null,
            "days_to_fine": 1,
            "days_to_fine_type": null,
            "max_parcel": null,
            "fee_adm_percentage": 0,
            "fee_transaction_type": "value",
            "flg_discount_transaction_fee_in_first_parcel": "0",
            "flg_next_business_day_due_date": "0",
            "flg_next_business_day_sale_date": "0",
            "fee_transaction_value": 0
        }
    ]
}

// [UPDATE]
// O campo card_flags.0.card_flag_rate.0.parcel tem um valor duplicado.
// O campo card_flags.0.card_flag_rate.1.parcel tem um valor duplicado.
// O campo card_flags.1.card_flag_rate.0.parcel tem um valor duplicado.
// O campo card_flags.1.card_flag_rate.1.parcel tem um valor duplicado.

{
    "name": "BANCO TESTE",
    "zipcode": "",
    "address": null,
    "address_number": null,
    "district": null,
    "complement": null,
    "city": null,
    "cod_ibge_city": null,
    "uf": null,
    "cnpj": "",
    "ie": null,
    "email": null,
    "telephone": null,
    "cellphone": null,
    "observation": null,
    "pin_pad_rent": null,
    "pos_rent": null,
    "ted": null,
    "cut_off_time": null,
    "card_flags": [
        {
            "uuid": "3757e65e-df9f-4583-ac89-7a9157fac7f0",
            "name": "BANDEIRA",
            "type": "credit",
            "status": "active",
            "sped_flag": null,
            "days_to_fine": "1",
            "days_to_fine_type": "acumulado",
            "max_parcel": 10,
            "fee_adm_percentage": 0,
            "fee_transaction_type": "value",
            "fee_transaction_value": 0,
            "fee_transaction_percentage": null,
            "flg_discount_transaction_fee_in_first_parcel": "0",
            "flg_next_business_day_due_date": "0",
            "flg_next_business_day_sale_date": "0",
            "bank_account_name": null,
            "bank_account_description": null,
            "bank_name": null,
            "card_flag_rate": [
                {
                    "uuid": "9696ee78-78c1-458a-aeda-c86e9dc8eaa0",
                    "parcel": 2,
                    "rate_percentage": 2
                },
                {
                    "uuid": "6fc432a6-3934-49da-9769-6e8051e013ba",
                    "parcel": 4,
                    "rate_percentage": 4
                }
            ]
        },
        {
            "name": "MASTER",
            "type": "credit",
            "status": "active",
            "sped_flag": null,
            "bank_account": null,
            "days_to_fine": 1,
            "days_to_fine_type": "acumulado",
            "max_parcel": 6,
            "fee_adm_percentage": 0,
            "fee_transaction_type": "value",
            "flg_discount_transaction_fee_in_first_parcel": "0",
            "flg_next_business_day_due_date": "0",
            "flg_next_business_day_sale_date": "0",
            "fee_transaction_value": 0,
            "card_flag_rate": [
                {
                    "parcel": 2,
                    "rate_percentage": 2
                },
                {
                    "parcel": 4,
                    "rate_percentage": 4
                }
            ]
        }
    ]
}

// [UPDATE]
// Undefined array key "bank_account"
{
    "name": "BANCO TESTE",
    "zipcode": "",
    "address": null,
    "address_number": null,
    "district": null,
    "complement": null,
    "city": null,
    "cod_ibge_city": null,
    "uf": null,
    "cnpj": "",
    "ie": null,
    "email": null,
    "telephone": null,
    "cellphone": null,
    "observation": null,
    "pin_pad_rent": null,
    "pos_rent": null,
    "ted": null,
    "cut_off_time": null,
    "card_flags": [
        {
            "uuid": "3757e65e-df9f-4583-ac89-7a9157fac7f0",
            "name": "BANDEIRA",
            "type": "credit",
            "status": "active",
            "sped_flag": null,
            "days_to_fine": "1",
            "days_to_fine_type": "acumulado",
            "max_parcel": 10,
            "fee_adm_percentage": 0,
            "fee_transaction_type": "value",
            "fee_transaction_value": 0,
            "fee_transaction_percentage": null,
            "flg_discount_transaction_fee_in_first_parcel": "0",
            "flg_next_business_day_due_date": "0",
            "flg_next_business_day_sale_date": "0",
            "bank_account_name": null,
            "bank_account_description": null,
            "bank_name": null,
            "card_flag_rate": [
                {
                    "uuid": "9696ee78-78c1-458a-aeda-c86e9dc8eaa0",
                    "parcel": 2,
                    "rate_percentage": 2
                },
                {
                    "uuid": "6fc432a6-3934-49da-9769-6e8051e013ba",
                    "parcel": 4,
                    "rate_percentage": 4
                }
            ]
        },
        {
            "name": "MASTER",
            "type": "credit",
            "status": "active",
            "sped_flag": null,
            "bank_account": null,
            "days_to_fine": 1,
            "days_to_fine_type": "acumulado",
            "max_parcel": 6,
            "fee_adm_percentage": 0,
            "fee_transaction_type": "value",
            "flg_discount_transaction_fee_in_first_parcel": "0",
            "flg_next_business_day_due_date": "0",
            "flg_next_business_day_sale_date": "0",
            "fee_transaction_value": 0,
            "card_flag_rate": [
                {
                    "parcel": 3,
                    "rate_percentage": 3
                }
            ]
        }
    ]
}
Leave a Comment