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:
Narayan Bhat
2024-09-02 09:21:33 +05:30
committed by GitHub
parent 4b0564e0e8
commit 7296cceba3
150 changed files with 880 additions and 803 deletions

View File

@ -10603,58 +10603,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": [
@ -14422,7 +14370,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",
@ -14526,28 +14475,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": {