You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
384 lines
12 KiB
384 lines
12 KiB
6 months ago
|
# Generated with protoc-gen-openapi
|
||
|
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
|
||
|
|
||
|
openapi: 3.0.3
|
||
|
info:
|
||
|
title: Greeter API
|
||
|
description: The greeting service definition.
|
||
|
version: 0.0.1
|
||
|
paths:
|
||
|
/alipay-g/callback:
|
||
|
post:
|
||
|
tags:
|
||
|
- Greeter
|
||
|
operationId: Greeter_AlipayGPayback
|
||
|
requestBody:
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: '#/components/schemas/api.AlipayGWebhook'
|
||
|
required: true
|
||
|
responses:
|
||
|
"200":
|
||
|
description: OK
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: '#/components/schemas/api.AlipayGPaybackResp'
|
||
|
/alipay-g/capture:
|
||
|
post:
|
||
|
tags:
|
||
|
- Greeter
|
||
|
operationId: Greeter_AlipayGCapture
|
||
|
requestBody:
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: '#/components/schemas/api.AlipayGWebhook'
|
||
|
required: true
|
||
|
responses:
|
||
|
"200":
|
||
|
description: OK
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: '#/components/schemas/api.AlipayGPaybackResp'
|
||
|
/country/list:
|
||
|
get:
|
||
|
tags:
|
||
|
- Greeter
|
||
|
operationId: Greeter_CountryList
|
||
|
responses:
|
||
|
"200":
|
||
|
description: OK
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: '#/components/schemas/api.CountryReply'
|
||
|
/district/cascade:
|
||
|
get:
|
||
|
tags:
|
||
|
- Greeter
|
||
|
operationId: Greeter_DistrictCascade
|
||
|
parameters:
|
||
|
- name: country
|
||
|
in: query
|
||
|
schema:
|
||
|
type: integer
|
||
|
format: int32
|
||
|
responses:
|
||
|
"200":
|
||
|
description: OK
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: '#/components/schemas/api.DistrictReply'
|
||
|
/pay/payouts:
|
||
|
post:
|
||
|
tags:
|
||
|
- Greeter
|
||
|
operationId: Greeter_PayoutsWebUrl
|
||
|
requestBody:
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: '#/components/schemas/api.PayoutRequest'
|
||
|
required: true
|
||
|
responses:
|
||
|
"200":
|
||
|
description: OK
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: '#/components/schemas/api.WebPayResponse'
|
||
|
/pay/transaction/outTradeNo:
|
||
|
get:
|
||
|
tags:
|
||
|
- Greeter
|
||
|
operationId: Greeter_GetPayTransaction
|
||
|
responses:
|
||
|
"200":
|
||
|
description: OK
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: '#/components/schemas/api.GetPayTransactionResp'
|
||
|
/paypal/callback:
|
||
|
post:
|
||
|
tags:
|
||
|
- Greeter
|
||
|
operationId: Greeter_PaypalPayback
|
||
|
requestBody:
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: '#/components/schemas/api.PaypalWebhook'
|
||
|
required: true
|
||
|
responses:
|
||
|
"200":
|
||
|
description: OK
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: '#/components/schemas/api.PaypalPaybackResp'
|
||
|
/ping:
|
||
|
get:
|
||
|
tags:
|
||
|
- Greeter
|
||
|
description: Sends a greeting
|
||
|
operationId: Greeter_Ping
|
||
|
responses:
|
||
|
"200":
|
||
|
description: OK
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: '#/components/schemas/api.PingReply'
|
||
|
components:
|
||
|
schemas:
|
||
|
api.AlipayGAmount:
|
||
|
type: object
|
||
|
properties:
|
||
|
value:
|
||
|
type: string
|
||
|
currency:
|
||
|
type: string
|
||
|
api.AlipayGPaybackResp:
|
||
|
type: object
|
||
|
properties:
|
||
|
result:
|
||
|
$ref: '#/components/schemas/api.AlipayGResult'
|
||
|
api.AlipayGResult:
|
||
|
type: object
|
||
|
properties:
|
||
|
resultCode:
|
||
|
type: string
|
||
|
resultStatus:
|
||
|
type: string
|
||
|
resultMessage:
|
||
|
type: string
|
||
|
api.AlipayGWebhook:
|
||
|
type: object
|
||
|
properties:
|
||
|
notifyType:
|
||
|
type: string
|
||
|
result:
|
||
|
$ref: '#/components/schemas/api.AlipayGResult'
|
||
|
paymentRequestId:
|
||
|
type: string
|
||
|
paymentId:
|
||
|
type: string
|
||
|
paymentAmount:
|
||
|
$ref: '#/components/schemas/api.AlipayGAmount'
|
||
|
paymentCreateTime:
|
||
|
type: string
|
||
|
paymentTime:
|
||
|
type: string
|
||
|
captureRequestId:
|
||
|
type: string
|
||
|
captureId:
|
||
|
type: string
|
||
|
captureAmount:
|
||
|
$ref: '#/components/schemas/api.AlipayGAmount'
|
||
|
captureTime:
|
||
|
type: string
|
||
|
refundStatus:
|
||
|
type: string
|
||
|
refundRequestId:
|
||
|
type: string
|
||
|
refundId:
|
||
|
type: string
|
||
|
refundAmount:
|
||
|
$ref: '#/components/schemas/api.AlipayGAmount'
|
||
|
refundTime:
|
||
|
type: string
|
||
|
grossSettlementAmount:
|
||
|
$ref: '#/components/schemas/api.AlipayGAmount'
|
||
|
settlementQuote:
|
||
|
$ref: '#/components/schemas/api.AlipayQuote'
|
||
|
api.AlipayQuote:
|
||
|
type: object
|
||
|
properties:
|
||
|
guaranteed:
|
||
|
type: boolean
|
||
|
quoteCurrencyPair:
|
||
|
type: string
|
||
|
quoteExpiryTime:
|
||
|
type: string
|
||
|
quoteId:
|
||
|
type: string
|
||
|
quotePrice:
|
||
|
type: number
|
||
|
format: double
|
||
|
quoteStartTime:
|
||
|
type: string
|
||
|
api.BatchHeader:
|
||
|
type: object
|
||
|
properties:
|
||
|
batchStatus:
|
||
|
type: string
|
||
|
payoutBatchId:
|
||
|
type: string
|
||
|
senderBatchHeader:
|
||
|
$ref: '#/components/schemas/api.SenderBatchHeader'
|
||
|
api.Capture:
|
||
|
type: object
|
||
|
properties:
|
||
|
id:
|
||
|
type: string
|
||
|
status:
|
||
|
type: string
|
||
|
createTime:
|
||
|
type: string
|
||
|
updateTime:
|
||
|
type: string
|
||
|
api.Country:
|
||
|
type: object
|
||
|
properties:
|
||
|
id:
|
||
|
type: integer
|
||
|
format: int32
|
||
|
name:
|
||
|
type: string
|
||
|
api.CountryReply:
|
||
|
type: object
|
||
|
properties:
|
||
|
list:
|
||
|
type: array
|
||
|
items:
|
||
|
$ref: '#/components/schemas/api.Country'
|
||
|
api.District:
|
||
|
type: object
|
||
|
properties:
|
||
|
label:
|
||
|
type: string
|
||
|
adcode:
|
||
|
type: string
|
||
|
parentId:
|
||
|
type: integer
|
||
|
format: int32
|
||
|
children:
|
||
|
type: array
|
||
|
items:
|
||
|
$ref: '#/components/schemas/api.District'
|
||
|
api.DistrictReply:
|
||
|
type: object
|
||
|
properties:
|
||
|
list:
|
||
|
type: array
|
||
|
items:
|
||
|
$ref: '#/components/schemas/api.District'
|
||
|
api.GetPayTransaction:
|
||
|
type: object
|
||
|
properties:
|
||
|
appid:
|
||
|
type: string
|
||
|
mchid:
|
||
|
type: string
|
||
|
api.GetPayTransactionResp:
|
||
|
type: object
|
||
|
properties:
|
||
|
data:
|
||
|
$ref: '#/components/schemas/api.GetPayTransaction'
|
||
|
api.PaybackResource:
|
||
|
type: object
|
||
|
properties:
|
||
|
id:
|
||
|
type: string
|
||
|
createTime:
|
||
|
type: string
|
||
|
updateTime:
|
||
|
type: string
|
||
|
state:
|
||
|
type: string
|
||
|
status:
|
||
|
type: string
|
||
|
purchaseUnits:
|
||
|
type: array
|
||
|
items:
|
||
|
$ref: '#/components/schemas/api.PurchaseUnit'
|
||
|
batchHeader:
|
||
|
$ref: '#/components/schemas/api.BatchHeader'
|
||
|
api.Payment:
|
||
|
type: object
|
||
|
properties:
|
||
|
captures:
|
||
|
type: array
|
||
|
items:
|
||
|
$ref: '#/components/schemas/api.Capture'
|
||
|
api.PayoutRequest:
|
||
|
type: object
|
||
|
properties:
|
||
|
appid:
|
||
|
type: string
|
||
|
mchid:
|
||
|
type: string
|
||
|
outTradeNo:
|
||
|
type: string
|
||
|
attach:
|
||
|
type: string
|
||
|
notifyUrl:
|
||
|
type: string
|
||
|
amount:
|
||
|
type: number
|
||
|
format: double
|
||
|
currency:
|
||
|
type: string
|
||
|
payChannel:
|
||
|
type: string
|
||
|
paypalName:
|
||
|
type: string
|
||
|
api.PaypalPaybackResp:
|
||
|
type: object
|
||
|
properties:
|
||
|
outTradeNo:
|
||
|
type: string
|
||
|
tradeState:
|
||
|
type: string
|
||
|
message:
|
||
|
type: string
|
||
|
api.PaypalWebhook:
|
||
|
type: object
|
||
|
properties:
|
||
|
id:
|
||
|
type: string
|
||
|
createTime:
|
||
|
type: string
|
||
|
resourceType:
|
||
|
type: string
|
||
|
eventType:
|
||
|
type: string
|
||
|
summary:
|
||
|
type: string
|
||
|
resource:
|
||
|
$ref: '#/components/schemas/api.PaybackResource'
|
||
|
api.PingReply:
|
||
|
type: object
|
||
|
properties:
|
||
|
message:
|
||
|
type: string
|
||
|
description: The response message containing the greetings
|
||
|
api.PurchaseUnit:
|
||
|
type: object
|
||
|
properties:
|
||
|
payments:
|
||
|
$ref: '#/components/schemas/api.Payment'
|
||
|
api.SenderBatchHeader:
|
||
|
type: object
|
||
|
properties:
|
||
|
senderBatchId:
|
||
|
type: string
|
||
|
api.WebPayResponse:
|
||
|
type: object
|
||
|
properties:
|
||
|
payChannel:
|
||
|
type: string
|
||
|
payId:
|
||
|
type: string
|
||
|
payReturn:
|
||
|
type: string
|
||
|
payStatus:
|
||
|
type: string
|
||
|
tags:
|
||
|
- name: Greeter
|