Skip to content

Commit 6789c85

Browse files
dariashkaashkarpetinninjasimonnoon-dawg
authored
feat(experimental): Add declined transactions report (#1570)
* feat(experimental): add declined transactions * feat(experimental): add schema * Trigger build * Update openapi.yaml * Remove samples * Update aggregation field * Update fields * Change value * Update openapi/components/schemas/ReportDeclinedTransactions.yaml Co-authored-by: Chris <[email protected]> * Update openapi/components/schemas/ReportDeclinedTransactions.yaml Co-authored-by: Chris <[email protected]> * Remove required * Update openapi/components/schemas/ReportDeclinedTransactions.yaml Co-authored-by: Chris <[email protected]> --------- Co-authored-by: Alexander Shkarpetin <[email protected]> Co-authored-by: Alexander Shkarpetin <[email protected]> Co-authored-by: Simon Sorich <[email protected]> Co-authored-by: Simon <[email protected]> Co-authored-by: Chris <[email protected]>
1 parent 36a0382 commit 6789c85

File tree

3 files changed

+93
-0
lines changed

3 files changed

+93
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
type: object
2+
properties:
3+
totalCount:
4+
description: Total number of declined transactions.
5+
type: integer
6+
example: 1500
7+
data:
8+
type: array
9+
items:
10+
type: object
11+
properties:
12+
message:
13+
description: Description or message related to the declined transactions report.
14+
type: string
15+
example: error
16+
count:
17+
description: Number of declined transactions.
18+
type: integer
19+
example: 500
20+
percentage:
21+
description: Percentage of declined transactions.
22+
type: number
23+
format: double
24+
example: 25.0

openapi/openapi.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,8 @@ paths:
11141114
$ref: ./paths/[email protected]
11151115
/experimental/reports/dcc-markup:
11161116
$ref: ./paths/[email protected]
1117+
/experimental/reports/declined-transactions:
1118+
$ref: ./paths/[email protected]
11171119
/experimental/reports/disputes:
11181120
$ref: ./paths/[email protected]
11191121
/experimental/reports/events-triggered:

openapi/paths/[email protected]

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
servers:
2+
- url: 'https://api-sandbox.rebilly.com/experimental/organizations/{organizationId}'
3+
description: Sandbox server
4+
variables:
5+
organizationId:
6+
default: unknown
7+
description: |-
8+
Unique organization identifier.
9+
An organization is an entity that represents a company.
10+
For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
11+
- url: 'https://api.rebilly.com/experimental/organizations/{organizationId}'
12+
description: Live server
13+
variables:
14+
organizationId:
15+
default: unknown
16+
description: |-
17+
Unique organization identifier.
18+
An organization is an entity that represents a company.
19+
For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
20+
get:
21+
x-badge: Experimental
22+
x-products:
23+
- Reports
24+
tags:
25+
- Reports
26+
summary: Retrieve a declined transactions report
27+
operationId: GetDeclinedTransactionsReport
28+
x-sdk-operation-name: getDeclinedTransactions
29+
description: Retrieves a report on declined transactions.
30+
parameters:
31+
- name: aggregationField
32+
in: query
33+
description: Report aggregation field.
34+
required: true
35+
schema:
36+
type: string
37+
enum:
38+
- gatewayResponseMessage
39+
- gatewayResponseOriginalMessage
40+
- name: periodStart
41+
in: query
42+
description: Date and time when the report starts.
43+
required: true
44+
schema:
45+
type: string
46+
format: date-time
47+
- name: periodEnd
48+
in: query
49+
description: Date and time when the report ends.
50+
required: true
51+
schema:
52+
type: string
53+
format: date-time
54+
- $ref: ../components/parameters/collectionLimit.yaml
55+
- $ref: ../components/parameters/collectionOffset.yaml
56+
- $ref: ../components/parameters/collectionFilter.yaml
57+
responses:
58+
'200':
59+
description: Report retrieved.
60+
content:
61+
application/json:
62+
schema:
63+
$ref: ../components/schemas/ReportDeclinedTransactions.yaml
64+
'401':
65+
$ref: ../components/responses/Unauthorized.yaml
66+
'403':
67+
$ref: ../components/responses/Forbidden.yaml

0 commit comments

Comments
 (0)