fortis-python-sdk 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (699) hide show
  1. fortis_python_sdk-1.0.0.dist-info/METADATA +183 -0
  2. fortis_python_sdk-1.0.0.dist-info/RECORD +699 -0
  3. fortis_python_sdk-1.0.0.dist-info/WHEEL +5 -0
  4. fortis_python_sdk-1.0.0.dist-info/licenses/LICENSE +28 -0
  5. fortis_python_sdk-1.0.0.dist-info/top_level.txt +1 -0
  6. fortisapi/__init__.py +12 -0
  7. fortisapi/api_helper.py +19 -0
  8. fortisapi/configuration.py +294 -0
  9. fortisapi/controllers/__init__.py +40 -0
  10. fortisapi/controllers/apple_pay_validate_merchant_controller.py +84 -0
  11. fortisapi/controllers/async_processing_controller.py +78 -0
  12. fortisapi/controllers/base_controller.py +67 -0
  13. fortisapi/controllers/batches_controller.py +179 -0
  14. fortisapi/controllers/calculate_surcharge_controller.py +76 -0
  15. fortisapi/controllers/contacts_controller.py +398 -0
  16. fortisapi/controllers/declined_recurring_transactions_controller.py +326 -0
  17. fortisapi/controllers/device_terms_controller.py +242 -0
  18. fortisapi/controllers/elements_controller.py +129 -0
  19. fortisapi/controllers/enterprise_link_redirect_controller.py +81 -0
  20. fortisapi/controllers/full_boarding_controller.py +85 -0
  21. fortisapi/controllers/level_3_data_controller.py +219 -0
  22. fortisapi/controllers/locations_controller.py +478 -0
  23. fortisapi/controllers/m_3_ds_authentication_controller.py +90 -0
  24. fortisapi/controllers/m_3_ds_transactions_controller.py +84 -0
  25. fortisapi/controllers/merchant_deposits_controller.py +295 -0
  26. fortisapi/controllers/merchant_details_controller.py +82 -0
  27. fortisapi/controllers/on_boarding_controller.py +100 -0
  28. fortisapi/controllers/paylinks_controller.py +396 -0
  29. fortisapi/controllers/payment_card_reader_token_controller.py +76 -0
  30. fortisapi/controllers/quick_invoices_controller.py +531 -0
  31. fortisapi/controllers/recurring_controller.py +545 -0
  32. fortisapi/controllers/reports_controller.py +209 -0
  33. fortisapi/controllers/signatures_controller.py +249 -0
  34. fortisapi/controllers/tags_controller.py +328 -0
  35. fortisapi/controllers/terminals_controller.py +304 -0
  36. fortisapi/controllers/tickets_controller.py +249 -0
  37. fortisapi/controllers/tokens_controller.py +679 -0
  38. fortisapi/controllers/transaction_ach_retries_controller.py +250 -0
  39. fortisapi/controllers/transactions_ach_controller.py +398 -0
  40. fortisapi/controllers/transactions_cash_controller.py +123 -0
  41. fortisapi/controllers/transactions_credit_card_controller.py +1796 -0
  42. fortisapi/controllers/transactions_ebt_card_controller.py +147 -0
  43. fortisapi/controllers/transactions_read_controller.py +248 -0
  44. fortisapi/controllers/transactions_updates_controller.py +435 -0
  45. fortisapi/controllers/webhooks_controller.py +493 -0
  46. fortisapi/exceptions/__init__.py +8 -0
  47. fortisapi/exceptions/api_exception.py +36 -0
  48. fortisapi/exceptions/response_401_token_exception.py +77 -0
  49. fortisapi/exceptions/response_412_exception.py +109 -0
  50. fortisapi/exceptions/response_error_exception.py +109 -0
  51. fortisapi/fortisapi_client.py +360 -0
  52. fortisapi/http/__init__.py +11 -0
  53. fortisapi/http/auth/__init__.py +8 -0
  54. fortisapi/http/auth/access_token.py +100 -0
  55. fortisapi/http/auth/developer_id.py +100 -0
  56. fortisapi/http/auth/user_api_key.py +100 -0
  57. fortisapi/http/auth/user_id.py +100 -0
  58. fortisapi/http/http_call_back.py +20 -0
  59. fortisapi/http/http_client_provider.py +23 -0
  60. fortisapi/http/http_method_enum.py +25 -0
  61. fortisapi/http/http_request.py +55 -0
  62. fortisapi/http/http_response.py +45 -0
  63. fortisapi/http/proxy_settings.py +50 -0
  64. fortisapi/models/__init__.py +636 -0
  65. fortisapi/models/account_info.py +519 -0
  66. fortisapi/models/account_type_12_enum.py +47 -0
  67. fortisapi/models/account_type_13_enum.py +51 -0
  68. fortisapi/models/account_type_16_enum.py +51 -0
  69. fortisapi/models/account_type_enum.py +83 -0
  70. fortisapi/models/account_vault.py +1408 -0
  71. fortisapi/models/account_vault_cau_log.py +201 -0
  72. fortisapi/models/account_vault_cau_product_transaction.py +754 -0
  73. fortisapi/models/ach_product_transaction.py +3048 -0
  74. fortisapi/models/ach_sec_code_1_enum.py +59 -0
  75. fortisapi/models/ach_sec_code_31_enum.py +61 -0
  76. fortisapi/models/ach_sec_code_3_enum.py +59 -0
  77. fortisapi/models/ach_sec_code_enum.py +67 -0
  78. fortisapi/models/acs_challenge_mandated_enum.py +52 -0
  79. fortisapi/models/action_enum.py +70 -0
  80. fortisapi/models/active_recurring.py +975 -0
  81. fortisapi/models/additional_access.py +102 -0
  82. fortisapi/models/additional_amount.py +201 -0
  83. fortisapi/models/addon.py +222 -0
  84. fortisapi/models/addon_transaction_type_enum.py +57 -0
  85. fortisapi/models/address.py +205 -0
  86. fortisapi/models/address_1.py +228 -0
  87. fortisapi/models/address_2.py +204 -0
  88. fortisapi/models/address_71.py +186 -0
  89. fortisapi/models/address_match_enum.py +54 -0
  90. fortisapi/models/address_type_enum.py +50 -0
  91. fortisapi/models/all_tag.py +194 -0
  92. fortisapi/models/alt_bank_account.py +180 -0
  93. fortisapi/models/amount_ind_enum.py +121 -0
  94. fortisapi/models/app_delivery_enum.py +50 -0
  95. fortisapi/models/auth_currency_enum.py +168 -0
  96. fortisapi/models/avs_enum.py +56 -0
  97. fortisapi/models/balance.py +154 -0
  98. fortisapi/models/bank_account.py +156 -0
  99. fortisapi/models/bank_account_1.py +186 -0
  100. fortisapi/models/batch_risk_config.py +132 -0
  101. fortisapi/models/billing_address.py +233 -0
  102. fortisapi/models/billing_address_1.py +258 -0
  103. fortisapi/models/billing_address_24.py +263 -0
  104. fortisapi/models/billing_address_5.py +155 -0
  105. fortisapi/models/body.py +134 -0
  106. fortisapi/models/branding_domain.py +867 -0
  107. fortisapi/models/branding_domain_1.py +867 -0
  108. fortisapi/models/broad_info.py +241 -0
  109. fortisapi/models/browser_information.py +401 -0
  110. fortisapi/models/business_category_enum.py +77 -0
  111. fortisapi/models/business_type_enum.py +365 -0
  112. fortisapi/models/cardholder.py +324 -0
  113. fortisapi/models/cardholder_account.py +211 -0
  114. fortisapi/models/category_enum.py +133 -0
  115. fortisapi/models/cau_subscribe_type_code_enum.py +50 -0
  116. fortisapi/models/cau_subscribe_type_id_enum.py +50 -0
  117. fortisapi/models/cau_summary_status_id_enum.py +53 -0
  118. fortisapi/models/cc_product_transaction.py +3048 -0
  119. fortisapi/models/ch_acc_age_ind_enum.py +66 -0
  120. fortisapi/models/ch_acc_change_ind_enum.py +63 -0
  121. fortisapi/models/ch_acc_pw_change_ind_enum.py +67 -0
  122. fortisapi/models/challenge_message_extension.py +177 -0
  123. fortisapi/models/challenge_window_size_enum.py +73 -0
  124. fortisapi/models/changelog.py +280 -0
  125. fortisapi/models/changelog_detail.py +178 -0
  126. fortisapi/models/children.py +822 -0
  127. fortisapi/models/communication_type_enum.py +50 -0
  128. fortisapi/models/conditions.py +125 -0
  129. fortisapi/models/conditions_18.py +146 -0
  130. fortisapi/models/conditions_181.py +146 -0
  131. fortisapi/models/conditions_191.py +146 -0
  132. fortisapi/models/conditions_27.py +125 -0
  133. fortisapi/models/conditions_4.py +146 -0
  134. fortisapi/models/conditions_41.py +146 -0
  135. fortisapi/models/conditions_42.py +146 -0
  136. fortisapi/models/conditions_43.py +146 -0
  137. fortisapi/models/contact.py +179 -0
  138. fortisapi/models/contact_1.py +822 -0
  139. fortisapi/models/contact_9.py +169 -0
  140. fortisapi/models/contact_user_default_entry_page_enum.py +59 -0
  141. fortisapi/models/context.py +125 -0
  142. fortisapi/models/country_enum.py +47 -0
  143. fortisapi/models/created_user.py +1197 -0
  144. fortisapi/models/currency_code_enum.py +186 -0
  145. fortisapi/models/currency_type.py +131 -0
  146. fortisapi/models/data.py +225 -0
  147. fortisapi/models/data_1.py +105 -0
  148. fortisapi/models/data_10.py +1283 -0
  149. fortisapi/models/data_11.py +948 -0
  150. fortisapi/models/data_12.py +369 -0
  151. fortisapi/models/data_13.py +263 -0
  152. fortisapi/models/data_14.py +552 -0
  153. fortisapi/models/data_15.py +102 -0
  154. fortisapi/models/data_16.py +930 -0
  155. fortisapi/models/data_17.py +920 -0
  156. fortisapi/models/data_18.py +102 -0
  157. fortisapi/models/data_19.py +631 -0
  158. fortisapi/models/data_2.py +1134 -0
  159. fortisapi/models/data_20.py +1657 -0
  160. fortisapi/models/data_21.py +223 -0
  161. fortisapi/models/data_22.py +1341 -0
  162. fortisapi/models/data_23.py +245 -0
  163. fortisapi/models/data_24.py +219 -0
  164. fortisapi/models/data_25.py +1456 -0
  165. fortisapi/models/data_26.py +376 -0
  166. fortisapi/models/data_27.py +1681 -0
  167. fortisapi/models/data_28.py +380 -0
  168. fortisapi/models/data_29.py +4233 -0
  169. fortisapi/models/data_3.py +296 -0
  170. fortisapi/models/data_30.py +421 -0
  171. fortisapi/models/data_31.py +150 -0
  172. fortisapi/models/data_34.py +103 -0
  173. fortisapi/models/data_35.py +259 -0
  174. fortisapi/models/data_36.py +537 -0
  175. fortisapi/models/data_4.py +482 -0
  176. fortisapi/models/data_5.py +171 -0
  177. fortisapi/models/data_6.py +469 -0
  178. fortisapi/models/data_7.py +230 -0
  179. fortisapi/models/data_8.py +616 -0
  180. fortisapi/models/data_9.py +129 -0
  181. fortisapi/models/debit_credit_enum.py +48 -0
  182. fortisapi/models/declined_recurring_notification.py +251 -0
  183. fortisapi/models/default_transaction_type_enum.py +50 -0
  184. fortisapi/models/delivery_method_enum.py +61 -0
  185. fortisapi/models/delivery_timeframe_enum.py +61 -0
  186. fortisapi/models/deposit_type_enum.py +50 -0
  187. fortisapi/models/detail.py +173 -0
  188. fortisapi/models/detail_1.py +323 -0
  189. fortisapi/models/detail_2.py +273 -0
  190. fortisapi/models/developer_company.py +270 -0
  191. fortisapi/models/device.py +123 -0
  192. fortisapi/models/device_binding_status_enum.py +373 -0
  193. fortisapi/models/device_channel_enum.py +51 -0
  194. fortisapi/models/document.py +115 -0
  195. fortisapi/models/e_format_enum.py +62 -0
  196. fortisapi/models/ebt_plan_enum.py +50 -0
  197. fortisapi/models/ebt_type_enum.py +61 -0
  198. fortisapi/models/email_blacklist.py +178 -0
  199. fortisapi/models/email_enum.py +47 -0
  200. fortisapi/models/emv_receipt_data.py +244 -0
  201. fortisapi/models/entry_mode_id_enum.py +73 -0
  202. fortisapi/models/expand_108_enum.py +48 -0
  203. fortisapi/models/expand_10_enum.py +42 -0
  204. fortisapi/models/expand_11_enum.py +99 -0
  205. fortisapi/models/expand_15_enum.py +42 -0
  206. fortisapi/models/expand_17_enum.py +96 -0
  207. fortisapi/models/expand_18_enum.py +84 -0
  208. fortisapi/models/expand_1_enum.py +75 -0
  209. fortisapi/models/expand_26_enum.py +87 -0
  210. fortisapi/models/expand_34_enum.py +42 -0
  211. fortisapi/models/expand_37_enum.py +42 -0
  212. fortisapi/models/expand_40_enum.py +63 -0
  213. fortisapi/models/expand_44_enum.py +48 -0
  214. fortisapi/models/expand_47_enum.py +69 -0
  215. fortisapi/models/expand_57_enum.py +54 -0
  216. fortisapi/models/expand_5_enum.py +48 -0
  217. fortisapi/models/expand_60_enum.py +171 -0
  218. fortisapi/models/expand_8_enum.py +57 -0
  219. fortisapi/models/expand_enum.py +51 -0
  220. fortisapi/models/field.py +125 -0
  221. fortisapi/models/field_20.py +267 -0
  222. fortisapi/models/field_27_enum.py +129 -0
  223. fortisapi/models/field_28_enum.py +168 -0
  224. fortisapi/models/field_30_enum.py +75 -0
  225. fortisapi/models/field_31_enum.py +87 -0
  226. fortisapi/models/field_33_enum.py +183 -0
  227. fortisapi/models/field_34_enum.py +195 -0
  228. fortisapi/models/field_35_enum.py +180 -0
  229. fortisapi/models/field_36_enum.py +192 -0
  230. fortisapi/models/field_37_enum.py +102 -0
  231. fortisapi/models/field_39_enum.py +186 -0
  232. fortisapi/models/field_41_enum.py +237 -0
  233. fortisapi/models/field_43_enum.py +198 -0
  234. fortisapi/models/field_45_enum.py +78 -0
  235. fortisapi/models/field_46_enum.py +126 -0
  236. fortisapi/models/field_47_enum.py +60 -0
  237. fortisapi/models/field_49_enum.py +57 -0
  238. fortisapi/models/field_51_enum.py +210 -0
  239. fortisapi/models/field_53_enum.py +84 -0
  240. fortisapi/models/field_55_enum.py +231 -0
  241. fortisapi/models/field_57_enum.py +75 -0
  242. fortisapi/models/field_59_enum.py +510 -0
  243. fortisapi/models/field_configuration.py +202 -0
  244. fortisapi/models/file.py +412 -0
  245. fortisapi/models/file_2.py +125 -0
  246. fortisapi/models/file_5.py +130 -0
  247. fortisapi/models/filter_by.py +171 -0
  248. fortisapi/models/footer.py +134 -0
  249. fortisapi/models/forecast.py +250 -0
  250. fortisapi/models/format_1_enum.py +47 -0
  251. fortisapi/models/format_enum.py +47 -0
  252. fortisapi/models/header.py +134 -0
  253. fortisapi/models/helppage.py +270 -0
  254. fortisapi/models/home_phone.py +130 -0
  255. fortisapi/models/hosted_payment_page.py +558 -0
  256. fortisapi/models/identity_verification.py +183 -0
  257. fortisapi/models/identity_verification_2.py +183 -0
  258. fortisapi/models/identity_verification_27.py +165 -0
  259. fortisapi/models/idtype_enum.py +47 -0
  260. fortisapi/models/iias_ind_enum.py +64 -0
  261. fortisapi/models/industry_type_enum.py +59 -0
  262. fortisapi/models/initiation_type_enum.py +92 -0
  263. fortisapi/models/interval_type_enum.py +50 -0
  264. fortisapi/models/item_list.py +125 -0
  265. fortisapi/models/item_list_4.py +99 -0
  266. fortisapi/models/item_list_5.py +130 -0
  267. fortisapi/models/joi.py +104 -0
  268. fortisapi/models/joi_18.py +111 -0
  269. fortisapi/models/joi_19.py +111 -0
  270. fortisapi/models/joi_27.py +104 -0
  271. fortisapi/models/joi_4.py +110 -0
  272. fortisapi/models/kyc_response_object.py +101 -0
  273. fortisapi/models/level_3_data.py +481 -0
  274. fortisapi/models/level_3_data_5.py +324 -0
  275. fortisapi/models/level_3_data_6.py +469 -0
  276. fortisapi/models/level_3_default.py +481 -0
  277. fortisapi/models/line_item.py +450 -0
  278. fortisapi/models/line_item_13.py +449 -0
  279. fortisapi/models/line_item_19.py +360 -0
  280. fortisapi/models/line_item_20.py +273 -0
  281. fortisapi/models/links.py +196 -0
  282. fortisapi/models/list.py +650 -0
  283. fortisapi/models/list_1.py +1134 -0
  284. fortisapi/models/list_10.py +1657 -0
  285. fortisapi/models/list_11.py +1341 -0
  286. fortisapi/models/list_12.py +336 -0
  287. fortisapi/models/list_13.py +731 -0
  288. fortisapi/models/list_14.py +245 -0
  289. fortisapi/models/list_15.py +219 -0
  290. fortisapi/models/list_16.py +1456 -0
  291. fortisapi/models/list_17.py +376 -0
  292. fortisapi/models/list_18.py +1681 -0
  293. fortisapi/models/list_19.py +380 -0
  294. fortisapi/models/list_20.py +4233 -0
  295. fortisapi/models/list_3.py +296 -0
  296. fortisapi/models/list_4.py +469 -0
  297. fortisapi/models/list_5.py +948 -0
  298. fortisapi/models/list_6.py +1283 -0
  299. fortisapi/models/list_8.py +552 -0
  300. fortisapi/models/list_9.py +920 -0
  301. fortisapi/models/location.py +756 -0
  302. fortisapi/models/location_18.py +217 -0
  303. fortisapi/models/location_5.py +227 -0
  304. fortisapi/models/location_billing_account.py +509 -0
  305. fortisapi/models/location_type_26_enum.py +51 -0
  306. fortisapi/models/location_type_enum.py +50 -0
  307. fortisapi/models/locationmarketplace.py +247 -0
  308. fortisapi/models/log_email.py +364 -0
  309. fortisapi/models/log_sms.py +315 -0
  310. fortisapi/models/marketplace.py +247 -0
  311. fortisapi/models/masync.py +128 -0
  312. fortisapi/models/merchant_list.py +193 -0
  313. fortisapi/models/merchant_risk_indicator.py +341 -0
  314. fortisapi/models/message_category_enum.py +119 -0
  315. fortisapi/models/message_extension.py +177 -0
  316. fortisapi/models/meta.py +107 -0
  317. fortisapi/models/method_3.py +147 -0
  318. fortisapi/models/method_50.py +145 -0
  319. fortisapi/models/method_53_enum.py +56 -0
  320. fortisapi/models/method_5_enum.py +56 -0
  321. fortisapi/models/method_enum.py +56 -0
  322. fortisapi/models/mobile_phone.py +130 -0
  323. fortisapi/models/modified_user.py +1197 -0
  324. fortisapi/models/multi_transaction.py +147 -0
  325. fortisapi/models/operator_1_enum.py +59 -0
  326. fortisapi/models/operator_enum.py +47 -0
  327. fortisapi/models/order_21.py +99 -0
  328. fortisapi/models/order_enum.py +47 -0
  329. fortisapi/models/owner.py +322 -0
  330. fortisapi/models/ownership_type_enum.py +71 -0
  331. fortisapi/models/page.py +132 -0
  332. fortisapi/models/pagination.py +196 -0
  333. fortisapi/models/parent.py +822 -0
  334. fortisapi/models/parent_3.py +756 -0
  335. fortisapi/models/partner_enum.py +71 -0
  336. fortisapi/models/paylink_action_enum.py +47 -0
  337. fortisapi/models/payment_acc_ind_enum.py +67 -0
  338. fortisapi/models/payment_method_16_enum.py +47 -0
  339. fortisapi/models/payment_method_1_enum.py +47 -0
  340. fortisapi/models/payment_method_9_enum.py +50 -0
  341. fortisapi/models/payment_method_enum.py +50 -0
  342. fortisapi/models/payment_recurring_notification.py +251 -0
  343. fortisapi/models/payment_type_priority_enum.py +47 -0
  344. fortisapi/models/postback_log.py +295 -0
  345. fortisapi/models/postback_status_id_enum.py +53 -0
  346. fortisapi/models/pre_order_purchase_ind_enum.py +52 -0
  347. fortisapi/models/preferred_language_enum.py +51 -0
  348. fortisapi/models/preferred_protocol_version_enum.py +65 -0
  349. fortisapi/models/pricing_element.py +147 -0
  350. fortisapi/models/primary_principal.py +396 -0
  351. fortisapi/models/primary_principal_1.py +376 -0
  352. fortisapi/models/process_method_enum.py +47 -0
  353. fortisapi/models/processor_enum.py +59 -0
  354. fortisapi/models/product_accountvault.py +317 -0
  355. fortisapi/models/product_file.py +416 -0
  356. fortisapi/models/product_file_1.py +414 -0
  357. fortisapi/models/product_invoice.py +651 -0
  358. fortisapi/models/product_recurring.py +387 -0
  359. fortisapi/models/product_token.py +317 -0
  360. fortisapi/models/product_transaction.py +3048 -0
  361. fortisapi/models/product_transaction_1.py +3046 -0
  362. fortisapi/models/purchase.py +501 -0
  363. fortisapi/models/quick_invoice.py +1256 -0
  364. fortisapi/models/quick_invoice_setting.py +299 -0
  365. fortisapi/models/quick_invoice_view.py +176 -0
  366. fortisapi/models/reason_code.py +131 -0
  367. fortisapi/models/reason_code_id_1_enum.py +935 -0
  368. fortisapi/models/reason_code_id_enum.py +578 -0
  369. fortisapi/models/reason_model_enum.py +74 -0
  370. fortisapi/models/received_email.py +364 -0
  371. fortisapi/models/recipients_enum.py +62 -0
  372. fortisapi/models/recurring.py +975 -0
  373. fortisapi/models/recurring_3.py +977 -0
  374. fortisapi/models/recurring_flag_enum.py +64 -0
  375. fortisapi/models/recurring_split.py +200 -0
  376. fortisapi/models/recurring_type_id_enum.py +47 -0
  377. fortisapi/models/registration_field_enum.py +87 -0
  378. fortisapi/models/rejected_transaction.py +3198 -0
  379. fortisapi/models/rejected_transaction_ach_retry.py +244 -0
  380. fortisapi/models/relationship_enum.py +50 -0
  381. fortisapi/models/reorder_items_ind_enum.py +51 -0
  382. fortisapi/models/report_export_type_enum.py +53 -0
  383. fortisapi/models/resource_12_enum.py +52 -0
  384. fortisapi/models/resource_2_enum.py +50 -0
  385. fortisapi/models/resource_enum.py +55 -0
  386. fortisapi/models/response_416_date_range.py +148 -0
  387. fortisapi/models/response_417_filter_channels.py +148 -0
  388. fortisapi/models/response_apple_pay_validate_merchant.py +126 -0
  389. fortisapi/models/response_async_status.py +126 -0
  390. fortisapi/models/response_batchs_collection.py +228 -0
  391. fortisapi/models/response_calculate_surcharge.py +126 -0
  392. fortisapi/models/response_contact.py +126 -0
  393. fortisapi/models/response_contact_searchs_collection.py +228 -0
  394. fortisapi/models/response_contacts_collection.py +228 -0
  395. fortisapi/models/response_declined_recurring_transaction.py +126 -0
  396. fortisapi/models/response_declined_recurring_transaction_payment.py +126 -0
  397. fortisapi/models/response_declined_recurring_transaction_resend.py +126 -0
  398. fortisapi/models/response_declined_recurring_transactions_collection.py +228 -0
  399. fortisapi/models/response_device_term.py +126 -0
  400. fortisapi/models/response_device_terms_collection.py +228 -0
  401. fortisapi/models/response_fullboarding.py +126 -0
  402. fortisapi/models/response_location.py +126 -0
  403. fortisapi/models/response_location_info.py +126 -0
  404. fortisapi/models/response_location_infos_collection.py +228 -0
  405. fortisapi/models/response_location_searchs_collection.py +228 -0
  406. fortisapi/models/response_locations_collection.py +228 -0
  407. fortisapi/models/response_merchant.py +126 -0
  408. fortisapi/models/response_merchant_deposit.py +126 -0
  409. fortisapi/models/response_merchant_deposits_collection.py +228 -0
  410. fortisapi/models/response_merchant_details.py +126 -0
  411. fortisapi/models/response_onboarding.py +126 -0
  412. fortisapi/models/response_paylink.py +126 -0
  413. fortisapi/models/response_paylinks_collection.py +228 -0
  414. fortisapi/models/response_payment_card_reader_token.py +126 -0
  415. fortisapi/models/response_quick_invoice.py +126 -0
  416. fortisapi/models/response_quick_invoice_resend.py +126 -0
  417. fortisapi/models/response_quick_invoices_collection.py +228 -0
  418. fortisapi/models/response_recurring.py +126 -0
  419. fortisapi/models/response_recurrings_collection.py +228 -0
  420. fortisapi/models/response_reporting_reports_cc_settled_transactions_collection.py +231 -0
  421. fortisapi/models/response_reporting_reports_chargebacks_collection.py +228 -0
  422. fortisapi/models/response_signature.py +126 -0
  423. fortisapi/models/response_signatures_collection.py +228 -0
  424. fortisapi/models/response_tag.py +126 -0
  425. fortisapi/models/response_tags_collection.py +228 -0
  426. fortisapi/models/response_terminal.py +126 -0
  427. fortisapi/models/response_terminals_collection.py +228 -0
  428. fortisapi/models/response_three_ds_authentication.py +126 -0
  429. fortisapi/models/response_three_ds_transaction.py +126 -0
  430. fortisapi/models/response_ticket.py +126 -0
  431. fortisapi/models/response_ticket_intention.py +126 -0
  432. fortisapi/models/response_tickets_collection.py +228 -0
  433. fortisapi/models/response_token.py +126 -0
  434. fortisapi/models/response_tokens_collection.py +228 -0
  435. fortisapi/models/response_transaction.py +126 -0
  436. fortisapi/models/response_transaction_ach_retry.py +126 -0
  437. fortisapi/models/response_transaction_ach_retrys_collection.py +228 -0
  438. fortisapi/models/response_transaction_bin_info.py +126 -0
  439. fortisapi/models/response_transaction_intention.py +126 -0
  440. fortisapi/models/response_transaction_level_3.py +126 -0
  441. fortisapi/models/response_transaction_level_3_master.py +126 -0
  442. fortisapi/models/response_transaction_level_3_visa.py +126 -0
  443. fortisapi/models/response_transaction_processing.py +126 -0
  444. fortisapi/models/response_transactions_collection.py +228 -0
  445. fortisapi/models/response_webhook.py +126 -0
  446. fortisapi/models/result.py +152 -0
  447. fortisapi/models/retry_transaction.py +3198 -0
  448. fortisapi/models/retry_transaction_ach_retry.py +246 -0
  449. fortisapi/models/return_fee_transaction.py +3198 -0
  450. fortisapi/models/return_fee_transaction_ach_retry.py +246 -0
  451. fortisapi/models/saved_account.py +1408 -0
  452. fortisapi/models/scheme_id_enum.py +54 -0
  453. fortisapi/models/sec_code_enum.py +51 -0
  454. fortisapi/models/settings.py +148 -0
  455. fortisapi/models/settled_currency_enum.py +168 -0
  456. fortisapi/models/severity_enum.py +62 -0
  457. fortisapi/models/ship_address_usage_ind_enum.py +62 -0
  458. fortisapi/models/ship_indicator_enum.py +101 -0
  459. fortisapi/models/ship_name_indicator_enum.py +52 -0
  460. fortisapi/models/shipping_address.py +264 -0
  461. fortisapi/models/signature.py +220 -0
  462. fortisapi/models/sms_blacklist.py +178 -0
  463. fortisapi/models/sms_enum.py +47 -0
  464. fortisapi/models/sort.py +132 -0
  465. fortisapi/models/source_enum.py +56 -0
  466. fortisapi/models/stack_enum.py +47 -0
  467. fortisapi/models/status_11.py +131 -0
  468. fortisapi/models/status_3_enum.py +47 -0
  469. fortisapi/models/status_5.py +102 -0
  470. fortisapi/models/status_code_12_enum.py +47 -0
  471. fortisapi/models/status_code_17_enum.py +102 -0
  472. fortisapi/models/status_code_enum.py +50 -0
  473. fortisapi/models/status_enum.py +50 -0
  474. fortisapi/models/status_id_enum.py +47 -0
  475. fortisapi/models/surcharge.py +574 -0
  476. fortisapi/models/surcharge_transaction.py +367 -0
  477. fortisapi/models/suspicious_acc_activity_enum.py +52 -0
  478. fortisapi/models/tag.py +194 -0
  479. fortisapi/models/tag_transaction.py +319 -0
  480. fortisapi/models/tax_exempt_enum.py +61 -0
  481. fortisapi/models/tax_surcharge_config_enum.py +47 -0
  482. fortisapi/models/terminal.py +1245 -0
  483. fortisapi/models/terminal_2.py +1243 -0
  484. fortisapi/models/terminal_application.py +411 -0
  485. fortisapi/models/terminal_cvm.py +293 -0
  486. fortisapi/models/terminal_manufacturer.py +249 -0
  487. fortisapi/models/terminal_manufacturer_code_enum.py +55 -0
  488. fortisapi/models/terminal_router.py +245 -0
  489. fortisapi/models/terminal_timeouts.py +304 -0
  490. fortisapi/models/terminal_timeouts_12.py +314 -0
  491. fortisapi/models/three_ds_req_auth_method_enum.py +154 -0
  492. fortisapi/models/three_ds_req_prior_auth_method_enum.py +123 -0
  493. fortisapi/models/three_ds_requestor.py +345 -0
  494. fortisapi/models/three_ds_requestor_authentication_ind_enum.py +141 -0
  495. fortisapi/models/three_ds_requestor_authentication_info.py +179 -0
  496. fortisapi/models/three_ds_requestor_challenge_ind_enum.py +126 -0
  497. fortisapi/models/three_ds_requestor_dec_req_ind_enum.py +72 -0
  498. fortisapi/models/three_ds_requestor_prior_authentication_info.py +188 -0
  499. fortisapi/models/three_ds_requestor_spc_support_enum.py +49 -0
  500. fortisapi/models/three_ri_ind_enum.py +180 -0
  501. fortisapi/models/tip_percents.py +160 -0
  502. fortisapi/models/trans_char_enum.py +45 -0
  503. fortisapi/models/transaction.py +3196 -0
  504. fortisapi/models/transaction_batch.py +537 -0
  505. fortisapi/models/transaction_batch_settlement.py +202 -0
  506. fortisapi/models/transaction_history.py +246 -0
  507. fortisapi/models/transaction_level_3.py +152 -0
  508. fortisapi/models/transaction_reference.py +298 -0
  509. fortisapi/models/transaction_split.py +221 -0
  510. fortisapi/models/transaction_status_enum.py +88 -0
  511. fortisapi/models/transaction_type_enum.py +68 -0
  512. fortisapi/models/trx_source_code_enum.py +155 -0
  513. fortisapi/models/trx_source_id_enum.py +155 -0
  514. fortisapi/models/type_103_enum.py +44 -0
  515. fortisapi/models/type_105_enum.py +44 -0
  516. fortisapi/models/type_10_enum.py +44 -0
  517. fortisapi/models/type_110_enum.py +44 -0
  518. fortisapi/models/type_114_enum.py +44 -0
  519. fortisapi/models/type_11_enum.py +44 -0
  520. fortisapi/models/type_121_enum.py +44 -0
  521. fortisapi/models/type_123.py +131 -0
  522. fortisapi/models/type_124_enum.py +44 -0
  523. fortisapi/models/type_125_enum.py +44 -0
  524. fortisapi/models/type_126_enum.py +44 -0
  525. fortisapi/models/type_127_enum.py +44 -0
  526. fortisapi/models/type_128_enum.py +44 -0
  527. fortisapi/models/type_134_enum.py +44 -0
  528. fortisapi/models/type_135_enum.py +44 -0
  529. fortisapi/models/type_136_enum.py +44 -0
  530. fortisapi/models/type_15_enum.py +44 -0
  531. fortisapi/models/type_16_enum.py +44 -0
  532. fortisapi/models/type_1_enum.py +44 -0
  533. fortisapi/models/type_20_enum.py +44 -0
  534. fortisapi/models/type_21_enum.py +44 -0
  535. fortisapi/models/type_22_enum.py +44 -0
  536. fortisapi/models/type_23_enum.py +44 -0
  537. fortisapi/models/type_27_enum.py +44 -0
  538. fortisapi/models/type_28_enum.py +44 -0
  539. fortisapi/models/type_29_enum.py +64 -0
  540. fortisapi/models/type_2_enum.py +44 -0
  541. fortisapi/models/type_30_enum.py +44 -0
  542. fortisapi/models/type_31_enum.py +44 -0
  543. fortisapi/models/type_35_enum.py +44 -0
  544. fortisapi/models/type_39_enum.py +44 -0
  545. fortisapi/models/type_3_enum.py +44 -0
  546. fortisapi/models/type_43_enum.py +44 -0
  547. fortisapi/models/type_44_enum.py +44 -0
  548. fortisapi/models/type_45_enum.py +44 -0
  549. fortisapi/models/type_46_enum.py +44 -0
  550. fortisapi/models/type_47_enum.py +44 -0
  551. fortisapi/models/type_48_enum.py +44 -0
  552. fortisapi/models/type_4_enum.py +44 -0
  553. fortisapi/models/type_52_enum.py +44 -0
  554. fortisapi/models/type_53_enum.py +44 -0
  555. fortisapi/models/type_54_enum.py +44 -0
  556. fortisapi/models/type_55_enum.py +44 -0
  557. fortisapi/models/type_59_enum.py +44 -0
  558. fortisapi/models/type_5_enum.py +44 -0
  559. fortisapi/models/type_60_enum.py +44 -0
  560. fortisapi/models/type_61_enum.py +45 -0
  561. fortisapi/models/type_62_enum.py +44 -0
  562. fortisapi/models/type_63_enum.py +91 -0
  563. fortisapi/models/type_64_enum.py +44 -0
  564. fortisapi/models/type_65_enum.py +44 -0
  565. fortisapi/models/type_6_enum.py +44 -0
  566. fortisapi/models/type_70_enum.py +44 -0
  567. fortisapi/models/type_71_enum.py +44 -0
  568. fortisapi/models/type_75_enum.py +44 -0
  569. fortisapi/models/type_79_enum.py +44 -0
  570. fortisapi/models/type_83_enum.py +44 -0
  571. fortisapi/models/type_84_enum.py +44 -0
  572. fortisapi/models/type_88_enum.py +44 -0
  573. fortisapi/models/type_89_enum.py +44 -0
  574. fortisapi/models/type_93_enum.py +44 -0
  575. fortisapi/models/type_94_enum.py +44 -0
  576. fortisapi/models/type_98_enum.py +44 -0
  577. fortisapi/models/type_99_enum.py +44 -0
  578. fortisapi/models/type_enum.py +44 -0
  579. fortisapi/models/type_id_enum.py +59 -0
  580. fortisapi/models/ui_prefs.py +204 -0
  581. fortisapi/models/update_if_exists_enum.py +44 -0
  582. fortisapi/models/user.py +180 -0
  583. fortisapi/models/user_1.py +1197 -0
  584. fortisapi/models/user_9.py +1195 -0
  585. fortisapi/models/user_type_code_enum.py +74 -0
  586. fortisapi/models/v_1_contacts_request.py +685 -0
  587. fortisapi/models/v_1_contacts_request_1.py +707 -0
  588. fortisapi/models/v_1_declined_recurring_transaction_payments_request.py +354 -0
  589. fortisapi/models/v_1_device_terms_request.py +161 -0
  590. fortisapi/models/v_1_elements_ticket_intention_request.py +195 -0
  591. fortisapi/models/v_1_elements_transaction_intention_request.py +591 -0
  592. fortisapi/models/v_1_fullboarding_request.py +827 -0
  593. fortisapi/models/v_1_merchant_threedsecure_authentication_request.py +696 -0
  594. fortisapi/models/v_1_onboarding_request.py +833 -0
  595. fortisapi/models/v_1_paylinks_request.py +723 -0
  596. fortisapi/models/v_1_paylinks_request_1.py +735 -0
  597. fortisapi/models/v_1_public_calculate_surcharge_request.py +527 -0
  598. fortisapi/models/v_1_quick_invoices_request.py +1035 -0
  599. fortisapi/models/v_1_quick_invoices_request_1.py +1070 -0
  600. fortisapi/models/v_1_quick_invoices_transaction_request.py +86 -0
  601. fortisapi/models/v_1_recurrings_defer_payment_request.py +86 -0
  602. fortisapi/models/v_1_recurrings_request.py +742 -0
  603. fortisapi/models/v_1_recurrings_request_1.py +750 -0
  604. fortisapi/models/v_1_recurrings_skip_payment_request.py +86 -0
  605. fortisapi/models/v_1_signatures_request.py +113 -0
  606. fortisapi/models/v_1_tags_request.py +99 -0
  607. fortisapi/models/v_1_tags_request_1.py +130 -0
  608. fortisapi/models/v_1_terminals_request.py +1005 -0
  609. fortisapi/models/v_1_terminals_request_1.py +1112 -0
  610. fortisapi/models/v_1_tickets_request.py +286 -0
  611. fortisapi/models/v_1_tokens_ach_request.py +945 -0
  612. fortisapi/models/v_1_tokens_ach_request_1.py +907 -0
  613. fortisapi/models/v_1_tokens_cc_request.py +1071 -0
  614. fortisapi/models/v_1_tokens_cc_request_1.py +905 -0
  615. fortisapi/models/v_1_tokens_previous_transaction_request.py +858 -0
  616. fortisapi/models/v_1_tokens_terminal_async_request.py +889 -0
  617. fortisapi/models/v_1_tokens_terminal_request.py +889 -0
  618. fortisapi/models/v_1_tokens_ticket_request.py +882 -0
  619. fortisapi/models/v_1_tokens_wallet_request.py +919 -0
  620. fortisapi/models/v_1_transaction_ach_retries_request.py +119 -0
  621. fortisapi/models/v_1_transactions_ach_credit_keyed_request.py +1600 -0
  622. fortisapi/models/v_1_transactions_ach_credit_prev_trxn_request.py +1616 -0
  623. fortisapi/models/v_1_transactions_ach_credit_token_request.py +1660 -0
  624. fortisapi/models/v_1_transactions_ach_debit_keyed_request.py +1600 -0
  625. fortisapi/models/v_1_transactions_ach_debit_prev_trxn_request.py +1616 -0
  626. fortisapi/models/v_1_transactions_ach_debit_token_request.py +1660 -0
  627. fortisapi/models/v_1_transactions_ach_refund_prev_trxn_request.py +1616 -0
  628. fortisapi/models/v_1_transactions_auth_complete_request.py +1519 -0
  629. fortisapi/models/v_1_transactions_auth_increment_request.py +1533 -0
  630. fortisapi/models/v_1_transactions_cash_refund_request.py +1515 -0
  631. fortisapi/models/v_1_transactions_cash_sale_request.py +1489 -0
  632. fortisapi/models/v_1_transactions_cc_auth_only_keyed_request.py +2164 -0
  633. fortisapi/models/v_1_transactions_cc_auth_only_prev_trxn_request.py +2124 -0
  634. fortisapi/models/v_1_transactions_cc_auth_only_taptopay_request.py +1843 -0
  635. fortisapi/models/v_1_transactions_cc_auth_only_terminal_request.py +2082 -0
  636. fortisapi/models/v_1_transactions_cc_auth_only_ticket_request.py +2050 -0
  637. fortisapi/models/v_1_transactions_cc_auth_only_token_request.py +2129 -0
  638. fortisapi/models/v_1_transactions_cc_auth_only_wallet_request.py +2062 -0
  639. fortisapi/models/v_1_transactions_cc_avs_only_keyed_request.py +2175 -0
  640. fortisapi/models/v_1_transactions_cc_avs_only_prev_trxn_request.py +2124 -0
  641. fortisapi/models/v_1_transactions_cc_avs_only_swiped_request.py +2086 -0
  642. fortisapi/models/v_1_transactions_cc_avs_only_terminal_request.py +2093 -0
  643. fortisapi/models/v_1_transactions_cc_avs_only_ticket_request.py +2061 -0
  644. fortisapi/models/v_1_transactions_cc_avs_only_token_request.py +2140 -0
  645. fortisapi/models/v_1_transactions_cc_avs_only_wallet_request.py +2073 -0
  646. fortisapi/models/v_1_transactions_cc_balance_inquiry_keyed_request.py +2176 -0
  647. fortisapi/models/v_1_transactions_cc_balance_inquiry_prev_trxn_request.py +2125 -0
  648. fortisapi/models/v_1_transactions_cc_balance_inquiry_swiped_request.py +2087 -0
  649. fortisapi/models/v_1_transactions_cc_balance_inquiry_terminal_request.py +2094 -0
  650. fortisapi/models/v_1_transactions_cc_balance_inquiry_ticket_request.py +2062 -0
  651. fortisapi/models/v_1_transactions_cc_balance_inquiry_token_request.py +2141 -0
  652. fortisapi/models/v_1_transactions_cc_balance_inquiry_wallet_request.py +2074 -0
  653. fortisapi/models/v_1_transactions_cc_refund_keyed_request.py +2218 -0
  654. fortisapi/models/v_1_transactions_cc_refund_prev_trxn_request.py +2124 -0
  655. fortisapi/models/v_1_transactions_cc_refund_taptopay_request.py +1869 -0
  656. fortisapi/models/v_1_transactions_cc_refund_terminal_request.py +2082 -0
  657. fortisapi/models/v_1_transactions_cc_refund_ticket_request.py +2050 -0
  658. fortisapi/models/v_1_transactions_cc_refund_token_request.py +2129 -0
  659. fortisapi/models/v_1_transactions_cc_refund_wallet_request.py +2062 -0
  660. fortisapi/models/v_1_transactions_cc_sale_keyed_request.py +2164 -0
  661. fortisapi/models/v_1_transactions_cc_sale_prev_trxn_request.py +2124 -0
  662. fortisapi/models/v_1_transactions_cc_sale_taptopay_request.py +1843 -0
  663. fortisapi/models/v_1_transactions_cc_sale_terminal_request.py +2082 -0
  664. fortisapi/models/v_1_transactions_cc_sale_ticket_request.py +2050 -0
  665. fortisapi/models/v_1_transactions_cc_sale_token_request.py +2129 -0
  666. fortisapi/models/v_1_transactions_cc_sale_wallet_request.py +2062 -0
  667. fortisapi/models/v_1_transactions_ebt_voucher_clear_refund_keyed_request.py +2190 -0
  668. fortisapi/models/v_1_transactions_ebt_voucher_clear_sale_keyed_request.py +2190 -0
  669. fortisapi/models/v_1_transactions_level_3_master_card_request.py +91 -0
  670. fortisapi/models/v_1_transactions_level_3_visa_request.py +91 -0
  671. fortisapi/models/v_1_transactions_partial_reversal_request.py +1462 -0
  672. fortisapi/models/v_1_transactions_refund_request.py +1448 -0
  673. fortisapi/models/v_1_transactions_tip_adjust_request.py +1973 -0
  674. fortisapi/models/v_1_transactions_void_request.py +130 -0
  675. fortisapi/models/v_1_wallet_provider_apple_pay_validate_merchant_request.py +127 -0
  676. fortisapi/models/v_1_wallet_provider_merchant_details_request.py +87 -0
  677. fortisapi/models/v_1_webhooks_apm_onboarding_request.py +421 -0
  678. fortisapi/models/v_1_webhooks_apm_onboarding_request_1.py +494 -0
  679. fortisapi/models/v_1_webhooks_batch_request.py +410 -0
  680. fortisapi/models/v_1_webhooks_batch_request_1.py +494 -0
  681. fortisapi/models/v_1_webhooks_contact_request.py +421 -0
  682. fortisapi/models/v_1_webhooks_contact_request_1.py +494 -0
  683. fortisapi/models/v_1_webhooks_transaction_request.py +410 -0
  684. fortisapi/models/v_1_webhooks_transaction_request_1.py +494 -0
  685. fortisapi/models/values_4_enum.py +59 -0
  686. fortisapi/models/values_50_enum.py +59 -0
  687. fortisapi/models/values_51_enum.py +62 -0
  688. fortisapi/models/values_58_enum.py +59 -0
  689. fortisapi/models/values_5_enum.py +59 -0
  690. fortisapi/models/values_6_enum.py +59 -0
  691. fortisapi/models/values_7_enum.py +59 -0
  692. fortisapi/models/values_99_enum.py +45 -0
  693. fortisapi/models/values_enum.py +51 -0
  694. fortisapi/models/wallet_provider_enum.py +47 -0
  695. fortisapi/models/wallet_type_enum.py +86 -0
  696. fortisapi/models/work_phone.py +130 -0
  697. fortisapi/utilities/__init__.py +6 -0
  698. fortisapi/utilities/file_wrapper.py +45 -0
  699. fortisapi/utilities/union_type_lookup.py +436 -0
@@ -0,0 +1,1796 @@
1
+ """fortisapi.
2
+
3
+ This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
4
+ """
5
+
6
+ # ruff: noqa: D410, E501, E101, D206
7
+ from apimatic_core.authentication.multiple.and_auth_group import (
8
+ And,
9
+ )
10
+ from apimatic_core.authentication.multiple.single_auth import (
11
+ Single,
12
+ )
13
+ from apimatic_core.request_builder import RequestBuilder
14
+ from apimatic_core.response_handler import ResponseHandler
15
+ from apimatic_core.types.parameter import Parameter
16
+
17
+ from fortisapi.api_helper import APIHelper
18
+ from fortisapi.configuration import Server
19
+ from fortisapi.controllers.base_controller import (
20
+ BaseController,
21
+ )
22
+ from fortisapi.exceptions.response_401_token_exception import (
23
+ Response401tokenException,
24
+ )
25
+ from fortisapi.exceptions.response_412_exception import (
26
+ Response412Exception,
27
+ )
28
+ from fortisapi.http.http_method_enum import (
29
+ HttpMethodEnum,
30
+ )
31
+ from fortisapi.models.response_transaction import (
32
+ ResponseTransaction,
33
+ )
34
+ from fortisapi.models.response_transaction_processing import (
35
+ ResponseTransactionProcessing,
36
+ )
37
+
38
+
39
+ class TransactionsCreditCardController(BaseController):
40
+ """A Controller to access Endpoints in the fortisapi API."""
41
+
42
+ def __init__(self, config):
43
+ """Initialize TransactionsCreditCardController object."""
44
+ super(TransactionsCreditCardController, self).__init__(config)
45
+
46
+ def cc_auth_only(self,
47
+ body,
48
+ expand=None):
49
+ """Perform a POST request to /v1/transactions/cc/auth-only/keyed.
50
+
51
+ Create a new keyed Credit Card authorization only transaction
52
+
53
+ Args:
54
+ body (V1TransactionsCcAuthOnlyKeyedRequest): The request body parameter.
55
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
56
+ way to retrieve extra data related to the current record being
57
+ retrieved. For example, if the API request is for the accountvaults
58
+ endpoint, and the end user also needs to know which contact the token
59
+ belongs to, this data can be returned in the accountvaults endpoint
60
+ request.
61
+
62
+ Returns:
63
+ ResponseTransaction: Response from the API. Created
64
+
65
+ Raises:
66
+ APIException: When an error occurs while fetching the data from the
67
+ remote API. This exception includes the HTTP Response code, an error
68
+ message, and the HTTP body that was received in the request.
69
+
70
+ """
71
+ return super().new_api_call_builder.request(
72
+ RequestBuilder().server(Server.DEFAULT)
73
+ .path("/v1/transactions/cc/auth-only/keyed")
74
+ .http_method(HttpMethodEnum.POST)
75
+ .header_param(Parameter()
76
+ .key("Content-Type")
77
+ .value("application/json"))
78
+ .body_param(Parameter()
79
+ .value(body))
80
+ .query_param(Parameter()
81
+ .key("expand")
82
+ .value(expand))
83
+ .header_param(Parameter()
84
+ .key("accept")
85
+ .value("application/json"))
86
+ .body_serializer(APIHelper.json_serialize)
87
+ .auth(And(Single("user-id"), Single("user-api-key"),
88
+ Single("developer-id"))),
89
+ ).response(
90
+ ResponseHandler()
91
+ .deserializer(APIHelper.json_deserialize)
92
+ .deserialize_into(ResponseTransaction.from_dictionary)
93
+ .local_error("401", "Unauthorized", Response401tokenException)
94
+ .local_error("412", "Precondition Failed", Response412Exception),
95
+ ).execute()
96
+
97
+ def cc_auth_only_previous_transaction(self,
98
+ body,
99
+ expand=None):
100
+ """Perform a POST request to /v1/transactions/cc/auth-only/prev-trxn.
101
+
102
+ Create a new Credit Card authorization only transaction using previous
103
+ transaction id
104
+
105
+ Args:
106
+ body (V1TransactionsCcAuthOnlyPrevTrxnRequest): The request body
107
+ parameter.
108
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
109
+ way to retrieve extra data related to the current record being
110
+ retrieved. For example, if the API request is for the accountvaults
111
+ endpoint, and the end user also needs to know which contact the token
112
+ belongs to, this data can be returned in the accountvaults endpoint
113
+ request.
114
+
115
+ Returns:
116
+ ResponseTransaction: Response from the API. Created
117
+
118
+ Raises:
119
+ APIException: When an error occurs while fetching the data from the
120
+ remote API. This exception includes the HTTP Response code, an error
121
+ message, and the HTTP body that was received in the request.
122
+
123
+ """
124
+ return super().new_api_call_builder.request(
125
+ RequestBuilder().server(Server.DEFAULT)
126
+ .path("/v1/transactions/cc/auth-only/prev-trxn")
127
+ .http_method(HttpMethodEnum.POST)
128
+ .header_param(Parameter()
129
+ .key("Content-Type")
130
+ .value("application/json"))
131
+ .body_param(Parameter()
132
+ .value(body))
133
+ .query_param(Parameter()
134
+ .key("expand")
135
+ .value(expand))
136
+ .header_param(Parameter()
137
+ .key("accept")
138
+ .value("application/json"))
139
+ .body_serializer(APIHelper.json_serialize)
140
+ .auth(And(Single("user-id"), Single("user-api-key"),
141
+ Single("developer-id"))),
142
+ ).response(
143
+ ResponseHandler()
144
+ .deserializer(APIHelper.json_deserialize)
145
+ .deserialize_into(ResponseTransaction.from_dictionary)
146
+ .local_error("401", "Unauthorized", Response401tokenException)
147
+ .local_error("412", "Precondition Failed", Response412Exception),
148
+ ).execute()
149
+
150
+ def cc_auth_only_tap_to_pay(self,
151
+ body,
152
+ expand=None):
153
+ """Perform a POST request to /v1/transactions/cc/auth-only/taptopay.
154
+
155
+ Create a new Tap To Pay Credit Card authorization only transaction
156
+
157
+ Args:
158
+ body (V1TransactionsCcAuthOnlyTaptopayRequest): The request body
159
+ parameter.
160
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
161
+ way to retrieve extra data related to the current record being
162
+ retrieved. For example, if the API request is for the accountvaults
163
+ endpoint, and the end user also needs to know which contact the token
164
+ belongs to, this data can be returned in the accountvaults endpoint
165
+ request.
166
+
167
+ Returns:
168
+ ResponseTransaction: Response from the API. Created
169
+
170
+ Raises:
171
+ APIException: When an error occurs while fetching the data from the
172
+ remote API. This exception includes the HTTP Response code, an error
173
+ message, and the HTTP body that was received in the request.
174
+
175
+ """
176
+ return super().new_api_call_builder.request(
177
+ RequestBuilder().server(Server.DEFAULT)
178
+ .path("/v1/transactions/cc/auth-only/taptopay")
179
+ .http_method(HttpMethodEnum.POST)
180
+ .header_param(Parameter()
181
+ .key("Content-Type")
182
+ .value("application/json"))
183
+ .body_param(Parameter()
184
+ .value(body))
185
+ .query_param(Parameter()
186
+ .key("expand")
187
+ .value(expand))
188
+ .header_param(Parameter()
189
+ .key("accept")
190
+ .value("application/json"))
191
+ .body_serializer(APIHelper.json_serialize)
192
+ .auth(And(Single("user-id"), Single("user-api-key"),
193
+ Single("developer-id"))),
194
+ ).response(
195
+ ResponseHandler()
196
+ .deserializer(APIHelper.json_deserialize)
197
+ .deserialize_into(ResponseTransaction.from_dictionary)
198
+ .local_error("401", "Unauthorized", Response401tokenException)
199
+ .local_error("412", "Precondition Failed", Response412Exception),
200
+ ).execute()
201
+
202
+ def cc_auth_only_terminal(self,
203
+ body):
204
+ """Perform a POST request to /v1/transactions/cc/auth-only/terminal.
205
+
206
+ Create a new terminal Credit Card authorization only transaction
207
+
208
+ Args:
209
+ body (V1TransactionsCcAuthOnlyTerminalRequest): The request body
210
+ parameter.
211
+
212
+ Returns:
213
+ ResponseTransactionProcessing: Response from the API. Accepted
214
+
215
+ Raises:
216
+ APIException: When an error occurs while fetching the data from the
217
+ remote API. This exception includes the HTTP Response code, an error
218
+ message, and the HTTP body that was received in the request.
219
+
220
+ """
221
+ return super().new_api_call_builder.request(
222
+ RequestBuilder().server(Server.DEFAULT)
223
+ .path("/v1/transactions/cc/auth-only/terminal")
224
+ .http_method(HttpMethodEnum.POST)
225
+ .header_param(Parameter()
226
+ .key("Content-Type")
227
+ .value("application/json"))
228
+ .body_param(Parameter()
229
+ .value(body))
230
+ .header_param(Parameter()
231
+ .key("accept")
232
+ .value("application/json"))
233
+ .body_serializer(APIHelper.json_serialize)
234
+ .auth(And(Single("user-id"), Single("user-api-key"),
235
+ Single("developer-id"))),
236
+ ).response(
237
+ ResponseHandler()
238
+ .deserializer(APIHelper.json_deserialize)
239
+ .deserialize_into(ResponseTransactionProcessing.from_dictionary)
240
+ .local_error("401", "Unauthorized", Response401tokenException)
241
+ .local_error("412", "Precondition Failed", Response412Exception),
242
+ ).execute()
243
+
244
+ def cc_auth_only_ticket(self,
245
+ body,
246
+ expand=None):
247
+ """Perform a POST request to /v1/transactions/cc/auth-only/ticket.
248
+
249
+ Create a new ticket Credit Card authorization only transaction
250
+
251
+ Args:
252
+ body (V1TransactionsCcAuthOnlyTicketRequest): The request body parameter.
253
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
254
+ way to retrieve extra data related to the current record being
255
+ retrieved. For example, if the API request is for the accountvaults
256
+ endpoint, and the end user also needs to know which contact the token
257
+ belongs to, this data can be returned in the accountvaults endpoint
258
+ request.
259
+
260
+ Returns:
261
+ ResponseTransaction: Response from the API. Created
262
+
263
+ Raises:
264
+ APIException: When an error occurs while fetching the data from the
265
+ remote API. This exception includes the HTTP Response code, an error
266
+ message, and the HTTP body that was received in the request.
267
+
268
+ """
269
+ return super().new_api_call_builder.request(
270
+ RequestBuilder().server(Server.DEFAULT)
271
+ .path("/v1/transactions/cc/auth-only/ticket")
272
+ .http_method(HttpMethodEnum.POST)
273
+ .header_param(Parameter()
274
+ .key("Content-Type")
275
+ .value("application/json"))
276
+ .body_param(Parameter()
277
+ .value(body))
278
+ .query_param(Parameter()
279
+ .key("expand")
280
+ .value(expand))
281
+ .header_param(Parameter()
282
+ .key("accept")
283
+ .value("application/json"))
284
+ .body_serializer(APIHelper.json_serialize)
285
+ .auth(And(Single("user-id"), Single("user-api-key"),
286
+ Single("developer-id"))),
287
+ ).response(
288
+ ResponseHandler()
289
+ .deserializer(APIHelper.json_deserialize)
290
+ .deserialize_into(ResponseTransaction.from_dictionary)
291
+ .local_error("401", "Unauthorized", Response401tokenException)
292
+ .local_error("412", "Precondition Failed", Response412Exception),
293
+ ).execute()
294
+
295
+ def cc_auth_only_tokenized(self,
296
+ body,
297
+ expand=None):
298
+ """Perform a POST request to /v1/transactions/cc/auth-only/token.
299
+
300
+ Create a new tokenized Credit Card authorization only transaction
301
+
302
+ Args:
303
+ body (V1TransactionsCcAuthOnlyTokenRequest): The request body parameter.
304
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
305
+ way to retrieve extra data related to the current record being
306
+ retrieved. For example, if the API request is for the accountvaults
307
+ endpoint, and the end user also needs to know which contact the token
308
+ belongs to, this data can be returned in the accountvaults endpoint
309
+ request.
310
+
311
+ Returns:
312
+ ResponseTransaction: Response from the API. Created
313
+
314
+ Raises:
315
+ APIException: When an error occurs while fetching the data from the
316
+ remote API. This exception includes the HTTP Response code, an error
317
+ message, and the HTTP body that was received in the request.
318
+
319
+ """
320
+ return super().new_api_call_builder.request(
321
+ RequestBuilder().server(Server.DEFAULT)
322
+ .path("/v1/transactions/cc/auth-only/token")
323
+ .http_method(HttpMethodEnum.POST)
324
+ .header_param(Parameter()
325
+ .key("Content-Type")
326
+ .value("application/json"))
327
+ .body_param(Parameter()
328
+ .value(body))
329
+ .query_param(Parameter()
330
+ .key("expand")
331
+ .value(expand))
332
+ .header_param(Parameter()
333
+ .key("accept")
334
+ .value("application/json"))
335
+ .body_serializer(APIHelper.json_serialize)
336
+ .auth(And(Single("user-id"), Single("user-api-key"),
337
+ Single("developer-id"))),
338
+ ).response(
339
+ ResponseHandler()
340
+ .deserializer(APIHelper.json_deserialize)
341
+ .deserialize_into(ResponseTransaction.from_dictionary)
342
+ .local_error("401", "Unauthorized", Response401tokenException)
343
+ .local_error("412", "Precondition Failed", Response412Exception),
344
+ ).execute()
345
+
346
+ def cc_auth_only_wallet(self,
347
+ body,
348
+ expand=None):
349
+ """Perform a POST request to /v1/transactions/cc/auth-only/wallet.
350
+
351
+ Create a new Wallet Credit Card authorization only transaction
352
+
353
+ Args:
354
+ body (V1TransactionsCcAuthOnlyWalletRequest): The request body parameter.
355
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
356
+ way to retrieve extra data related to the current record being
357
+ retrieved. For example, if the API request is for the accountvaults
358
+ endpoint, and the end user also needs to know which contact the token
359
+ belongs to, this data can be returned in the accountvaults endpoint
360
+ request.
361
+
362
+ Returns:
363
+ ResponseTransaction: Response from the API. Created
364
+
365
+ Raises:
366
+ APIException: When an error occurs while fetching the data from the
367
+ remote API. This exception includes the HTTP Response code, an error
368
+ message, and the HTTP body that was received in the request.
369
+
370
+ """
371
+ return super().new_api_call_builder.request(
372
+ RequestBuilder().server(Server.DEFAULT)
373
+ .path("/v1/transactions/cc/auth-only/wallet")
374
+ .http_method(HttpMethodEnum.POST)
375
+ .header_param(Parameter()
376
+ .key("Content-Type")
377
+ .value("application/json"))
378
+ .body_param(Parameter()
379
+ .value(body))
380
+ .query_param(Parameter()
381
+ .key("expand")
382
+ .value(expand))
383
+ .header_param(Parameter()
384
+ .key("accept")
385
+ .value("application/json"))
386
+ .body_serializer(APIHelper.json_serialize)
387
+ .auth(And(Single("user-id"), Single("user-api-key"),
388
+ Single("developer-id"))),
389
+ ).response(
390
+ ResponseHandler()
391
+ .deserializer(APIHelper.json_deserialize)
392
+ .deserialize_into(ResponseTransaction.from_dictionary)
393
+ .local_error("401", "Unauthorized", Response401tokenException)
394
+ .local_error("412", "Precondition Failed", Response412Exception),
395
+ ).execute()
396
+
397
+ def cc_avs(self,
398
+ body,
399
+ expand=None):
400
+ """Perform a POST request to /v1/transactions/cc/avs-only/keyed.
401
+
402
+ Create a new keyed Credit Card AVS only transaction
403
+
404
+ Args:
405
+ body (V1TransactionsCcAvsOnlyKeyedRequest): The request body parameter.
406
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
407
+ way to retrieve extra data related to the current record being
408
+ retrieved. For example, if the API request is for the accountvaults
409
+ endpoint, and the end user also needs to know which contact the token
410
+ belongs to, this data can be returned in the accountvaults endpoint
411
+ request.
412
+
413
+ Returns:
414
+ ResponseTransaction: Response from the API. Created
415
+
416
+ Raises:
417
+ APIException: When an error occurs while fetching the data from the
418
+ remote API. This exception includes the HTTP Response code, an error
419
+ message, and the HTTP body that was received in the request.
420
+
421
+ """
422
+ return super().new_api_call_builder.request(
423
+ RequestBuilder().server(Server.DEFAULT)
424
+ .path("/v1/transactions/cc/avs-only/keyed")
425
+ .http_method(HttpMethodEnum.POST)
426
+ .header_param(Parameter()
427
+ .key("Content-Type")
428
+ .value("application/json"))
429
+ .body_param(Parameter()
430
+ .value(body))
431
+ .query_param(Parameter()
432
+ .key("expand")
433
+ .value(expand))
434
+ .header_param(Parameter()
435
+ .key("accept")
436
+ .value("application/json"))
437
+ .body_serializer(APIHelper.json_serialize)
438
+ .auth(And(Single("user-id"), Single("user-api-key"),
439
+ Single("developer-id"))),
440
+ ).response(
441
+ ResponseHandler()
442
+ .deserializer(APIHelper.json_deserialize)
443
+ .deserialize_into(ResponseTransaction.from_dictionary)
444
+ .local_error("401", "Unauthorized", Response401tokenException)
445
+ .local_error("412", "Precondition Failed", Response412Exception),
446
+ ).execute()
447
+
448
+ def cc_avs_previous_transaction(self,
449
+ body,
450
+ expand=None):
451
+ """Perform a POST request to /v1/transactions/cc/avs-only/prev-trxn.
452
+
453
+ Create a new Credit Card AVS only transaction using previous transaction id
454
+
455
+ Args:
456
+ body (V1TransactionsCcAvsOnlyPrevTrxnRequest): The request body parameter.
457
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
458
+ way to retrieve extra data related to the current record being
459
+ retrieved. For example, if the API request is for the accountvaults
460
+ endpoint, and the end user also needs to know which contact the token
461
+ belongs to, this data can be returned in the accountvaults endpoint
462
+ request.
463
+
464
+ Returns:
465
+ ResponseTransaction: Response from the API. Created
466
+
467
+ Raises:
468
+ APIException: When an error occurs while fetching the data from the
469
+ remote API. This exception includes the HTTP Response code, an error
470
+ message, and the HTTP body that was received in the request.
471
+
472
+ """
473
+ return super().new_api_call_builder.request(
474
+ RequestBuilder().server(Server.DEFAULT)
475
+ .path("/v1/transactions/cc/avs-only/prev-trxn")
476
+ .http_method(HttpMethodEnum.POST)
477
+ .header_param(Parameter()
478
+ .key("Content-Type")
479
+ .value("application/json"))
480
+ .body_param(Parameter()
481
+ .value(body))
482
+ .query_param(Parameter()
483
+ .key("expand")
484
+ .value(expand))
485
+ .header_param(Parameter()
486
+ .key("accept")
487
+ .value("application/json"))
488
+ .body_serializer(APIHelper.json_serialize)
489
+ .auth(And(Single("user-id"), Single("user-api-key"),
490
+ Single("developer-id"))),
491
+ ).response(
492
+ ResponseHandler()
493
+ .deserializer(APIHelper.json_deserialize)
494
+ .deserialize_into(ResponseTransaction.from_dictionary)
495
+ .local_error("401", "Unauthorized", Response401tokenException)
496
+ .local_error("412", "Precondition Failed", Response412Exception),
497
+ ).execute()
498
+
499
+ def cc_avs_swiped(self,
500
+ body,
501
+ expand=None):
502
+ """Perform a POST request to /v1/transactions/cc/avs-only/swiped.
503
+
504
+ Create a new swiped Credit Card AVS only transaction
505
+
506
+ Args:
507
+ body (V1TransactionsCcAvsOnlySwipedRequest): The request body parameter.
508
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
509
+ way to retrieve extra data related to the current record being
510
+ retrieved. For example, if the API request is for the accountvaults
511
+ endpoint, and the end user also needs to know which contact the token
512
+ belongs to, this data can be returned in the accountvaults endpoint
513
+ request.
514
+
515
+ Returns:
516
+ ResponseTransaction: Response from the API. Created
517
+
518
+ Raises:
519
+ APIException: When an error occurs while fetching the data from the
520
+ remote API. This exception includes the HTTP Response code, an error
521
+ message, and the HTTP body that was received in the request.
522
+
523
+ """
524
+ return super().new_api_call_builder.request(
525
+ RequestBuilder().server(Server.DEFAULT)
526
+ .path("/v1/transactions/cc/avs-only/swiped")
527
+ .http_method(HttpMethodEnum.POST)
528
+ .header_param(Parameter()
529
+ .key("Content-Type")
530
+ .value("application/json"))
531
+ .body_param(Parameter()
532
+ .value(body))
533
+ .query_param(Parameter()
534
+ .key("expand")
535
+ .value(expand))
536
+ .header_param(Parameter()
537
+ .key("accept")
538
+ .value("application/json"))
539
+ .body_serializer(APIHelper.json_serialize)
540
+ .auth(And(Single("user-id"), Single("user-api-key"),
541
+ Single("developer-id"))),
542
+ ).response(
543
+ ResponseHandler()
544
+ .deserializer(APIHelper.json_deserialize)
545
+ .deserialize_into(ResponseTransaction.from_dictionary)
546
+ .local_error("401", "Unauthorized", Response401tokenException)
547
+ .local_error("412", "Precondition Failed", Response412Exception),
548
+ ).execute()
549
+
550
+ def cc_avs_terminal(self,
551
+ body):
552
+ """Perform a POST request to /v1/transactions/cc/avs-only/terminal.
553
+
554
+ Create a new terminal Credit Card AVS only transaction
555
+
556
+ Args:
557
+ body (V1TransactionsCcAvsOnlyTerminalRequest): The request body parameter.
558
+
559
+ Returns:
560
+ ResponseTransactionProcessing: Response from the API. Accepted
561
+
562
+ Raises:
563
+ APIException: When an error occurs while fetching the data from the
564
+ remote API. This exception includes the HTTP Response code, an error
565
+ message, and the HTTP body that was received in the request.
566
+
567
+ """
568
+ return super().new_api_call_builder.request(
569
+ RequestBuilder().server(Server.DEFAULT)
570
+ .path("/v1/transactions/cc/avs-only/terminal")
571
+ .http_method(HttpMethodEnum.POST)
572
+ .header_param(Parameter()
573
+ .key("Content-Type")
574
+ .value("application/json"))
575
+ .body_param(Parameter()
576
+ .value(body))
577
+ .header_param(Parameter()
578
+ .key("accept")
579
+ .value("application/json"))
580
+ .body_serializer(APIHelper.json_serialize)
581
+ .auth(And(Single("user-id"), Single("user-api-key"),
582
+ Single("developer-id"))),
583
+ ).response(
584
+ ResponseHandler()
585
+ .deserializer(APIHelper.json_deserialize)
586
+ .deserialize_into(ResponseTransactionProcessing.from_dictionary)
587
+ .local_error("401", "Unauthorized", Response401tokenException)
588
+ .local_error("412", "Precondition Failed", Response412Exception),
589
+ ).execute()
590
+
591
+ def cc_avs_ticket(self,
592
+ body,
593
+ expand=None):
594
+ """Perform a POST request to /v1/transactions/cc/avs-only/ticket.
595
+
596
+ Create a new ticket Credit Card AVS only transaction
597
+
598
+ Args:
599
+ body (V1TransactionsCcAvsOnlyTicketRequest): The request body parameter.
600
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
601
+ way to retrieve extra data related to the current record being
602
+ retrieved. For example, if the API request is for the accountvaults
603
+ endpoint, and the end user also needs to know which contact the token
604
+ belongs to, this data can be returned in the accountvaults endpoint
605
+ request.
606
+
607
+ Returns:
608
+ ResponseTransaction: Response from the API. Created
609
+
610
+ Raises:
611
+ APIException: When an error occurs while fetching the data from the
612
+ remote API. This exception includes the HTTP Response code, an error
613
+ message, and the HTTP body that was received in the request.
614
+
615
+ """
616
+ return super().new_api_call_builder.request(
617
+ RequestBuilder().server(Server.DEFAULT)
618
+ .path("/v1/transactions/cc/avs-only/ticket")
619
+ .http_method(HttpMethodEnum.POST)
620
+ .header_param(Parameter()
621
+ .key("Content-Type")
622
+ .value("application/json"))
623
+ .body_param(Parameter()
624
+ .value(body))
625
+ .query_param(Parameter()
626
+ .key("expand")
627
+ .value(expand))
628
+ .header_param(Parameter()
629
+ .key("accept")
630
+ .value("application/json"))
631
+ .body_serializer(APIHelper.json_serialize)
632
+ .auth(And(Single("user-id"), Single("user-api-key"),
633
+ Single("developer-id"))),
634
+ ).response(
635
+ ResponseHandler()
636
+ .deserializer(APIHelper.json_deserialize)
637
+ .deserialize_into(ResponseTransaction.from_dictionary)
638
+ .local_error("401", "Unauthorized", Response401tokenException)
639
+ .local_error("412", "Precondition Failed", Response412Exception),
640
+ ).execute()
641
+
642
+ def cc_avs_tokenized(self,
643
+ body,
644
+ expand=None):
645
+ """Perform a POST request to /v1/transactions/cc/avs-only/token.
646
+
647
+ Create a new tokenized Credit Card AVS only transaction
648
+
649
+ Args:
650
+ body (V1TransactionsCcAvsOnlyTokenRequest): The request body parameter.
651
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
652
+ way to retrieve extra data related to the current record being
653
+ retrieved. For example, if the API request is for the accountvaults
654
+ endpoint, and the end user also needs to know which contact the token
655
+ belongs to, this data can be returned in the accountvaults endpoint
656
+ request.
657
+
658
+ Returns:
659
+ ResponseTransaction: Response from the API. Created
660
+
661
+ Raises:
662
+ APIException: When an error occurs while fetching the data from the
663
+ remote API. This exception includes the HTTP Response code, an error
664
+ message, and the HTTP body that was received in the request.
665
+
666
+ """
667
+ return super().new_api_call_builder.request(
668
+ RequestBuilder().server(Server.DEFAULT)
669
+ .path("/v1/transactions/cc/avs-only/token")
670
+ .http_method(HttpMethodEnum.POST)
671
+ .header_param(Parameter()
672
+ .key("Content-Type")
673
+ .value("application/json"))
674
+ .body_param(Parameter()
675
+ .value(body))
676
+ .query_param(Parameter()
677
+ .key("expand")
678
+ .value(expand))
679
+ .header_param(Parameter()
680
+ .key("accept")
681
+ .value("application/json"))
682
+ .body_serializer(APIHelper.json_serialize)
683
+ .auth(And(Single("user-id"), Single("user-api-key"),
684
+ Single("developer-id"))),
685
+ ).response(
686
+ ResponseHandler()
687
+ .deserializer(APIHelper.json_deserialize)
688
+ .deserialize_into(ResponseTransaction.from_dictionary)
689
+ .local_error("401", "Unauthorized", Response401tokenException)
690
+ .local_error("412", "Precondition Failed", Response412Exception),
691
+ ).execute()
692
+
693
+ def cc_avs_wallet(self,
694
+ body,
695
+ expand=None):
696
+ """Perform a POST request to /v1/transactions/cc/avs-only/wallet.
697
+
698
+ Create a new Wallet Credit Card AVS only transaction
699
+
700
+ Args:
701
+ body (V1TransactionsCcAvsOnlyWalletRequest): The request body parameter.
702
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
703
+ way to retrieve extra data related to the current record being
704
+ retrieved. For example, if the API request is for the accountvaults
705
+ endpoint, and the end user also needs to know which contact the token
706
+ belongs to, this data can be returned in the accountvaults endpoint
707
+ request.
708
+
709
+ Returns:
710
+ ResponseTransaction: Response from the API. Created
711
+
712
+ Raises:
713
+ APIException: When an error occurs while fetching the data from the
714
+ remote API. This exception includes the HTTP Response code, an error
715
+ message, and the HTTP body that was received in the request.
716
+
717
+ """
718
+ return super().new_api_call_builder.request(
719
+ RequestBuilder().server(Server.DEFAULT)
720
+ .path("/v1/transactions/cc/avs-only/wallet")
721
+ .http_method(HttpMethodEnum.POST)
722
+ .header_param(Parameter()
723
+ .key("Content-Type")
724
+ .value("application/json"))
725
+ .body_param(Parameter()
726
+ .value(body))
727
+ .query_param(Parameter()
728
+ .key("expand")
729
+ .value(expand))
730
+ .header_param(Parameter()
731
+ .key("accept")
732
+ .value("application/json"))
733
+ .body_serializer(APIHelper.json_serialize)
734
+ .auth(And(Single("user-id"), Single("user-api-key"),
735
+ Single("developer-id"))),
736
+ ).response(
737
+ ResponseHandler()
738
+ .deserializer(APIHelper.json_deserialize)
739
+ .deserialize_into(ResponseTransaction.from_dictionary)
740
+ .local_error("401", "Unauthorized", Response401tokenException)
741
+ .local_error("412", "Precondition Failed", Response412Exception),
742
+ ).execute()
743
+
744
+ def cc_balance_inquiry(self,
745
+ body,
746
+ expand=None):
747
+ """Perform a POST request to /v1/transactions/cc/balance-inquiry/keyed.
748
+
749
+ Create a new keyed Credit Card balance inquiry transaction
750
+
751
+ Args:
752
+ body (V1TransactionsCcBalanceInquiryKeyedRequest): The request body
753
+ parameter.
754
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
755
+ way to retrieve extra data related to the current record being
756
+ retrieved. For example, if the API request is for the accountvaults
757
+ endpoint, and the end user also needs to know which contact the token
758
+ belongs to, this data can be returned in the accountvaults endpoint
759
+ request.
760
+
761
+ Returns:
762
+ ResponseTransaction: Response from the API. Created
763
+
764
+ Raises:
765
+ APIException: When an error occurs while fetching the data from the
766
+ remote API. This exception includes the HTTP Response code, an error
767
+ message, and the HTTP body that was received in the request.
768
+
769
+ """
770
+ return super().new_api_call_builder.request(
771
+ RequestBuilder().server(Server.DEFAULT)
772
+ .path("/v1/transactions/cc/balance-inquiry/keyed")
773
+ .http_method(HttpMethodEnum.POST)
774
+ .header_param(Parameter()
775
+ .key("Content-Type")
776
+ .value("application/json"))
777
+ .body_param(Parameter()
778
+ .value(body))
779
+ .query_param(Parameter()
780
+ .key("expand")
781
+ .value(expand))
782
+ .header_param(Parameter()
783
+ .key("accept")
784
+ .value("application/json"))
785
+ .body_serializer(APIHelper.json_serialize)
786
+ .auth(And(Single("user-id"), Single("user-api-key"),
787
+ Single("developer-id"))),
788
+ ).response(
789
+ ResponseHandler()
790
+ .deserializer(APIHelper.json_deserialize)
791
+ .deserialize_into(ResponseTransaction.from_dictionary)
792
+ .local_error("401", "Unauthorized", Response401tokenException)
793
+ .local_error("412", "Precondition Failed", Response412Exception),
794
+ ).execute()
795
+
796
+ def cc_balance_inquiry_previous_transaction(self,
797
+ body,
798
+ expand=None):
799
+ """Perform a POST request to
800
+ /v1/transactions/cc/balance-inquiry/prev-trxn.
801
+
802
+ Create a new Credit Card balance inquiry transaction using previous
803
+ transaction id
804
+
805
+ Args:
806
+ body (V1TransactionsCcBalanceInquiryPrevTrxnRequest): The request body
807
+ parameter.
808
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
809
+ way to retrieve extra data related to the current record being
810
+ retrieved. For example, if the API request is for the accountvaults
811
+ endpoint, and the end user also needs to know which contact the token
812
+ belongs to, this data can be returned in the accountvaults endpoint
813
+ request.
814
+
815
+ Returns:
816
+ ResponseTransaction: Response from the API. Created
817
+
818
+ Raises:
819
+ APIException: When an error occurs while fetching the data from the
820
+ remote API. This exception includes the HTTP Response code, an error
821
+ message, and the HTTP body that was received in the request.
822
+
823
+ """
824
+ return super().new_api_call_builder.request(
825
+ RequestBuilder().server(Server.DEFAULT)
826
+ .path("/v1/transactions/cc/balance-inquiry/prev-trxn")
827
+ .http_method(HttpMethodEnum.POST)
828
+ .header_param(Parameter()
829
+ .key("Content-Type")
830
+ .value("application/json"))
831
+ .body_param(Parameter()
832
+ .value(body))
833
+ .query_param(Parameter()
834
+ .key("expand")
835
+ .value(expand))
836
+ .header_param(Parameter()
837
+ .key("accept")
838
+ .value("application/json"))
839
+ .body_serializer(APIHelper.json_serialize)
840
+ .auth(And(Single("user-id"), Single("user-api-key"),
841
+ Single("developer-id"))),
842
+ ).response(
843
+ ResponseHandler()
844
+ .deserializer(APIHelper.json_deserialize)
845
+ .deserialize_into(ResponseTransaction.from_dictionary)
846
+ .local_error("401", "Unauthorized", Response401tokenException)
847
+ .local_error("412", "Precondition Failed", Response412Exception),
848
+ ).execute()
849
+
850
+ def cc_balance_inquiry_swiped(self,
851
+ body,
852
+ expand=None):
853
+ """Perform a POST request to
854
+ /v1/transactions/cc/balance-inquiry/swiped.
855
+
856
+ Create a new swiped Credit Card balance inquiry transaction
857
+
858
+ Args:
859
+ body (V1TransactionsCcBalanceInquirySwipedRequest): The request body
860
+ parameter.
861
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
862
+ way to retrieve extra data related to the current record being
863
+ retrieved. For example, if the API request is for the accountvaults
864
+ endpoint, and the end user also needs to know which contact the token
865
+ belongs to, this data can be returned in the accountvaults endpoint
866
+ request.
867
+
868
+ Returns:
869
+ ResponseTransaction: Response from the API. Created
870
+
871
+ Raises:
872
+ APIException: When an error occurs while fetching the data from the
873
+ remote API. This exception includes the HTTP Response code, an error
874
+ message, and the HTTP body that was received in the request.
875
+
876
+ """
877
+ return super().new_api_call_builder.request(
878
+ RequestBuilder().server(Server.DEFAULT)
879
+ .path("/v1/transactions/cc/balance-inquiry/swiped")
880
+ .http_method(HttpMethodEnum.POST)
881
+ .header_param(Parameter()
882
+ .key("Content-Type")
883
+ .value("application/json"))
884
+ .body_param(Parameter()
885
+ .value(body))
886
+ .query_param(Parameter()
887
+ .key("expand")
888
+ .value(expand))
889
+ .header_param(Parameter()
890
+ .key("accept")
891
+ .value("application/json"))
892
+ .body_serializer(APIHelper.json_serialize)
893
+ .auth(And(Single("user-id"), Single("user-api-key"),
894
+ Single("developer-id"))),
895
+ ).response(
896
+ ResponseHandler()
897
+ .deserializer(APIHelper.json_deserialize)
898
+ .deserialize_into(ResponseTransaction.from_dictionary)
899
+ .local_error("401", "Unauthorized", Response401tokenException)
900
+ .local_error("412", "Precondition Failed", Response412Exception),
901
+ ).execute()
902
+
903
+ def cc_balance_inquiry_terminal(self,
904
+ body):
905
+ """Perform a POST request to
906
+ /v1/transactions/cc/balance-inquiry/terminal.
907
+
908
+ Create a new terminal Credit Card balance inquiry transaction
909
+
910
+ Args:
911
+ body (V1TransactionsCcBalanceInquiryTerminalRequest): The request body
912
+ parameter.
913
+
914
+ Returns:
915
+ ResponseTransactionProcessing: Response from the API. Accepted
916
+
917
+ Raises:
918
+ APIException: When an error occurs while fetching the data from the
919
+ remote API. This exception includes the HTTP Response code, an error
920
+ message, and the HTTP body that was received in the request.
921
+
922
+ """
923
+ return super().new_api_call_builder.request(
924
+ RequestBuilder().server(Server.DEFAULT)
925
+ .path("/v1/transactions/cc/balance-inquiry/terminal")
926
+ .http_method(HttpMethodEnum.POST)
927
+ .header_param(Parameter()
928
+ .key("Content-Type")
929
+ .value("application/json"))
930
+ .body_param(Parameter()
931
+ .value(body))
932
+ .header_param(Parameter()
933
+ .key("accept")
934
+ .value("application/json"))
935
+ .body_serializer(APIHelper.json_serialize)
936
+ .auth(And(Single("user-id"), Single("user-api-key"),
937
+ Single("developer-id"))),
938
+ ).response(
939
+ ResponseHandler()
940
+ .deserializer(APIHelper.json_deserialize)
941
+ .deserialize_into(ResponseTransactionProcessing.from_dictionary)
942
+ .local_error("401", "Unauthorized", Response401tokenException)
943
+ .local_error("412", "Precondition Failed", Response412Exception),
944
+ ).execute()
945
+
946
+ def cc_balance_inquiry_ticket(self,
947
+ body,
948
+ expand=None):
949
+ """Perform a POST request to
950
+ /v1/transactions/cc/balance-inquiry/ticket.
951
+
952
+ Create a new Ticket Credit Card balance inquiry transaction
953
+
954
+ Args:
955
+ body (V1TransactionsCcBalanceInquiryTicketRequest): The request body
956
+ parameter.
957
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
958
+ way to retrieve extra data related to the current record being
959
+ retrieved. For example, if the API request is for the accountvaults
960
+ endpoint, and the end user also needs to know which contact the token
961
+ belongs to, this data can be returned in the accountvaults endpoint
962
+ request.
963
+
964
+ Returns:
965
+ ResponseTransaction: Response from the API. Created
966
+
967
+ Raises:
968
+ APIException: When an error occurs while fetching the data from the
969
+ remote API. This exception includes the HTTP Response code, an error
970
+ message, and the HTTP body that was received in the request.
971
+
972
+ """
973
+ return super().new_api_call_builder.request(
974
+ RequestBuilder().server(Server.DEFAULT)
975
+ .path("/v1/transactions/cc/balance-inquiry/ticket")
976
+ .http_method(HttpMethodEnum.POST)
977
+ .header_param(Parameter()
978
+ .key("Content-Type")
979
+ .value("application/json"))
980
+ .body_param(Parameter()
981
+ .value(body))
982
+ .query_param(Parameter()
983
+ .key("expand")
984
+ .value(expand))
985
+ .header_param(Parameter()
986
+ .key("accept")
987
+ .value("application/json"))
988
+ .body_serializer(APIHelper.json_serialize)
989
+ .auth(And(Single("user-id"), Single("user-api-key"),
990
+ Single("developer-id"))),
991
+ ).response(
992
+ ResponseHandler()
993
+ .deserializer(APIHelper.json_deserialize)
994
+ .deserialize_into(ResponseTransaction.from_dictionary)
995
+ .local_error("401", "Unauthorized", Response401tokenException)
996
+ .local_error("412", "Precondition Failed", Response412Exception),
997
+ ).execute()
998
+
999
+ def cc_balance_inquiry_tokenized(self,
1000
+ body,
1001
+ expand=None):
1002
+ """Perform a POST request to /v1/transactions/cc/balance-inquiry/token.
1003
+
1004
+ Create a new tokenized Credit Card balance inquiry transaction
1005
+
1006
+ Args:
1007
+ body (V1TransactionsCcBalanceInquiryTokenRequest): The request body
1008
+ parameter.
1009
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1010
+ way to retrieve extra data related to the current record being
1011
+ retrieved. For example, if the API request is for the accountvaults
1012
+ endpoint, and the end user also needs to know which contact the token
1013
+ belongs to, this data can be returned in the accountvaults endpoint
1014
+ request.
1015
+
1016
+ Returns:
1017
+ ResponseTransaction: Response from the API. Created
1018
+
1019
+ Raises:
1020
+ APIException: When an error occurs while fetching the data from the
1021
+ remote API. This exception includes the HTTP Response code, an error
1022
+ message, and the HTTP body that was received in the request.
1023
+
1024
+ """
1025
+ return super().new_api_call_builder.request(
1026
+ RequestBuilder().server(Server.DEFAULT)
1027
+ .path("/v1/transactions/cc/balance-inquiry/token")
1028
+ .http_method(HttpMethodEnum.POST)
1029
+ .header_param(Parameter()
1030
+ .key("Content-Type")
1031
+ .value("application/json"))
1032
+ .body_param(Parameter()
1033
+ .value(body))
1034
+ .query_param(Parameter()
1035
+ .key("expand")
1036
+ .value(expand))
1037
+ .header_param(Parameter()
1038
+ .key("accept")
1039
+ .value("application/json"))
1040
+ .body_serializer(APIHelper.json_serialize)
1041
+ .auth(And(Single("user-id"), Single("user-api-key"),
1042
+ Single("developer-id"))),
1043
+ ).response(
1044
+ ResponseHandler()
1045
+ .deserializer(APIHelper.json_deserialize)
1046
+ .deserialize_into(ResponseTransaction.from_dictionary)
1047
+ .local_error("401", "Unauthorized", Response401tokenException)
1048
+ .local_error("412", "Precondition Failed", Response412Exception),
1049
+ ).execute()
1050
+
1051
+ def cc_balance_inquiry_wallet(self,
1052
+ body,
1053
+ expand=None):
1054
+ """Perform a POST request to
1055
+ /v1/transactions/cc/balance-inquiry/wallet.
1056
+
1057
+ Create a new Wallet Credit Card balance inquiry transaction
1058
+
1059
+ Args:
1060
+ body (V1TransactionsCcBalanceInquiryWalletRequest): The request body
1061
+ parameter.
1062
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1063
+ way to retrieve extra data related to the current record being
1064
+ retrieved. For example, if the API request is for the accountvaults
1065
+ endpoint, and the end user also needs to know which contact the token
1066
+ belongs to, this data can be returned in the accountvaults endpoint
1067
+ request.
1068
+
1069
+ Returns:
1070
+ ResponseTransaction: Response from the API. Created
1071
+
1072
+ Raises:
1073
+ APIException: When an error occurs while fetching the data from the
1074
+ remote API. This exception includes the HTTP Response code, an error
1075
+ message, and the HTTP body that was received in the request.
1076
+
1077
+ """
1078
+ return super().new_api_call_builder.request(
1079
+ RequestBuilder().server(Server.DEFAULT)
1080
+ .path("/v1/transactions/cc/balance-inquiry/wallet")
1081
+ .http_method(HttpMethodEnum.POST)
1082
+ .header_param(Parameter()
1083
+ .key("Content-Type")
1084
+ .value("application/json"))
1085
+ .body_param(Parameter()
1086
+ .value(body))
1087
+ .query_param(Parameter()
1088
+ .key("expand")
1089
+ .value(expand))
1090
+ .header_param(Parameter()
1091
+ .key("accept")
1092
+ .value("application/json"))
1093
+ .body_serializer(APIHelper.json_serialize)
1094
+ .auth(And(Single("user-id"), Single("user-api-key"),
1095
+ Single("developer-id"))),
1096
+ ).response(
1097
+ ResponseHandler()
1098
+ .deserializer(APIHelper.json_deserialize)
1099
+ .deserialize_into(ResponseTransaction.from_dictionary)
1100
+ .local_error("401", "Unauthorized", Response401tokenException)
1101
+ .local_error("412", "Precondition Failed", Response412Exception),
1102
+ ).execute()
1103
+
1104
+ def cc_refund(self,
1105
+ body,
1106
+ expand=None):
1107
+ """Perform a POST request to /v1/transactions/cc/refund/keyed.
1108
+
1109
+ Create a new keyed Credit Card refund transaction
1110
+
1111
+ Args:
1112
+ body (V1TransactionsCcRefundKeyedRequest): The request body parameter.
1113
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1114
+ way to retrieve extra data related to the current record being
1115
+ retrieved. For example, if the API request is for the accountvaults
1116
+ endpoint, and the end user also needs to know which contact the token
1117
+ belongs to, this data can be returned in the accountvaults endpoint
1118
+ request.
1119
+
1120
+ Returns:
1121
+ ResponseTransaction: Response from the API. Created
1122
+
1123
+ Raises:
1124
+ APIException: When an error occurs while fetching the data from the
1125
+ remote API. This exception includes the HTTP Response code, an error
1126
+ message, and the HTTP body that was received in the request.
1127
+
1128
+ """
1129
+ return super().new_api_call_builder.request(
1130
+ RequestBuilder().server(Server.DEFAULT)
1131
+ .path("/v1/transactions/cc/refund/keyed")
1132
+ .http_method(HttpMethodEnum.POST)
1133
+ .header_param(Parameter()
1134
+ .key("Content-Type")
1135
+ .value("application/json"))
1136
+ .body_param(Parameter()
1137
+ .value(body))
1138
+ .query_param(Parameter()
1139
+ .key("expand")
1140
+ .value(expand))
1141
+ .header_param(Parameter()
1142
+ .key("accept")
1143
+ .value("application/json"))
1144
+ .body_serializer(APIHelper.json_serialize)
1145
+ .auth(And(Single("user-id"), Single("user-api-key"),
1146
+ Single("developer-id"))),
1147
+ ).response(
1148
+ ResponseHandler()
1149
+ .deserializer(APIHelper.json_deserialize)
1150
+ .deserialize_into(ResponseTransaction.from_dictionary)
1151
+ .local_error("401", "Unauthorized", Response401tokenException)
1152
+ .local_error("412", "Precondition Failed", Response412Exception),
1153
+ ).execute()
1154
+
1155
+ def cc_refund_previous_transaction(self,
1156
+ body,
1157
+ expand=None):
1158
+ """Perform a POST request to /v1/transactions/cc/refund/prev-trxn.
1159
+
1160
+ Create a new Credit Card refund transaction using previous transaction id
1161
+
1162
+ Args:
1163
+ body (V1TransactionsCcRefundPrevTrxnRequest): The request body parameter.
1164
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1165
+ way to retrieve extra data related to the current record being
1166
+ retrieved. For example, if the API request is for the accountvaults
1167
+ endpoint, and the end user also needs to know which contact the token
1168
+ belongs to, this data can be returned in the accountvaults endpoint
1169
+ request.
1170
+
1171
+ Returns:
1172
+ ResponseTransaction: Response from the API. OK
1173
+
1174
+ Raises:
1175
+ APIException: When an error occurs while fetching the data from the
1176
+ remote API. This exception includes the HTTP Response code, an error
1177
+ message, and the HTTP body that was received in the request.
1178
+
1179
+ """
1180
+ return super().new_api_call_builder.request(
1181
+ RequestBuilder().server(Server.DEFAULT)
1182
+ .path("/v1/transactions/cc/refund/prev-trxn")
1183
+ .http_method(HttpMethodEnum.POST)
1184
+ .header_param(Parameter()
1185
+ .key("Content-Type")
1186
+ .value("application/json"))
1187
+ .body_param(Parameter()
1188
+ .value(body))
1189
+ .query_param(Parameter()
1190
+ .key("expand")
1191
+ .value(expand))
1192
+ .header_param(Parameter()
1193
+ .key("accept")
1194
+ .value("application/json"))
1195
+ .body_serializer(APIHelper.json_serialize)
1196
+ .auth(And(Single("user-id"), Single("user-api-key"),
1197
+ Single("developer-id"))),
1198
+ ).response(
1199
+ ResponseHandler()
1200
+ .deserializer(APIHelper.json_deserialize)
1201
+ .deserialize_into(ResponseTransaction.from_dictionary)
1202
+ .local_error("401", "Unauthorized", Response401tokenException)
1203
+ .local_error("412", "Precondition Failed", Response412Exception),
1204
+ ).execute()
1205
+
1206
+ def cc_refund_tap_to_pay(self,
1207
+ body,
1208
+ expand=None):
1209
+ """Perform a POST request to /v1/transactions/cc/refund/taptopay.
1210
+
1211
+ Create a new Tap To Pay Credit Card refund transaction
1212
+
1213
+ Args:
1214
+ body (V1TransactionsCcRefundTaptopayRequest): The request body parameter.
1215
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1216
+ way to retrieve extra data related to the current record being
1217
+ retrieved. For example, if the API request is for the accountvaults
1218
+ endpoint, and the end user also needs to know which contact the token
1219
+ belongs to, this data can be returned in the accountvaults endpoint
1220
+ request.
1221
+
1222
+ Returns:
1223
+ ResponseTransaction: Response from the API. Created
1224
+
1225
+ Raises:
1226
+ APIException: When an error occurs while fetching the data from the
1227
+ remote API. This exception includes the HTTP Response code, an error
1228
+ message, and the HTTP body that was received in the request.
1229
+
1230
+ """
1231
+ return super().new_api_call_builder.request(
1232
+ RequestBuilder().server(Server.DEFAULT)
1233
+ .path("/v1/transactions/cc/refund/taptopay")
1234
+ .http_method(HttpMethodEnum.POST)
1235
+ .header_param(Parameter()
1236
+ .key("Content-Type")
1237
+ .value("application/json"))
1238
+ .body_param(Parameter()
1239
+ .value(body))
1240
+ .query_param(Parameter()
1241
+ .key("expand")
1242
+ .value(expand))
1243
+ .header_param(Parameter()
1244
+ .key("accept")
1245
+ .value("application/json"))
1246
+ .body_serializer(APIHelper.json_serialize)
1247
+ .auth(And(Single("user-id"), Single("user-api-key"),
1248
+ Single("developer-id"))),
1249
+ ).response(
1250
+ ResponseHandler()
1251
+ .deserializer(APIHelper.json_deserialize)
1252
+ .deserialize_into(ResponseTransaction.from_dictionary)
1253
+ .local_error("401", "Unauthorized", Response401tokenException)
1254
+ .local_error("412", "Precondition Failed", Response412Exception),
1255
+ ).execute()
1256
+
1257
+ def cc_refund_terminal(self,
1258
+ body):
1259
+ """Perform a POST request to /v1/transactions/cc/refund/terminal.
1260
+
1261
+ Create a new terminal Credit Card refund transaction
1262
+
1263
+ Args:
1264
+ body (V1TransactionsCcRefundTerminalRequest): The request body parameter.
1265
+
1266
+ Returns:
1267
+ ResponseTransactionProcessing: Response from the API. Accepted
1268
+
1269
+ Raises:
1270
+ APIException: When an error occurs while fetching the data from the
1271
+ remote API. This exception includes the HTTP Response code, an error
1272
+ message, and the HTTP body that was received in the request.
1273
+
1274
+ """
1275
+ return super().new_api_call_builder.request(
1276
+ RequestBuilder().server(Server.DEFAULT)
1277
+ .path("/v1/transactions/cc/refund/terminal")
1278
+ .http_method(HttpMethodEnum.POST)
1279
+ .header_param(Parameter()
1280
+ .key("Content-Type")
1281
+ .value("application/json"))
1282
+ .body_param(Parameter()
1283
+ .value(body))
1284
+ .header_param(Parameter()
1285
+ .key("accept")
1286
+ .value("application/json"))
1287
+ .body_serializer(APIHelper.json_serialize)
1288
+ .auth(And(Single("user-id"), Single("user-api-key"),
1289
+ Single("developer-id"))),
1290
+ ).response(
1291
+ ResponseHandler()
1292
+ .deserializer(APIHelper.json_deserialize)
1293
+ .deserialize_into(ResponseTransactionProcessing.from_dictionary)
1294
+ .local_error("401", "Unauthorized", Response401tokenException)
1295
+ .local_error("412", "Precondition Failed", Response412Exception),
1296
+ ).execute()
1297
+
1298
+ def cc_refund_ticket(self,
1299
+ body,
1300
+ expand=None):
1301
+ """Perform a POST request to /v1/transactions/cc/refund/ticket.
1302
+
1303
+ Create a new ticket Credit Card refund transaction
1304
+
1305
+ Args:
1306
+ body (V1TransactionsCcRefundTicketRequest): The request body parameter.
1307
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1308
+ way to retrieve extra data related to the current record being
1309
+ retrieved. For example, if the API request is for the accountvaults
1310
+ endpoint, and the end user also needs to know which contact the token
1311
+ belongs to, this data can be returned in the accountvaults endpoint
1312
+ request.
1313
+
1314
+ Returns:
1315
+ ResponseTransaction: Response from the API. OK
1316
+
1317
+ Raises:
1318
+ APIException: When an error occurs while fetching the data from the
1319
+ remote API. This exception includes the HTTP Response code, an error
1320
+ message, and the HTTP body that was received in the request.
1321
+
1322
+ """
1323
+ return super().new_api_call_builder.request(
1324
+ RequestBuilder().server(Server.DEFAULT)
1325
+ .path("/v1/transactions/cc/refund/ticket")
1326
+ .http_method(HttpMethodEnum.POST)
1327
+ .header_param(Parameter()
1328
+ .key("Content-Type")
1329
+ .value("application/json"))
1330
+ .body_param(Parameter()
1331
+ .value(body))
1332
+ .query_param(Parameter()
1333
+ .key("expand")
1334
+ .value(expand))
1335
+ .header_param(Parameter()
1336
+ .key("accept")
1337
+ .value("application/json"))
1338
+ .body_serializer(APIHelper.json_serialize)
1339
+ .auth(And(Single("user-id"), Single("user-api-key"),
1340
+ Single("developer-id"))),
1341
+ ).response(
1342
+ ResponseHandler()
1343
+ .deserializer(APIHelper.json_deserialize)
1344
+ .deserialize_into(ResponseTransaction.from_dictionary)
1345
+ .local_error("401", "Unauthorized", Response401tokenException)
1346
+ .local_error("412", "Precondition Failed", Response412Exception),
1347
+ ).execute()
1348
+
1349
+ def cc_refund_tokenized(self,
1350
+ body,
1351
+ expand=None):
1352
+ """Perform a POST request to /v1/transactions/cc/refund/token.
1353
+
1354
+ Create a new tokenized Credit Card refund transaction
1355
+
1356
+ Args:
1357
+ body (V1TransactionsCcRefundTokenRequest): The request body parameter.
1358
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1359
+ way to retrieve extra data related to the current record being
1360
+ retrieved. For example, if the API request is for the accountvaults
1361
+ endpoint, and the end user also needs to know which contact the token
1362
+ belongs to, this data can be returned in the accountvaults endpoint
1363
+ request.
1364
+
1365
+ Returns:
1366
+ ResponseTransaction: Response from the API. OK
1367
+
1368
+ Raises:
1369
+ APIException: When an error occurs while fetching the data from the
1370
+ remote API. This exception includes the HTTP Response code, an error
1371
+ message, and the HTTP body that was received in the request.
1372
+
1373
+ """
1374
+ return super().new_api_call_builder.request(
1375
+ RequestBuilder().server(Server.DEFAULT)
1376
+ .path("/v1/transactions/cc/refund/token")
1377
+ .http_method(HttpMethodEnum.POST)
1378
+ .header_param(Parameter()
1379
+ .key("Content-Type")
1380
+ .value("application/json"))
1381
+ .body_param(Parameter()
1382
+ .value(body))
1383
+ .query_param(Parameter()
1384
+ .key("expand")
1385
+ .value(expand))
1386
+ .header_param(Parameter()
1387
+ .key("accept")
1388
+ .value("application/json"))
1389
+ .body_serializer(APIHelper.json_serialize)
1390
+ .auth(And(Single("user-id"), Single("user-api-key"),
1391
+ Single("developer-id"))),
1392
+ ).response(
1393
+ ResponseHandler()
1394
+ .deserializer(APIHelper.json_deserialize)
1395
+ .deserialize_into(ResponseTransaction.from_dictionary)
1396
+ .local_error("401", "Unauthorized", Response401tokenException)
1397
+ .local_error("412", "Precondition Failed", Response412Exception),
1398
+ ).execute()
1399
+
1400
+ def cc_refund_wallet(self,
1401
+ body,
1402
+ expand=None):
1403
+ """Perform a POST request to /v1/transactions/cc/refund/wallet.
1404
+
1405
+ Create a new Wallet Credit Card refund transaction
1406
+
1407
+ Args:
1408
+ body (V1TransactionsCcRefundWalletRequest): The request body parameter.
1409
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1410
+ way to retrieve extra data related to the current record being
1411
+ retrieved. For example, if the API request is for the accountvaults
1412
+ endpoint, and the end user also needs to know which contact the token
1413
+ belongs to, this data can be returned in the accountvaults endpoint
1414
+ request.
1415
+
1416
+ Returns:
1417
+ ResponseTransaction: Response from the API. Created
1418
+
1419
+ Raises:
1420
+ APIException: When an error occurs while fetching the data from the
1421
+ remote API. This exception includes the HTTP Response code, an error
1422
+ message, and the HTTP body that was received in the request.
1423
+
1424
+ """
1425
+ return super().new_api_call_builder.request(
1426
+ RequestBuilder().server(Server.DEFAULT)
1427
+ .path("/v1/transactions/cc/refund/wallet")
1428
+ .http_method(HttpMethodEnum.POST)
1429
+ .header_param(Parameter()
1430
+ .key("Content-Type")
1431
+ .value("application/json"))
1432
+ .body_param(Parameter()
1433
+ .value(body))
1434
+ .query_param(Parameter()
1435
+ .key("expand")
1436
+ .value(expand))
1437
+ .header_param(Parameter()
1438
+ .key("accept")
1439
+ .value("application/json"))
1440
+ .body_serializer(APIHelper.json_serialize)
1441
+ .auth(And(Single("user-id"), Single("user-api-key"),
1442
+ Single("developer-id"))),
1443
+ ).response(
1444
+ ResponseHandler()
1445
+ .deserializer(APIHelper.json_deserialize)
1446
+ .deserialize_into(ResponseTransaction.from_dictionary)
1447
+ .local_error("401", "Unauthorized", Response401tokenException)
1448
+ .local_error("412", "Precondition Failed", Response412Exception),
1449
+ ).execute()
1450
+
1451
+ def cc_sale(self,
1452
+ body,
1453
+ expand=None):
1454
+ """Perform a POST request to /v1/transactions/cc/sale/keyed.
1455
+
1456
+ Create a new keyed Credit Card sale transaction
1457
+
1458
+ Args:
1459
+ body (V1TransactionsCcSaleKeyedRequest): The request body parameter.
1460
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1461
+ way to retrieve extra data related to the current record being
1462
+ retrieved. For example, if the API request is for the accountvaults
1463
+ endpoint, and the end user also needs to know which contact the token
1464
+ belongs to, this data can be returned in the accountvaults endpoint
1465
+ request.
1466
+
1467
+ Returns:
1468
+ ResponseTransaction: Response from the API. Created
1469
+
1470
+ Raises:
1471
+ APIException: When an error occurs while fetching the data from the
1472
+ remote API. This exception includes the HTTP Response code, an error
1473
+ message, and the HTTP body that was received in the request.
1474
+
1475
+ """
1476
+ return super().new_api_call_builder.request(
1477
+ RequestBuilder().server(Server.DEFAULT)
1478
+ .path("/v1/transactions/cc/sale/keyed")
1479
+ .http_method(HttpMethodEnum.POST)
1480
+ .header_param(Parameter()
1481
+ .key("Content-Type")
1482
+ .value("application/json"))
1483
+ .body_param(Parameter()
1484
+ .value(body))
1485
+ .query_param(Parameter()
1486
+ .key("expand")
1487
+ .value(expand))
1488
+ .header_param(Parameter()
1489
+ .key("accept")
1490
+ .value("application/json"))
1491
+ .body_serializer(APIHelper.json_serialize)
1492
+ .auth(And(Single("user-id"), Single("user-api-key"),
1493
+ Single("developer-id"))),
1494
+ ).response(
1495
+ ResponseHandler()
1496
+ .deserializer(APIHelper.json_deserialize)
1497
+ .deserialize_into(ResponseTransaction.from_dictionary)
1498
+ .local_error("401", "Unauthorized", Response401tokenException)
1499
+ .local_error("412", "Precondition Failed", Response412Exception),
1500
+ ).execute()
1501
+
1502
+ def cc_sale_previous_transaction(self,
1503
+ body,
1504
+ expand=None):
1505
+ """Perform a POST request to /v1/transactions/cc/sale/prev-trxn.
1506
+
1507
+ Create a new Credit Card sale transaction using previous transaction id
1508
+
1509
+ Args:
1510
+ body (V1TransactionsCcSalePrevTrxnRequest): The request body parameter.
1511
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1512
+ way to retrieve extra data related to the current record being
1513
+ retrieved. For example, if the API request is for the accountvaults
1514
+ endpoint, and the end user also needs to know which contact the token
1515
+ belongs to, this data can be returned in the accountvaults endpoint
1516
+ request.
1517
+
1518
+ Returns:
1519
+ ResponseTransaction: Response from the API. Created
1520
+
1521
+ Raises:
1522
+ APIException: When an error occurs while fetching the data from the
1523
+ remote API. This exception includes the HTTP Response code, an error
1524
+ message, and the HTTP body that was received in the request.
1525
+
1526
+ """
1527
+ return super().new_api_call_builder.request(
1528
+ RequestBuilder().server(Server.DEFAULT)
1529
+ .path("/v1/transactions/cc/sale/prev-trxn")
1530
+ .http_method(HttpMethodEnum.POST)
1531
+ .header_param(Parameter()
1532
+ .key("Content-Type")
1533
+ .value("application/json"))
1534
+ .body_param(Parameter()
1535
+ .value(body))
1536
+ .query_param(Parameter()
1537
+ .key("expand")
1538
+ .value(expand))
1539
+ .header_param(Parameter()
1540
+ .key("accept")
1541
+ .value("application/json"))
1542
+ .body_serializer(APIHelper.json_serialize)
1543
+ .auth(And(Single("user-id"), Single("user-api-key"),
1544
+ Single("developer-id"))),
1545
+ ).response(
1546
+ ResponseHandler()
1547
+ .deserializer(APIHelper.json_deserialize)
1548
+ .deserialize_into(ResponseTransaction.from_dictionary)
1549
+ .local_error("401", "Unauthorized", Response401tokenException)
1550
+ .local_error("412", "Precondition Failed", Response412Exception),
1551
+ ).execute()
1552
+
1553
+ def cc_sale_tap_to_pay(self,
1554
+ body,
1555
+ expand=None):
1556
+ """Perform a POST request to /v1/transactions/cc/sale/taptopay.
1557
+
1558
+ Create a new Tap To Pay Credit card sale transaction
1559
+
1560
+ Args:
1561
+ body (V1TransactionsCcSaleTaptopayRequest): The request body parameter.
1562
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1563
+ way to retrieve extra data related to the current record being
1564
+ retrieved. For example, if the API request is for the accountvaults
1565
+ endpoint, and the end user also needs to know which contact the token
1566
+ belongs to, this data can be returned in the accountvaults endpoint
1567
+ request.
1568
+
1569
+ Returns:
1570
+ ResponseTransaction: Response from the API. Created
1571
+
1572
+ Raises:
1573
+ APIException: When an error occurs while fetching the data from the
1574
+ remote API. This exception includes the HTTP Response code, an error
1575
+ message, and the HTTP body that was received in the request.
1576
+
1577
+ """
1578
+ return super().new_api_call_builder.request(
1579
+ RequestBuilder().server(Server.DEFAULT)
1580
+ .path("/v1/transactions/cc/sale/taptopay")
1581
+ .http_method(HttpMethodEnum.POST)
1582
+ .header_param(Parameter()
1583
+ .key("Content-Type")
1584
+ .value("application/json"))
1585
+ .body_param(Parameter()
1586
+ .value(body))
1587
+ .query_param(Parameter()
1588
+ .key("expand")
1589
+ .value(expand))
1590
+ .header_param(Parameter()
1591
+ .key("accept")
1592
+ .value("application/json"))
1593
+ .body_serializer(APIHelper.json_serialize)
1594
+ .auth(And(Single("user-id"), Single("user-api-key"),
1595
+ Single("developer-id"))),
1596
+ ).response(
1597
+ ResponseHandler()
1598
+ .deserializer(APIHelper.json_deserialize)
1599
+ .deserialize_into(ResponseTransaction.from_dictionary)
1600
+ .local_error("401", "Unauthorized", Response401tokenException)
1601
+ .local_error("412", "Precondition Failed", Response412Exception),
1602
+ ).execute()
1603
+
1604
+ def cc_sale_terminal(self,
1605
+ body):
1606
+ """Perform a POST request to /v1/transactions/cc/sale/terminal.
1607
+
1608
+ Create a new terminal Credit Card sale transaction
1609
+
1610
+ Args:
1611
+ body (V1TransactionsCcSaleTerminalRequest): The request body parameter.
1612
+
1613
+ Returns:
1614
+ ResponseTransactionProcessing: Response from the API. Accepted
1615
+
1616
+ Raises:
1617
+ APIException: When an error occurs while fetching the data from the
1618
+ remote API. This exception includes the HTTP Response code, an error
1619
+ message, and the HTTP body that was received in the request.
1620
+
1621
+ """
1622
+ return super().new_api_call_builder.request(
1623
+ RequestBuilder().server(Server.DEFAULT)
1624
+ .path("/v1/transactions/cc/sale/terminal")
1625
+ .http_method(HttpMethodEnum.POST)
1626
+ .header_param(Parameter()
1627
+ .key("Content-Type")
1628
+ .value("application/json"))
1629
+ .body_param(Parameter()
1630
+ .value(body))
1631
+ .header_param(Parameter()
1632
+ .key("accept")
1633
+ .value("application/json"))
1634
+ .body_serializer(APIHelper.json_serialize)
1635
+ .auth(And(Single("user-id"), Single("user-api-key"),
1636
+ Single("developer-id"))),
1637
+ ).response(
1638
+ ResponseHandler()
1639
+ .deserializer(APIHelper.json_deserialize)
1640
+ .deserialize_into(ResponseTransactionProcessing.from_dictionary)
1641
+ .local_error("401", "Unauthorized", Response401tokenException)
1642
+ .local_error("412", "Precondition Failed", Response412Exception),
1643
+ ).execute()
1644
+
1645
+ def cc_sale_ticket(self,
1646
+ body,
1647
+ expand=None):
1648
+ """Perform a POST request to /v1/transactions/cc/sale/ticket.
1649
+
1650
+ Create a new Ticket Credit Card sale transaction
1651
+
1652
+ Args:
1653
+ body (V1TransactionsCcSaleTicketRequest): The request body parameter.
1654
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1655
+ way to retrieve extra data related to the current record being
1656
+ retrieved. For example, if the API request is for the accountvaults
1657
+ endpoint, and the end user also needs to know which contact the token
1658
+ belongs to, this data can be returned in the accountvaults endpoint
1659
+ request.
1660
+
1661
+ Returns:
1662
+ ResponseTransaction: Response from the API. Created
1663
+
1664
+ Raises:
1665
+ APIException: When an error occurs while fetching the data from the
1666
+ remote API. This exception includes the HTTP Response code, an error
1667
+ message, and the HTTP body that was received in the request.
1668
+
1669
+ """
1670
+ return super().new_api_call_builder.request(
1671
+ RequestBuilder().server(Server.DEFAULT)
1672
+ .path("/v1/transactions/cc/sale/ticket")
1673
+ .http_method(HttpMethodEnum.POST)
1674
+ .header_param(Parameter()
1675
+ .key("Content-Type")
1676
+ .value("application/json"))
1677
+ .body_param(Parameter()
1678
+ .value(body))
1679
+ .query_param(Parameter()
1680
+ .key("expand")
1681
+ .value(expand))
1682
+ .header_param(Parameter()
1683
+ .key("accept")
1684
+ .value("application/json"))
1685
+ .body_serializer(APIHelper.json_serialize)
1686
+ .auth(And(Single("user-id"), Single("user-api-key"),
1687
+ Single("developer-id"))),
1688
+ ).response(
1689
+ ResponseHandler()
1690
+ .deserializer(APIHelper.json_deserialize)
1691
+ .deserialize_into(ResponseTransaction.from_dictionary)
1692
+ .local_error("401", "Unauthorized", Response401tokenException)
1693
+ .local_error("412", "Precondition Failed", Response412Exception),
1694
+ ).execute()
1695
+
1696
+ def cc_sale_tokenized(self,
1697
+ body,
1698
+ expand=None):
1699
+ """Perform a POST request to /v1/transactions/cc/sale/token.
1700
+
1701
+ Create a new tokenized Credit Card sale transaction
1702
+
1703
+ Args:
1704
+ body (V1TransactionsCcSaleTokenRequest): The request body parameter.
1705
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1706
+ way to retrieve extra data related to the current record being
1707
+ retrieved. For example, if the API request is for the accountvaults
1708
+ endpoint, and the end user also needs to know which contact the token
1709
+ belongs to, this data can be returned in the accountvaults endpoint
1710
+ request.
1711
+
1712
+ Returns:
1713
+ ResponseTransaction: Response from the API. Created
1714
+
1715
+ Raises:
1716
+ APIException: When an error occurs while fetching the data from the
1717
+ remote API. This exception includes the HTTP Response code, an error
1718
+ message, and the HTTP body that was received in the request.
1719
+
1720
+ """
1721
+ return super().new_api_call_builder.request(
1722
+ RequestBuilder().server(Server.DEFAULT)
1723
+ .path("/v1/transactions/cc/sale/token")
1724
+ .http_method(HttpMethodEnum.POST)
1725
+ .header_param(Parameter()
1726
+ .key("Content-Type")
1727
+ .value("application/json"))
1728
+ .body_param(Parameter()
1729
+ .value(body))
1730
+ .query_param(Parameter()
1731
+ .key("expand")
1732
+ .value(expand))
1733
+ .header_param(Parameter()
1734
+ .key("accept")
1735
+ .value("application/json"))
1736
+ .body_serializer(APIHelper.json_serialize)
1737
+ .auth(And(Single("user-id"), Single("user-api-key"),
1738
+ Single("developer-id"))),
1739
+ ).response(
1740
+ ResponseHandler()
1741
+ .deserializer(APIHelper.json_deserialize)
1742
+ .deserialize_into(ResponseTransaction.from_dictionary)
1743
+ .local_error("401", "Unauthorized", Response401tokenException)
1744
+ .local_error("412", "Precondition Failed", Response412Exception),
1745
+ ).execute()
1746
+
1747
+ def cc_sale_wallet(self,
1748
+ body,
1749
+ expand=None):
1750
+ """Perform a POST request to /v1/transactions/cc/sale/wallet.
1751
+
1752
+ Create a new Wallet Credit Card sale transaction
1753
+
1754
+ Args:
1755
+ body (V1TransactionsCcSaleWalletRequest): The request body parameter.
1756
+ expand (List[Expand60Enum], optional): Most endpoints in the API have a
1757
+ way to retrieve extra data related to the current record being
1758
+ retrieved. For example, if the API request is for the accountvaults
1759
+ endpoint, and the end user also needs to know which contact the token
1760
+ belongs to, this data can be returned in the accountvaults endpoint
1761
+ request.
1762
+
1763
+ Returns:
1764
+ ResponseTransaction: Response from the API. Created
1765
+
1766
+ Raises:
1767
+ APIException: When an error occurs while fetching the data from the
1768
+ remote API. This exception includes the HTTP Response code, an error
1769
+ message, and the HTTP body that was received in the request.
1770
+
1771
+ """
1772
+ return super().new_api_call_builder.request(
1773
+ RequestBuilder().server(Server.DEFAULT)
1774
+ .path("/v1/transactions/cc/sale/wallet")
1775
+ .http_method(HttpMethodEnum.POST)
1776
+ .header_param(Parameter()
1777
+ .key("Content-Type")
1778
+ .value("application/json"))
1779
+ .body_param(Parameter()
1780
+ .value(body))
1781
+ .query_param(Parameter()
1782
+ .key("expand")
1783
+ .value(expand))
1784
+ .header_param(Parameter()
1785
+ .key("accept")
1786
+ .value("application/json"))
1787
+ .body_serializer(APIHelper.json_serialize)
1788
+ .auth(And(Single("user-id"), Single("user-api-key"),
1789
+ Single("developer-id"))),
1790
+ ).response(
1791
+ ResponseHandler()
1792
+ .deserializer(APIHelper.json_deserialize)
1793
+ .deserialize_into(ResponseTransaction.from_dictionary)
1794
+ .local_error("401", "Unauthorized", Response401tokenException)
1795
+ .local_error("412", "Precondition Failed", Response412Exception),
1796
+ ).execute()