mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove now gone orders/{order_number} endpoint and its models, may be readded in the near future but the models may be different as these docs refer to the now gone spree_api order rabl representation
This commit is contained in:
215
swagger.yaml
215
swagger.yaml
@@ -363,26 +363,6 @@ paths:
|
||||
pagination:
|
||||
type: string
|
||||
|
||||
/orders/{order_number}:
|
||||
get:
|
||||
description: Gets the Order with the given number.
|
||||
tags:
|
||||
- orders
|
||||
parameters:
|
||||
- in: path
|
||||
name: order_number
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
description: Alphanumeric string identifier for the Order.
|
||||
responses:
|
||||
'200':
|
||||
description: successful operation
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Order_Verbose'
|
||||
|
||||
/taxonomies:
|
||||
get:
|
||||
description: Gets all Taxonomies.
|
||||
@@ -826,30 +806,6 @@ components:
|
||||
type: integer
|
||||
parent_id:
|
||||
type: integer
|
||||
State:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
abbr:
|
||||
type: string
|
||||
id:
|
||||
type: integer
|
||||
country_id:
|
||||
type: integer
|
||||
Country:
|
||||
type: object
|
||||
properties:
|
||||
count:
|
||||
type: integer
|
||||
current_page:
|
||||
type: integer
|
||||
pages:
|
||||
type: string
|
||||
countries:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
Cookies_Consent:
|
||||
type: object
|
||||
properties:
|
||||
@@ -909,173 +865,4 @@ components:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
Order_Verbose:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
number:
|
||||
type: string
|
||||
item_total:
|
||||
type: string
|
||||
total:
|
||||
type: string
|
||||
state:
|
||||
type: string
|
||||
adjustment_total:
|
||||
type: string
|
||||
user_id:
|
||||
type: integer
|
||||
created_at:
|
||||
type: string
|
||||
updated_at:
|
||||
type: string
|
||||
completed_at:
|
||||
type: string
|
||||
payment_total:
|
||||
type: string
|
||||
shipment_state:
|
||||
type: string
|
||||
payment_state:
|
||||
type: string
|
||||
email:
|
||||
type: string
|
||||
special_instructions:
|
||||
type: string
|
||||
bill_address:
|
||||
$ref: '#/components/schemas/Address'
|
||||
ship_address:
|
||||
$ref: '#/components/schemas/Address'
|
||||
line_items:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Product'
|
||||
payments:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Payment'
|
||||
shipments:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Shipment'
|
||||
adjustments:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Adjustment'
|
||||
credit_cards:
|
||||
type: array
|
||||
items: {}
|
||||
|
||||
Address:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
firstname:
|
||||
type: string
|
||||
lastname:
|
||||
type: string
|
||||
address1:
|
||||
type: string
|
||||
address2:
|
||||
type: string
|
||||
city:
|
||||
type: string
|
||||
zipcode:
|
||||
type: string
|
||||
phone:
|
||||
type: string
|
||||
company:
|
||||
type: string
|
||||
alternative_phone:
|
||||
type: string
|
||||
country_id:
|
||||
type: integer
|
||||
state_id:
|
||||
type: integer
|
||||
state_name:
|
||||
type: string
|
||||
country:
|
||||
$ref: '#/components/schemas/Country'
|
||||
state:
|
||||
$ref: '#/components/schemas/State'
|
||||
Payment:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
amount:
|
||||
type: string
|
||||
state:
|
||||
type: string
|
||||
payment_method_id:
|
||||
type: integer
|
||||
payment_method:
|
||||
$ref: '#/components/schemas/Payment_Method'
|
||||
Payment_Method:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
environment:
|
||||
type: string
|
||||
Shipment:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
tracking:
|
||||
type: string
|
||||
number:
|
||||
type: string
|
||||
cost:
|
||||
type: string
|
||||
shipped_at:
|
||||
type: string
|
||||
state:
|
||||
type: string
|
||||
order_id:
|
||||
type: string
|
||||
shipping_method:
|
||||
$ref: '#/components/schemas/Shipping_Method'
|
||||
Shipping_Method:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
zone_id:
|
||||
type: integer
|
||||
shipping_category_id:
|
||||
type: string
|
||||
Adjustment:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
source_type:
|
||||
type: string
|
||||
source_id:
|
||||
type: integer
|
||||
adjustable_type:
|
||||
type: string
|
||||
adjustable_id:
|
||||
type: integer
|
||||
originator_type:
|
||||
type: string
|
||||
originator_id:
|
||||
type: integer
|
||||
amount:
|
||||
type: string
|
||||
label:
|
||||
type: string
|
||||
mandatory:
|
||||
type: boolean
|
||||
eligible:
|
||||
type: boolean
|
||||
created_at:
|
||||
type: string
|
||||
updated_at:
|
||||
type: string
|
||||
type: integer
|
||||
Reference in New Issue
Block a user