Skip to content
Closed
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: 255
openapi_spec_hash: de4578cd6e5125791bb32e1a25c9c5ac
openapi_spec_hash: f1c7476a335d68846b87af6f12bb88e2
config_hash: de151ebd21a0bd391662389b310a8f49
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

30 changes: 25 additions & 5 deletions src/increase/types/simulations/card_dispute_action_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"CardDisputeActionParams",
"Visa",
"VisaAcceptChargeback",
"VisaAcceptUserPrearbitration",
"VisaAcceptUserSubmission",
"VisaDeclineUserPrearbitration",
"VisaReceiveMerchantPrearbitration",
Expand Down Expand Up @@ -47,6 +48,15 @@ class VisaAcceptChargeback(TypedDict, total=False):
pass


class VisaAcceptUserPrearbitration(TypedDict, total=False):
"""The parameters for accepting the user prearbitration.

Required if and only if `action` is `accept_user_prearbitration`.
"""

pass


class VisaAcceptUserSubmission(TypedDict, total=False):
"""The parameters for accepting the user submission.

Expand Down Expand Up @@ -148,6 +158,7 @@ class Visa(TypedDict, total=False):
action: Required[
Literal[
"accept_chargeback",
"accept_user_prearbitration",
"accept_user_submission",
"decline_user_prearbitration",
"receive_merchant_prearbitration",
Expand All @@ -167,17 +178,20 @@ class Visa(TypedDict, total=False):

- `accept_chargeback` - Simulate the merchant accepting the chargeback. This
will move the dispute to a `won` state.
- `accept_user_prearbitration` - Simulate the merchant accepting the user's
pre-arbitration. This will move the dispute to a `won` state.
- `accept_user_submission` - Accept the user's submission and transmit it to the
network. This will move the dispute to a `pending_response` state.
- `decline_user_prearbitration` - Simulate the merchant declining the user's
pre-arbitration. This will move the dispute to a `lost` state.
- `receive_merchant_prearbitration` - Simulate the merchant issuing
pre-arbitration. This will move the dispute to a `user_submission_required`
state.
pre-arbitration. Only available for disputes in the fraud or authorization
category. This will move the dispute to a `user_submission_required` state.
- `reject` - Simulate the dispute being rejected before it is submitted to the
network. This will move the dispute to a `rejected` state.
- `represent` - Simulate the merchant re-presenting the dispute. This will move
the dispute to a `user_submission_required` state.
- `represent` - Simulate the merchant re-presenting the dispute. Only available
for disputes in a consumer or processing error category. This will move the
dispute to a `user_submission_required` state.
- `request_further_information` - Simulate further information being requested
from the user. This will move the dispute to a `user_submission_required`
state.
Expand All @@ -188,7 +202,7 @@ class Visa(TypedDict, total=False):
- `time_out_representment` - Simulate the user timing out responding to a
merchant re-presentment. This will move the dispute to a `lost` state.
- `time_out_user_prearbitration` - Simulate the merchant timing out responding
to a user pre-arbitration. This will move the dispute to a `win` state.
to a user pre-arbitration. This will move the dispute to a `won` state.
"""

accept_chargeback: VisaAcceptChargeback
Expand All @@ -197,6 +211,12 @@ class Visa(TypedDict, total=False):
Required if and only if `action` is `accept_chargeback`.
"""

accept_user_prearbitration: VisaAcceptUserPrearbitration
"""The parameters for accepting the user prearbitration.

Required if and only if `action` is `accept_user_prearbitration`.
"""

accept_user_submission: VisaAcceptUserSubmission
"""The parameters for accepting the user submission.

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/simulations/test_card_disputes.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def test_method_action_with_all_params(self, client: Increase) -> None:
visa={
"action": "accept_user_submission",
"accept_chargeback": {},
"accept_user_prearbitration": {},
"accept_user_submission": {},
"decline_user_prearbitration": {},
"receive_merchant_prearbitration": {},
Expand Down Expand Up @@ -102,6 +103,7 @@ async def test_method_action_with_all_params(self, async_client: AsyncIncrease)
visa={
"action": "accept_user_submission",
"accept_chargeback": {},
"accept_user_prearbitration": {},
"accept_user_submission": {},
"decline_user_prearbitration": {},
"receive_merchant_prearbitration": {},
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