mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-11 18:59:20 +08:00
feat(router): add support for multiple partial capture (#1721)
Co-authored-by: hrithikeshvm <vmhrithikesh@gmail.com> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@@ -53,6 +53,39 @@ diesel::table! {
|
||||
}
|
||||
}
|
||||
|
||||
diesel::table! {
|
||||
use diesel::sql_types::*;
|
||||
use crate::enums::diesel_exports::*;
|
||||
|
||||
captures (capture_id) {
|
||||
#[max_length = 64]
|
||||
capture_id -> Varchar,
|
||||
#[max_length = 64]
|
||||
payment_id -> Varchar,
|
||||
#[max_length = 64]
|
||||
merchant_id -> Varchar,
|
||||
status -> CaptureStatus,
|
||||
amount -> Int8,
|
||||
currency -> Nullable<Currency>,
|
||||
#[max_length = 255]
|
||||
connector -> Nullable<Varchar>,
|
||||
#[max_length = 255]
|
||||
error_message -> Nullable<Varchar>,
|
||||
#[max_length = 255]
|
||||
error_code -> Nullable<Varchar>,
|
||||
#[max_length = 255]
|
||||
error_reason -> Nullable<Varchar>,
|
||||
tax_amount -> Nullable<Int8>,
|
||||
created_at -> Timestamp,
|
||||
modified_at -> Timestamp,
|
||||
#[max_length = 64]
|
||||
authorized_attempt_id -> Varchar,
|
||||
#[max_length = 128]
|
||||
connector_transaction_id -> Nullable<Varchar>,
|
||||
capture_sequence -> Int2,
|
||||
}
|
||||
}
|
||||
|
||||
diesel::table! {
|
||||
use diesel::sql_types::*;
|
||||
use crate::enums::diesel_exports::*;
|
||||
@@ -466,6 +499,7 @@ diesel::table! {
|
||||
preprocessing_step_id -> Nullable<Varchar>,
|
||||
mandate_details -> Nullable<Jsonb>,
|
||||
error_reason -> Nullable<Text>,
|
||||
multiple_capture_count -> Nullable<Int2>,
|
||||
#[max_length = 128]
|
||||
connector_response_reference_id -> Nullable<Varchar>,
|
||||
}
|
||||
@@ -718,6 +752,7 @@ diesel::table! {
|
||||
diesel::allow_tables_to_appear_in_same_query!(
|
||||
address,
|
||||
api_keys,
|
||||
captures,
|
||||
cards_info,
|
||||
configs,
|
||||
connector_response,
|
||||
|
||||
Reference in New Issue
Block a user