@spree/docs 0.1.127 → 0.1.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2276,7 +2276,8 @@ paths:
|
|
|
2276
2276
|
bearer_auth: []
|
|
2277
2277
|
description: |
|
|
2278
2278
|
Associates a guest cart with the currently authenticated user.
|
|
2279
|
-
Requires JWT authentication
|
|
2279
|
+
Requires JWT authentication and possession of the cart's token
|
|
2280
|
+
(x-spree-token) — the token authorizes claiming the cart.
|
|
2280
2281
|
x-codeSamples:
|
|
2281
2282
|
- lang: javascript
|
|
2282
2283
|
label: Spree SDK
|
|
@@ -2302,6 +2303,12 @@ paths:
|
|
|
2302
2303
|
required: true
|
|
2303
2304
|
schema:
|
|
2304
2305
|
type: string
|
|
2306
|
+
- name: x-spree-token
|
|
2307
|
+
in: header
|
|
2308
|
+
required: true
|
|
2309
|
+
description: Cart token
|
|
2310
|
+
schema:
|
|
2311
|
+
type: string
|
|
2305
2312
|
- name: id
|
|
2306
2313
|
in: path
|
|
2307
2314
|
required: true
|
|
@@ -2497,6 +2504,16 @@ paths:
|
|
|
2497
2504
|
message: Authentication required
|
|
2498
2505
|
schema:
|
|
2499
2506
|
"$ref": "#/components/schemas/ErrorResponse"
|
|
2507
|
+
'403':
|
|
2508
|
+
description: forbidden - cart token missing or does not match
|
|
2509
|
+
content:
|
|
2510
|
+
application/json:
|
|
2511
|
+
example:
|
|
2512
|
+
error:
|
|
2513
|
+
code: access_denied
|
|
2514
|
+
message: You are not authorized to access this page.
|
|
2515
|
+
schema:
|
|
2516
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
2500
2517
|
"/api/v3/store/carts/{id}/complete":
|
|
2501
2518
|
post:
|
|
2502
2519
|
summary: Complete cart
|
|
@@ -429,6 +429,31 @@ Here's a list of all places you can inject your custom code:
|
|
|
429
429
|
</details>
|
|
430
430
|
|
|
431
431
|
|
|
432
|
+
<details>
|
|
433
|
+
<summary>Customer Page Sidebar</summary>
|
|
434
|
+
|
|
435
|
+
`user_page_sidebar`
|
|
436
|
+
|
|
437
|
+
#### Variables
|
|
438
|
+
|
|
439
|
+
- **`user`** (`Spree.user_class`) — The customer displayed on the page.
|
|
440
|
+
|
|
441
|
+
Injects a section into the customer detail page sidebar. This partial has access to the `user` variable.
|
|
442
|
+
|
|
443
|
+
```erb
|
|
444
|
+
<div class="card">
|
|
445
|
+
<div class="card-header">
|
|
446
|
+
<h5 class="card-title">Account review</h5>
|
|
447
|
+
</div>
|
|
448
|
+
<div class="card-body">
|
|
449
|
+
<%= user.email %>
|
|
450
|
+
</div>
|
|
451
|
+
</div>
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
</details>
|
|
455
|
+
|
|
456
|
+
|
|
432
457
|
### Stock Items
|
|
433
458
|
|
|
434
459
|
<details>
|