Skip to content

Commit 104ffdc

Browse files
feat(api): api update
1 parent 15fb9d8 commit 104ffdc

17 files changed

+472
-88
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: 228
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f07048979577d746042198f73c1bac07529dd48f26402f60def922a12b6e01e0.yml
3-
openapi_spec_hash: 6d1ca8aa0b64f414db957540bbeab5ee
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e9e51b3c9b5c8d9e6e0267b62a12a00fedbce419b765192aa4e2470984192e1f.yml
3+
openapi_spec_hash: 84bc91dd8b8a80edf447dddad15c23fc
44
config_hash: eb2035151c7b49c2f12caf55469b8f9a

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,21 @@ for account in first_page.data:
182182
# Remove `await` for non-async usage.
183183
```
184184

185+
## Nested params
186+
187+
Nested parameters are dictionaries, typed using `TypedDict`, for example:
188+
189+
```python
190+
from increase import Increase
191+
192+
client = Increase()
193+
194+
account = client.accounts.create(
195+
name="New Account!",
196+
)
197+
print(account.id)
198+
```
199+
185200
## File uploads
186201

187202
Request parameters that correspond to file uploads can be passed as `bytes`, or a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.

src/increase/resources/exports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def create(
6262
bookkeeping_account_balance_csv: export_create_params.BookkeepingAccountBalanceCsv | Omit = omit,
6363
entity_csv: export_create_params.EntityCsv | Omit = omit,
6464
transaction_csv: export_create_params.TransactionCsv | Omit = omit,
65-
vendor_csv: object | Omit = omit,
65+
vendor_csv: export_create_params.VendorCsv | Omit = omit,
6666
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6767
# The extra values given here take precedence over values defined on the client or passed to this method.
6868
extra_headers: Headers | None = None,
@@ -279,7 +279,7 @@ async def create(
279279
bookkeeping_account_balance_csv: export_create_params.BookkeepingAccountBalanceCsv | Omit = omit,
280280
entity_csv: export_create_params.EntityCsv | Omit = omit,
281281
transaction_csv: export_create_params.TransactionCsv | Omit = omit,
282-
vendor_csv: object | Omit = omit,
282+
vendor_csv: export_create_params.VendorCsv | Omit = omit,
283283
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
284284
# The extra values given here take precedence over values defined on the client or passed to this method.
285285
extra_headers: Headers | None = None,

src/increase/types/card_dispute.py

Lines changed: 134 additions & 22 deletions
Large diffs are not rendered by default.

src/increase/types/card_dispute_create_params.py

Lines changed: 60 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,24 @@
1515
"VisaAuthorization",
1616
"VisaConsumerCanceledMerchandise",
1717
"VisaConsumerCanceledMerchandiseCardholderCancellation",
18+
"VisaConsumerCanceledMerchandiseNotReturned",
1819
"VisaConsumerCanceledMerchandiseReturnAttempted",
1920
"VisaConsumerCanceledMerchandiseReturned",
2021
"VisaConsumerCanceledRecurringTransaction",
2122
"VisaConsumerCanceledRecurringTransactionMerchantContactMethods",
2223
"VisaConsumerCanceledServices",
2324
"VisaConsumerCanceledServicesCardholderCancellation",
2425
"VisaConsumerCanceledServicesGuaranteedReservation",
26+
"VisaConsumerCanceledServicesOther",
27+
"VisaConsumerCanceledServicesTimeshare",
2528
"VisaConsumerCounterfeitMerchandise",
2629
"VisaConsumerCreditNotProcessed",
2730
"VisaConsumerDamagedOrDefectiveMerchandise",
31+
"VisaConsumerDamagedOrDefectiveMerchandiseNotReturned",
2832
"VisaConsumerDamagedOrDefectiveMerchandiseReturnAttempted",
2933
"VisaConsumerDamagedOrDefectiveMerchandiseReturned",
3034
"VisaConsumerMerchandiseMisrepresentation",
35+
"VisaConsumerMerchandiseMisrepresentationNotReturned",
3136
"VisaConsumerMerchandiseMisrepresentationReturnAttempted",
3237
"VisaConsumerMerchandiseMisrepresentationReturned",
3338
"VisaConsumerMerchandiseNotAsDescribed",
@@ -36,12 +41,16 @@
3641
"VisaConsumerMerchandiseNotReceived",
3742
"VisaConsumerMerchandiseNotReceivedCardholderCancellationPriorToExpectedReceipt",
3843
"VisaConsumerMerchandiseNotReceivedDelayed",
44+
"VisaConsumerMerchandiseNotReceivedDelayedNotReturned",
3945
"VisaConsumerMerchandiseNotReceivedDelayedReturnAttempted",
4046
"VisaConsumerMerchandiseNotReceivedDelayedReturned",
4147
"VisaConsumerMerchandiseNotReceivedDeliveredToWrongLocation",
4248
"VisaConsumerMerchandiseNotReceivedMerchantCancellation",
49+
"VisaConsumerMerchandiseNotReceivedNoCancellation",
50+
"VisaConsumerNonReceiptOfCash",
4351
"VisaConsumerOriginalCreditTransactionNotAccepted",
4452
"VisaConsumerQualityMerchandise",
53+
"VisaConsumerQualityMerchandiseNotReturned",
4554
"VisaConsumerQualityMerchandiseOngoingNegotiations",
4655
"VisaConsumerQualityMerchandiseReturnAttempted",
4756
"VisaConsumerQualityMerchandiseReturned",
@@ -55,6 +64,7 @@
5564
"VisaConsumerServicesNotReceived",
5665
"VisaConsumerServicesNotReceivedCardholderCancellationPriorToExpectedReceipt",
5766
"VisaConsumerServicesNotReceivedMerchantCancellation",
67+
"VisaConsumerServicesNotReceivedNoCancellation",
5868
"VisaFraud",
5969
"VisaProcessingError",
6070
"VisaProcessingErrorDuplicateTransaction",
@@ -137,6 +147,10 @@ class VisaConsumerCanceledMerchandiseCardholderCancellation(TypedDict, total=Fal
137147
"""Reason."""
138148

139149

150+
class VisaConsumerCanceledMerchandiseNotReturned(TypedDict, total=False):
151+
pass
152+
153+
140154
class VisaConsumerCanceledMerchandiseReturnAttempted(TypedDict, total=False):
141155
attempt_explanation: Required[str]
142156
"""Attempt explanation."""
@@ -216,7 +230,7 @@ class VisaConsumerCanceledMerchandise(TypedDict, total=False):
216230
cardholder_cancellation: VisaConsumerCanceledMerchandiseCardholderCancellation
217231
"""Cardholder cancellation."""
218232

219-
not_returned: object
233+
not_returned: VisaConsumerCanceledMerchandiseNotReturned
220234
"""Not returned. Required if and only if `return_outcome` is `not_returned`."""
221235

222236
return_attempted: VisaConsumerCanceledMerchandiseReturnAttempted
@@ -299,6 +313,14 @@ class VisaConsumerCanceledServicesGuaranteedReservation(TypedDict, total=False):
299313
"""
300314

301315

316+
class VisaConsumerCanceledServicesOther(TypedDict, total=False):
317+
pass
318+
319+
320+
class VisaConsumerCanceledServicesTimeshare(TypedDict, total=False):
321+
pass
322+
323+
302324
class VisaConsumerCanceledServices(TypedDict, total=False):
303325
cardholder_cancellation: Required[VisaConsumerCanceledServicesCardholderCancellation]
304326
"""Cardholder cancellation."""
@@ -330,13 +352,13 @@ class VisaConsumerCanceledServices(TypedDict, total=False):
330352
Required if and only if `service_type` is `guaranteed_reservation`.
331353
"""
332354

333-
other: object
355+
other: VisaConsumerCanceledServicesOther
334356
"""Other service type explanation.
335357
336358
Required if and only if `service_type` is `other`.
337359
"""
338360

339-
timeshare: object
361+
timeshare: VisaConsumerCanceledServicesTimeshare
340362
"""Timeshare explanation. Required if and only if `service_type` is `timeshare`."""
341363

342364

@@ -362,6 +384,10 @@ class VisaConsumerCreditNotProcessed(TypedDict, total=False):
362384
"""Credit expected at."""
363385

364386

387+
class VisaConsumerDamagedOrDefectiveMerchandiseNotReturned(TypedDict, total=False):
388+
pass
389+
390+
365391
class VisaConsumerDamagedOrDefectiveMerchandiseReturnAttempted(TypedDict, total=False):
366392
attempt_explanation: Required[str]
367393
"""Attempt explanation."""
@@ -438,7 +464,7 @@ class VisaConsumerDamagedOrDefectiveMerchandise(TypedDict, total=False):
438464
- `return_attempted` - Return attempted.
439465
"""
440466

441-
not_returned: object
467+
not_returned: VisaConsumerDamagedOrDefectiveMerchandiseNotReturned
442468
"""Not returned. Required if and only if `return_outcome` is `not_returned`."""
443469

444470
return_attempted: VisaConsumerDamagedOrDefectiveMerchandiseReturnAttempted
@@ -451,6 +477,10 @@ class VisaConsumerDamagedOrDefectiveMerchandise(TypedDict, total=False):
451477
"""Returned. Required if and only if `return_outcome` is `returned`."""
452478

453479

480+
class VisaConsumerMerchandiseMisrepresentationNotReturned(TypedDict, total=False):
481+
pass
482+
483+
454484
class VisaConsumerMerchandiseMisrepresentationReturnAttempted(TypedDict, total=False):
455485
attempt_explanation: Required[str]
456486
"""Attempt explanation."""
@@ -530,7 +560,7 @@ class VisaConsumerMerchandiseMisrepresentation(TypedDict, total=False):
530560
- `return_attempted` - Return attempted.
531561
"""
532562

533-
not_returned: object
563+
not_returned: VisaConsumerMerchandiseMisrepresentationNotReturned
534564
"""Not returned. Required if and only if `return_outcome` is `not_returned`."""
535565

536566
return_attempted: VisaConsumerMerchandiseMisrepresentationReturnAttempted
@@ -633,6 +663,10 @@ class VisaConsumerMerchandiseNotReceivedCardholderCancellationPriorToExpectedRec
633663
"""Reason."""
634664

635665

666+
class VisaConsumerMerchandiseNotReceivedDelayedNotReturned(TypedDict, total=False):
667+
pass
668+
669+
636670
class VisaConsumerMerchandiseNotReceivedDelayedReturnAttempted(TypedDict, total=False):
637671
attempted_at: Required[Annotated[Union[str, date], PropertyInfo(format="iso8601")]]
638672
"""Attempted at."""
@@ -658,7 +692,7 @@ class VisaConsumerMerchandiseNotReceivedDelayed(TypedDict, total=False):
658692
- `return_attempted` - Return attempted.
659693
"""
660694

661-
not_returned: object
695+
not_returned: VisaConsumerMerchandiseNotReceivedDelayedNotReturned
662696
"""Not returned. Required if and only if `return_outcome` is `not_returned`."""
663697

664698
return_attempted: VisaConsumerMerchandiseNotReceivedDelayedReturnAttempted
@@ -681,6 +715,10 @@ class VisaConsumerMerchandiseNotReceivedMerchantCancellation(TypedDict, total=Fa
681715
"""Canceled at."""
682716

683717

718+
class VisaConsumerMerchandiseNotReceivedNoCancellation(TypedDict, total=False):
719+
pass
720+
721+
684722
class VisaConsumerMerchandiseNotReceived(TypedDict, total=False):
685723
cancellation_outcome: Required[
686724
Literal["cardholder_cancellation_prior_to_expected_receipt", "merchant_cancellation", "no_cancellation"]
@@ -737,13 +775,17 @@ class VisaConsumerMerchandiseNotReceived(TypedDict, total=False):
737775
Required if and only if `cancellation_outcome` is `merchant_cancellation`.
738776
"""
739777

740-
no_cancellation: object
778+
no_cancellation: VisaConsumerMerchandiseNotReceivedNoCancellation
741779
"""No cancellation.
742780
743781
Required if and only if `cancellation_outcome` is `no_cancellation`.
744782
"""
745783

746784

785+
class VisaConsumerNonReceiptOfCash(TypedDict, total=False):
786+
pass
787+
788+
747789
class VisaConsumerOriginalCreditTransactionNotAccepted(TypedDict, total=False):
748790
explanation: Required[str]
749791
"""Explanation."""
@@ -757,6 +799,10 @@ class VisaConsumerOriginalCreditTransactionNotAccepted(TypedDict, total=False):
757799
"""
758800

759801

802+
class VisaConsumerQualityMerchandiseNotReturned(TypedDict, total=False):
803+
pass
804+
805+
760806
class VisaConsumerQualityMerchandiseOngoingNegotiations(TypedDict, total=False):
761807
explanation: Required[str]
762808
"""
@@ -850,7 +896,7 @@ class VisaConsumerQualityMerchandise(TypedDict, total=False):
850896
- `return_attempted` - Return attempted.
851897
"""
852898

853-
not_returned: object
899+
not_returned: VisaConsumerQualityMerchandiseNotReturned
854900
"""Not returned. Required if and only if `return_outcome` is `not_returned`."""
855901

856902
ongoing_negotiations: VisaConsumerQualityMerchandiseOngoingNegotiations
@@ -1015,6 +1061,10 @@ class VisaConsumerServicesNotReceivedMerchantCancellation(TypedDict, total=False
10151061
"""Canceled at."""
10161062

10171063

1064+
class VisaConsumerServicesNotReceivedNoCancellation(TypedDict, total=False):
1065+
pass
1066+
1067+
10181068
class VisaConsumerServicesNotReceived(TypedDict, total=False):
10191069
cancellation_outcome: Required[
10201070
Literal["cardholder_cancellation_prior_to_expected_receipt", "merchant_cancellation", "no_cancellation"]
@@ -1055,7 +1105,7 @@ class VisaConsumerServicesNotReceived(TypedDict, total=False):
10551105
Required if and only if `cancellation_outcome` is `merchant_cancellation`.
10561106
"""
10571107

1058-
no_cancellation: object
1108+
no_cancellation: VisaConsumerServicesNotReceivedNoCancellation
10591109
"""No cancellation.
10601110
10611111
Required if and only if `cancellation_outcome` is `no_cancellation`.
@@ -1264,7 +1314,7 @@ class Visa(TypedDict, total=False):
12641314
Required if and only if `category` is `consumer_merchandise_not_received`.
12651315
"""
12661316

1267-
consumer_non_receipt_of_cash: object
1317+
consumer_non_receipt_of_cash: VisaConsumerNonReceiptOfCash
12681318
"""Non-receipt of cash.
12691319
12701320
Required if and only if `category` is `consumer_non_receipt_of_cash`.

0 commit comments

Comments
 (0)