-
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.
https://docs.mollie.com/reference/v2/subscriptions-api/list-subscription-payments shows what we would call customer subscription payments. These are nested 2 layers deep.
- Loading branch information
Tom Hendrikx
committed
Jun 22, 2023
1 parent
be0df84
commit f13f820
Showing
8 changed files
with
210 additions
and
15 deletions.
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
78 changes: 78 additions & 0 deletions
78
tests/responses/customer_subscription_payments_multiple.json
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,78 @@ | ||
{ | ||
"_embedded":{ | ||
"payments":[ | ||
{ | ||
"resource":"payment", | ||
"id":"tr_DtKxVP2AgW", | ||
"mode":"live", | ||
"createdA":"2018-09-19T12:49:52+00:00", | ||
"amount":{ | ||
"value":"10.00", | ||
"currency":"EUR" | ||
}, | ||
"description":"Some subscription 19 sep. 2018", | ||
"method":"directdebit", | ||
"metadata":null, | ||
"status":"pending", | ||
"isCancelable":true, | ||
"expiresAt":"2019-09-19T12:49:52+00:00", | ||
"locale":"nl_NL", | ||
"profileId":"pfl_rH9rQtedgS", | ||
"customerId":"cst_8wmqcHMN4x", | ||
"mandateId":"mdt_aGQNkteF6w", | ||
"subscriptionId":"sub_rVKGtNd6s3", | ||
"sequenceType":"recurring", | ||
"redirectUrl":null, | ||
"webhookUrl":"https://example.org/webhook", | ||
"settlementAmount":{ | ||
"value":"10.00", | ||
"currency":"EUR" | ||
}, | ||
"details":{ | ||
"transferReference":"SD67-6850-2204-6029", | ||
"creditorIdentifier":"NL08ZZZ502057730000", | ||
"consumerName":"Customer A", | ||
"consumerAccount":"NL50INGB0006588912", | ||
"consumerBic":"INGBNL2A", | ||
"dueDate":"2018-09-21", | ||
"signatureDate":"2018-09-19" | ||
}, | ||
"_links":{ | ||
"self":{ | ||
"href":"https://api.mollie.com/v2/payments/tr_DtKxVP2AgW", | ||
"type":"application/hal+json" | ||
}, | ||
"checkout":null, | ||
"customer":{ | ||
"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4x", | ||
"type":"application/hal+json" | ||
}, | ||
"mandate":{ | ||
"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4x/mandates/mdt_aGQNkteF6w", | ||
"type":"application/hal+json" | ||
}, | ||
"subscription":{ | ||
"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4x/subscriptions/sub_rVKGtNd6s3", | ||
"type":"application/hal+json" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"count":1, | ||
"_links":{ | ||
"documentation":{ | ||
"href":"https://docs.mollie.com/reference/v2/subscriptions-api/list-subscription-payments", | ||
"type":"text/html" | ||
}, | ||
"self":{ | ||
"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4U/subscriptions/sub_rVKGtNd6s3/payments?limit=1", | ||
"type":"application/hal+json" | ||
}, | ||
"previous":null, | ||
"next": { | ||
"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4U/subscriptions/sub_rVKGtNd6s3/payments?limit=1&from=tr_DtKxVP2AgX", | ||
"type":"application/hal+json" | ||
} | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
tests/responses/customer_subscription_payments_multiple_p2.json
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,78 @@ | ||
{ | ||
"_embedded":{ | ||
"payments":[ | ||
{ | ||
"resource":"payment", | ||
"id":"tr_DtKxVP2AgW", | ||
"mode":"live", | ||
"createdA":"2018-09-19T12:49:52+00:00", | ||
"amount":{ | ||
"value":"10.00", | ||
"currency":"EUR" | ||
}, | ||
"description":"Some subscription 19 sep. 2018", | ||
"method":"directdebit", | ||
"metadata":null, | ||
"status":"pending", | ||
"isCancelable":true, | ||
"expiresAt":"2019-09-19T12:49:52+00:00", | ||
"locale":"nl_NL", | ||
"profileId":"pfl_rH9rQtedgS", | ||
"customerId":"cst_8wmqcHMN4x", | ||
"mandateId":"mdt_aGQNkteF6w", | ||
"subscriptionId":"sub_rVKGtNd6s3", | ||
"sequenceType":"recurring", | ||
"redirectUrl":null, | ||
"webhookUrl":"https://example.org/webhook", | ||
"settlementAmount":{ | ||
"value":"10.00", | ||
"currency":"EUR" | ||
}, | ||
"details":{ | ||
"transferReference":"SD67-6850-2204-6029", | ||
"creditorIdentifier":"NL08ZZZ502057730000", | ||
"consumerName":"Customer A", | ||
"consumerAccount":"NL50INGB0006588912", | ||
"consumerBic":"INGBNL2A", | ||
"dueDate":"2018-09-21", | ||
"signatureDate":"2018-09-19" | ||
}, | ||
"_links":{ | ||
"self":{ | ||
"href":"https://api.mollie.com/v2/payments/tr_DtKxVP2AgW", | ||
"type":"application/hal+json" | ||
}, | ||
"checkout":null, | ||
"customer":{ | ||
"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4x", | ||
"type":"application/hal+json" | ||
}, | ||
"mandate":{ | ||
"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4x/mandates/mdt_aGQNkteF6w", | ||
"type":"application/hal+json" | ||
}, | ||
"subscription":{ | ||
"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4x/subscriptions/sub_rVKGtNd6s3", | ||
"type":"application/hal+json" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"count":1, | ||
"_links":{ | ||
"documentation":{ | ||
"href":"https://docs.mollie.com/reference/v2/subscriptions-api/list-subscription-payments", | ||
"type":"text/html" | ||
}, | ||
"self":{ | ||
"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4U/subscriptions/sub_rVKGtNd6s3/payments?limit=1", | ||
"type":"application/hal+json" | ||
}, | ||
"previous":{ | ||
"href":"https://api.mollie.com/v2/customers/cst_8wmqcHMN4U/subscriptions/sub_rVKGtNd6s3/payments?limit=&1from=tr_DtKxVP2AgX", | ||
"type":"application/hal+json" | ||
}, | ||
"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
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
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