-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e5556b
commit 74a2fdb
Showing
4 changed files
with
151 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os | ||
|
||
import blockchyp | ||
|
||
# initialize a client. | ||
client = blockchyp.Client( | ||
api_key=os.environ["BC_API_KEY"], | ||
bearer_token=os.environ["BC_BEARER_TOKEN"], | ||
signing_key=os.environ["BC_SIGNING_KEY"], | ||
) | ||
|
||
# populate request parameters. | ||
request = { | ||
} | ||
|
||
# run the transaction. | ||
response = client.partner_statements(request) | ||
|
||
print("Response: %r" % response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright 2019-2023 BlockChyp, Inc. All rights reserved. Use of this code is | ||
# governed by a license that can be found in the LICENSE file. | ||
# | ||
# This file was generated automatically by the BlockChyp SDK Generator. Changes | ||
# to this file will be lost every time the code is regenerated. | ||
import os | ||
import os.path | ||
import time | ||
import uuid | ||
import pkg_resources | ||
|
||
import pytest | ||
|
||
import blockchyp | ||
|
||
from .util import _get_test_client, _get_test_config | ||
|
||
|
||
@pytest.mark.itest | ||
def test_partner_statements(): | ||
"""Can list partner statements.""" | ||
|
||
|
||
terminal = _get_test_config().get("defaultTerminalName") | ||
|
||
|
||
client = _get_test_client("") | ||
|
||
request = { | ||
"test": True, | ||
} | ||
|
||
response = client.partner_statements(request) | ||
print("Response: %r" % response) | ||
|
||
assert response.get("success") is True |