@@ -121,12 +121,12 @@ import os
121121
122122
123123with Apideck(
124- api_key = os.getenv(" APIDECK_API_KEY" , " " ),
125124 consumer_id = " test-consumer" ,
126125 app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
126+ api_key = os.getenv(" APIDECK_API_KEY" , " " ),
127127) as apideck:
128128
129- res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer " , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX " , service_id = " salesforce " , filter_ = {
129+ res = apideck.accounting.tax_rates.list(raw = False , service_id = " salesforce " , limit = 20 , filter_ = {
130130 " assets" : True ,
131131 " equity" : True ,
132132 " expenses" : True ,
@@ -154,12 +154,12 @@ import os
154154async def main ():
155155
156156 async with Apideck(
157- api_key = os.getenv(" APIDECK_API_KEY" , " " ),
158157 consumer_id = " test-consumer" ,
159158 app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
159+ api_key = os.getenv(" APIDECK_API_KEY" , " " ),
160160 ) as apideck:
161161
162- res = await apideck.accounting.tax_rates.list_async(consumer_id = " test-consumer " , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX " , service_id = " salesforce " , filter_ = {
162+ res = await apideck.accounting.tax_rates.list_async(raw = False , service_id = " salesforce " , limit = 20 , filter_ = {
163163 " assets" : True ,
164164 " equity" : True ,
165165 " expenses" : True ,
@@ -201,7 +201,7 @@ with Apideck(
201201 app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
202202) as apideck:
203203
204- res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer " , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX " , service_id = " salesforce " , filter_ = {
204+ res = apideck.accounting.tax_rates.list(raw = False , service_id = " salesforce " , limit = 20 , filter_ = {
205205 " assets" : True ,
206206 " equity" : True ,
207207 " expenses" : True ,
@@ -802,12 +802,12 @@ import os
802802
803803
804804with Apideck(
805- api_key = os.getenv(" APIDECK_API_KEY" , " " ),
806805 consumer_id = " test-consumer" ,
807806 app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
807+ api_key = os.getenv(" APIDECK_API_KEY" , " " ),
808808) as apideck:
809809
810- res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer " , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX " , service_id = " salesforce " , filter_ = {
810+ res = apideck.accounting.tax_rates.list(raw = False , service_id = " salesforce " , limit = 20 , filter_ = {
811811 " assets" : True ,
812812 " equity" : True ,
813813 " expenses" : True ,
@@ -842,12 +842,12 @@ import os
842842
843843
844844with Apideck(
845- api_key = os.getenv(" APIDECK_API_KEY" , " " ),
846845 consumer_id = " test-consumer" ,
847846 app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
847+ api_key = os.getenv(" APIDECK_API_KEY" , " " ),
848848) as apideck:
849849
850- res = apideck.accounting.attachments.upload(reference_type = apideck_unify.AttachmentReferenceType.INVOICE , reference_id = " 123456" , request_body = open (" example.file" , " rb" ), x_apideck_metadata = " {\" name\" :\" document.pdf\" ,\" description\" :\" Invoice attachment\" }" , consumer_id = " test-consumer " , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX " , service_id = " salesforce" )
850+ res = apideck.accounting.attachments.upload(reference_type = apideck_unify.AttachmentReferenceType.INVOICE , reference_id = " 123456" , request_body = open (" example.file" , " rb" ), raw = False , x_apideck_metadata = " {\" name\" :\" document.pdf\" ,\" description\" :\" Invoice attachment\" }" , service_id = " salesforce" )
851851
852852 assert res.create_attachment_response is not None
853853
@@ -870,12 +870,12 @@ import os
870870
871871
872872with Apideck(
873- api_key = os.getenv(" APIDECK_API_KEY" , " " ),
874873 consumer_id = " test-consumer" ,
875874 app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
875+ api_key = os.getenv(" APIDECK_API_KEY" , " " ),
876876) as apideck:
877877
878- res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer " , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX " , service_id = " salesforce " , filter_ = {
878+ res = apideck.accounting.tax_rates.list(raw = False , service_id = " salesforce " , limit = 20 , filter_ = {
879879 " assets" : True ,
880880 " equity" : True ,
881881 " expenses" : True ,
@@ -902,12 +902,12 @@ import os
902902
903903with Apideck(
904904 retry_config = RetryConfig(" backoff" , BackoffStrategy(1 , 50 , 1.1 , 100 ), False ),
905- api_key = os.getenv(" APIDECK_API_KEY" , " " ),
906905 consumer_id = " test-consumer" ,
907906 app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
907+ api_key = os.getenv(" APIDECK_API_KEY" , " " ),
908908) as apideck:
909909
910- res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer " , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX " , service_id = " salesforce " , filter_ = {
910+ res = apideck.accounting.tax_rates.list(raw = False , service_id = " salesforce " , limit = 20 , filter_ = {
911911 " assets" : True ,
912912 " equity" : True ,
913913 " expenses" : True ,
@@ -958,14 +958,14 @@ import os
958958
959959
960960with Apideck(
961- api_key = os.getenv(" APIDECK_API_KEY" , " " ),
962961 consumer_id = " test-consumer" ,
963962 app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
963+ api_key = os.getenv(" APIDECK_API_KEY" , " " ),
964964) as apideck:
965965 res = None
966966 try :
967967
968- res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer " , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX " , service_id = " salesforce " , filter_ = {
968+ res = apideck.accounting.tax_rates.list(raw = False , service_id = " salesforce " , limit = 20 , filter_ = {
969969 " assets" : True ,
970970 " equity" : True ,
971971 " expenses" : True ,
@@ -1014,12 +1014,12 @@ import os
10141014
10151015with Apideck(
10161016 server_url = " https://unify.apideck.com" ,
1017- api_key = os.getenv(" APIDECK_API_KEY" , " " ),
10181017 consumer_id = " test-consumer" ,
10191018 app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
1019+ api_key = os.getenv(" APIDECK_API_KEY" , " " ),
10201020) as apideck:
10211021
1022- res = apideck.accounting.tax_rates.list(consumer_id = " test-consumer " , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX " , service_id = " salesforce " , filter_ = {
1022+ res = apideck.accounting.tax_rates.list(raw = False , service_id = " salesforce " , limit = 20 , filter_ = {
10231023 " assets" : True ,
10241024 " equity" : True ,
10251025 " expenses" : True ,
@@ -1046,12 +1046,12 @@ import os
10461046
10471047
10481048with Apideck(
1049- api_key = os.getenv(" APIDECK_API_KEY" , " " ),
10501049 consumer_id = " test-consumer" ,
10511050 app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
1051+ api_key = os.getenv(" APIDECK_API_KEY" , " " ),
10521052) as apideck:
10531053
1054- res = apideck.accounting.attachments.upload(reference_type = apideck_unify.AttachmentReferenceType.INVOICE , reference_id = " 123456" , request_body = open (" example.file" , " rb" ), x_apideck_metadata = " {\" name\" :\" document.pdf\" ,\" description\" :\" Invoice attachment\" }" , consumer_id = " test-consumer " , app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX " , service_id = " salesforce" , server_url = " https://upload.apideck.com" )
1054+ res = apideck.accounting.attachments.upload(reference_type = apideck_unify.AttachmentReferenceType.INVOICE , reference_id = " 123456" , request_body = open (" example.file" , " rb" ), raw = False , x_apideck_metadata = " {\" name\" :\" document.pdf\" ,\" description\" :\" Invoice attachment\" }" , service_id = " salesforce" , server_url = " https://upload.apideck.com" )
10551055
10561056 assert res.create_attachment_response is not None
10571057
@@ -1155,9 +1155,9 @@ import os
11551155def main ():
11561156
11571157 with Apideck(
1158- api_key = os.getenv(" APIDECK_API_KEY" , " " ),
11591158 consumer_id = " test-consumer" ,
11601159 app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
1160+ api_key = os.getenv(" APIDECK_API_KEY" , " " ),
11611161 ) as apideck:
11621162 # Rest of application here...
11631163
@@ -1166,9 +1166,9 @@ def main():
11661166async def amain ():
11671167
11681168 async with Apideck(
1169- api_key = os.getenv(" APIDECK_API_KEY" , " " ),
11701169 consumer_id = " test-consumer" ,
11711170 app_id = " dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" ,
1171+ api_key = os.getenv(" APIDECK_API_KEY" , " " ),
11721172 ) as apideck:
11731173 # Rest of application here...
11741174```
0 commit comments