docs/v2/storefront/index.yaml in spree_api-4.3.0.rc3 vs docs/v2/storefront/index.yaml in spree_api-4.3.0
- old
+ new
@@ -159,15 +159,15 @@
properties:
email:
type: string
example: john@snow.org
bill_address_id:
- type: integer
- example: 1
+ type: string
+ example: '1'
ship_address_id:
- type: integer
- example: 1
+ type: string
+ example: '1'
password:
type: string
example: spree123
password_confirmation:
type: string
@@ -548,11 +548,10 @@
description: Correct cart was returned
content:
application/vnd.api+json:
schema:
$ref: '#/components/schemas/Cart'
- examples: {}
'404':
$ref: '#/components/responses/404NotFound'
security:
- orderToken: []
- bearerAuth: []
@@ -789,10 +788,74 @@
$ref: '#/components/responses/404NotFound'
security:
- orderToken: []
- bearerAuth: []
summary: Get estimated Shipping Rates
+ /api/v2/storefront/cart/associate:
+ patch:
+ description: Associates a guest cart with the currently signed in user.
+ tags:
+ - Cart
+ operationId: Associate
+ parameters:
+ - name: guest_order_token
+ in: query
+ description: Token of the guest cart to be associated with user
+ schema:
+ type: string
+ - $ref: '#/components/parameters/CartIncludeParam'
+ - $ref: '#/components/parameters/SparseFieldsParam'
+ responses:
+ '200':
+ description: Cart has been successfully associated
+ content:
+ application/vnd.api+json:
+ schema:
+ $ref: '#/components/schemas/Cart'
+ '403':
+ $ref: '#/components/responses/403Forbidden'
+ '422':
+ description: Returned for already assigned cart
+ content:
+ application/vnd.api+json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ security:
+ - bearerAuth: []
+ summary: Associate a guest cart to a user
+ /api/v2/storefront/cart/change_currency:
+ patch:
+ description: Changes cart currency and recalculates its value.
+ tags:
+ - Cart
+ operationId: change-currency
+ parameters:
+ - name: new_currency
+ in: query
+ description: Currency to change the cart to
+ schema:
+ type: string
+ - $ref: '#/components/parameters/CartIncludeParam'
+ - $ref: '#/components/parameters/SparseFieldsParam'
+ responses:
+ '200':
+ description: Currency has been successfully changed
+ content:
+ application/vnd.api+json:
+ schema:
+ $ref: '#/components/schemas/Cart'
+ '403':
+ $ref: '#/components/responses/403Forbidden'
+ '422':
+ description: Returned when currency is not supported or cart cannot be updated
+ content:
+ application/vnd.api+json:
+ schema:
+ $ref: '#/components/schemas/Error'
+ security:
+ - bearerAuth: []
+ summary: Change cart currency
/api/v2/storefront/checkout:
patch:
description: |-
You can run multiple Checkout updates with different data types.
@@ -13492,11 +13555,10 @@
anyOf:
- $ref: '#/components/schemas/Promotion'
- $ref: '#/components/schemas/User'
- $ref: '#/components/schemas/Address'
- $ref: '#/components/schemas/ShipmentAttributesWithoutRelationsips'
- type: object
required:
- data
- included
x-examples: {}
type: object
@@ -15810,17 +15872,17 @@
in: query
name: 'image_transformation[size]'
schema:
type: string
example: 100x50
- description: Specyfies dimensions for included images at transformed_url attribute.
+ description: Specifies dimensions for included images at transformed_url attribute.
ProductImageTransformationQualityParam:
in: query
name: 'image_transformation[quality]'
schema:
type: string
- example: 70
- description: Specyfies quality for included images at transformed_url attribute
+ example: '70'
+ description: Specifies quality for included images at transformed_url attribute
TaxonIncludeParam:
name: include
in: query
schema:
type: string