Skip to content

Commit

Permalink
feat(api): updates (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Oct 24, 2023
1 parent 9e6ed39 commit d2c3b80
Show file tree
Hide file tree
Showing 81 changed files with 564 additions and 830 deletions.
15 changes: 5 additions & 10 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,20 +361,15 @@ Methods:
Types:

```python
from modern_treasury.types import (
LedgerEventHandlerCreateResponse,
LedgerEventHandlerRetrieveResponse,
LedgerEventHandlerListResponse,
LedgerEventHandlerDeleteResponse,
)
from modern_treasury.types import LedgerEventHandler, LedgerEventHandlerVariable
```

Methods:

- <code title="post /api/ledger_event_handlers">client.ledger_event_handlers.<a href="./src/modern_treasury/resources/ledger_event_handlers.py">create</a>(\*\*<a href="src/modern_treasury/types/ledger_event_handler_create_params.py">params</a>) -> <a href="./src/modern_treasury/types/ledger_event_handler_create_response.py">LedgerEventHandlerCreateResponse</a></code>
- <code title="get /api/ledger_event_handlers/{id}">client.ledger_event_handlers.<a href="./src/modern_treasury/resources/ledger_event_handlers.py">retrieve</a>(id) -> <a href="./src/modern_treasury/types/ledger_event_handler_retrieve_response.py">LedgerEventHandlerRetrieveResponse</a></code>
- <code title="get /api/ledger_event_handlers">client.ledger_event_handlers.<a href="./src/modern_treasury/resources/ledger_event_handlers.py">list</a>(\*\*<a href="src/modern_treasury/types/ledger_event_handler_list_params.py">params</a>) -> <a href="./src/modern_treasury/types/ledger_event_handler_list_response.py">SyncPage[LedgerEventHandlerListResponse]</a></code>
- <code title="delete /api/ledger_event_handlers/{id}">client.ledger_event_handlers.<a href="./src/modern_treasury/resources/ledger_event_handlers.py">delete</a>(id) -> <a href="./src/modern_treasury/types/ledger_event_handler_delete_response.py">LedgerEventHandlerDeleteResponse</a></code>
- <code title="post /api/ledger_event_handlers">client.ledger_event_handlers.<a href="./src/modern_treasury/resources/ledger_event_handlers.py">create</a>(\*\*<a href="src/modern_treasury/types/ledger_event_handler_create_params.py">params</a>) -> <a href="./src/modern_treasury/types/ledger_event_handler.py">LedgerEventHandler</a></code>
- <code title="get /api/ledger_event_handlers/{id}">client.ledger_event_handlers.<a href="./src/modern_treasury/resources/ledger_event_handlers.py">retrieve</a>(id) -> <a href="./src/modern_treasury/types/ledger_event_handler.py">LedgerEventHandler</a></code>
- <code title="get /api/ledger_event_handlers">client.ledger_event_handlers.<a href="./src/modern_treasury/resources/ledger_event_handlers.py">list</a>(\*\*<a href="src/modern_treasury/types/ledger_event_handler_list_params.py">params</a>) -> <a href="./src/modern_treasury/types/ledger_event_handler.py">SyncPage[LedgerEventHandler]</a></code>
- <code title="delete /api/ledger_event_handlers/{id}">client.ledger_event_handlers.<a href="./src/modern_treasury/resources/ledger_event_handlers.py">delete</a>(id) -> <a href="./src/modern_treasury/types/ledger_event_handler.py">LedgerEventHandler</a></code>

# LedgerTransactions

Expand Down
2 changes: 2 additions & 0 deletions src/modern_treasury/resources/account_collection_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def create(
"NLD",
"PER",
"ESP",
"GBR",
]
]
| NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -246,6 +247,7 @@ async def create(
"NLD",
"PER",
"ESP",
"GBR",
]
]
| NotGiven = NOT_GIVEN,
Expand Down
4 changes: 4 additions & 0 deletions src/modern_treasury/resources/counterparties.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ def collect_account(
"routingNumberType",
"address",
"jp_zengin_code",
"se_bankgiro_clearing_code",
"nz_national_clearing_code",
]
]
| NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -715,6 +717,8 @@ async def collect_account(
"routingNumberType",
"address",
"jp_zengin_code",
"se_bankgiro_clearing_code",
"nz_national_clearing_code",
]
]
| NotGiven = NOT_GIVEN,
Expand Down
4 changes: 4 additions & 0 deletions src/modern_treasury/resources/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def create(
"counterparties",
"expected_payments",
"external_accounts",
"incoming_payment_details",
"internal_accounts",
"organizations",
"paper_items",
Expand Down Expand Up @@ -131,6 +132,7 @@ def list(
"counterparties",
"expected_payments",
"external_accounts",
"incoming_payment_details",
"internal_accounts",
"organizations",
"paper_items",
Expand Down Expand Up @@ -198,6 +200,7 @@ async def create(
"counterparties",
"expected_payments",
"external_accounts",
"incoming_payment_details",
"internal_accounts",
"organizations",
"paper_items",
Expand Down Expand Up @@ -304,6 +307,7 @@ def list(
"counterparties",
"expected_payments",
"external_accounts",
"incoming_payment_details",
"internal_accounts",
"organizations",
"paper_items",
Expand Down
20 changes: 20 additions & 0 deletions src/modern_treasury/resources/expected_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def create(
metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
reconciliation_filters: Optional[object] | NotGiven = NOT_GIVEN,
reconciliation_groups: Optional[object] | NotGiven = NOT_GIVEN,
reconciliation_rule_variables: Optional[List[object]] | NotGiven = NOT_GIVEN,
remittance_information: Optional[str] | NotGiven = NOT_GIVEN,
statement_descriptor: Optional[str] | NotGiven = NOT_GIVEN,
type: Optional[ExpectedPaymentType] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -83,6 +84,8 @@ def create(
reconciliation_groups: The reconciliation groups you have for this payment.
reconciliation_rule_variables: An array of reconciliation rule variables for this payment.
remittance_information: For `ach`, this field will be passed through on an addenda record. For `wire`
payments the field will be passed through as the "Originator to Beneficiary
Information", also known as OBI or Fedwire tag 6000.
Expand Down Expand Up @@ -122,6 +125,7 @@ def create(
"metadata": metadata,
"reconciliation_filters": reconciliation_filters,
"reconciliation_groups": reconciliation_groups,
"reconciliation_rule_variables": reconciliation_rule_variables,
"remittance_information": remittance_information,
"statement_descriptor": statement_descriptor,
"type": type,
Expand Down Expand Up @@ -185,6 +189,7 @@ def update(
metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
reconciliation_filters: Optional[object] | NotGiven = NOT_GIVEN,
reconciliation_groups: Optional[object] | NotGiven = NOT_GIVEN,
reconciliation_rule_variables: Optional[List[object]] | NotGiven = NOT_GIVEN,
remittance_information: Optional[str] | NotGiven = NOT_GIVEN,
statement_descriptor: Optional[str] | NotGiven = NOT_GIVEN,
type: Optional[ExpectedPaymentType] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -228,6 +233,8 @@ def update(
reconciliation_groups: The reconciliation groups you have for this payment.
reconciliation_rule_variables: An array of reconciliation rule variables for this payment.
remittance_information: For `ach`, this field will be passed through on an addenda record. For `wire`
payments the field will be passed through as the "Originator to Beneficiary
Information", also known as OBI or Fedwire tag 6000.
Expand Down Expand Up @@ -266,6 +273,7 @@ def update(
"metadata": metadata,
"reconciliation_filters": reconciliation_filters,
"reconciliation_groups": reconciliation_groups,
"reconciliation_rule_variables": reconciliation_rule_variables,
"remittance_information": remittance_information,
"statement_descriptor": statement_descriptor,
"type": type,
Expand Down Expand Up @@ -300,13 +308,15 @@ def list(
"bacs",
"book",
"card",
"chats",
"check",
"cross_border",
"eft",
"interac",
"masav",
"neft",
"nics",
"nz_becs",
"provxchange",
"rtp",
"se_bankgirot",
Expand Down Expand Up @@ -439,6 +449,7 @@ async def create(
metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
reconciliation_filters: Optional[object] | NotGiven = NOT_GIVEN,
reconciliation_groups: Optional[object] | NotGiven = NOT_GIVEN,
reconciliation_rule_variables: Optional[List[object]] | NotGiven = NOT_GIVEN,
remittance_information: Optional[str] | NotGiven = NOT_GIVEN,
statement_descriptor: Optional[str] | NotGiven = NOT_GIVEN,
type: Optional[ExpectedPaymentType] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -482,6 +493,8 @@ async def create(
reconciliation_groups: The reconciliation groups you have for this payment.
reconciliation_rule_variables: An array of reconciliation rule variables for this payment.
remittance_information: For `ach`, this field will be passed through on an addenda record. For `wire`
payments the field will be passed through as the "Originator to Beneficiary
Information", also known as OBI or Fedwire tag 6000.
Expand Down Expand Up @@ -521,6 +534,7 @@ async def create(
"metadata": metadata,
"reconciliation_filters": reconciliation_filters,
"reconciliation_groups": reconciliation_groups,
"reconciliation_rule_variables": reconciliation_rule_variables,
"remittance_information": remittance_information,
"statement_descriptor": statement_descriptor,
"type": type,
Expand Down Expand Up @@ -584,6 +598,7 @@ async def update(
metadata: Dict[str, str] | NotGiven = NOT_GIVEN,
reconciliation_filters: Optional[object] | NotGiven = NOT_GIVEN,
reconciliation_groups: Optional[object] | NotGiven = NOT_GIVEN,
reconciliation_rule_variables: Optional[List[object]] | NotGiven = NOT_GIVEN,
remittance_information: Optional[str] | NotGiven = NOT_GIVEN,
statement_descriptor: Optional[str] | NotGiven = NOT_GIVEN,
type: Optional[ExpectedPaymentType] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -627,6 +642,8 @@ async def update(
reconciliation_groups: The reconciliation groups you have for this payment.
reconciliation_rule_variables: An array of reconciliation rule variables for this payment.
remittance_information: For `ach`, this field will be passed through on an addenda record. For `wire`
payments the field will be passed through as the "Originator to Beneficiary
Information", also known as OBI or Fedwire tag 6000.
Expand Down Expand Up @@ -665,6 +682,7 @@ async def update(
"metadata": metadata,
"reconciliation_filters": reconciliation_filters,
"reconciliation_groups": reconciliation_groups,
"reconciliation_rule_variables": reconciliation_rule_variables,
"remittance_information": remittance_information,
"statement_descriptor": statement_descriptor,
"type": type,
Expand Down Expand Up @@ -699,13 +717,15 @@ def list(
"bacs",
"book",
"card",
"chats",
"check",
"cross_border",
"eft",
"interac",
"masav",
"neft",
"nics",
"nz_becs",
"provxchange",
"rtp",
"se_bankgirot",
Expand Down
4 changes: 4 additions & 0 deletions src/modern_treasury/resources/external_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,15 @@ def verify(
"bacs",
"book",
"card",
"chats",
"check",
"cross_border",
"eft",
"interac",
"masav",
"neft",
"nics",
"nz_becs",
"provxchange",
"rtp",
"se_bankgirot",
Expand Down Expand Up @@ -772,13 +774,15 @@ async def verify(
"bacs",
"book",
"card",
"chats",
"check",
"cross_border",
"eft",
"interac",
"masav",
"neft",
"nics",
"nz_becs",
"provxchange",
"rtp",
"se_bankgirot",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,15 @@ def list(
"bacs",
"book",
"card",
"chats",
"check",
"cross_border",
"eft",
"interac",
"masav",
"neft",
"nics",
"nz_becs",
"provxchange",
"rtp",
"se_bankgirot",
Expand Down Expand Up @@ -476,13 +478,15 @@ def list(
"bacs",
"book",
"card",
"chats",
"check",
"cross_border",
"eft",
"interac",
"masav",
"neft",
"nics",
"nz_becs",
"provxchange",
"rtp",
"se_bankgirot",
Expand Down
Loading

0 comments on commit d2c3b80

Please sign in to comment.