-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add quantityFilled and its update (#1754)
* Add usedQuantity and its update * Fix method * Fix peth * Rename * Add badge * Add badge * Rename "change" to "update" * Apply suggestions from code review Co-authored-by: Adam Altman <adam@rebilly.com> * Fix * Apply suggestions from code review Co-authored-by: Chris <85164331+noon-dawg@users.noreply.github.com> * Rename to quantityFilled * Change to PATCH --------- Co-authored-by: Adam Altman <adam@rebilly.com> Co-authored-by: Chris <85164331+noon-dawg@users.noreply.github.com>
- Loading branch information
1 parent
5d96ba1
commit 057414a
Showing
4 changed files
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
type: object | ||
required: | ||
- quantityFilled | ||
properties: | ||
quantityFilled: | ||
x-badge: Experimental | ||
description: Filled quantity of the subscription item (experimental property). | ||
type: integer |
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,41 @@ | ||
parameters: | ||
- $ref: ../components/parameters/resourceId.yaml | ||
- name: itemId | ||
in: path | ||
description: ID of subscription item. | ||
required: true | ||
schema: | ||
type: string | ||
patch: | ||
x-badge: Experimental | ||
x-products: | ||
- Core | ||
tags: | ||
- Orders | ||
summary: Update a subscription order item | ||
operationId: PatchSubscriptionItem | ||
x-sdk-operation-name: updateItem | ||
description: Updates a subscription order item. This is an experimental endpoint, can be changed or removed in the future. | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../components/requestBodies/SubscriptionItemUpdate.yaml | ||
description: Update item request. | ||
required: true | ||
responses: | ||
'201': | ||
description: Order item updated. | ||
headers: | ||
Location: | ||
$ref: ../components/headers/Location.yaml | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../components/schemas/OrderItem.yaml | ||
'401': | ||
$ref: ../components/responses/Unauthorized.yaml | ||
'403': | ||
$ref: ../components/responses/Forbidden.yaml | ||
'422': | ||
$ref: ../components/responses/ValidationError.yaml |