Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"standardwebhooks": ">=1.0.1,<2"
}
},
"originGitCommit": "0c5b4feddaeb1a84823edea6fa71e78ffc5fa673",
"originGitCommit": "ceb022c72b137db1e3e81f33c39fea074f6bd77a",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "2.0.0",
Expand Down
8 changes: 7 additions & 1 deletion .fern/replay.lock

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

2 changes: 1 addition & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -15901,7 +15901,7 @@ client.disputes.list()
<dl>
<dd>

**status:** `typing.Optional[typing.Union[ListDisputesRequestStatusItem, typing.Sequence[ListDisputesRequestStatusItem]]]` — Only disputes in these statuses. Repeat the parameter to pass several — one paginated list covers all of them. Covers both chargebacks and inquiries at each stage. A `needs_response` dispute whose evidence deadline has passed reports and filters as `under_review` instead.
**status:** `typing.Optional[typing.Union[ListDisputesRequestStatusItem, typing.Sequence[ListDisputesRequestStatusItem]]]` — Only disputes in these statuses. Repeat the parameter to pass several — one paginated list covers all of them. Inquiries match only the `warning_` statuses. A `needs_response` dispute whose evidence deadline has passed reports and filters as `under_review` instead.

</dd>
</dl>
Expand Down
4 changes: 2 additions & 2 deletions src/whop_sdk/disputes/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def list(
Sort direction.

status : typing.Optional[typing.Union[ListDisputesRequestStatusItem, typing.Sequence[ListDisputesRequestStatusItem]]]
Only disputes in these statuses. Repeat the parameter to pass several — one paginated list covers all of them. Covers both chargebacks and inquiries at each stage. A `needs_response` dispute whose evidence deadline has passed reports and filters as `under_review` instead.
Only disputes in these statuses. Repeat the parameter to pass several — one paginated list covers all of them. Inquiries match only the `warning_` statuses. A `needs_response` dispute whose evidence deadline has passed reports and filters as `under_review` instead.

currency : typing.Optional[str]
Only disputes in this three-letter ISO currency.
Expand Down Expand Up @@ -416,7 +416,7 @@ async def list(
Sort direction.

status : typing.Optional[typing.Union[ListDisputesRequestStatusItem, typing.Sequence[ListDisputesRequestStatusItem]]]
Only disputes in these statuses. Repeat the parameter to pass several — one paginated list covers all of them. Covers both chargebacks and inquiries at each stage. A `needs_response` dispute whose evidence deadline has passed reports and filters as `under_review` instead.
Only disputes in these statuses. Repeat the parameter to pass several — one paginated list covers all of them. Inquiries match only the `warning_` statuses. A `needs_response` dispute whose evidence deadline has passed reports and filters as `under_review` instead.

currency : typing.Optional[str]
Only disputes in this three-letter ISO currency.
Expand Down
4 changes: 2 additions & 2 deletions src/whop_sdk/disputes/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def list(
Sort direction.

status : typing.Optional[typing.Union[ListDisputesRequestStatusItem, typing.Sequence[ListDisputesRequestStatusItem]]]
Only disputes in these statuses. Repeat the parameter to pass several — one paginated list covers all of them. Covers both chargebacks and inquiries at each stage. A `needs_response` dispute whose evidence deadline has passed reports and filters as `under_review` instead.
Only disputes in these statuses. Repeat the parameter to pass several — one paginated list covers all of them. Inquiries match only the `warning_` statuses. A `needs_response` dispute whose evidence deadline has passed reports and filters as `under_review` instead.

currency : typing.Optional[str]
Only disputes in this three-letter ISO currency.
Expand Down Expand Up @@ -693,7 +693,7 @@ async def list(
Sort direction.

status : typing.Optional[typing.Union[ListDisputesRequestStatusItem, typing.Sequence[ListDisputesRequestStatusItem]]]
Only disputes in these statuses. Repeat the parameter to pass several — one paginated list covers all of them. Covers both chargebacks and inquiries at each stage. A `needs_response` dispute whose evidence deadline has passed reports and filters as `under_review` instead.
Only disputes in these statuses. Repeat the parameter to pass several — one paginated list covers all of them. Inquiries match only the `warning_` statuses. A `needs_response` dispute whose evidence deadline has passed reports and filters as `under_review` instead.

currency : typing.Optional[str]
Only disputes in this three-letter ISO currency.
Expand Down
12 changes: 11 additions & 1 deletion src/whop_sdk/disputes/types/list_disputes_request_status_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,15 @@
import typing

ListDisputesRequestStatusItem = typing.Union[
typing.Literal["needs_response", "under_review", "won", "lost", "closed"], typing.Any
typing.Literal[
"needs_response",
"warning_needs_response",
"under_review",
"warning_under_review",
"won",
"lost",
"closed",
"warning_closed",
],
typing.Any,
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,15 @@
import typing

SummaryDisputesRequestStatusItem = typing.Union[
typing.Literal["needs_response", "under_review", "won", "lost", "closed"], typing.Any
typing.Literal[
"needs_response",
"warning_needs_response",
"under_review",
"warning_under_review",
"won",
"lost",
"closed",
"warning_closed",
],
typing.Any,
]
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ class SummaryDisputesResponseGroupsStatus(UniversalBaseModel):
lost: int
needs_response: int
under_review: int
warning_closed: int
warning_needs_response: int
warning_under_review: int
won: int

if IS_PYDANTIC_V2:
Expand Down
2 changes: 1 addition & 1 deletion src/whop_sdk/types/dispute.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Dispute(UniversalBaseModel):

status: DisputeStatus = pydantic.Field()
"""
Where the dispute stands. `needs_response` is awaiting evidence, `under_review` is with the processor, `won` returned the funds to the seller, `lost` returned them to the customer, and `closed` ended without a ruling. A dispute past its `evidence_due_at` reports `under_review` — the window to respond has closed.
Where the dispute stands. `needs_response` is awaiting evidence, `under_review` is with the processor, `won` returned the funds to the seller, `lost` returned them to the customer, and `closed` ended without a ruling. The `warning_` statuses are the same stages for an inquiry, which moves no funds. A dispute past its `evidence_due_at` reports `under_review` — the window to respond has closed.
"""

updated_at: str = pydantic.Field()
Expand Down
14 changes: 13 additions & 1 deletion src/whop_sdk/types/dispute_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@

import typing

DisputeStatus = typing.Union[typing.Literal["needs_response", "under_review", "won", "lost", "closed"], typing.Any]
DisputeStatus = typing.Union[
typing.Literal[
"needs_response",
"warning_needs_response",
"under_review",
"warning_under_review",
"won",
"lost",
"closed",
"warning_closed",
],
typing.Any,
]
Loading