Skip to content

Commit ff26c17

Browse files
committed
update api specs
1 parent fee466c commit ff26c17

4 files changed

Lines changed: 60 additions & 42 deletions

File tree

static/api/admin/2023-02-10.yaml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3073,7 +3073,7 @@ components:
30733073
type: array
30743074
available_payment_methods:
30753075
items:
3076-
$ref: '#/components/schemas/PaymentMethod'
3076+
$ref: '#/components/schemas/PaymentMethodSupportCurrencies'
30773077
readOnly: true
30783078
type: array
30793079
card_types:
@@ -6071,7 +6071,7 @@ components:
60716071
type: array
60726072
available_payment_methods:
60736073
items:
6074-
$ref: '#/components/schemas/PaymentMethod'
6074+
$ref: '#/components/schemas/PaymentMethodSupportCurrencies'
60756075
readOnly: true
60766076
type: array
60776077
certificate_token:
@@ -6216,6 +6216,16 @@ components:
62166216
- weight
62176217
type: object
62186218
PaymentMethod:
6219+
properties:
6220+
code:
6221+
type: string
6222+
label:
6223+
type: string
6224+
required:
6225+
- code
6226+
- label
6227+
type: object
6228+
PaymentMethodSupportCurrencies:
62196229
properties:
62206230
code:
62216231
type: string
@@ -19702,13 +19712,9 @@ webhooks:
1970219712
type: string
1970319713
label:
1970419714
type: string
19705-
supported_currencies:
19706-
items: {}
19707-
type: array
1970819715
required:
1970919716
- code
1971019717
- label
19711-
- supported_currencies
1971219718
type: object
1971319719
type: array
1971419720
currencies:
@@ -19873,13 +19879,9 @@ webhooks:
1987319879
type: string
1987419880
label:
1987519881
type: string
19876-
supported_currencies:
19877-
items: {}
19878-
type: array
1987919882
required:
1988019883
- code
1988119884
- label
19882-
- supported_currencies
1988319885
type: object
1988419886
type: array
1988519887
currencies:
@@ -23923,13 +23925,9 @@ webhooks:
2392323925
type: string
2392423926
label:
2392523927
type: string
23926-
supported_currencies:
23927-
items: {}
23928-
type: array
2392923928
required:
2393023929
- code
2393123930
- label
23932-
- supported_currencies
2393323931
type: object
2393423932
type: array
2393523933
available_payment_methods:

static/api/admin/2024-04-01.yaml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3374,7 +3374,7 @@ components:
33743374
type: array
33753375
available_payment_methods:
33763376
items:
3377-
$ref: '#/components/schemas/PaymentMethod'
3377+
$ref: '#/components/schemas/PaymentMethodSupportCurrencies'
33783378
readOnly: true
33793379
type: array
33803380
card_types:
@@ -6470,7 +6470,7 @@ components:
64706470
type: array
64716471
available_payment_methods:
64726472
items:
6473-
$ref: '#/components/schemas/PaymentMethod'
6473+
$ref: '#/components/schemas/PaymentMethodSupportCurrencies'
64746474
readOnly: true
64756475
type: array
64766476
certificate_token:
@@ -6615,6 +6615,16 @@ components:
66156615
- weight
66166616
type: object
66176617
PaymentMethod:
6618+
properties:
6619+
code:
6620+
type: string
6621+
label:
6622+
type: string
6623+
required:
6624+
- code
6625+
- label
6626+
type: object
6627+
PaymentMethodSupportCurrencies:
66186628
properties:
66196629
code:
66206630
type: string
@@ -20130,13 +20140,9 @@ webhooks:
2013020140
type: string
2013120141
label:
2013220142
type: string
20133-
supported_currencies:
20134-
items: {}
20135-
type: array
2013620143
required:
2013720144
- code
2013820145
- label
20139-
- supported_currencies
2014020146
type: object
2014120147
type: array
2014220148
currencies:
@@ -20301,13 +20307,9 @@ webhooks:
2030120307
type: string
2030220308
label:
2030320309
type: string
20304-
supported_currencies:
20305-
items: {}
20306-
type: array
2030720310
required:
2030820311
- code
2030920312
- label
20310-
- supported_currencies
2031120313
type: object
2031220314
type: array
2031320315
currencies:
@@ -24647,13 +24649,9 @@ webhooks:
2464724649
type: string
2464824650
label:
2464924651
type: string
24650-
supported_currencies:
24651-
items: {}
24652-
type: array
2465324652
required:
2465424653
- code
2465524654
- label
24656-
- supported_currencies
2465724655
type: object
2465824656
type: array
2465924657
available_payment_methods:

static/api/admin/unstable.yaml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3374,7 +3374,7 @@ components:
33743374
type: array
33753375
available_payment_methods:
33763376
items:
3377-
$ref: '#/components/schemas/PaymentMethod'
3377+
$ref: '#/components/schemas/PaymentMethodSupportCurrencies'
33783378
readOnly: true
33793379
type: array
33803380
card_types:
@@ -6470,7 +6470,7 @@ components:
64706470
type: array
64716471
available_payment_methods:
64726472
items:
6473-
$ref: '#/components/schemas/PaymentMethod'
6473+
$ref: '#/components/schemas/PaymentMethodSupportCurrencies'
64746474
readOnly: true
64756475
type: array
64766476
certificate_token:
@@ -6615,6 +6615,16 @@ components:
66156615
- weight
66166616
type: object
66176617
PaymentMethod:
6618+
properties:
6619+
code:
6620+
type: string
6621+
label:
6622+
type: string
6623+
required:
6624+
- code
6625+
- label
6626+
type: object
6627+
PaymentMethodSupportCurrencies:
66186628
properties:
66196629
code:
66206630
type: string
@@ -20130,13 +20140,9 @@ webhooks:
2013020140
type: string
2013120141
label:
2013220142
type: string
20133-
supported_currencies:
20134-
items: {}
20135-
type: array
2013620143
required:
2013720144
- code
2013820145
- label
20139-
- supported_currencies
2014020146
type: object
2014120147
type: array
2014220148
currencies:
@@ -20301,13 +20307,9 @@ webhooks:
2030120307
type: string
2030220308
label:
2030320309
type: string
20304-
supported_currencies:
20305-
items: {}
20306-
type: array
2030720310
required:
2030820311
- code
2030920312
- label
20310-
- supported_currencies
2031120313
type: object
2031220314
type: array
2031320315
currencies:
@@ -24647,13 +24649,9 @@ webhooks:
2464724649
type: string
2464824650
label:
2464924651
type: string
24650-
supported_currencies:
24651-
items: {}
24652-
type: array
2465324652
required:
2465424653
- code
2465524654
- label
24656-
- supported_currencies
2465724655
type: object
2465824656
type: array
2465924657
available_payment_methods:

static/api/campaigns/v1.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,18 @@ components:
198198
type: object
199199
Campaign:
200200
properties:
201+
available_express_payment_methods:
202+
description: All available payment methods
203+
items:
204+
$ref: '#/components/schemas/PaymentMethod'
205+
readOnly: true
206+
type: array
207+
available_payment_methods:
208+
description: Available express payment methods
209+
items:
210+
$ref: '#/components/schemas/PaymentMethod'
211+
readOnly: true
212+
type: array
201213
currency:
202214
description: Currency for orders created through this campaign
203215
maxLength: 3
@@ -222,6 +234,8 @@ components:
222234
$ref: '#/components/schemas/ShippingOption'
223235
type: array
224236
required:
237+
- available_express_payment_methods
238+
- available_payment_methods
225239
- currency
226240
- language
227241
- name
@@ -892,6 +906,16 @@ components:
892906
nullable: true
893907
type: integer
894908
type: object
909+
PaymentMethod:
910+
properties:
911+
code:
912+
type: string
913+
label:
914+
type: string
915+
required:
916+
- code
917+
- label
918+
type: object
895919
PaymentMethodEnum:
896920
description: '* `apple_pay` - Apple Pay
897921

0 commit comments

Comments
 (0)