|
1
|
type: object |
|
2
|
description: The properties to update in the shipping option type. |
|
3
|
properties: |
|
4
|
name: |
|
5
|
type: string |
|
6
|
title: name |
|
7
|
description: The shipping option's name. |
|
8
|
data: |
|
9
|
type: object |
|
10
|
description: The shipping option's data. |
|
11
|
price_type: |
|
12
|
type: string |
|
13
|
description: The shipping option's price type. |
|
14
|
enum: |
|
15
|
- flat |
|
16
|
- calculated |
|
17
|
provider_id: |
|
18
|
type: string |
|
19
|
title: provider_id |
|
20
|
description: The shipping option's provider id. |
|
21
|
shipping_profile_id: |
|
22
|
type: string |
|
23
|
title: shipping_profile_id |
|
24
|
description: The shipping option's shipping profile id. |
|
25
|
type: |
|
26
|
$ref: ./AdminCreateShippingOptionType.yaml |
|
27
|
type_id: |
|
28
|
type: string |
|
29
|
title: type_id |
|
30
|
description: The shipping option's type id. |
|
31
|
prices: |
|
32
|
type: array |
|
33
|
description: >- |
|
34
|
The shipping option's prices. This array replaces the shipping option's |
|
35
|
existing prices - a price with a matching `id` is updated, a price without |
|
36
|
an `id` is created, and any existing price whose `id` isn't included is |
|
37
|
deleted. Omit this property to leave the existing prices unchanged. |
|
38
|
items: |
|
39
|
oneOf: |
|
40
|
- $ref: ./AdminUpdateShippingOptionPriceWithCurrency.yaml |
|
41
|
- $ref: ./AdminUpdateShippingOptionPriceWithRegion.yaml |
|
42
|
rules: |
|
43
|
type: array |
|
44
|
description: The shipping option's rules. |
|
45
|
items: |
|
46
|
oneOf: |
|
47
|
- $ref: ./AdminCreateShippingOptionRule.yaml |
|
48
|
- $ref: ./AdminUpdateShippingOptionRule.yaml |
|
49
|
metadata: |
|
50
|
type: object |
|
51
|
description: The shipping option's metadata. |
|
52
|
x-schemaName: AdminUpdateShippingOption |