Skip to content

Commit 0f35c28

Browse files
docs(api): update disputes docstrings to use chargeback terminology
1 parent aa66507 commit 0f35c28

5 files changed

Lines changed: 58 additions & 58 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 188
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-716063c7d5d29dd3904168352017d0a065e50eec066f78ed8a3f7c796a48a78b.yml
3-
openapi_spec_hash: 3d930f469199651974e9bfbee65486ef
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-20de8e5670f8b5c47d263b6bf61c86ef65079ae0a1be0fe15ff815083b47a72d.yml
3+
openapi_spec_hash: 5033b4e762488df1010a932b9688bb23
44
config_hash: 8799cfd589579f105ef8696a6d664c71

src/lithic/resources/disputes.py

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,18 @@ def create(
8080
timeout: float | httpx.Timeout | None | NotGiven = not_given,
8181
) -> Dispute:
8282
"""
83-
Initiate a dispute.
83+
Request a chargeback.
8484
8585
Args:
86-
amount: Amount to dispute
86+
amount: Amount for chargeback
8787
88-
reason: Reason for dispute
88+
reason: Reason for chargeback
8989
90-
transaction_token: Transaction to dispute
90+
transaction_token: Transaction for chargeback
9191
92-
customer_filed_date: Date the customer filed the dispute
92+
customer_filed_date: Date the customer filed the chargeback request
9393
94-
customer_note: Customer description of dispute
94+
customer_note: Customer description
9595
9696
extra_headers: Send extra headers
9797
@@ -131,7 +131,7 @@ def retrieve(
131131
timeout: float | httpx.Timeout | None | NotGiven = not_given,
132132
) -> Dispute:
133133
"""
134-
Get dispute.
134+
Get chargeback request.
135135
136136
Args:
137137
extra_headers: Send extra headers
@@ -183,18 +183,18 @@ def update(
183183
extra_body: Body | None = None,
184184
timeout: float | httpx.Timeout | None | NotGiven = not_given,
185185
) -> Dispute:
186-
"""Update dispute.
186+
"""Update chargeback request.
187187
188188
Can only be modified if status is `NEW`.
189189
190190
Args:
191-
amount: Amount to dispute
191+
amount: Amount for chargeback
192192
193-
customer_filed_date: Date the customer filed the dispute
193+
customer_filed_date: Date the customer filed the chargeback request
194194
195-
customer_note: Customer description of dispute
195+
customer_note: Customer description
196196
197-
reason: Reason for dispute
197+
reason: Reason for chargeback
198198
199199
extra_headers: Send extra headers
200200
@@ -250,7 +250,7 @@ def list(
250250
extra_body: Body | None = None,
251251
timeout: float | httpx.Timeout | None | NotGiven = not_given,
252252
) -> SyncCursorPage[Dispute]:
253-
"""List disputes.
253+
"""List chargeback requests.
254254
255255
Args:
256256
begin: Date string in RFC 3339 format.
@@ -269,7 +269,7 @@ def list(
269269
starting_after: A cursor representing an item's token after which a page of results should
270270
begin. Used to retrieve the next page of results after this item.
271271
272-
status: List disputes of a specific status.
272+
status: Filter by status.
273273
274274
transaction_tokens: Transaction tokens to filter by.
275275
@@ -317,7 +317,7 @@ def delete(
317317
timeout: float | httpx.Timeout | None | NotGiven = not_given,
318318
) -> Dispute:
319319
"""
320-
Withdraw dispute.
320+
Withdraw chargeback request.
321321
322322
Args:
323323
extra_headers: Send extra headers
@@ -350,10 +350,10 @@ def delete_evidence(
350350
extra_body: Body | None = None,
351351
timeout: float | httpx.Timeout | None | NotGiven = not_given,
352352
) -> DisputeEvidence:
353-
"""Soft delete evidence for a dispute.
353+
"""Soft delete evidence for a chargeback request.
354354
355-
Evidence will not be reviewed or submitted
356-
by Lithic after it is withdrawn.
355+
Evidence will not be reviewed or
356+
submitted by Lithic after it is withdrawn.
357357
358358
Args:
359359
extra_headers: Send extra headers
@@ -388,10 +388,10 @@ def initiate_evidence_upload(
388388
extra_body: Body | None = None,
389389
timeout: float | httpx.Timeout | None | NotGiven = not_given,
390390
) -> DisputeEvidence:
391-
"""Use this endpoint to upload evidences for the dispute.
391+
"""Use this endpoint to upload evidence for a chargeback request.
392392
393-
It will return a URL to
394-
upload your documents to. The URL will expire in 30 minutes.
393+
It will return a
394+
URL to upload your documents to. The URL will expire in 30 minutes.
395395
396396
Uploaded documents must either be a `jpg`, `png` or `pdf` file, and each must be
397397
less than 5 GiB.
@@ -437,7 +437,7 @@ def list_evidences(
437437
timeout: float | httpx.Timeout | None | NotGiven = not_given,
438438
) -> SyncCursorPage[DisputeEvidence]:
439439
"""
440-
List evidence metadata for a dispute.
440+
List evidence for a chargeback request.
441441
442442
Args:
443443
begin: Date string in RFC 3339 format. Only entries created after the specified time
@@ -499,7 +499,7 @@ def retrieve_evidence(
499499
timeout: float | httpx.Timeout | None | NotGiven = not_given,
500500
) -> DisputeEvidence:
501501
"""
502-
Get a dispute's evidence metadata.
502+
Get evidence for a chargeback request.
503503
504504
Args:
505505
extra_headers: Send extra headers
@@ -596,18 +596,18 @@ async def create(
596596
timeout: float | httpx.Timeout | None | NotGiven = not_given,
597597
) -> Dispute:
598598
"""
599-
Initiate a dispute.
599+
Request a chargeback.
600600
601601
Args:
602-
amount: Amount to dispute
602+
amount: Amount for chargeback
603603
604-
reason: Reason for dispute
604+
reason: Reason for chargeback
605605
606-
transaction_token: Transaction to dispute
606+
transaction_token: Transaction for chargeback
607607
608-
customer_filed_date: Date the customer filed the dispute
608+
customer_filed_date: Date the customer filed the chargeback request
609609
610-
customer_note: Customer description of dispute
610+
customer_note: Customer description
611611
612612
extra_headers: Send extra headers
613613
@@ -647,7 +647,7 @@ async def retrieve(
647647
timeout: float | httpx.Timeout | None | NotGiven = not_given,
648648
) -> Dispute:
649649
"""
650-
Get dispute.
650+
Get chargeback request.
651651
652652
Args:
653653
extra_headers: Send extra headers
@@ -699,18 +699,18 @@ async def update(
699699
extra_body: Body | None = None,
700700
timeout: float | httpx.Timeout | None | NotGiven = not_given,
701701
) -> Dispute:
702-
"""Update dispute.
702+
"""Update chargeback request.
703703
704704
Can only be modified if status is `NEW`.
705705
706706
Args:
707-
amount: Amount to dispute
707+
amount: Amount for chargeback
708708
709-
customer_filed_date: Date the customer filed the dispute
709+
customer_filed_date: Date the customer filed the chargeback request
710710
711-
customer_note: Customer description of dispute
711+
customer_note: Customer description
712712
713-
reason: Reason for dispute
713+
reason: Reason for chargeback
714714
715715
extra_headers: Send extra headers
716716
@@ -766,7 +766,7 @@ def list(
766766
extra_body: Body | None = None,
767767
timeout: float | httpx.Timeout | None | NotGiven = not_given,
768768
) -> AsyncPaginator[Dispute, AsyncCursorPage[Dispute]]:
769-
"""List disputes.
769+
"""List chargeback requests.
770770
771771
Args:
772772
begin: Date string in RFC 3339 format.
@@ -785,7 +785,7 @@ def list(
785785
starting_after: A cursor representing an item's token after which a page of results should
786786
begin. Used to retrieve the next page of results after this item.
787787
788-
status: List disputes of a specific status.
788+
status: Filter by status.
789789
790790
transaction_tokens: Transaction tokens to filter by.
791791
@@ -833,7 +833,7 @@ async def delete(
833833
timeout: float | httpx.Timeout | None | NotGiven = not_given,
834834
) -> Dispute:
835835
"""
836-
Withdraw dispute.
836+
Withdraw chargeback request.
837837
838838
Args:
839839
extra_headers: Send extra headers
@@ -866,10 +866,10 @@ async def delete_evidence(
866866
extra_body: Body | None = None,
867867
timeout: float | httpx.Timeout | None | NotGiven = not_given,
868868
) -> DisputeEvidence:
869-
"""Soft delete evidence for a dispute.
869+
"""Soft delete evidence for a chargeback request.
870870
871-
Evidence will not be reviewed or submitted
872-
by Lithic after it is withdrawn.
871+
Evidence will not be reviewed or
872+
submitted by Lithic after it is withdrawn.
873873
874874
Args:
875875
extra_headers: Send extra headers
@@ -904,10 +904,10 @@ async def initiate_evidence_upload(
904904
extra_body: Body | None = None,
905905
timeout: float | httpx.Timeout | None | NotGiven = not_given,
906906
) -> DisputeEvidence:
907-
"""Use this endpoint to upload evidences for the dispute.
907+
"""Use this endpoint to upload evidence for a chargeback request.
908908
909-
It will return a URL to
910-
upload your documents to. The URL will expire in 30 minutes.
909+
It will return a
910+
URL to upload your documents to. The URL will expire in 30 minutes.
911911
912912
Uploaded documents must either be a `jpg`, `png` or `pdf` file, and each must be
913913
less than 5 GiB.
@@ -953,7 +953,7 @@ def list_evidences(
953953
timeout: float | httpx.Timeout | None | NotGiven = not_given,
954954
) -> AsyncPaginator[DisputeEvidence, AsyncCursorPage[DisputeEvidence]]:
955955
"""
956-
List evidence metadata for a dispute.
956+
List evidence for a chargeback request.
957957
958958
Args:
959959
begin: Date string in RFC 3339 format. Only entries created after the specified time
@@ -1015,7 +1015,7 @@ async def retrieve_evidence(
10151015
timeout: float | httpx.Timeout | None | NotGiven = not_given,
10161016
) -> DisputeEvidence:
10171017
"""
1018-
Get a dispute's evidence metadata.
1018+
Get evidence for a chargeback request.
10191019
10201020
Args:
10211021
extra_headers: Send extra headers

src/lithic/types/dispute_create_params.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class DisputeCreateParams(TypedDict, total=False):
1515
amount: Required[int]
16-
"""Amount to dispute"""
16+
"""Amount for chargeback"""
1717

1818
reason: Required[
1919
Literal[
@@ -33,13 +33,13 @@ class DisputeCreateParams(TypedDict, total=False):
3333
"REFUND_NOT_PROCESSED",
3434
]
3535
]
36-
"""Reason for dispute"""
36+
"""Reason for chargeback"""
3737

3838
transaction_token: Required[str]
39-
"""Transaction to dispute"""
39+
"""Transaction for chargeback"""
4040

4141
customer_filed_date: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
42-
"""Date the customer filed the dispute"""
42+
"""Date the customer filed the chargeback request"""
4343

4444
customer_note: str
45-
"""Customer description of dispute"""
45+
"""Customer description"""

src/lithic/types/dispute_list_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class DisputeListParams(TypedDict, total=False):
5151
"REPRESENTMENT",
5252
"SUBMITTED",
5353
]
54-
"""List disputes of a specific status."""
54+
"""Filter by status."""
5555

5656
transaction_tokens: SequenceNotStr[str]
5757
"""Transaction tokens to filter by."""

src/lithic/types/dispute_update_params.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
class DisputeUpdateParams(TypedDict, total=False):
1515
amount: int
16-
"""Amount to dispute"""
16+
"""Amount for chargeback"""
1717

1818
customer_filed_date: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
19-
"""Date the customer filed the dispute"""
19+
"""Date the customer filed the chargeback request"""
2020

2121
customer_note: str
22-
"""Customer description of dispute"""
22+
"""Customer description"""
2323

2424
reason: Literal[
2525
"ATM_CASH_MISDISPENSE",
@@ -37,4 +37,4 @@ class DisputeUpdateParams(TypedDict, total=False):
3737
"RECURRING_TRANSACTION_NOT_CANCELLED",
3838
"REFUND_NOT_PROCESSED",
3939
]
40-
"""Reason for dispute"""
40+
"""Reason for chargeback"""

0 commit comments

Comments
 (0)