balanced / balanced-api

Balanced API specification.
221 stars 72 forks source link

Return the city in the card retrieve call #518

Closed xdmx closed 10 years ago

xdmx commented 10 years ago

Currently the call returns all data (zip, country, address, name, etc) but not the city. Please add it to the returned fields

steveklabnik commented 10 years ago

Can you help me learn more about this? I am not seeing it:

[steev@emmag ~]$ curl https://api.balancedpayments.com/cards/CC3een2nuWqIdotngtII70TS \
>      -H "Accept: application/vnd.api+json;revision=1.1" \
>      -u ak-test-h7F8F3u41y6LzCK4nZeVd5BafaWOUuZL:
{
  "cards": [
    {
      "cvv_match": null,
      "links": {
        "customer": null
      },
      "name": null,
      "expiration_year": 2020,
      "avs_street_match": null,
      "is_verified": true,
      "created_at": "2014-02-14T03:38:05.775813Z",
      "cvv_result": null,
      "brand": "MasterCard",
      "number": "xxxxxxxxxxxx5100",
      "updated_at": "2014-02-14T03:38:09.664322Z",
      "id": "CC3een2nuWqIdotngtII70TS",
      "expiration_month": 12,
      "cvv": null,
      "meta": {
        "twitter.id": "1234987650",
        "facebook.user_id": "0192837465",
        "my-own-customer-id": "12345"
      },
      "href": "/cards/CC3een2nuWqIdotngtII70TS",
      "address": {
        "city": null,
        "line2": null,
        "line1": null,
        "state": null,
        "postal_code": null,
        "country_code": null
      },
      "fingerprint": "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788",
      "avs_postal_match": null,
      "avs_result": null
    }
  ],
  "links": {
    "cards.card_holds": "/cards/{cards.id}/card_holds",
    "cards.customer": "/customers/{cards.customer}",
    "cards.debits": "/cards/{cards.id}/debits"
  }
}

Closing until we can get a reproduction, but let's keep talking.

xdmx commented 10 years ago

That's in the api v1.1 (beta), not in the 1.0 :) I guess I'll have to move to it

steveklabnik commented 10 years ago

Ah ha! Yes. Been working internally with 1.1 for so long, forgot there was a difference. ;) 1.0 is basically frozen now, so yes, this will be addressed when you upgrade to 1.1.