Skip to content

Commit 73f8a13

Browse files
feat(api): api update
1 parent 3023df8 commit 73f8a13

File tree

6 files changed

+745
-40
lines changed

6 files changed

+745
-40
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: 229
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7a6340375b0e06648ff3e7e4b8aa1527b71df0c7a3d793738ba6fe20eef6f624.yml
3-
openapi_spec_hash: 3cb2076c8a4870d3b17d02780a295172
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fadbd087449a336a91be2645c64e2fe1e81e0f52d9810ab5f830af7e1c727138.yml
3+
openapi_spec_hash: 7e44d91e713fb44925a3565b882248d7
44
config_hash: ca1425272e17fa23d4466d33492334fa

src/increase/resources/card_push_transfers.py

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def with_streaming_response(self) -> CardPushTransfersResourceWithStreamingRespo
4747
def create(
4848
self,
4949
*,
50-
amount: int,
5150
business_application_identifier: Literal[
5251
"account_to_account",
5352
"business_to_business",
@@ -71,6 +70,7 @@ def create(
7170
merchant_name_prefix: str,
7271
merchant_postal_code: str,
7372
merchant_state: str,
73+
presentment_amount: card_push_transfer_create_params.PresentmentAmount,
7474
recipient_name: str,
7575
sender_address_city: str,
7676
sender_address_line1: str,
@@ -87,13 +87,10 @@ def create(
8787
timeout: float | httpx.Timeout | None | NotGiven = not_given,
8888
idempotency_key: str | None = None,
8989
) -> CardPushTransfer:
90-
"""Create a Card Push Transfer
90+
"""
91+
Create a Card Push Transfer
9192
9293
Args:
93-
amount: The transfer amount in USD cents.
94-
95-
For Card Push transfers, must be positive.
96-
9794
business_application_identifier: The Business Application Identifier describes the type of transaction being
9895
performed. Your program must be approved for the specified Business Application
9996
Identifier in order to use it.
@@ -134,6 +131,10 @@ def create(
134131
135132
merchant_state: The state of the merchant (generally your business) sending the transfer.
136133
134+
presentment_amount: The amount to transfer. The receiving bank will convert this to the cardholder's
135+
currency. The amount that is applied to your Increase account matches the
136+
currency of your account.
137+
137138
recipient_name: The name of the funds recipient.
138139
139140
sender_address_city: The city of the sender.
@@ -164,7 +165,6 @@ def create(
164165
"/card_push_transfers",
165166
body=maybe_transform(
166167
{
167-
"amount": amount,
168168
"business_application_identifier": business_application_identifier,
169169
"card_token_id": card_token_id,
170170
"merchant_category_code": merchant_category_code,
@@ -173,6 +173,7 @@ def create(
173173
"merchant_name_prefix": merchant_name_prefix,
174174
"merchant_postal_code": merchant_postal_code,
175175
"merchant_state": merchant_state,
176+
"presentment_amount": presentment_amount,
176177
"recipient_name": recipient_name,
177178
"sender_address_city": sender_address_city,
178179
"sender_address_line1": sender_address_line1,
@@ -406,7 +407,6 @@ def with_streaming_response(self) -> AsyncCardPushTransfersResourceWithStreaming
406407
async def create(
407408
self,
408409
*,
409-
amount: int,
410410
business_application_identifier: Literal[
411411
"account_to_account",
412412
"business_to_business",
@@ -430,6 +430,7 @@ async def create(
430430
merchant_name_prefix: str,
431431
merchant_postal_code: str,
432432
merchant_state: str,
433+
presentment_amount: card_push_transfer_create_params.PresentmentAmount,
433434
recipient_name: str,
434435
sender_address_city: str,
435436
sender_address_line1: str,
@@ -446,13 +447,10 @@ async def create(
446447
timeout: float | httpx.Timeout | None | NotGiven = not_given,
447448
idempotency_key: str | None = None,
448449
) -> CardPushTransfer:
449-
"""Create a Card Push Transfer
450+
"""
451+
Create a Card Push Transfer
450452
451453
Args:
452-
amount: The transfer amount in USD cents.
453-
454-
For Card Push transfers, must be positive.
455-
456454
business_application_identifier: The Business Application Identifier describes the type of transaction being
457455
performed. Your program must be approved for the specified Business Application
458456
Identifier in order to use it.
@@ -493,6 +491,10 @@ async def create(
493491
494492
merchant_state: The state of the merchant (generally your business) sending the transfer.
495493
494+
presentment_amount: The amount to transfer. The receiving bank will convert this to the cardholder's
495+
currency. The amount that is applied to your Increase account matches the
496+
currency of your account.
497+
496498
recipient_name: The name of the funds recipient.
497499
498500
sender_address_city: The city of the sender.
@@ -523,7 +525,6 @@ async def create(
523525
"/card_push_transfers",
524526
body=await async_maybe_transform(
525527
{
526-
"amount": amount,
527528
"business_application_identifier": business_application_identifier,
528529
"card_token_id": card_token_id,
529530
"merchant_category_code": merchant_category_code,
@@ -532,6 +533,7 @@ async def create(
532533
"merchant_name_prefix": merchant_name_prefix,
533534
"merchant_postal_code": merchant_postal_code,
534535
"merchant_state": merchant_state,
536+
"presentment_amount": presentment_amount,
535537
"recipient_name": recipient_name,
536538
"sender_address_city": sender_address_city,
537539
"sender_address_line1": sender_address_line1,

0 commit comments

Comments
 (0)