feat(payouts): make payout_type optional in payouts table (#4954)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
chikke srujan
2024-06-12 19:54:52 +05:30
committed by GitHub
parent 4651584ecc
commit b847606d66
27 changed files with 98 additions and 60 deletions

View File

@ -14,7 +14,7 @@ pub struct Payouts {
pub merchant_id: String,
pub customer_id: id_type::CustomerId,
pub address_id: String,
pub payout_type: storage_enums::PayoutType,
pub payout_type: Option<storage_enums::PayoutType>,
pub payout_method_id: Option<String>,
pub amount: i64,
pub destination_currency: storage_enums::Currency,
@ -53,7 +53,7 @@ pub struct PayoutsNew {
pub merchant_id: String,
pub customer_id: id_type::CustomerId,
pub address_id: String,
pub payout_type: storage_enums::PayoutType,
pub payout_type: Option<storage_enums::PayoutType>,
pub payout_method_id: Option<String>,
pub amount: i64,
pub destination_currency: storage_enums::Currency,