forked from bcgov/jag-dps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
payment-service.swagger.yml
131 lines (131 loc) · 3.16 KB
/
payment-service.swagger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
swagger: '2.0'
info:
description: A Payment Service API
version: 0.0.1
title: DPS Payment service API
host: 'localhost:8080'
basePath: /paymentservice
tags:
- name: calculate-single-payment-controller
description: Calculate Single Payment Controller
- name: crc-controller
description: Crc Controller
paths:
/getBeanstreamEndpoints:
get:
tags:
- PaymentServices
summary: Generates application callback endpoints for Payment Service
operationId: getBeanstreamEndpointsUsingGET
consumes:
- application/json
produces:
- application/xml
responses:
'200':
description: Successful operation
schema:
$ref: '#/definitions/BeanstreamEndpointResponse'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
/getSinglePaymentURL:
get:
tags:
- PaymentServices
summary: Generate a Payment endpoint URL
operationId: singlepaymenturlUsingGET
consumes:
- application/json
produces:
- application/xml
parameters:
- name: transType
in: query
description: transType
required: true
type: string
- name: invoiceNumber
in: query
description: invoiceNumber
required: true
type: string
- name: approvedPage
in: query
description: approvedPage
required: true
type: string
- name: declinedPage
in: query
description: declinedPage
required: true
type: string
- in: query
name: errorPage
description: errorPage
required: true
type: string
- in: query
name: totalItemsAmount
description: totalItemsAmount
required: true
type: string
- name: ref1
in: query
description: ref1
required: false
type: string
- name: ref2
in: query
description: ref2
required: false
type: string
- name: ref3
in: query
description: ref3
required: false
type: string
- name: minutesToExpire
in: query
description: minutesToExpire
required: true
type: string
responses:
'200':
description: Successful operation
schema:
$ref: '#/definitions/SinglePaymentResponse'
'401':
description: Unauthorized
'403':
description: Forbidden
'404':
description: Not Found
definitions:
SinglePaymentResponse:
type: object
properties:
respCode:
type: integer
format: int32
respMsg:
type: string
respValue:
type: string
BeanstreamEndpointResponse:
type: object
properties:
approved:
type: string
declined:
type: string
error:
type: string
respCode:
type: integer
format: int32
respMsg:
type: string