File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,13 @@ import (
77)
88
99type Item struct {
10- AvailableProducts []string `json:"available_products"`
11- BilledProducts []string `json:"billed_products"`
12- Error Error `json:"error"`
13- InstitutionID string `json:"institution_id"`
14- ItemID string `json:"item_id"`
15- Webhook string `json:"webhook"`
16- Status ItemStatus `json:"status"`
17- ConsentExpirationTime time.Time `json:"consent_expiration_time"`
10+ AvailableProducts []string `json:"available_products"`
11+ BilledProducts []string `json:"billed_products"`
12+ Error Error `json:"error"`
13+ InstitutionID string `json:"institution_id"`
14+ ItemID string `json:"item_id"`
15+ Webhook string `json:"webhook"`
16+ ConsentExpirationTime time.Time `json:"consent_expiration_time"`
1817}
1918
2019type ItemStatus struct {
@@ -41,7 +40,8 @@ type getItemRequest struct {
4140
4241type GetItemResponse struct {
4342 APIResponse
44- Item Item `json:"item"`
43+ Item Item `json:"item"`
44+ Status ItemStatus `json:"status"`
4545}
4646
4747type removeItemRequest struct {
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ func TestGetItem(t *testing.T) {
2424
2525 assert .Nil (t , err )
2626 assert .NotNil (t , itemResp .Item )
27+ assert .NotEmpty (t , itemResp .Status )
2728}
2829
2930func TestRemoveItem (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments