Skip to content
Open
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 .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 258
openapi_spec_hash: 0ea7abef2ca205d64ab8597eea538946
openapi_spec_hash: 5bbeae5289b3dbd7b9750db1382ea953
config_hash: b0e46656e84a8c26907fbe6dc8116a3d
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

28 changes: 16 additions & 12 deletions src/increase/resources/card_disputes.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def create(
disputed_transaction_id: The Transaction you wish to dispute. This Transaction must have a `source_type`
of `card_settlement`.

network: The network of the disputed transaction. Details specific to the network are
required under the sub-object with the same identifier as the network.
network: The network of the disputed transaction. Details specific to the network can be
provided under the sub-object with the same identifier as the network.

- `visa` - Visa

Expand All @@ -84,13 +84,15 @@ def create(
provided. If provided, the amount must be less than or equal to the amount of
the transaction.

attachment_files: The files to be attached to the initial dispute submission.
attachment_files: The files to be attached to the initial dispute submission. Can only be provided
along with the network-specific details.

explanation: The free-form explanation provided to Increase to provide more context for the
user submission. This field is not sent directly to the card networks.
user submission. This field is not sent directly to the card networks. Can only
be provided along with the network-specific details.

visa: The Visa-specific parameters for the dispute. Required if and only if `network`
is `visa`.
visa: The Visa-specific parameters for the initial User Submission. If omitted, a
later User Submission will be required.

extra_headers: Send extra headers

Expand Down Expand Up @@ -387,8 +389,8 @@ async def create(
disputed_transaction_id: The Transaction you wish to dispute. This Transaction must have a `source_type`
of `card_settlement`.

network: The network of the disputed transaction. Details specific to the network are
required under the sub-object with the same identifier as the network.
network: The network of the disputed transaction. Details specific to the network can be
provided under the sub-object with the same identifier as the network.

- `visa` - Visa

Expand All @@ -397,13 +399,15 @@ async def create(
provided. If provided, the amount must be less than or equal to the amount of
the transaction.

attachment_files: The files to be attached to the initial dispute submission.
attachment_files: The files to be attached to the initial dispute submission. Can only be provided
along with the network-specific details.

explanation: The free-form explanation provided to Increase to provide more context for the
user submission. This field is not sent directly to the card networks.
user submission. This field is not sent directly to the card networks. Can only
be provided along with the network-specific details.

visa: The Visa-specific parameters for the dispute. Required if and only if `network`
is `visa`.
visa: The Visa-specific parameters for the initial User Submission. If omitted, a
later User Submission will be required.

extra_headers: Send extra headers

Expand Down
12 changes: 12 additions & 0 deletions src/increase/types/card_dispute.py
Original file line number Diff line number Diff line change
Expand Up @@ -2781,3 +2781,15 @@ class CardDispute(BaseModel):
If the Card Dispute has been withdrawn, this will contain details of the
withdrawal.
"""

if TYPE_CHECKING:
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
# value to this field, so for compatibility we avoid doing it at runtime.
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]

# Stub to indicate that arbitrary properties are accepted.
# To access properties that are not valid identifiers you can use `getattr`, e.g.
# `getattr(obj, '$type')`
def __getattr__(self, attr: str) -> object: ...
else:
__pydantic_extra__: Dict[str, object]
20 changes: 12 additions & 8 deletions src/increase/types/card_dispute_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ class CardDisputeCreateParams(TypedDict, total=False):
network: Required[Literal["visa"]]
"""The network of the disputed transaction.

Details specific to the network are required under the sub-object with the same
identifier as the network.
Details specific to the network can be provided under the sub-object with the
same identifier as the network.

- `visa` - Visa
"""
Expand All @@ -98,18 +98,22 @@ class CardDisputeCreateParams(TypedDict, total=False):
"""

attachment_files: Iterable[AttachmentFile]
"""The files to be attached to the initial dispute submission."""
"""The files to be attached to the initial dispute submission.

Can only be provided along with the network-specific details.
"""

explanation: str
"""
The free-form explanation provided to Increase to provide more context for the
user submission. This field is not sent directly to the card networks.
user submission. This field is not sent directly to the card networks. Can only
be provided along with the network-specific details.
"""

visa: Visa
"""The Visa-specific parameters for the dispute.
"""The Visa-specific parameters for the initial User Submission.

Required if and only if `network` is `visa`.
If omitted, a later User Submission will be required.
"""


Expand Down Expand Up @@ -1429,9 +1433,9 @@ class VisaProcessingError(TypedDict, total=False):


class Visa(TypedDict, total=False):
"""The Visa-specific parameters for the dispute.
"""The Visa-specific parameters for the initial User Submission.

Required if and only if `network` is `visa`.
If omitted, a later User Submission will be required.
"""

category: Required[
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

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

Loading