Skip to content

Commit 2e620cb

Browse files
committed
refactor: resolve comments
1 parent 0bf36a5 commit 2e620cb

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

crates/diesel_models/src/payment_attempt.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ pub struct PaymentAttempt {
8989
pub capture_before: Option<PrimitiveDateTime>,
9090
pub card_discovery: Option<storage_enums::CardDiscovery>,
9191
pub charges: Option<common_types::payments::ConnectorChargeResponseData>,
92-
pub setup_future_usage: Option<storage_enums::FutureUsage>,
9392
pub payment_method_type_v2: storage_enums::PaymentMethod,
9493
pub connector_payment_id: Option<ConnectorTransactionId>,
9594
pub payment_method_subtype: Option<storage_enums::PaymentMethodType>,

crates/diesel_models/src/schema_v2.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,6 @@ diesel::table! {
874874
capture_before -> Nullable<Timestamp>,
875875
card_discovery -> Nullable<CardDiscovery>,
876876
charges -> Nullable<Jsonb>,
877-
setup_future_usage -> Nullable<FutureUsage>,
878877
payment_method_type_v2 -> Varchar,
879878
#[max_length = 128]
880879
connector_payment_id -> Nullable<Varchar>,

crates/hyperswitch_domain_models/src/payments/payment_attempt.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2194,7 +2194,6 @@ impl behaviour::Conversion for PaymentAttempt {
21942194
network_error_message: error
21952195
.as_ref()
21962196
.and_then(|details| details.network_error_message.clone()),
2197-
setup_future_usage: None,
21982197
})
21992198
}
22002199

v2_migrations/2025-01-13-081847_drop_v1_columns/up.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ ALTER TABLE payment_attempt DROP COLUMN attempt_id,
9191
DROP COLUMN connector_mandate_detail,
9292
DROP COLUMN charge_id,
9393
DROP COLUMN issuer_error_code,
94-
DROP COLUMN issuer_error_message;
94+
DROP COLUMN issuer_error_message,
95+
DROP COLUMN setup_future_usage;
9596

9697

9798
ALTER TABLE payment_methods

0 commit comments

Comments
 (0)