mirror of
https://github.com/Such-Software/xmrcheckout.git
synced 2026-10-17 05:51:34 +02:00
Set default invoice expiry to 60 minutes
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ API_KEYS = [
|
||||
|
||||
API_KEY_ENCRYPTION_KEY = _get_env("API_KEY_ENCRYPTION_KEY")
|
||||
INVOICE_RECONCILE_INTERVAL_SECONDS = int(os.getenv("INVOICE_RECONCILE_INTERVAL_SECONDS", "30"))
|
||||
INVOICE_DEFAULT_EXPIRY_HOURS = int(os.getenv("INVOICE_DEFAULT_EXPIRY_HOURS", "24"))
|
||||
INVOICE_DEFAULT_EXPIRY_HOURS = int(os.getenv("INVOICE_DEFAULT_EXPIRY_HOURS", "1"))
|
||||
LATE_PAYMENT_LOOKBACK_HOURS = int(os.getenv("LATE_PAYMENT_LOOKBACK_HOURS", "48"))
|
||||
DONATION_EXPIRY_MINUTES = int(os.getenv("DONATION_EXPIRY_MINUTES", "30"))
|
||||
DONATION_ACTIVE_INVOICE_LIMIT = int(os.getenv("DONATION_ACTIVE_INVOICE_LIMIT", "25"))
|
||||
|
||||
+2
-2
@@ -29,7 +29,7 @@ class InvoiceCreate(BaseModel):
|
||||
metadata: dict[str, Any] | None = None
|
||||
expires_at: datetime | None = Field(
|
||||
default=None,
|
||||
description="Defaults to 24 hours from creation if omitted.",
|
||||
description="Defaults to 60 minutes from creation if omitted.",
|
||||
)
|
||||
|
||||
@field_validator("currency")
|
||||
@@ -93,7 +93,7 @@ class InvoiceCreateUser(BaseModel):
|
||||
metadata: dict[str, Any] | None = None
|
||||
expires_at: datetime | None = Field(
|
||||
default=None,
|
||||
description="Defaults to 24 hours from creation if omitted.",
|
||||
description="Defaults to 60 minutes from creation if omitted.",
|
||||
)
|
||||
|
||||
@field_validator("currency")
|
||||
|
||||
Reference in New Issue
Block a user