-
Notifications
You must be signed in to change notification settings - Fork 33
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 #109 from square/release/34.0.0.20231018
Generated PR for Release: 34.0.0.20231018
- Loading branch information
Showing
60 changed files
with
3,009 additions
and
178 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
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/api/subscriptions.md#bulk-swap-plan) endpoint. | ||
|
||
## Structure | ||
|
||
`BulkSwapPlanRequest` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | | ||
| --- | --- | --- | --- | --- | | ||
| `NewPlanVariationId` | `String` | Required | The ID of the new subscription plan variation.<br><br>This field is required.<br>**Constraints**: *Minimum Length*: `1` | String getNewPlanVariationId() | | ||
| `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` | String getOldPlanVariationId() | | ||
| `LocationId` | `String` | Required | The ID of the location to associate with the swapped subscriptions.<br>**Constraints**: *Minimum Length*: `1` | String getLocationId() | | ||
|
||
## 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/api/subscriptions.md#bulk-swap-plan) endpoint. | ||
|
||
## Structure | ||
|
||
`BulkSwapPlanResponse` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | | ||
| --- | --- | --- | --- | --- | | ||
| `Errors` | [`List<Error>`](../../doc/models/error.md) | Optional | Errors encountered during the request. | List<Error> getErrors() | | ||
| `AffectedSubscriptions` | `Integer` | Optional | The number of affected subscriptions. | Integer getAffectedSubscriptions() | | ||
|
||
## 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
Oops, something went wrong.