balanced / balanced-api

Balanced API specification.
220 stars 72 forks source link

bank attribute should be bank_name #608

Closed remear closed 10 years ago

remear commented 10 years ago
curl https://api.balancedpayments.com/cards \
     -H "Accept: application/vnd.api+json;revision=1.1" \
     -u ak-test-eyoGATiAg6YE5thvhSiWIi7NE0zg0l0U: \
     -d "expiration_month=12" \
     -d "cvv=123" \
     -d "number=5105105105105100" \
     -d "expiration_year=2020"

{
  "cards": [
    {
      "links": {
        "customer": null
      },
      "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788",
      "cvv_result": "Match",
      "number": "xxxxxxxxxxxx5100",
      "avs_postal_match": null,
      "expiration_month": 12,
      "meta": {},
      "id": "CC4vGFFkPwzqvQhkz2LtgPFr",
      "category": null,
      "type": "",
      "cvv_match": "yes",
      "avs_street_match": null,
      "brand": "MasterCard",
      "updated_at": "2014-05-14T15:36:55.541627Z",
      "address": {
        "city": null,
        "line2": null,
        "line1": null,
        "state": null,
        "postal_code": null,
        "country_code": null
      },
      "can_debit": true,
      "bank": "BANK OF HAWAII",
      "name": null,
      "expiration_year": 2020,
      "cvv": "xxx",
      "is_verified": true,
      "created_at": "2014-05-14T15:36:55.541625Z",
      "can_credit": false,
      "href": "/cards/CC4vGFFkPwzqvQhkz2LtgPFr",
      "avs_result": null
    }
  ],
  "links": {
    "cards.credits": "/cards/{cards.id}/credits",
    "cards.customer": "/customers/{cards.customer}",
    "cards.card_holds": "/cards/{cards.id}/card_holds",
    "cards.disputes": "/cards/{cards.id}/disputes",
    "cards.debits": "/cards/{cards.id}/debits"
  }
}
matin commented 10 years ago

Fixed:

{
  "cards": [
    {
      "links": {
        "customer": null
      },
      "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788",
      "cvv_result": "Match",
      "number": "xxxxxxxxxxxx5100",
      "avs_postal_match": null,
      "expiration_month": 12,
      "meta": {},
      "id": "CC2xxdOZPci4PO3MxXsSNWzv",
      "category": "other",
      "type": "credit",
      "cvv_match": "yes",
      "bank_name": "BANK OF HAWAII",
      "avs_street_match": null,
      "brand": "MasterCard",
      "updated_at": "2014-05-15T06:22:44.526052Z",
      "address": {
        "city": null,
        "line2": null,
        "line1": null,
        "state": null,
        "postal_code": null,
        "country_code": null
      },
      "can_debit": true,
      "name": null,
      "expiration_year": 2020,
      "cvv": "xxx",
      "is_verified": true,
      "avs_result": null,
      "can_credit": false,
      "href": "/cards/CC2xxdOZPci4PO3MxXsSNWzv",
      "created_at": "2014-05-15T06:22:44.526046Z"
    }
  ],
  "links": {
    "cards.card_holds": "/cards/{cards.id}/card_holds",
    "cards.customer": "/customers/{cards.customer}",
    "cards.disputes": "/cards/{cards.id}/disputes",
    "cards.debits": "/cards/{cards.id}/debits"
  }
}