3737from .BlockchainBalance import from_json as BlockchainBalance_from_json
3838from .CurrencyAmount import CurrencyAmount
3939from .CurrencyAmount import from_json as CurrencyAmount_from_json
40+ from .CurrencyAmountInput import CurrencyAmountInput
4041from .Entity import Entity
4142from .LightsparkNodeOwner import LightsparkNodeOwner
4243from .TransactionFailures import TransactionFailures
@@ -745,13 +746,15 @@ def get_transactions(
745746 lightning_node_id : Optional [str ] = None ,
746747 statuses : Optional [List [TransactionStatus ]] = None ,
747748 exclude_failures : Optional [TransactionFailures ] = None ,
749+ max_amount : Optional [CurrencyAmountInput ] = None ,
750+ min_amount : Optional [CurrencyAmountInput ] = None ,
748751 ) -> AccountToTransactionsConnection :
749752 json = self .requester .execute_graphql (
750753 """
751- query FetchAccountToTransactionsConnection($entity_id: ID!, $first: Int, $after: String, $types: [TransactionType!], $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID, $statuses: [TransactionStatus!], $exclude_failures: TransactionFailures) {
754+ query FetchAccountToTransactionsConnection($entity_id: ID!, $first: Int, $after: String, $types: [TransactionType!], $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID, $statuses: [TransactionStatus!], $exclude_failures: TransactionFailures, $max_amount: CurrencyAmountInput, $min_amount: CurrencyAmountInput ) {
752755 entity(id: $entity_id) {
753756 ... on Account {
754- transactions(, first: $first, after: $after, types: $types, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, statuses: $statuses, exclude_failures: $exclude_failures) {
757+ transactions(, first: $first, after: $after, types: $types, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, statuses: $statuses, exclude_failures: $exclude_failures, max_amount: $max_amount, min_amount: $min_amount ) {
755758 __typename
756759 account_to_transactions_connection_count: count
757760 account_to_transactions_connection_page_info: page_info {
@@ -1351,6 +1354,8 @@ def get_transactions(
13511354 "lightning_node_id" : lightning_node_id ,
13521355 "statuses" : statuses ,
13531356 "exclude_failures" : exclude_failures ,
1357+ "max_amount" : max_amount ,
1358+ "min_amount" : min_amount ,
13541359 },
13551360 )
13561361 connection = json ["entity" ]["transactions" ]
@@ -1364,13 +1369,15 @@ def get_payment_requests(
13641369 before_date : Optional [datetime ] = None ,
13651370 bitcoin_network : Optional [BitcoinNetwork ] = None ,
13661371 lightning_node_id : Optional [str ] = None ,
1372+ max_amount : Optional [CurrencyAmountInput ] = None ,
1373+ min_amount : Optional [CurrencyAmountInput ] = None ,
13671374 ) -> AccountToPaymentRequestsConnection :
13681375 json = self .requester .execute_graphql (
13691376 """
1370- query FetchAccountToPaymentRequestsConnection($entity_id: ID!, $first: Int, $after: String, $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID) {
1377+ query FetchAccountToPaymentRequestsConnection($entity_id: ID!, $first: Int, $after: String, $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID, $max_amount: CurrencyAmountInput, $min_amount: CurrencyAmountInput ) {
13711378 entity(id: $entity_id) {
13721379 ... on Account {
1373- payment_requests(, first: $first, after: $after, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id) {
1380+ payment_requests(, first: $first, after: $after, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, max_amount: $max_amount, min_amount: $min_amount ) {
13741381 __typename
13751382 account_to_payment_requests_connection_count: count
13761383 account_to_payment_requests_connection_page_info: page_info {
@@ -1704,6 +1711,8 @@ def get_payment_requests(
17041711 "before_date" : before_date ,
17051712 "bitcoin_network" : bitcoin_network ,
17061713 "lightning_node_id" : lightning_node_id ,
1714+ "max_amount" : max_amount ,
1715+ "min_amount" : min_amount ,
17071716 },
17081717 )
17091718 connection = json ["entity" ]["payment_requests" ]
@@ -1719,13 +1728,15 @@ def get_withdrawal_requests(
17191728 idempotency_keys : Optional [List [str ]] = None ,
17201729 after_date : Optional [datetime ] = None ,
17211730 before_date : Optional [datetime ] = None ,
1731+ max_amount : Optional [CurrencyAmountInput ] = None ,
1732+ min_amount : Optional [CurrencyAmountInput ] = None ,
17221733 ) -> AccountToWithdrawalRequestsConnection :
17231734 json = self .requester .execute_graphql (
17241735 """
1725- query FetchAccountToWithdrawalRequestsConnection($entity_id: ID!, $first: Int, $after: String, $bitcoin_networks: [BitcoinNetwork!], $statuses: [WithdrawalRequestStatus!], $node_ids: [ID!], $idempotency_keys: [String!], $after_date: DateTime, $before_date: DateTime) {
1736+ query FetchAccountToWithdrawalRequestsConnection($entity_id: ID!, $first: Int, $after: String, $bitcoin_networks: [BitcoinNetwork!], $statuses: [WithdrawalRequestStatus!], $node_ids: [ID!], $idempotency_keys: [String!], $after_date: DateTime, $before_date: DateTime, $max_amount: CurrencyAmountInput, $min_amount: CurrencyAmountInput ) {
17261737 entity(id: $entity_id) {
17271738 ... on Account {
1728- withdrawal_requests(, first: $first, after: $after, bitcoin_networks: $bitcoin_networks, statuses: $statuses, node_ids: $node_ids, idempotency_keys: $idempotency_keys, after_date: $after_date, before_date: $before_date) {
1739+ withdrawal_requests(, first: $first, after: $after, bitcoin_networks: $bitcoin_networks, statuses: $statuses, node_ids: $node_ids, idempotency_keys: $idempotency_keys, after_date: $after_date, before_date: $before_date, max_amount: $max_amount, min_amount: $min_amount ) {
17291740 __typename
17301741 account_to_withdrawal_requests_connection_count: count
17311742 account_to_withdrawal_requests_connection_page_info: page_info {
@@ -1805,6 +1816,8 @@ def get_withdrawal_requests(
18051816 "idempotency_keys" : idempotency_keys ,
18061817 "after_date" : after_date ,
18071818 "before_date" : before_date ,
1819+ "max_amount" : max_amount ,
1820+ "min_amount" : min_amount ,
18081821 },
18091822 )
18101823 connection = json ["entity" ]["withdrawal_requests" ]
0 commit comments