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:
luisramos0
2019-09-11 11:33:33 +01:00
parent 5634f4af18
commit 0e4b5ad9ec

View File

@@ -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