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:
Hrithikesh
2023-08-09 01:56:27 +05:30
committed by GitHub
parent bc401e7a1d
commit c333fb7fc0
38 changed files with 1082 additions and 336 deletions

View File

@@ -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,