Commit e2591850 authored by 杨春程's avatar 杨春程

update

parent 34fac26d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# as a demonstration of an API spec in YAML # as a demonstration of an API spec in YAML
swagger: '2.0' swagger: '2.0'
info: info:
title: api/settlement/create title: Backend
description: 下单 description: 下单
version: "1.0.0" version: "1.0.0"
# the domain of the service # the domain of the service
...@@ -110,34 +110,17 @@ paths: ...@@ -110,34 +110,17 @@ paths:
description: Unexpected error description: Unexpected error
schema: schema:
$ref: '#/definitions/Error' $ref: '#/definitions/Error'
/estimates/time: /pay/unified/refund:
get: post:
summary: Time Estimates summary: 统一退款入口
description: The Time Estimates endpoint returns ETAs for all products offered at a given location, with the responses expressed as integers in seconds. We recommend that this endpoint be called every minute to provide the most accurate, up-to-date ETAs. description: 支付宝、微信、applePay、分期 根据订单pyament_channel 区分
parameters: parameters:
- name: start_latitude - name: order_id
in: query
description: Latitude component of start location.
required: true
type: number
format: double
- name: start_longitude
in: query in: query
description: Longitude component of start location. description: 被退款的订单id.
required: true required: true
type: number type: number
format: double format: integer
- name: customer_uuid
in: query
type: string
format: uuid
description: Unique customer identifier to be used for experience customization.
- name: product_id
in: query
type: string
description: Unique identifier representing a specific product for a given latitude & longitude.
tags:
- Estimates
responses: responses:
200: 200:
description: An array of products description: An array of products
...@@ -149,43 +132,21 @@ paths: ...@@ -149,43 +132,21 @@ paths:
description: Unexpected error description: Unexpected error
schema: schema:
$ref: '#/definitions/Error' $ref: '#/definitions/Error'
/me: /pay/unified/cashback:
get: post:
summary: User Profile summary: 统一返现入口
description: The User Profile endpoint returns information about the Uber user that has authorized with the application. description: 支付宝、微信、applePay 分期不支持返现 根据订单pyament_channel 区分
tags:
- User
responses:
200:
description: Profile information for a user
schema:
$ref: '#/definitions/Profile'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/history:
get:
summary: User Activity
description: The User Activity endpoint returns data about a user's lifetime activity with Uber. The response will include pickup locations and times, dropoff locations and times, the distance of past requests, and information about which products were requested.<br><br>The history array in the response will have a maximum length based on the limit parameter. The response value count may exceed limit, therefore subsequent API requests may be necessary.
parameters: parameters:
- name: offset - name: order_id
in: query
type: integer
format: int32
description: Offset the list of returned results by this amount. Default is zero.
- name: limit
in: query in: query
type: integer description: 被退款的订单id.
format: int32 required: true
description: Number of items to retrieve. Default is 5, maximum is 100. type: number
tags:
- User
responses: responses:
200: 200:
description: History information for the given user description: Profile information for a user
schema: schema:
$ref: '#/definitions/Activities' $ref: '#/definitions/Profile'
default: default:
description: Unexpected error description: Unexpected error
schema: schema:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment