-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide correct CustomerSubscriptions object when the 'subscriptions'…
… link is missing Since the `CustomerSubscriptions` instance also provides access to creating a new subscription, we need initialize it correctly at all times.
- Loading branch information
Tom Hendrikx
committed
Jun 22, 2023
1 parent
29afa85
commit 45f5b82
Showing
4 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"resource": "customer", | ||
"id": "cst_8wmqcHMN4U", | ||
"mode": "test", | ||
"name": "Customer A", | ||
"email": "customer@example.org", | ||
"locale": "nl_NL", | ||
"metadata": null, | ||
"createdAt": "2018-04-06T13:23:21.0Z", | ||
"_links": { | ||
"self": { | ||
"href": "https://api.mollie.com/v2/customers/cst_8wmqcHMN4U", | ||
"type": "application/hal+json" | ||
}, | ||
"mandates": null, | ||
"subscriptions": null, | ||
"payments": null, | ||
"documentation": { | ||
"href": "https://docs.mollie.com/reference/v2/customers-api/get-customer", | ||
"type": "text/html" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"_embedded":{ | ||
"subscriptions":[ | ||
|
||
] | ||
}, | ||
"count":0, | ||
"_links":{ | ||
"documentation":{ | ||
"href":"https://docs.mollie.com/reference/v2/subscriptions-api/list-subscriptions", | ||
"type":"text/html" | ||
}, | ||
"self":{ | ||
"href":"https://api.mollie.com/v2/customers/cst_tJs32TE8qk/subscriptions?limit=50", | ||
"type":"application/hal+json" | ||
}, | ||
"previous":null, | ||
"next":null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters