Skip to content

Commit

Permalink
Fix dispute schema (#1716)
Browse files Browse the repository at this point in the history
* Fix dispute schema

* Fix dispute schema

* Remove enum

* Remove example

* Make posted time not nullable

* Rollback reason codes
  • Loading branch information
ashkarpetin authored Dec 7, 2023
1 parent 5856250 commit cd6f1b3
Show file tree
Hide file tree
Showing 2 changed files with 248 additions and 177 deletions.
237 changes: 236 additions & 1 deletion openapi/components/requestBodies/Dispute.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,241 @@
content:
application/json:
schema:
$ref: ../schemas/Dispute.yaml
type: object
required:
- currency
- amount
- transactionId
- postedTime
- type
- status
- reasonCode
properties:
transactionId:
description: ID of the disputed transaction.
$ref: ../schemas/TransactionId.yaml
currency:
$ref: ../schemas/CurrencyCode.yaml
amount:
description: Dispute amount.
type: number
format: double
acquirerReferenceNumber:
description: Acquirer reference number for the dispute.
type:
- 'string'
- 'null'
caseId:
description: Case ID of the dispute.
type:
- 'string'
- 'null'
reasonCode:
description: Code used in the chargeback that describes the reason for the dispute.
type: string
enum:
- '0'
- '00'
- '1'
- '2'
- '3'
- '4'
- '5'
- '6'
- '7'
- '8'
- '9'
- '10.1'
- '10.2'
- '10.3'
- '10.4'
- '10.5'
- '11.1'
- '11.2'
- '11.3'
- '12'
- '12.1'
- '12.2'
- '12.3'
- '12.4'
- '12.5'
- '12.6'
- '12.7'
- '13.1'
- '13.2'
- '13.3'
- '13.4'
- '13.5'
- '13.6'
- '13.7'
- '13.8'
- '13.9'
- '30'
- '31'
- '34'
- '35'
- '37'
- '40'
- '41'
- '42'
- '46'
- '47'
- '49'
- '50'
- '51'
- '53'
- '54'
- '55'
- '57'
- '59'
- '60'
- '62'
- '63'
- '70'
- '71'
- '72'
- '73'
- '74'
- '75'
- '76'
- '77'
- '78'
- '79'
- '80'
- '81'
- '82'
- '83'
- '85'
- '86'
- '93'
- '98'
- '1000'
- '2700'
- '2702'
- 'A'
- 'A01'
- 'A02'
- 'A08'
- 'AL'
- 'AP'
- 'AW'
- 'B'
- 'C02'
- 'C04'
- 'C05'
- 'C08'
- 'C14'
- 'C18'
- 'C28'
- 'C31'
- 'C32'
- 'CA'
- 'CD'
- 'CR'
- 'DA'
- 'DP'
- 'DP1'
- 'EX'
- 'F10'
- 'F14'
- 'F22'
- 'F24'
- 'F29'
- 'FR1'
- 'FR4'
- 'FR6'
- 'IC'
- 'IN'
- 'IS'
- 'LP'
- 'M01'
- 'M10'
- 'M49'
- 'N'
- 'NA'
- 'NC'
- 'P'
- 'P01'
- 'P03'
- 'P04'
- 'P05'
- 'P07'
- 'P08'
- 'P22'
- 'P23'
- 'R03'
- 'R13'
- 'RG'
- 'RM'
- 'RN1'
- 'RN2'
- 'SV'
- 'TF'
- 'TNM'
- 'UA01'
- 'UA02'
- 'UA03'
- 'UA10'
- 'UA11'
- 'UA12'
- 'UA18'
- 'UA20'
- 'UA21'
- 'UA22'
- 'UA23'
- 'UA28'
- 'UA30'
- 'UA31'
- 'UA32'
- 'UA38'
- 'UA99'
- 'bank_cannot_process'
- 'credit_not_processed'
- 'customer_initiated'
- 'debit_not_authorized'
- 'duplicate'
- 'fraudulent'
- 'general'
- 'incorrect_account_details'
- 'insufficient_funds'
- 'pre-chargeback-alert'
- 'product_not_received'
- 'product_unacceptable'
- 'subscription_canceled'
- 'unrecognized'
type:
description: Type of dispute.
type: string
enum:
- information-request
- first-chargeback
- second-chargeback
- arbitration
- fraud
- ethoca-alert
- verifi-alert
- bank-return
status:
description: Status of the dispute.
type: string
enum:
- response-needed
- under-review
- forfeited
- won
- lost
- unknown
postedTime:
description: Date and time when the dispute is posted.
type: string
format: date-time
deadlineTime:
description: |-
Latest date and time by when a merchant must submit a representment for a dispute.
If the deadline is missed, the merchant loses the dispute.
type:
- 'string'
- 'null'
format: date-time
description: Dispute resource.
required: true
Loading

0 comments on commit cd6f1b3

Please sign in to comment.