Skip to content

Commit

Permalink
Merge pull request #778 from centrapay/issuer-collection
Browse files Browse the repository at this point in the history
Note that issuer field on collection comes from business name
  • Loading branch information
Ray2126 authored Sep 15, 2023
2 parents d802e83 + 80fefe8 commit 655f83a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion legacy/src/api/assets/assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Tokens have the following fields along with the base asset fields.
| activeFrom | {% dt Timestamp %} {% opt %} | The date when the asset becomes spendable. |
| expiresAt | {% dt Timestamp %} {% opt %} | The date when the asset expires. |
| img | String {% opt %} | The img URL of the token. |
| issuer | String {% opt %} | The identifier for the issuer of the token. |
| issuer | String {% opt %} | The name of the [Business][] that issued the token. |
| issuerWebsite | String {% opt %} | The URL of the issuer of the token. |
| issuerImg | String {% opt %} | The img URL of the issuer that the token belongs to. |
| externalId | String {% opt %} | The asset identifier from the issuing system. |
Expand Down Expand Up @@ -364,3 +364,4 @@ Archive supported asset types by asset id. Currently only gift cards may be arch
[paginated]: {% link api/pagination.md %}
[Settlements]: {% link api/assets/wallets.md %}#settlement-wallets
[token collection]: {% link api/assets/tokens.md %}#token-collection
[Business]: {% link api/accounts/businesses.md %}
4 changes: 4 additions & 0 deletions legacy/src/api/assets/tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ A redemption condition is created for each merchant that accepts tokens from a c
| createdAt | {% dt Timestamp %} | Timestamp at which the token collection was created. |
| mediaUploadId | String {% opt %} | The id of the [media upload] [] image of the collection. |
| img | String {% opt %} | The img URL of the collection. |
| issuer | String {% opt %} | The name of the [Business][] linked to the account. |

<a name="tokenExpiresAfter">
### Token Expires After **EXPERIMENTAL**
Expand Down Expand Up @@ -115,6 +116,7 @@ A redemption condition is created for each merchant that accepts tokens from a c
"createdAt": "2021-05-12T04:30:11.001Z",
"mediaUploadId": "12345",
"img": "https://media-upload.centrapay.com/image.png?jhbdsfau67ewejshb=487hsdjhbdgs743",
"issuer": "Centrapay"
}
{% endjson %}

Expand Down Expand Up @@ -161,6 +163,7 @@ Note: The `pageKey` value, if provided, needs to be URL-encoded.
"createdAt": "2021-05-12T04:30:11.001Z",
"mediaUploadId": "12345",
"img": "https://media-upload.centrapay.com/image.png?jhbdsfau67ewejshb=487hsdjhbdgs743",
"issuer": "Centrapay"
}]
}
{% endjson %}
Expand Down Expand Up @@ -266,3 +269,4 @@ Note: The `pageKey` value, if provided, needs to be URL-encoded.

[paginated]: {% link api/pagination.md %}
[media upload]: {% link api/media-uploads.md %}
[Business]: {% link api/accounts/businesses.md %}

0 comments on commit 655f83a

Please sign in to comment.