mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
refactor(payment_id): add payment id domain type (#5738)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -14616,58 +14616,6 @@
|
||||
"display_wait_screen"
|
||||
]
|
||||
},
|
||||
"PaymentIdType": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"PaymentIntentId"
|
||||
],
|
||||
"properties": {
|
||||
"PaymentIntentId": {
|
||||
"type": "string",
|
||||
"description": "The identifier for payment intent"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"ConnectorTransactionId"
|
||||
],
|
||||
"properties": {
|
||||
"ConnectorTransactionId": {
|
||||
"type": "string",
|
||||
"description": "The identifier for connector transaction"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"PaymentAttemptId"
|
||||
],
|
||||
"properties": {
|
||||
"PaymentAttemptId": {
|
||||
"type": "string",
|
||||
"description": "The identifier for payment attempt"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"PreprocessingId"
|
||||
],
|
||||
"properties": {
|
||||
"PreprocessingId": {
|
||||
"type": "string",
|
||||
"description": "The identifier for preprocessing step"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"PaymentLinkConfig": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@ -18435,7 +18383,8 @@
|
||||
],
|
||||
"properties": {
|
||||
"resource_id": {
|
||||
"$ref": "#/components/schemas/PaymentIdType"
|
||||
"type": "string",
|
||||
"description": "The type of ID (ex: payment intent id, payment attempt id or connector txn id)"
|
||||
},
|
||||
"merchant_id": {
|
||||
"type": "string",
|
||||
@ -18539,28 +18488,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"PaymentsStartRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"payment_id",
|
||||
"merchant_id",
|
||||
"attempt_id"
|
||||
],
|
||||
"properties": {
|
||||
"payment_id": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier for the payment. This ensures idempotency for multiple payments\nthat have been done by a single merchant. This field is auto generated and is returned in the API response."
|
||||
},
|
||||
"merchant_id": {
|
||||
"type": "string",
|
||||
"description": "The identifier for the Merchant Account."
|
||||
},
|
||||
"attempt_id": {
|
||||
"type": "string",
|
||||
"description": "The identifier for the payment transaction"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PaymentsUpdateRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user