Skip to content

Commit bb7097f

Browse files
Settled doesn't not exists for payouts, it's Executed
1 parent 642aafc commit bb7097f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/apis/merchant_accounts/api.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,9 @@ mod tests {
774774
"currency": "GBP",
775775
"amount_in_minor": 100,
776776
"type": "payout",
777-
"status": "settled",
777+
"status": "executed",
778778
"created_at": &now,
779-
"settled_at": &now,
779+
"executed_at": &now,
780780
"beneficiary": {
781781
"type": "payment_source",
782782
"user_id": "payout-user-id",
@@ -867,7 +867,7 @@ mod tests {
867867
currency: Currency::Gbp,
868868
amount_in_minor: 100,
869869
r#type: TransactionType::Payout {
870-
status: TransactionPayoutStatus::Settled { settled_at: now },
870+
status: TransactionPayoutStatus::Executed { executed_at: now },
871871
created_at: now,
872872
beneficiary: PayoutBeneficiary::PaymentSource {
873873
user_id: "payout-user-id".to_string(),

src/apis/merchant_accounts/model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pub enum TransactionPayinStatus {
102102
#[serde(tag = "status", rename_all = "snake_case")]
103103
pub enum TransactionPayoutStatus {
104104
Pending,
105-
Settled { settled_at: DateTime<Utc> },
105+
Executed { executed_at: DateTime<Utc> },
106106
}
107107

108108
#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq, Hash)]

0 commit comments

Comments
 (0)