-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from square/release/32.0.0.20231018
Generated PR for Release: 32.0.0.20231018
- Loading branch information
Showing
69 changed files
with
2,868 additions
and
163 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
# Bulk Swap Plan Request | ||
|
||
Defines input parameters in a call to the | ||
[BulkSwapPlan](../../doc/apis/subscriptions.md#bulk-swap-plan) endpoint. | ||
|
||
## Structure | ||
|
||
`BulkSwapPlanRequest` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | Setter | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `newPlanVariationId` | `string` | Required | The ID of the new subscription plan variation.<br><br>This field is required.<br>**Constraints**: *Minimum Length*: `1` | getNewPlanVariationId(): string | setNewPlanVariationId(string newPlanVariationId): void | | ||
| `oldPlanVariationId` | `string` | Required | The ID of the plan variation whose subscriptions should be swapped. Active subscriptions<br>using this plan variation will be subscribed to the new plan variation on their next billing<br>day.<br>**Constraints**: *Minimum Length*: `1` | getOldPlanVariationId(): string | setOldPlanVariationId(string oldPlanVariationId): void | | ||
| `locationId` | `string` | Required | The ID of the location to associate with the swapped subscriptions.<br>**Constraints**: *Minimum Length*: `1` | getLocationId(): string | setLocationId(string locationId): void | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"location_id": "S8GWD5R9QB376", | ||
"new_plan_variation_id": "FQ7CDXXWSLUJRPM3GFJSJGZ7", | ||
"old_plan_variation_id": "6JHXF3B2CW3YKHDV4XEM674H" | ||
} | ||
``` | ||
|
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,39 @@ | ||
|
||
# Bulk Swap Plan Response | ||
|
||
Defines output parameters in a response of the | ||
[BulkSwapPlan](../../doc/apis/subscriptions.md#bulk-swap-plan) endpoint. | ||
|
||
## Structure | ||
|
||
`BulkSwapPlanResponse` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | Setter | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `errors` | [`?(Error[])`](../../doc/models/error.md) | Optional | Errors encountered during the request. | getErrors(): ?array | setErrors(?array errors): void | | ||
| `affectedSubscriptions` | `?int` | Optional | The number of affected subscriptions. | getAffectedSubscriptions(): ?int | setAffectedSubscriptions(?int affectedSubscriptions): void | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"affected_subscriptions": 12, | ||
"errors": [ | ||
{ | ||
"category": "MERCHANT_SUBSCRIPTION_ERROR", | ||
"code": "MAP_KEY_LENGTH_TOO_LONG", | ||
"detail": "detail6", | ||
"field": "field4" | ||
}, | ||
{ | ||
"category": "MERCHANT_SUBSCRIPTION_ERROR", | ||
"code": "MAP_KEY_LENGTH_TOO_LONG", | ||
"detail": "detail6", | ||
"field": "field4" | ||
} | ||
] | ||
} | ||
``` | ||
|
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
Oops, something went wrong.