Skip to content

Commit 5b634ef

Browse files
committed
update api specs
1 parent bda3b9b commit 5b634ef

4 files changed

Lines changed: 60 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15496,6 +15496,8 @@ paths:
1549615496

1549715497
* `google_pay` - Google Pay
1549815498

15499+
* `klarna` - Klarna
15500+
1549915501
* `paypal` - PayPal'
1550015502
explode: true
1550115503
in: query
@@ -15506,11 +15508,12 @@ paths:
1550615508
- apple_pay
1550715509
- bankcard
1550815510
- google_pay
15511+
- klarna
1550915512
- paypal
1551015513
type:
1551115514
- string
1551215515
- 'null'
15513-
x-spec-enum-id: ee5cec980b0ff345
15516+
x-spec-enum-id: a1a64e53289dc9ac
1551415517
type: array
1551515518
style: form
1551615519
- description: 'Gateway Status

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15991,6 +15991,8 @@ paths:
1599115991

1599215992
* `google_pay` - Google Pay
1599315993

15994+
* `klarna` - Klarna
15995+
1599415996
* `paypal` - PayPal'
1599515997
explode: true
1599615998
in: query
@@ -16001,11 +16003,12 @@ paths:
1600116003
- apple_pay
1600216004
- bankcard
1600316005
- google_pay
16006+
- klarna
1600416007
- paypal
1600516008
type:
1600616009
- string
1600716010
- 'null'
16008-
x-spec-enum-id: ee5cec980b0ff345
16011+
x-spec-enum-id: a1a64e53289dc9ac
1600916012
type: array
1601016013
style: form
1601116014
- description: 'Gateway Status

static/api/admin/unstable.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15991,6 +15991,8 @@ paths:
1599115991

1599215992
* `google_pay` - Google Pay
1599315993

15994+
* `klarna` - Klarna
15995+
1599415996
* `paypal` - PayPal'
1599515997
explode: true
1599615998
in: query
@@ -16001,11 +16003,12 @@ paths:
1600116003
- apple_pay
1600216004
- bankcard
1600316005
- google_pay
16006+
- klarna
1600416007
- paypal
1600516008
type:
1600616009
- string
1600716010
- 'null'
16008-
x-spec-enum-id: ee5cec980b0ff345
16011+
x-spec-enum-id: a1a64e53289dc9ac
1600916012
type: array
1601016013
style: form
1601116014
- description: 'Gateway Status

static/api/campaigns/v1.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ components:
369369
format: decimal
370370
pattern: ^-?\d{0,10}(?:\.\d{0,2})?$
371371
type: string
372+
product_id:
373+
description: The ID of the product
374+
nullable: true
375+
type: integer
372376
product_sku:
373377
description: Product's Stock Keeping Unit
374378
type: string
@@ -378,6 +382,10 @@ components:
378382
quantity:
379383
description: Total product units from the package
380384
type: integer
385+
variant_id:
386+
description: The ID of the product variant
387+
nullable: true
388+
type: integer
381389
required:
382390
- id
383391
- quantity
@@ -569,6 +577,9 @@ components:
569577
nullable: true
570578
type: string
571579
type: object
580+
NullEnum:
581+
enum:
582+
- null
572583
Order:
573584
properties:
574585
attribution:
@@ -605,6 +616,35 @@ components:
605616
description: The url for the order's status page
606617
maxLength: 255
607618
type: string
619+
payment_method:
620+
description: 'Payment method used for the order
621+
622+
623+
* `apple_pay` - Apple Pay
624+
625+
* `card_token` - Card Token
626+
627+
* `paypal` - Paypal
628+
629+
* `klarna` - Klarna
630+
631+
* `ideal` - iDEAL
632+
633+
* `bancontact` - Bancontact
634+
635+
* `giropay` - Giropay
636+
637+
* `google_pay` - Google Pay
638+
639+
* `sofort` - Sofort
640+
641+
* `sepa_debit` - SEPA Direct Debit
642+
643+
* `external` - External'
644+
nullable: true
645+
oneOf:
646+
- $ref: '#/components/schemas/PaymentMethodEnum'
647+
- $ref: '#/components/schemas/NullEnum'
608648
ref_id:
609649
description: Order reference ID
610650
maxLength: 255
@@ -754,6 +794,10 @@ components:
754794
format: decimal
755795
pattern: ^-?\d{0,10}(?:\.\d{0,2})?$
756796
type: string
797+
product_id:
798+
description: The ID of the product
799+
nullable: true
800+
type: integer
757801
product_sku:
758802
description: Product's Stock Keeping Unit
759803
type: string
@@ -763,6 +807,10 @@ components:
763807
quantity:
764808
description: Total product units from the package
765809
type: integer
810+
variant_id:
811+
description: The ID of the product variant
812+
nullable: true
813+
type: integer
766814
required:
767815
- id
768816
- quantity

0 commit comments

Comments
 (0)