chore: fix cURL example in create payment collection route (#10219)
* chore: fix cURL example in create payment collection route * regenerate OAS
This commit is contained in:
1 parent
8e10ada2d0
commit
4810b1c55b
5 files changed
+21
-16
No files matched your search
@@ -28337,7 +28337,7 @@ paths:
|
|||||||
required_quantity:
|
required_quantity:
|
||||||
type: number
|
type: number
|
||||||
title: required_quantity
|
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:
|
inventory_item_id:
|
||||||
type: string
|
type: string
|
||||||
title: inventory_item_id
|
title: inventory_item_id
|
||||||
@@ -28360,7 +28360,7 @@ paths:
|
|||||||
required_quantity:
|
required_quantity:
|
||||||
type: number
|
type: number
|
||||||
title: required_quantity
|
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:
|
inventory_item_id:
|
||||||
type: string
|
type: string
|
||||||
title: inventory_item_id
|
title: inventory_item_id
|
||||||
|
|||||||
+16
-2
@@ -43,7 +43,14 @@ post:
|
|||||||
required_quantity:
|
required_quantity:
|
||||||
type: number
|
type: number
|
||||||
title: required_quantity
|
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:
|
inventory_item_id:
|
||||||
type: string
|
type: string
|
||||||
title: inventory_item_id
|
title: inventory_item_id
|
||||||
@@ -70,7 +77,14 @@ post:
|
|||||||
required_quantity:
|
required_quantity:
|
||||||
type: number
|
type: number
|
||||||
title: required_quantity
|
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:
|
inventory_item_id:
|
||||||
type: string
|
type: string
|
||||||
title: inventory_item_id
|
title: inventory_item_id
|
||||||
|
|||||||
+1
-4
@@ -2,8 +2,5 @@ curl -X POST '{backend_url}/store/payment-collections' \
|
|||||||
-H 'Content-Type: application/json' \ \
|
-H 'Content-Type: application/json' \ \
|
||||||
-H 'x-publishable-api-key: {your_publishable_api_key}'
|
-H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"cart_id": "{value}",
|
"cart_id": "{value}"
|
||||||
"region_id": "{value}",
|
|
||||||
"currency_code": "{value}",
|
|
||||||
"amount": 8468325826822144
|
|
||||||
}'
|
}'
|
||||||
@@ -3126,10 +3126,7 @@ paths:
|
|||||||
-H 'Content-Type: application/json' \ \
|
-H 'Content-Type: application/json' \ \
|
||||||
-H 'x-publishable-api-key: {your_publishable_api_key}'
|
-H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"cart_id": "{value}",
|
"cart_id": "{value}"
|
||||||
"region_id": "{value}",
|
|
||||||
"currency_code": "{value}",
|
|
||||||
"amount": 8468325826822144
|
|
||||||
}'
|
}'
|
||||||
tags:
|
tags:
|
||||||
- Payment Collections
|
- Payment Collections
|
||||||
|
|||||||
@@ -33,10 +33,7 @@
|
|||||||
* -H 'Content-Type: application/json' \ \
|
* -H 'Content-Type: application/json' \ \
|
||||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||||
* --data-raw '{
|
* --data-raw '{
|
||||||
* "cart_id": "{value}",
|
* "cart_id": "{value}"
|
||||||
* "region_id": "{value}",
|
|
||||||
* "currency_code": "{value}",
|
|
||||||
* "amount": 8468325826822144
|
|
||||||
* }'
|
* }'
|
||||||
* tags:
|
* tags:
|
||||||
* - Payment Collections
|
* - Payment Collections
|
||||||
|
|||||||
Reference in new issue
Block a user