Skip to content

Commit

Permalink
Merge pull request #473 from websideproject/dev
Browse files Browse the repository at this point in the history
Fix adjustment options
  • Loading branch information
bgervan authored Sep 23, 2024
2 parents f837e4e + 7e358f9 commit 8d6c19e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions paddle_billing_client/models/adjustment.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ class AdjustmentAction(str, Enum):
credit = "credit"
chargeback = "chargeback"
chargeback_warning = "chargeback_warning"
chargeback_reverse = "chargeback_reverse"
credit_reverse = "credit_reverse"


class AdjustmentStatus(str, Enum):
pending_approval = "pending_approval"
approved = "approved"
rejected = "rejected"
reversed = "reversed"


class AdjustmentItemProration(BaseModel):
Expand Down Expand Up @@ -61,6 +64,7 @@ class Adjustment(AdjustmentBase):
status: AdjustmentStatus
totals: dict
payout_totals: dict | None = None
tax_rates_used: list[dict] | None = None
created_at: datetime
updated_at: datetime

Expand Down
2 changes: 1 addition & 1 deletion paddle_billing_client/models/price.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class TrialPeriod(BaseModel):
class PriceBase(BaseModel):
description: str
product_id: str | None = None
unit_price: UnitPrice
billing_cycle: BillingCycle | None = None
trial_period: TrialPeriod | None = None
tax_mode: str
Expand All @@ -49,7 +50,6 @@ class PriceBase(BaseModel):

class Price(PriceBase):
id: str
unit_price: UnitPrice
status: str | None = None
import_meta: ImportMeta | None = None

Expand Down

0 comments on commit 8d6c19e

Please sign in to comment.