Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Finish impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Nov 22, 2023
1 parent b94df62 commit c369f78
Show file tree
Hide file tree
Showing 14 changed files with 932 additions and 116 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ STEAM_API_KEY=none
TREMENDOUS_API_URL=https://testflight.tremendous.com/api/v2/
TREMENDOUS_API_KEY=none
TREMENDOUS_PRIVATE_KEY=none
TREMENDOUS_CAMPAIGN_ID=none

TURNSTILE_SECRET=none

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

140 changes: 140 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ woothee = "0.13.0"
lettre = "0.10.4"

derive-new = "0.5.9"
rust_iso3166 = "0.1.11"

[dev-dependencies]
actix-http = "3.4.0"
6 changes: 3 additions & 3 deletions src/database/models/payout_item.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::models::payouts::{PayoutMethod, PayoutStatus};
use crate::models::payouts::{PayoutMethodType, PayoutStatus};
use chrono::{DateTime, Utc};
use rust_decimal::Decimal;
use serde::{Deserialize, Serialize};
Expand All @@ -14,7 +14,7 @@ pub struct Payout {
pub amount: Decimal,

pub fee: Option<Decimal>,
pub method: Option<PayoutMethod>,
pub method: Option<PayoutMethodType>,
pub method_address: Option<String>,
pub platform_id: Option<String>,
}
Expand Down Expand Up @@ -82,7 +82,7 @@ impl Payout {
created: r.created,
status: PayoutStatus::from_string(&r.status),
amount: r.amount,
method: r.method.map(|x| PayoutMethod::from_string(&x)),
method: r.method.map(|x| PayoutMethodType::from_string(&x)),
method_address: r.method_address,
platform_id: r.platform_id,
fee: r.fee,
Expand Down
Loading

0 comments on commit c369f78

Please sign in to comment.