Skip to content

Commit

Permalink
feat(api): add dk_interbank_clearing_code and dk_nets enum members (#276
Browse files Browse the repository at this point in the history
)
  • Loading branch information
stainless-bot committed Nov 9, 2023
1 parent d97b06d commit 7a9e489
Show file tree
Hide file tree
Showing 31 changed files with 67 additions and 13 deletions.
2 changes: 2 additions & 0 deletions src/modern_treasury/resources/expected_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ def list(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down Expand Up @@ -739,6 +740,7 @@ def list(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
2 changes: 2 additions & 0 deletions src/modern_treasury/resources/external_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ def verify(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down Expand Up @@ -796,6 +797,7 @@ async def verify(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def list(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down Expand Up @@ -502,6 +503,7 @@ def list(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
4 changes: 4 additions & 0 deletions src/modern_treasury/resources/invoices/invoices.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def create(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down Expand Up @@ -256,6 +257,7 @@ def update(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down Expand Up @@ -510,6 +512,7 @@ async def create(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down Expand Up @@ -697,6 +700,7 @@ async def update(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ def list(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down Expand Up @@ -1452,6 +1453,7 @@ def list(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
4 changes: 4 additions & 0 deletions src/modern_treasury/resources/routing_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def create(
"ca_cpa",
"chips",
"cnaps",
"dk_interbank_clearing_code",
"gb_sort_code",
"hk_interbank_clearing_code",
"in_ifsc",
Expand All @@ -65,6 +66,7 @@ def create(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down Expand Up @@ -275,6 +277,7 @@ async def create(
"ca_cpa",
"chips",
"cnaps",
"dk_interbank_clearing_code",
"gb_sort_code",
"hk_interbank_clearing_code",
"in_ifsc",
Expand All @@ -294,6 +297,7 @@ async def create(
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
16 changes: 8 additions & 8 deletions src/modern_treasury/resources/transactions/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def create(
amount: int,
as_of_date: Union[str, date, None],
direction: str,
internal_account_id: str,
vendor_code: str,
vendor_code_type: str,
internal_account_id: str | NotGiven = NOT_GIVEN,
metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
posted: bool | NotGiven = NOT_GIVEN,
vendor_description: Optional[str] | NotGiven = NOT_GIVEN,
Expand All @@ -73,6 +73,8 @@ def create(
direction: Either `credit` or `debit`.
internal_account_id: The ID of the relevant Internal Account.
vendor_code: When applicable, the bank-given code that determines the transaction's category.
For most banks this is the BAI2/BTRS transaction code.
Expand All @@ -81,8 +83,6 @@ def create(
`evolve`, `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `signet`, `silvergate`,
`swift`, `us_bank`, or others.
internal_account_id: The ID of the relevant Internal Account.
metadata: Additional data represented as key-value pairs. Both the key and value must be
strings.
Expand All @@ -108,9 +108,9 @@ def create(
"amount": amount,
"as_of_date": as_of_date,
"direction": direction,
"internal_account_id": internal_account_id,
"vendor_code": vendor_code,
"vendor_code_type": vendor_code_type,
"internal_account_id": internal_account_id,
"metadata": metadata,
"posted": posted,
"vendor_description": vendor_description,
Expand Down Expand Up @@ -343,9 +343,9 @@ async def create(
amount: int,
as_of_date: Union[str, date, None],
direction: str,
internal_account_id: str,
vendor_code: str,
vendor_code_type: str,
internal_account_id: str | NotGiven = NOT_GIVEN,
metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
posted: bool | NotGiven = NOT_GIVEN,
vendor_description: Optional[str] | NotGiven = NOT_GIVEN,
Expand All @@ -369,6 +369,8 @@ async def create(
direction: Either `credit` or `debit`.
internal_account_id: The ID of the relevant Internal Account.
vendor_code: When applicable, the bank-given code that determines the transaction's category.
For most banks this is the BAI2/BTRS transaction code.
Expand All @@ -377,8 +379,6 @@ async def create(
`evolve`, `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `signet`, `silvergate`,
`swift`, `us_bank`, or others.
internal_account_id: The ID of the relevant Internal Account.
metadata: Additional data represented as key-value pairs. Both the key and value must be
strings.
Expand All @@ -404,9 +404,9 @@ async def create(
"amount": amount,
"as_of_date": as_of_date,
"direction": direction,
"internal_account_id": internal_account_id,
"vendor_code": vendor_code,
"vendor_code_type": vendor_code_type,
"internal_account_id": internal_account_id,
"metadata": metadata,
"posted": posted,
"vendor_description": vendor_description,
Expand Down
2 changes: 2 additions & 0 deletions src/modern_treasury/resources/validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def validate_routing_number(
"ca_cpa",
"chips",
"cnaps",
"dk_interbank_clearing_code",
"gb_sort_code",
"hk_interbank_clearing_code",
"in_ifsc",
Expand Down Expand Up @@ -114,6 +115,7 @@ async def validate_routing_number(
"ca_cpa",
"chips",
"cnaps",
"dk_interbank_clearing_code",
"gb_sort_code",
"hk_interbank_clearing_code",
"in_ifsc",
Expand Down
4 changes: 4 additions & 0 deletions src/modern_treasury/types/bulk_request_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ class ResourcePaymentOrderCreateRequestReceivingAccountRoutingDetail(TypedDict,
"ca_cpa",
"chips",
"cnaps",
"dk_interbank_clearing_code",
"gb_sort_code",
"hk_interbank_clearing_code",
"in_ifsc",
Expand All @@ -458,6 +459,7 @@ class ResourcePaymentOrderCreateRequestReceivingAccountRoutingDetail(TypedDict,
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down Expand Up @@ -1187,6 +1189,7 @@ class ResourcePaymentOrderUpdateRequestWithIDReceivingAccountRoutingDetail(Typed
"ca_cpa",
"chips",
"cnaps",
"dk_interbank_clearing_code",
"gb_sort_code",
"hk_interbank_clearing_code",
"in_ifsc",
Expand All @@ -1206,6 +1209,7 @@ class ResourcePaymentOrderUpdateRequestWithIDReceivingAccountRoutingDetail(Typed
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
2 changes: 2 additions & 0 deletions src/modern_treasury/types/counterparty_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ class AccountRoutingDetail(TypedDict, total=False):
"ca_cpa",
"chips",
"cnaps",
"dk_interbank_clearing_code",
"gb_sort_code",
"hk_interbank_clearing_code",
"in_ifsc",
Expand All @@ -199,6 +200,7 @@ class AccountRoutingDetail(TypedDict, total=False):
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
1 change: 1 addition & 0 deletions src/modern_treasury/types/expected_payment_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class ExpectedPaymentListParams(TypedDict, total=False):
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
1 change: 1 addition & 0 deletions src/modern_treasury/types/expected_payment_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
2 changes: 2 additions & 0 deletions src/modern_treasury/types/external_account_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class RoutingDetail(TypedDict, total=False):
"ca_cpa",
"chips",
"cnaps",
"dk_interbank_clearing_code",
"gb_sort_code",
"hk_interbank_clearing_code",
"in_ifsc",
Expand All @@ -189,6 +190,7 @@ class RoutingDetail(TypedDict, total=False):
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class ExternalAccountVerifyParams(TypedDict, total=False):
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
1 change: 1 addition & 0 deletions src/modern_treasury/types/incoming_payment_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class IncomingPaymentDetail(BaseModel):
"ca_cpa",
"chips",
"cnaps",
"dk_interbank_clearing_code",
"gb_sort_code",
"hk_interbank_clearing_code",
"in_ifsc",
Expand Down
1 change: 1 addition & 0 deletions src/modern_treasury/types/internal_account_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class InternalAccountListParams(TypedDict, total=False):
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
1 change: 1 addition & 0 deletions src/modern_treasury/types/invoice_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class InvoiceCreateParams(TypedDict, total=False):
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
1 change: 1 addition & 0 deletions src/modern_treasury/types/invoice_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class InvoiceUpdateParams(TypedDict, total=False):
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ class ReceivingAccountRoutingDetail(TypedDict, total=False):
"ca_cpa",
"chips",
"cnaps",
"dk_interbank_clearing_code",
"gb_sort_code",
"hk_interbank_clearing_code",
"in_ifsc",
Expand All @@ -527,6 +528,7 @@ class ReceivingAccountRoutingDetail(TypedDict, total=False):
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
2 changes: 2 additions & 0 deletions src/modern_treasury/types/payment_order_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ class ReceivingAccountRoutingDetail(TypedDict, total=False):
"ca_cpa",
"chips",
"cnaps",
"dk_interbank_clearing_code",
"gb_sort_code",
"hk_interbank_clearing_code",
"in_ifsc",
Expand All @@ -571,6 +572,7 @@ class ReceivingAccountRoutingDetail(TypedDict, total=False):
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
1 change: 1 addition & 0 deletions src/modern_treasury/types/payment_order_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class PaymentOrderListParams(TypedDict, total=False):
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
1 change: 1 addition & 0 deletions src/modern_treasury/types/payment_order_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"chats",
"check",
"cross_border",
"dk_nets",
"eft",
"interac",
"masav",
Expand Down
Loading

0 comments on commit 7a9e489

Please sign in to comment.