forked from LiveCarta/PayPal-PHP-Server-SDK
* Automated commit message * Automated commit message * add changelog --------- Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
1.4 KiB
1.4 KiB
Subscription Collection
The list of subscriptions.
Structure
SubscriptionCollection
Fields
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
subscriptions |
?(Subscription[]) |
Optional | An array of subscriptions. Constraints: Minimum Items: 0, Maximum Items: 32767 |
getSubscriptions(): ?array | setSubscriptions(?array subscriptions): void |
links |
?(LinkDescription[]) |
Optional | An array of request-related HATEOAS links. Constraints: Minimum Items: 1, Maximum Items: 10 |
getLinks(): ?array | setLinks(?array links): void |
Example (as JSON)
{
"subscriptions": [
{
"id": "id6",
"plan_id": "plan_id8",
"start_time": "start_time0",
"quantity": "quantity2",
"shipping_amount": {
"currency_code": "currency_code0",
"value": "value6"
}
},
{
"id": "id6",
"plan_id": "plan_id8",
"start_time": "start_time0",
"quantity": "quantity2",
"shipping_amount": {
"currency_code": "currency_code0",
"value": "value6"
}
}
],
"links": [
{
"href": "href6",
"rel": "rel0",
"method": "HEAD"
}
]
}