Skip to content

Commit f4837ee

Browse files
feat(api): api update
1 parent 2adad9d commit f4837ee

File tree

6 files changed

+44
-2
lines changed

6 files changed

+44
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 227
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-63db8a5872b6a112abfc879f75a53bc6975994025752e86b27ab327884d94655.yml
3-
openapi_spec_hash: b7ffb71e0102fcd040a575bf917656e3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-4e978c9426fb846c81f3169f5c1bc7aad137577c13e52ac48fcc756e613a1557.yml
3+
openapi_spec_hash: b44f228e3feac325305cd744c072ebc9
44
config_hash: ca52ca9a2968f330339fd50c1a386e05

src/increase/resources/card_disputes.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def create(
5252
network: Literal["visa"],
5353
amount: int | Omit = omit,
5454
attachment_files: Iterable[card_dispute_create_params.AttachmentFile] | Omit = omit,
55+
explanation: str | Omit = omit,
5556
visa: card_dispute_create_params.Visa | Omit = omit,
5657
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5758
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -80,6 +81,9 @@ def create(
8081
8182
attachment_files: The files to be attached to the initial dispute submission.
8283
84+
explanation: The free-form explanation provided to Increase to provide more context for the
85+
user submission. This field is not sent directly to the card networks.
86+
8387
visa: The Visa-specific parameters for the dispute. Required if and only if `network`
8488
is `visa`.
8589
@@ -101,6 +105,7 @@ def create(
101105
"network": network,
102106
"amount": amount,
103107
"attachment_files": attachment_files,
108+
"explanation": explanation,
104109
"visa": visa,
105110
},
106111
card_dispute_create_params.CardDisputeCreateParams,
@@ -216,6 +221,7 @@ def submit_user_submission(
216221
network: Literal["visa"],
217222
amount: int | Omit = omit,
218223
attachment_files: Iterable[card_dispute_submit_user_submission_params.AttachmentFile] | Omit = omit,
224+
explanation: str | Omit = omit,
219225
visa: card_dispute_submit_user_submission_params.Visa | Omit = omit,
220226
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
221227
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -243,6 +249,9 @@ def submit_user_submission(
243249
244250
attachment_files: The files to be attached to the user submission.
245251
252+
explanation: The free-form explanation provided to Increase to provide more context for the
253+
user submission. This field is not sent directly to the card networks.
254+
246255
visa: The Visa-specific parameters for the dispute. Required if and only if `network`
247256
is `visa`.
248257
@@ -265,6 +274,7 @@ def submit_user_submission(
265274
"network": network,
266275
"amount": amount,
267276
"attachment_files": attachment_files,
277+
"explanation": explanation,
268278
"visa": visa,
269279
},
270280
card_dispute_submit_user_submission_params.CardDisputeSubmitUserSubmissionParams,
@@ -349,6 +359,7 @@ async def create(
349359
network: Literal["visa"],
350360
amount: int | Omit = omit,
351361
attachment_files: Iterable[card_dispute_create_params.AttachmentFile] | Omit = omit,
362+
explanation: str | Omit = omit,
352363
visa: card_dispute_create_params.Visa | Omit = omit,
353364
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
354365
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -377,6 +388,9 @@ async def create(
377388
378389
attachment_files: The files to be attached to the initial dispute submission.
379390
391+
explanation: The free-form explanation provided to Increase to provide more context for the
392+
user submission. This field is not sent directly to the card networks.
393+
380394
visa: The Visa-specific parameters for the dispute. Required if and only if `network`
381395
is `visa`.
382396
@@ -398,6 +412,7 @@ async def create(
398412
"network": network,
399413
"amount": amount,
400414
"attachment_files": attachment_files,
415+
"explanation": explanation,
401416
"visa": visa,
402417
},
403418
card_dispute_create_params.CardDisputeCreateParams,
@@ -513,6 +528,7 @@ async def submit_user_submission(
513528
network: Literal["visa"],
514529
amount: int | Omit = omit,
515530
attachment_files: Iterable[card_dispute_submit_user_submission_params.AttachmentFile] | Omit = omit,
531+
explanation: str | Omit = omit,
516532
visa: card_dispute_submit_user_submission_params.Visa | Omit = omit,
517533
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
518534
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -540,6 +556,9 @@ async def submit_user_submission(
540556
541557
attachment_files: The files to be attached to the user submission.
542558
559+
explanation: The free-form explanation provided to Increase to provide more context for the
560+
user submission. This field is not sent directly to the card networks.
561+
543562
visa: The Visa-specific parameters for the dispute. Required if and only if `network`
544563
is `visa`.
545564
@@ -562,6 +581,7 @@ async def submit_user_submission(
562581
"network": network,
563582
"amount": amount,
564583
"attachment_files": attachment_files,
584+
"explanation": explanation,
565585
"visa": visa,
566586
},
567587
card_dispute_submit_user_submission_params.CardDisputeSubmitUserSubmissionParams,

src/increase/types/card_dispute.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2533,6 +2533,12 @@ class VisaUserSubmission(BaseModel):
25332533
the Visa Card Dispute User Submission was created.
25342534
"""
25352535

2536+
explanation: Optional[str] = None
2537+
"""
2538+
The free-form explanation provided to Increase to provide more context for the
2539+
user submission. This field is not sent directly to the card networks.
2540+
"""
2541+
25362542
further_information_requested_at: Optional[datetime] = None
25372543
"""
25382544
The date and time at which Increase requested further information from the user

src/increase/types/card_dispute_create_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ class CardDisputeCreateParams(TypedDict, total=False):
100100
attachment_files: Iterable[AttachmentFile]
101101
"""The files to be attached to the initial dispute submission."""
102102

103+
explanation: str
104+
"""
105+
The free-form explanation provided to Increase to provide more context for the
106+
user submission. This field is not sent directly to the card networks.
107+
"""
108+
103109
visa: Visa
104110
"""The Visa-specific parameters for the dispute.
105111

src/increase/types/card_dispute_submit_user_submission_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ class CardDisputeSubmitUserSubmissionParams(TypedDict, total=False):
9898
attachment_files: Iterable[AttachmentFile]
9999
"""The files to be attached to the user submission."""
100100

101+
explanation: str
102+
"""
103+
The free-form explanation provided to Increase to provide more context for the
104+
user submission. This field is not sent directly to the card networks.
105+
"""
106+
101107
visa: Visa
102108
"""The Visa-specific parameters for the dispute.
103109

tests/api_resources/test_card_disputes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
3636
network="visa",
3737
amount=100,
3838
attachment_files=[{"file_id": "file_id"}],
39+
explanation="x",
3940
visa={
4041
"category": "fraud",
4142
"authorization": {"account_status": "account_closed"},
@@ -400,6 +401,7 @@ def test_method_submit_user_submission_with_all_params(self, client: Increase) -
400401
network="visa",
401402
amount=1,
402403
attachment_files=[{"file_id": "file_id"}],
404+
explanation="x",
403405
visa={
404406
"category": "merchant_prearbitration_decline",
405407
"chargeback": {
@@ -750,6 +752,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
750752
network="visa",
751753
amount=100,
752754
attachment_files=[{"file_id": "file_id"}],
755+
explanation="x",
753756
visa={
754757
"category": "fraud",
755758
"authorization": {"account_status": "account_closed"},
@@ -1114,6 +1117,7 @@ async def test_method_submit_user_submission_with_all_params(self, async_client:
11141117
network="visa",
11151118
amount=1,
11161119
attachment_files=[{"file_id": "file_id"}],
1120+
explanation="x",
11171121
visa={
11181122
"category": "merchant_prearbitration_decline",
11191123
"chargeback": {

0 commit comments

Comments
 (0)