Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix cURL example in create payment collection route #10219

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions www/apps/api-reference/specs/admin/openapi.full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28337,7 +28337,7 @@ paths:
required_quantity:
type: number
title: required_quantity
description: The variant's quantity.
description: The number of units a single quantity is equivalent to. For example, if a customer orders one quantity of the variant, Medusa checks the availability of the quantity multiplied by the value set for `required_quantity`. When the customer orders the quantity, Medusa reserves the ordered quantity multiplied by the value set for `required_quantity`.
inventory_item_id:
type: string
title: inventory_item_id
Expand All @@ -28360,7 +28360,7 @@ paths:
required_quantity:
type: number
title: required_quantity
description: The variant's quantity.
description: The number of units a single quantity is equivalent to. For example, if a customer orders one quantity of the variant, Medusa checks the availability of the quantity multiplied by the value set for `required_quantity`. When the customer orders the quantity, Medusa reserves the ordered quantity multiplied by the value set for `required_quantity`.
inventory_item_id:
type: string
title: inventory_item_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ post:
required_quantity:
type: number
title: required_quantity
description: The variant's quantity.
description: >-
The number of units a single quantity is equivalent to.
For example, if a customer orders one quantity of the
variant, Medusa checks the availability of the quantity
multiplied by the value set for `required_quantity`. When
the customer orders the quantity, Medusa reserves the
ordered quantity multiplied by the value set for
`required_quantity`.
inventory_item_id:
type: string
title: inventory_item_id
Expand All @@ -70,7 +77,14 @@ post:
required_quantity:
type: number
title: required_quantity
description: The variant's quantity.
description: >-
The number of units a single quantity is equivalent to.
For example, if a customer orders one quantity of the
variant, Medusa checks the availability of the quantity
multiplied by the value set for `required_quantity`. When
the customer orders the quantity, Medusa reserves the
ordered quantity multiplied by the value set for
`required_quantity`.
inventory_item_id:
type: string
title: inventory_item_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@ curl -X POST '{backend_url}/store/payment-collections' \
-H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{
"cart_id": "{value}",
"region_id": "{value}",
"currency_code": "{value}",
"amount": 8468325826822144
"cart_id": "{value}"
}'
5 changes: 1 addition & 4 deletions www/apps/api-reference/specs/store/openapi.full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3126,10 +3126,7 @@ paths:
-H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{
"cart_id": "{value}",
"region_id": "{value}",
"currency_code": "{value}",
"amount": 8468325826822144
"cart_id": "{value}"
}'
tags:
- Payment Collections
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
* -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* --data-raw '{
* "cart_id": "{value}",
* "region_id": "{value}",
* "currency_code": "{value}",
* "amount": 8468325826822144
* "cart_id": "{value}"
* }'
* tags:
* - Payment Collections
Expand Down
Loading