univapay-client-sdk 1.0.0__tar.gz

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 (233) hide show
  1. univapay_client_sdk-1.0.0/LICENSE +28 -0
  2. univapay_client_sdk-1.0.0/MANIFEST.in +2 -0
  3. univapay_client_sdk-1.0.0/PKG-INFO +210 -0
  4. univapay_client_sdk-1.0.0/README.md +183 -0
  5. univapay_client_sdk-1.0.0/pyproject.toml +25 -0
  6. univapay_client_sdk-1.0.0/setup.cfg +8 -0
  7. univapay_client_sdk-1.0.0/univapay_client_sdk.egg-info/PKG-INFO +210 -0
  8. univapay_client_sdk-1.0.0/univapay_client_sdk.egg-info/SOURCES.txt +232 -0
  9. univapay_client_sdk-1.0.0/univapay_client_sdk.egg-info/dependency_links.txt +1 -0
  10. univapay_client_sdk-1.0.0/univapay_client_sdk.egg-info/requires.txt +20 -0
  11. univapay_client_sdk-1.0.0/univapay_client_sdk.egg-info/top_level.txt +3 -0
  12. univapay_client_sdk-1.0.0/univapayclientsdk/__init__.py +14 -0
  13. univapay_client_sdk-1.0.0/univapayclientsdk/api_helper.py +24 -0
  14. univapay_client_sdk-1.0.0/univapayclientsdk/apis/__init__.py +13 -0
  15. univapay_client_sdk-1.0.0/univapayclientsdk/apis/base_api.py +73 -0
  16. univapay_client_sdk-1.0.0/univapayclientsdk/apis/cancels_api.py +429 -0
  17. univapay_client_sdk-1.0.0/univapayclientsdk/apis/charges_api.py +1274 -0
  18. univapay_client_sdk-1.0.0/univapayclientsdk/apis/merchants_api.py +104 -0
  19. univapay_client_sdk-1.0.0/univapayclientsdk/apis/refunds_api.py +437 -0
  20. univapay_client_sdk-1.0.0/univapayclientsdk/apis/stores_api.py +203 -0
  21. univapay_client_sdk-1.0.0/univapayclientsdk/apis/subscriptions_api.py +1426 -0
  22. univapay_client_sdk-1.0.0/univapayclientsdk/apis/transaction_tokens_api.py +640 -0
  23. univapay_client_sdk-1.0.0/univapayclientsdk/apis/webhooks_api.py +660 -0
  24. univapay_client_sdk-1.0.0/univapayclientsdk/configuration.py +272 -0
  25. univapay_client_sdk-1.0.0/univapayclientsdk/events/__init__.py +6 -0
  26. univapay_client_sdk-1.0.0/univapayclientsdk/events/unknown_event.py +38 -0
  27. univapay_client_sdk-1.0.0/univapayclientsdk/events/webhooks/__init__.py +11 -0
  28. univapay_client_sdk-1.0.0/univapayclientsdk/events/webhooks/bank_transfer_handler.py +47 -0
  29. univapay_client_sdk-1.0.0/univapayclientsdk/events/webhooks/cancel_handler.py +47 -0
  30. univapay_client_sdk-1.0.0/univapayclientsdk/events/webhooks/charge_handler.py +47 -0
  31. univapay_client_sdk-1.0.0/univapayclientsdk/events/webhooks/customs_handler.py +47 -0
  32. univapay_client_sdk-1.0.0/univapayclientsdk/events/webhooks/refund_handler.py +47 -0
  33. univapay_client_sdk-1.0.0/univapayclientsdk/events/webhooks/subscription_handler.py +47 -0
  34. univapay_client_sdk-1.0.0/univapayclientsdk/events/webhooks/token_handler.py +47 -0
  35. univapay_client_sdk-1.0.0/univapayclientsdk/exceptions/__init__.py +6 -0
  36. univapay_client_sdk-1.0.0/univapayclientsdk/exceptions/api_error_exception.py +73 -0
  37. univapay_client_sdk-1.0.0/univapayclientsdk/exceptions/api_exception.py +37 -0
  38. univapay_client_sdk-1.0.0/univapayclientsdk/extensions.py +160 -0
  39. univapay_client_sdk-1.0.0/univapayclientsdk/http/__init__.py +12 -0
  40. univapay_client_sdk-1.0.0/univapayclientsdk/http/api_response.py +67 -0
  41. univapay_client_sdk-1.0.0/univapayclientsdk/http/auth/__init__.py +5 -0
  42. univapay_client_sdk-1.0.0/univapayclientsdk/http/auth/oauth_2.py +121 -0
  43. univapay_client_sdk-1.0.0/univapayclientsdk/http/http_call_back.py +20 -0
  44. univapay_client_sdk-1.0.0/univapayclientsdk/http/http_client_provider.py +24 -0
  45. univapay_client_sdk-1.0.0/univapayclientsdk/http/http_method_enum.py +25 -0
  46. univapay_client_sdk-1.0.0/univapayclientsdk/http/http_request.py +55 -0
  47. univapay_client_sdk-1.0.0/univapayclientsdk/http/http_response.py +45 -0
  48. univapay_client_sdk-1.0.0/univapayclientsdk/http/proxy_settings.py +50 -0
  49. univapay_client_sdk-1.0.0/univapayclientsdk/http/request.py +37 -0
  50. univapay_client_sdk-1.0.0/univapayclientsdk/logging/__init__.py +6 -0
  51. univapay_client_sdk-1.0.0/univapayclientsdk/logging/configuration/__init__.py +5 -0
  52. univapay_client_sdk-1.0.0/univapayclientsdk/logging/configuration/api_logging_configuration.py +398 -0
  53. univapay_client_sdk-1.0.0/univapayclientsdk/logging/sdk_logger.py +28 -0
  54. univapay_client_sdk-1.0.0/univapayclientsdk/models/__init__.py +178 -0
  55. univapay_client_sdk-1.0.0/univapayclientsdk/models/api_error_detail.py +131 -0
  56. univapay_client_sdk-1.0.0/univapayclientsdk/models/api_error_status.py +43 -0
  57. univapay_client_sdk-1.0.0/univapayclientsdk/models/bank_transfer_event.py +58 -0
  58. univapay_client_sdk-1.0.0/univapayclientsdk/models/bank_transfer_ledger.py +319 -0
  59. univapay_client_sdk-1.0.0/univapayclientsdk/models/bank_transfer_ledger_bank_ledger_type.py +46 -0
  60. univapay_client_sdk-1.0.0/univapayclientsdk/models/bank_transfer_ledger_list.py +159 -0
  61. univapay_client_sdk-1.0.0/univapayclientsdk/models/bank_transfer_ledger_mode.py +46 -0
  62. univapay_client_sdk-1.0.0/univapayclientsdk/models/bank_transfer_payment_status.py +66 -0
  63. univapay_client_sdk-1.0.0/univapayclientsdk/models/bank_transfer_status_data.py +410 -0
  64. univapay_client_sdk-1.0.0/univapayclientsdk/models/bank_transfer_status_webhook_callback.py +211 -0
  65. univapay_client_sdk-1.0.0/univapayclientsdk/models/bank_transfer_status_webhook_callback_extension.py +112 -0
  66. univapay_client_sdk-1.0.0/univapayclientsdk/models/base_bank_transfer_data.py +154 -0
  67. univapay_client_sdk-1.0.0/univapayclientsdk/models/base_konbini_data.py +153 -0
  68. univapay_client_sdk-1.0.0/univapayclientsdk/models/base_konbini_data_convenience_store.py +79 -0
  69. univapay_client_sdk-1.0.0/univapayclientsdk/models/base_online_data.py +206 -0
  70. univapay_client_sdk-1.0.0/univapayclientsdk/models/base_online_data_brand.py +70 -0
  71. univapay_client_sdk-1.0.0/univapayclientsdk/models/base_online_data_call_method.py +72 -0
  72. univapay_client_sdk-1.0.0/univapayclientsdk/models/base_online_data_os_type.py +60 -0
  73. univapay_client_sdk-1.0.0/univapayclientsdk/models/base_online_data_user_identifier_source.py +60 -0
  74. univapay_client_sdk-1.0.0/univapayclientsdk/models/cancel.py +329 -0
  75. univapay_client_sdk-1.0.0/univapayclientsdk/models/cancel_create_request.py +112 -0
  76. univapay_client_sdk-1.0.0/univapayclientsdk/models/cancel_event.py +57 -0
  77. univapay_client_sdk-1.0.0/univapayclientsdk/models/cancel_list.py +136 -0
  78. univapay_client_sdk-1.0.0/univapayclientsdk/models/cancel_status.py +66 -0
  79. univapay_client_sdk-1.0.0/univapayclientsdk/models/cancel_update_request.py +111 -0
  80. univapay_client_sdk-1.0.0/univapayclientsdk/models/cancel_webhook_callback.py +209 -0
  81. univapay_client_sdk-1.0.0/univapayclientsdk/models/cancel_webhook_callback_extension.py +110 -0
  82. univapay_client_sdk-1.0.0/univapayclientsdk/models/card_processor_installment_config.py +135 -0
  83. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge.py +791 -0
  84. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_capture_request.py +108 -0
  85. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_create_request.py +305 -0
  86. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_create_request_client_metadata.py +106 -0
  87. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_create_request_redirect.py +106 -0
  88. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_create_request_three_ds.py +130 -0
  89. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_create_request_three_ds_mode.py +52 -0
  90. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_event.py +60 -0
  91. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_list.py +159 -0
  92. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_mode.py +60 -0
  93. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_redirect.py +150 -0
  94. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_status.py +76 -0
  95. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_three_ds.py +150 -0
  96. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_transaction_token_type.py +63 -0
  97. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_update_request.py +110 -0
  98. univapay_client_sdk-1.0.0/univapayclientsdk/models/charge_webhook_event.py +214 -0
  99. univapay_client_sdk-1.0.0/univapayclientsdk/models/cursor_direction_query.py +46 -0
  100. univapay_client_sdk-1.0.0/univapayclientsdk/models/customs_declaration_create_request.py +134 -0
  101. univapay_client_sdk-1.0.0/univapayclientsdk/models/customs_declaration_event.py +58 -0
  102. univapay_client_sdk-1.0.0/univapayclientsdk/models/customs_declaration_patch_request.py +95 -0
  103. univapay_client_sdk-1.0.0/univapayclientsdk/models/customs_declaration_webhook_callback.py +211 -0
  104. univapay_client_sdk-1.0.0/univapayclientsdk/models/customs_declaration_webhook_callback_extension.py +112 -0
  105. univapay_client_sdk-1.0.0/univapayclientsdk/models/customs_declaration_webhook_data.py +441 -0
  106. univapay_client_sdk-1.0.0/univapayclientsdk/models/customs_declaration_webhook_declaration.py +196 -0
  107. univapay_client_sdk-1.0.0/univapayclientsdk/models/customs_declaration_webhook_error.py +208 -0
  108. univapay_client_sdk-1.0.0/univapayclientsdk/models/customs_declaration_webhook_other_error.py +203 -0
  109. univapay_client_sdk-1.0.0/univapayclientsdk/models/customs_declaration_webhook_result.py +204 -0
  110. univapay_client_sdk-1.0.0/univapayclientsdk/models/customs_declaration_webhook_status.py +66 -0
  111. univapay_client_sdk-1.0.0/univapayclientsdk/models/generic_metadata.py +180 -0
  112. univapay_client_sdk-1.0.0/univapayclientsdk/models/installment_fixed_cycles.py +67 -0
  113. univapay_client_sdk-1.0.0/univapayclientsdk/models/installment_plan_type.py +46 -0
  114. univapay_client_sdk-1.0.0/univapayclientsdk/models/issuer_token.py +309 -0
  115. univapay_client_sdk-1.0.0/univapayclientsdk/models/issuer_token_call_method.py +58 -0
  116. univapay_client_sdk-1.0.0/univapayclientsdk/models/issuer_token_payload.py +175 -0
  117. univapay_client_sdk-1.0.0/univapayclientsdk/models/issuer_token_payment_type.py +46 -0
  118. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant.py +305 -0
  119. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_bank_transfer_configuration.py +520 -0
  120. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_card_brand_percent_fees.py +304 -0
  121. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_card_configuration.py +504 -0
  122. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_checkout_configuration.py +134 -0
  123. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_checkout_toggle.py +110 -0
  124. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_configuration.py +873 -0
  125. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_convenience_configuration.py +134 -0
  126. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_customer_management_configuration.py +158 -0
  127. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_installment_plan_configuration.py +241 -0
  128. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_limit_charge_by_card_configuration.py +130 -0
  129. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_limit_refund_by_sales_configuration.py +159 -0
  130. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_money_amount.py +129 -0
  131. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_online_configuration.py +110 -0
  132. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_paidy_configuration.py +110 -0
  133. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_qr_merchant_configuration.py +110 -0
  134. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_qr_scan_configuration.py +135 -0
  135. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_recurring_cvv_confirmation_config.py +141 -0
  136. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_recurring_token_configuration.py +163 -0
  137. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_security_configuration.py +371 -0
  138. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_subscription_configuration.py +210 -0
  139. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_subscription_plan_configuration.py +236 -0
  140. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_transfer_schedule_configuration.py +277 -0
  141. univapay_client_sdk-1.0.0/univapayclientsdk/models/merchant_webhook_user_transactions_configuration.py +540 -0
  142. univapay_client_sdk-1.0.0/univapayclientsdk/models/mode_query.py +46 -0
  143. univapay_client_sdk-1.0.0/univapayclientsdk/models/payment_error.py +224 -0
  144. univapay_client_sdk-1.0.0/univapayclientsdk/models/plan_settings_type.py +46 -0
  145. univapay_client_sdk-1.0.0/univapayclientsdk/models/refund.py +451 -0
  146. univapay_client_sdk-1.0.0/univapayclientsdk/models/refund_create_request.py +188 -0
  147. univapay_client_sdk-1.0.0/univapayclientsdk/models/refund_event.py +57 -0
  148. univapay_client_sdk-1.0.0/univapayclientsdk/models/refund_list.py +159 -0
  149. univapay_client_sdk-1.0.0/univapayclientsdk/models/refund_reason_request.py +51 -0
  150. univapay_client_sdk-1.0.0/univapayclientsdk/models/refund_reason_response.py +82 -0
  151. univapay_client_sdk-1.0.0/univapayclientsdk/models/refund_status.py +69 -0
  152. univapay_client_sdk-1.0.0/univapayclientsdk/models/refund_update_request.py +163 -0
  153. univapay_client_sdk-1.0.0/univapayclientsdk/models/refund_webhook_callback.py +209 -0
  154. univapay_client_sdk-1.0.0/univapayclientsdk/models/refund_webhook_callback_extension.py +110 -0
  155. univapay_client_sdk-1.0.0/univapayclientsdk/models/restrict_ip_after_failed_charge_config.py +158 -0
  156. univapay_client_sdk-1.0.0/univapayclientsdk/models/store.py +185 -0
  157. univapay_client_sdk-1.0.0/univapayclientsdk/models/store_list.py +159 -0
  158. univapay_client_sdk-1.0.0/univapayclientsdk/models/store_list_item.py +177 -0
  159. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription.py +572 -0
  160. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_create_request.py +378 -0
  161. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_event.py +75 -0
  162. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_installment_plan.py +129 -0
  163. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_list.py +159 -0
  164. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_list_item.py +671 -0
  165. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_next_payment.py +396 -0
  166. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_patch_payment_request.py +188 -0
  167. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_patch_token_request.py +97 -0
  168. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_payment.py +320 -0
  169. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_payment_list.py +136 -0
  170. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_period.py +76 -0
  171. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_plan_settings.py +152 -0
  172. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_schedule_settings.py +222 -0
  173. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_status.py +76 -0
  174. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_suspend_request.py +112 -0
  175. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_terminate_with_status.py +60 -0
  176. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_termination_mode.py +60 -0
  177. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_update_next_payment.py +163 -0
  178. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_update_request.py +242 -0
  179. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_update_schedule_settings.py +157 -0
  180. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_update_status.py +47 -0
  181. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_user_data.py +229 -0
  182. univapay_client_sdk-1.0.0/univapayclientsdk/models/subscription_webhook_event.py +219 -0
  183. univapay_client_sdk-1.0.0/univapayclientsdk/models/suspend_schedule_settings.py +106 -0
  184. univapay_client_sdk-1.0.0/univapayclientsdk/models/three_ds_issuer_token.py +164 -0
  185. univapay_client_sdk-1.0.0/univapayclientsdk/models/three_ds_issuer_token_call_method.py +43 -0
  186. univapay_client_sdk-1.0.0/univapayclientsdk/models/three_ds_issuer_token_payment_type.py +43 -0
  187. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_create_bank_transfer_data.py +200 -0
  188. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_create_card_data.py +453 -0
  189. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_create_card_data_cvv_authorize.py +149 -0
  190. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_create_card_data_three_ds.py +150 -0
  191. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_create_konbini_data.py +226 -0
  192. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_create_online_data.py +227 -0
  193. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_create_phone_number.py +153 -0
  194. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_event.py +79 -0
  195. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_response_bank_transfer_data.py +322 -0
  196. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_response_card_data.py +243 -0
  197. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_response_card_data_billing.py +278 -0
  198. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_response_card_data_card.py +362 -0
  199. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_response_card_data_cvv_authorize.py +226 -0
  200. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_response_card_data_cvv_authorize_check.py +185 -0
  201. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_response_card_data_three_ds.py +256 -0
  202. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_response_card_data_three_ds_status.py +69 -0
  203. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_response_konbini_data.py +230 -0
  204. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_response_online_data.py +275 -0
  205. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_response_phone_number.py +150 -0
  206. univapay_client_sdk-1.0.0/univapayclientsdk/models/token_webhook_event.py +219 -0
  207. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token.py +455 -0
  208. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_create_request.py +277 -0
  209. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_create_request_metadata.py +203 -0
  210. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_create_request_payment_type.py +66 -0
  211. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_create_request_type.py +63 -0
  212. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_list.py +159 -0
  213. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_list_item.py +368 -0
  214. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_list_item_user_data.py +152 -0
  215. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_mode.py +60 -0
  216. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_payment_type.py +69 -0
  217. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_type.py +63 -0
  218. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_update_request.py +161 -0
  219. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_update_request_data.py +364 -0
  220. univapay_client_sdk-1.0.0/univapayclientsdk/models/transaction_token_update_request_data_phone_number.py +129 -0
  221. univapay_client_sdk-1.0.0/univapayclientsdk/models/webhook.py +328 -0
  222. univapay_client_sdk-1.0.0/univapayclientsdk/models/webhook_callback_envelope.py +122 -0
  223. univapay_client_sdk-1.0.0/univapayclientsdk/models/webhook_create_request.py +139 -0
  224. univapay_client_sdk-1.0.0/univapayclientsdk/models/webhook_event.py +278 -0
  225. univapay_client_sdk-1.0.0/univapayclientsdk/models/webhook_event_list.py +136 -0
  226. univapay_client_sdk-1.0.0/univapayclientsdk/models/webhook_list.py +136 -0
  227. univapay_client_sdk-1.0.0/univapayclientsdk/models/webhook_trigger.py +97 -0
  228. univapay_client_sdk-1.0.0/univapayclientsdk/models/webhook_update_request.py +181 -0
  229. univapay_client_sdk-1.0.0/univapayclientsdk/univapay_client_sdk_client.py +145 -0
  230. univapay_client_sdk-1.0.0/univapayclientsdk/utilities/__init__.py +7 -0
  231. univapay_client_sdk-1.0.0/univapayclientsdk/utilities/file_wrapper.py +45 -0
  232. univapay_client_sdk-1.0.0/univapayclientsdk/utilities/request_adapter.py +54 -0
  233. univapay_client_sdk-1.0.0/univapayclientsdk/utilities/union_type_lookup.py +276 -0
@@ -0,0 +1,28 @@
1
+ License:
2
+ ========
3
+ The MIT License (MIT)
4
+ http://opensource.org/licenses/MIT
5
+
6
+ Copyright (c) 2014 - 2026 APIMATIC Limited
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
25
+
26
+ Trade Mark:
27
+ ==========
28
+ APIMATIC is a trade mark for APIMATIC Limited
@@ -0,0 +1,2 @@
1
+ include LICENSE
2
+ include README.md
@@ -0,0 +1,210 @@
1
+ Metadata-Version: 2.4
2
+ Name: univapay-client-sdk
3
+ Version: 1.0.0
4
+ Summary: Use the Univapay Payments Client SDK to create & manage payments
5
+ Author-email: Univapay Developers <dev@univapay.com>
6
+ Project-URL: Documentation, https://docs.univapay.com
7
+ Keywords: Univapay Payments SDK
8
+ Requires-Python: >=3.7
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: apimatic-core>=0.2.24,~=0.2.0
12
+ Requires-Dist: apimatic-core-interfaces>=0.1.8,~=0.1.0
13
+ Requires-Dist: apimatic-requests-client-adapter>=0.1.10,~=0.1.0
14
+ Requires-Dist: python-dotenv<2.0,>=0.21
15
+ Provides-Extra: testutils
16
+ Requires-Dist: pytest>=7.2.2; extra == "testutils"
17
+ Requires-Dist: pytest-django<5,>=4.5.2; extra == "testutils"
18
+ Requires-Dist: Django~=3.2.25; python_version < "3.13" and extra == "testutils"
19
+ Requires-Dist: Django~=5.1.3; python_version >= "3.13" and extra == "testutils"
20
+ Requires-Dist: Flask~=2.2.5; extra == "testutils"
21
+ Requires-Dist: fastapi~=0.95.2; extra == "testutils"
22
+ Requires-Dist: httpx~=0.24.1; extra == "testutils"
23
+ Requires-Dist: anyio~=3.7.1; extra == "testutils"
24
+ Requires-Dist: typing-extensions~=4.7.1; extra == "testutils"
25
+ Requires-Dist: Werkzeug<3.0,>=2.2; extra == "testutils"
26
+ Dynamic: license-file
27
+
28
+
29
+ # Getting Started with Univapay Public API
30
+
31
+ ## Introduction
32
+
33
+ OpenAPI specification for the Univapay Online Payment API.
34
+
35
+ ### Authentication (JWT)
36
+
37
+ This API uses JWT (JSON Web Tokens) for authentication via the HTTP `Authorization` header. To authenticate, you must generate an **Application Token** in the Univapay dashboard. This generates two components: 1. **Token (`{jwt}`)** 2. **Secret (`{secret}`)**
38
+
39
+ #### ⚠️ Security Warning
40
+
41
+ The **Secret** grants extensive privileges (e.g., creating charges, capturing authorized card charges, refunding).
42
+ **NEVER expose the `{secret}` in frontend application code** (e.g., consumer browsers) or public repositories. It is strictly for backend server-to-server communication.
43
+ *Univapay is not responsible for accidents caused by leaked secrets.*
44
+
45
+ #### Bearer Auth Formats
46
+
47
+ Depending on where you are calling the API from, the Bearer format changes:
48
+
49
+ * **Frontend / Browser (No Secret)**: `Bearer {jwt}`
50
+ *(Used for Widgets or Inline Forms. You must register your allowed domains in the dashboard when creating the token).*
51
+ * **Backend / Server (With Secret)**: `Bearer {secret}.{jwt}`
52
+ *(Required for all backend processing).*
53
+
54
+ We will assume that all requests are going to originate from a backend server thus, all requests will require the secret
55
+
56
+ #### Token Types
57
+
58
+ * **Store Token**: Grants full access to requests for that specific store.
59
+ * **Merchant Token**: Can't create transaction tokens but can access data from multiple stores.
60
+
61
+ ## Install the Package
62
+
63
+ The package is compatible with Python versions `3.7+`.
64
+ Install the package from PyPi using the following pip command:
65
+
66
+ ```bash
67
+ pip install univapay-client-sdk==1.0.0
68
+ ```
69
+
70
+ You can also view the package at:
71
+ https://pypi.python.org/pypi/univapay-client-sdk/1.0.0
72
+
73
+ ## Test the SDK
74
+
75
+ You can test the generated SDK and the server with test cases. `unittest` is used as the testing framework and `pytest` is used as the test runner. You can run the tests as follows:
76
+
77
+ Navigate to the root directory of the SDK and run the following commands
78
+
79
+
80
+ pip install -r test-requirements.txt
81
+ pytest
82
+
83
+
84
+ ## Initialize the API Client
85
+
86
+ **_Note:_** Documentation for the client can be found [here.](doc/client.md)
87
+
88
+ The following parameters are configurable for the API Client:
89
+
90
+ | Parameter | Type | Description |
91
+ | --- | --- | --- |
92
+ | base_url | `str` | Base URL for the API<br>*Default*: `"https://api.univapay.com"` |
93
+ | environment | [`Environment`](README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
94
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
95
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
96
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
97
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 30** |
98
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
99
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
100
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524, 408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
101
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT", "GET", "PUT"]** |
102
+ | proxy_settings | [`ProxySettings`](doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
103
+ | logging_configuration | [`LoggingConfiguration`](doc/logging-configuration.md) | The SDK logging configuration for API calls |
104
+ | bearer_auth_credentials | [`BearerAuthCredentials`](doc/auth/oauth-2-bearer-token.md) | The credential object for OAuth 2 Bearer token |
105
+
106
+ The API client can be initialized as follows:
107
+
108
+ ### Code-Based Client Initialization
109
+
110
+ ```python
111
+ import logging
112
+
113
+ from univapayclientsdk.configuration import Environment
114
+ from univapayclientsdk.http.auth.oauth_2 import BearerAuthCredentials
115
+ from univapayclientsdk.logging.configuration.api_logging_configuration import LoggingConfiguration
116
+ from univapayclientsdk.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
117
+ from univapayclientsdk.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
118
+ from univapayclientsdk.univapay_client_sdk_client import UnivapayClientSdkClient
119
+
120
+ client = UnivapayClientSdkClient(
121
+ bearer_auth_credentials=BearerAuthCredentials(
122
+ access_token='AccessToken'
123
+ ),
124
+ environment=Environment.PRODUCTION,
125
+ base_url='https://api.univapay.com',
126
+ logging_configuration=LoggingConfiguration(
127
+ log_level=logging.INFO,
128
+ request_logging_config=RequestLoggingConfiguration(
129
+ log_body=True
130
+ ),
131
+ response_logging_config=ResponseLoggingConfiguration(
132
+ log_headers=True
133
+ )
134
+ )
135
+ )
136
+ ```
137
+
138
+ ### Environment-Based Client Initialization
139
+
140
+ ```python
141
+ from univapayclientsdk.univapay_client_sdk_client import UnivapayClientSdkClient
142
+
143
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
144
+ client = UnivapayClientSdkClient.from_environment(dotenv_path='/path/to/.env')
145
+ ```
146
+
147
+ See the [Environment-Based Client Initialization](doc/environment-based-client-initialization.md) section for details.
148
+
149
+ ## Environments
150
+
151
+ The SDK can be configured to use a different environment for making API calls. Available environments are:
152
+
153
+ ### Fields
154
+
155
+ | Name | Description |
156
+ | --- | --- |
157
+ | PRODUCTION | **Default** Production Server |
158
+
159
+ ## Authorization
160
+
161
+ This API uses the following authentication schemes.
162
+
163
+ * [`JWT_TOKEN (OAuth 2 Bearer token)`](doc/auth/oauth-2-bearer-token.md)
164
+
165
+ ## List of APIs
166
+
167
+ * [Transaction Tokens](doc/controllers/transaction-tokens.md)
168
+ * [Charges](doc/controllers/charges.md)
169
+ * [Refunds](doc/controllers/refunds.md)
170
+ * [Subscriptions](doc/controllers/subscriptions.md)
171
+ * [Cancels](doc/controllers/cancels.md)
172
+ * [Merchants](doc/controllers/merchants.md)
173
+ * [Stores](doc/controllers/stores.md)
174
+ * [Webhooks](doc/controllers/webhooks.md)
175
+
176
+ ## Webhooks
177
+
178
+ * [Charge](doc/events/webhooks/charge-handler.md)
179
+ * [Token](doc/events/webhooks/token-handler.md)
180
+ * [Refund](doc/events/webhooks/refund-handler.md)
181
+ * [Cancel](doc/events/webhooks/cancel-handler.md)
182
+ * [Subscription](doc/events/webhooks/subscription-handler.md)
183
+ * [Bank-Transfer](doc/events/webhooks/bank-transfer-handler.md)
184
+ * [Customs](doc/events/webhooks/customs-handler.md)
185
+
186
+ ## SDK Infrastructure
187
+
188
+ ### Configuration
189
+
190
+ * [ProxySettings](doc/proxy-settings.md)
191
+ * [Environment-Based Client Initialization](doc/environment-based-client-initialization.md)
192
+ * [AbstractLogger](doc/abstract-logger.md)
193
+ * [LoggingConfiguration](doc/logging-configuration.md)
194
+ * [RequestLoggingConfiguration](doc/request-logging-configuration.md)
195
+ * [ResponseLoggingConfiguration](doc/response-logging-configuration.md)
196
+
197
+ ### HTTP
198
+
199
+ * [HttpResponse](doc/http-response.md)
200
+ * [HttpRequest](doc/http-request.md)
201
+ * [Request](doc/request.md)
202
+
203
+ ### Utilities
204
+
205
+ * [ApiResponse](doc/api-response.md)
206
+ * [ApiHelper](doc/api-helper.md)
207
+ * [HttpDateTime](doc/http-date-time.md)
208
+ * [RFC3339DateTime](doc/rfc3339-date-time.md)
209
+ * [UnixDateTime](doc/unix-date-time.md)
210
+
@@ -0,0 +1,183 @@
1
+
2
+ # Getting Started with Univapay Public API
3
+
4
+ ## Introduction
5
+
6
+ OpenAPI specification for the Univapay Online Payment API.
7
+
8
+ ### Authentication (JWT)
9
+
10
+ This API uses JWT (JSON Web Tokens) for authentication via the HTTP `Authorization` header. To authenticate, you must generate an **Application Token** in the Univapay dashboard. This generates two components: 1. **Token (`{jwt}`)** 2. **Secret (`{secret}`)**
11
+
12
+ #### ⚠️ Security Warning
13
+
14
+ The **Secret** grants extensive privileges (e.g., creating charges, capturing authorized card charges, refunding).
15
+ **NEVER expose the `{secret}` in frontend application code** (e.g., consumer browsers) or public repositories. It is strictly for backend server-to-server communication.
16
+ *Univapay is not responsible for accidents caused by leaked secrets.*
17
+
18
+ #### Bearer Auth Formats
19
+
20
+ Depending on where you are calling the API from, the Bearer format changes:
21
+
22
+ * **Frontend / Browser (No Secret)**: `Bearer {jwt}`
23
+ *(Used for Widgets or Inline Forms. You must register your allowed domains in the dashboard when creating the token).*
24
+ * **Backend / Server (With Secret)**: `Bearer {secret}.{jwt}`
25
+ *(Required for all backend processing).*
26
+
27
+ We will assume that all requests are going to originate from a backend server thus, all requests will require the secret
28
+
29
+ #### Token Types
30
+
31
+ * **Store Token**: Grants full access to requests for that specific store.
32
+ * **Merchant Token**: Can't create transaction tokens but can access data from multiple stores.
33
+
34
+ ## Install the Package
35
+
36
+ The package is compatible with Python versions `3.7+`.
37
+ Install the package from PyPi using the following pip command:
38
+
39
+ ```bash
40
+ pip install univapay-client-sdk==1.0.0
41
+ ```
42
+
43
+ You can also view the package at:
44
+ https://pypi.python.org/pypi/univapay-client-sdk/1.0.0
45
+
46
+ ## Test the SDK
47
+
48
+ You can test the generated SDK and the server with test cases. `unittest` is used as the testing framework and `pytest` is used as the test runner. You can run the tests as follows:
49
+
50
+ Navigate to the root directory of the SDK and run the following commands
51
+
52
+
53
+ pip install -r test-requirements.txt
54
+ pytest
55
+
56
+
57
+ ## Initialize the API Client
58
+
59
+ **_Note:_** Documentation for the client can be found [here.](doc/client.md)
60
+
61
+ The following parameters are configurable for the API Client:
62
+
63
+ | Parameter | Type | Description |
64
+ | --- | --- | --- |
65
+ | base_url | `str` | Base URL for the API<br>*Default*: `"https://api.univapay.com"` |
66
+ | environment | [`Environment`](README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
67
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
68
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
69
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
70
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 30** |
71
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
72
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
73
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524, 408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
74
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT", "GET", "PUT"]** |
75
+ | proxy_settings | [`ProxySettings`](doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
76
+ | logging_configuration | [`LoggingConfiguration`](doc/logging-configuration.md) | The SDK logging configuration for API calls |
77
+ | bearer_auth_credentials | [`BearerAuthCredentials`](doc/auth/oauth-2-bearer-token.md) | The credential object for OAuth 2 Bearer token |
78
+
79
+ The API client can be initialized as follows:
80
+
81
+ ### Code-Based Client Initialization
82
+
83
+ ```python
84
+ import logging
85
+
86
+ from univapayclientsdk.configuration import Environment
87
+ from univapayclientsdk.http.auth.oauth_2 import BearerAuthCredentials
88
+ from univapayclientsdk.logging.configuration.api_logging_configuration import LoggingConfiguration
89
+ from univapayclientsdk.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
90
+ from univapayclientsdk.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
91
+ from univapayclientsdk.univapay_client_sdk_client import UnivapayClientSdkClient
92
+
93
+ client = UnivapayClientSdkClient(
94
+ bearer_auth_credentials=BearerAuthCredentials(
95
+ access_token='AccessToken'
96
+ ),
97
+ environment=Environment.PRODUCTION,
98
+ base_url='https://api.univapay.com',
99
+ logging_configuration=LoggingConfiguration(
100
+ log_level=logging.INFO,
101
+ request_logging_config=RequestLoggingConfiguration(
102
+ log_body=True
103
+ ),
104
+ response_logging_config=ResponseLoggingConfiguration(
105
+ log_headers=True
106
+ )
107
+ )
108
+ )
109
+ ```
110
+
111
+ ### Environment-Based Client Initialization
112
+
113
+ ```python
114
+ from univapayclientsdk.univapay_client_sdk_client import UnivapayClientSdkClient
115
+
116
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
117
+ client = UnivapayClientSdkClient.from_environment(dotenv_path='/path/to/.env')
118
+ ```
119
+
120
+ See the [Environment-Based Client Initialization](doc/environment-based-client-initialization.md) section for details.
121
+
122
+ ## Environments
123
+
124
+ The SDK can be configured to use a different environment for making API calls. Available environments are:
125
+
126
+ ### Fields
127
+
128
+ | Name | Description |
129
+ | --- | --- |
130
+ | PRODUCTION | **Default** Production Server |
131
+
132
+ ## Authorization
133
+
134
+ This API uses the following authentication schemes.
135
+
136
+ * [`JWT_TOKEN (OAuth 2 Bearer token)`](doc/auth/oauth-2-bearer-token.md)
137
+
138
+ ## List of APIs
139
+
140
+ * [Transaction Tokens](doc/controllers/transaction-tokens.md)
141
+ * [Charges](doc/controllers/charges.md)
142
+ * [Refunds](doc/controllers/refunds.md)
143
+ * [Subscriptions](doc/controllers/subscriptions.md)
144
+ * [Cancels](doc/controllers/cancels.md)
145
+ * [Merchants](doc/controllers/merchants.md)
146
+ * [Stores](doc/controllers/stores.md)
147
+ * [Webhooks](doc/controllers/webhooks.md)
148
+
149
+ ## Webhooks
150
+
151
+ * [Charge](doc/events/webhooks/charge-handler.md)
152
+ * [Token](doc/events/webhooks/token-handler.md)
153
+ * [Refund](doc/events/webhooks/refund-handler.md)
154
+ * [Cancel](doc/events/webhooks/cancel-handler.md)
155
+ * [Subscription](doc/events/webhooks/subscription-handler.md)
156
+ * [Bank-Transfer](doc/events/webhooks/bank-transfer-handler.md)
157
+ * [Customs](doc/events/webhooks/customs-handler.md)
158
+
159
+ ## SDK Infrastructure
160
+
161
+ ### Configuration
162
+
163
+ * [ProxySettings](doc/proxy-settings.md)
164
+ * [Environment-Based Client Initialization](doc/environment-based-client-initialization.md)
165
+ * [AbstractLogger](doc/abstract-logger.md)
166
+ * [LoggingConfiguration](doc/logging-configuration.md)
167
+ * [RequestLoggingConfiguration](doc/request-logging-configuration.md)
168
+ * [ResponseLoggingConfiguration](doc/response-logging-configuration.md)
169
+
170
+ ### HTTP
171
+
172
+ * [HttpResponse](doc/http-response.md)
173
+ * [HttpRequest](doc/http-request.md)
174
+ * [Request](doc/request.md)
175
+
176
+ ### Utilities
177
+
178
+ * [ApiResponse](doc/api-response.md)
179
+ * [ApiHelper](doc/api-helper.md)
180
+ * [HttpDateTime](doc/http-date-time.md)
181
+ * [RFC3339DateTime](doc/rfc3339-date-time.md)
182
+ * [UnixDateTime](doc/unix-date-time.md)
183
+
@@ -0,0 +1,25 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+ [project]
5
+ name = "univapay-client-sdk"
6
+ description = "Use the Univapay Payments Client SDK to create & manage payments"
7
+ version = "1.0.0"
8
+ readme = "README.md"
9
+ keywords = ["Univapay Payments SDK"]
10
+ dependencies = ["apimatic-core~=0.2.0, >= 0.2.24", "apimatic-core-interfaces~=0.1.0, >= 0.1.8", "apimatic-requests-client-adapter~=0.1.0, >= 0.1.10", "python-dotenv>=0.21, <2.0"]
11
+ classifiers = []
12
+ requires-python = ">=3.7"
13
+ [[project.authors]]
14
+ name = "Univapay Developers"
15
+ email = "dev@univapay.com"
16
+
17
+ [project.urls]
18
+ Documentation = "https://docs.univapay.com"
19
+ [project.optional-dependencies]
20
+ testutils = ["pytest>=7.2.2", "pytest-django>=4.5.2, <5", "Django~=3.2.25 ; python_version < '3.13'", "Django~=5.1.3 ; python_version >= '3.13'", "Flask~=2.2.5", "fastapi~=0.95.2", "httpx~=0.24.1", "anyio~=3.7.1", "typing-extensions~=4.7.1", "Werkzeug>=2.2, <3.0"]
21
+ [tool]
22
+ [tool.setuptools]
23
+ [tool.setuptools.packages]
24
+ [tool.setuptools.packages.find]
25
+ exclude = ["tests", "tests.*"]
@@ -0,0 +1,8 @@
1
+ [meta-data]
2
+ license_files =
3
+ LICENSE
4
+
5
+ [egg_info]
6
+ tag_build =
7
+ tag_date = 0
8
+
@@ -0,0 +1,210 @@
1
+ Metadata-Version: 2.4
2
+ Name: univapay-client-sdk
3
+ Version: 1.0.0
4
+ Summary: Use the Univapay Payments Client SDK to create & manage payments
5
+ Author-email: Univapay Developers <dev@univapay.com>
6
+ Project-URL: Documentation, https://docs.univapay.com
7
+ Keywords: Univapay Payments SDK
8
+ Requires-Python: >=3.7
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: apimatic-core>=0.2.24,~=0.2.0
12
+ Requires-Dist: apimatic-core-interfaces>=0.1.8,~=0.1.0
13
+ Requires-Dist: apimatic-requests-client-adapter>=0.1.10,~=0.1.0
14
+ Requires-Dist: python-dotenv<2.0,>=0.21
15
+ Provides-Extra: testutils
16
+ Requires-Dist: pytest>=7.2.2; extra == "testutils"
17
+ Requires-Dist: pytest-django<5,>=4.5.2; extra == "testutils"
18
+ Requires-Dist: Django~=3.2.25; python_version < "3.13" and extra == "testutils"
19
+ Requires-Dist: Django~=5.1.3; python_version >= "3.13" and extra == "testutils"
20
+ Requires-Dist: Flask~=2.2.5; extra == "testutils"
21
+ Requires-Dist: fastapi~=0.95.2; extra == "testutils"
22
+ Requires-Dist: httpx~=0.24.1; extra == "testutils"
23
+ Requires-Dist: anyio~=3.7.1; extra == "testutils"
24
+ Requires-Dist: typing-extensions~=4.7.1; extra == "testutils"
25
+ Requires-Dist: Werkzeug<3.0,>=2.2; extra == "testutils"
26
+ Dynamic: license-file
27
+
28
+
29
+ # Getting Started with Univapay Public API
30
+
31
+ ## Introduction
32
+
33
+ OpenAPI specification for the Univapay Online Payment API.
34
+
35
+ ### Authentication (JWT)
36
+
37
+ This API uses JWT (JSON Web Tokens) for authentication via the HTTP `Authorization` header. To authenticate, you must generate an **Application Token** in the Univapay dashboard. This generates two components: 1. **Token (`{jwt}`)** 2. **Secret (`{secret}`)**
38
+
39
+ #### ⚠️ Security Warning
40
+
41
+ The **Secret** grants extensive privileges (e.g., creating charges, capturing authorized card charges, refunding).
42
+ **NEVER expose the `{secret}` in frontend application code** (e.g., consumer browsers) or public repositories. It is strictly for backend server-to-server communication.
43
+ *Univapay is not responsible for accidents caused by leaked secrets.*
44
+
45
+ #### Bearer Auth Formats
46
+
47
+ Depending on where you are calling the API from, the Bearer format changes:
48
+
49
+ * **Frontend / Browser (No Secret)**: `Bearer {jwt}`
50
+ *(Used for Widgets or Inline Forms. You must register your allowed domains in the dashboard when creating the token).*
51
+ * **Backend / Server (With Secret)**: `Bearer {secret}.{jwt}`
52
+ *(Required for all backend processing).*
53
+
54
+ We will assume that all requests are going to originate from a backend server thus, all requests will require the secret
55
+
56
+ #### Token Types
57
+
58
+ * **Store Token**: Grants full access to requests for that specific store.
59
+ * **Merchant Token**: Can't create transaction tokens but can access data from multiple stores.
60
+
61
+ ## Install the Package
62
+
63
+ The package is compatible with Python versions `3.7+`.
64
+ Install the package from PyPi using the following pip command:
65
+
66
+ ```bash
67
+ pip install univapay-client-sdk==1.0.0
68
+ ```
69
+
70
+ You can also view the package at:
71
+ https://pypi.python.org/pypi/univapay-client-sdk/1.0.0
72
+
73
+ ## Test the SDK
74
+
75
+ You can test the generated SDK and the server with test cases. `unittest` is used as the testing framework and `pytest` is used as the test runner. You can run the tests as follows:
76
+
77
+ Navigate to the root directory of the SDK and run the following commands
78
+
79
+
80
+ pip install -r test-requirements.txt
81
+ pytest
82
+
83
+
84
+ ## Initialize the API Client
85
+
86
+ **_Note:_** Documentation for the client can be found [here.](doc/client.md)
87
+
88
+ The following parameters are configurable for the API Client:
89
+
90
+ | Parameter | Type | Description |
91
+ | --- | --- | --- |
92
+ | base_url | `str` | Base URL for the API<br>*Default*: `"https://api.univapay.com"` |
93
+ | environment | [`Environment`](README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
94
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
95
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
96
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
97
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 30** |
98
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
99
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
100
+ | retry_statuses | `Array of int` | The http statuses on which retry is to be done. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524, 408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
101
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT", "GET", "PUT"]** |
102
+ | proxy_settings | [`ProxySettings`](doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
103
+ | logging_configuration | [`LoggingConfiguration`](doc/logging-configuration.md) | The SDK logging configuration for API calls |
104
+ | bearer_auth_credentials | [`BearerAuthCredentials`](doc/auth/oauth-2-bearer-token.md) | The credential object for OAuth 2 Bearer token |
105
+
106
+ The API client can be initialized as follows:
107
+
108
+ ### Code-Based Client Initialization
109
+
110
+ ```python
111
+ import logging
112
+
113
+ from univapayclientsdk.configuration import Environment
114
+ from univapayclientsdk.http.auth.oauth_2 import BearerAuthCredentials
115
+ from univapayclientsdk.logging.configuration.api_logging_configuration import LoggingConfiguration
116
+ from univapayclientsdk.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
117
+ from univapayclientsdk.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
118
+ from univapayclientsdk.univapay_client_sdk_client import UnivapayClientSdkClient
119
+
120
+ client = UnivapayClientSdkClient(
121
+ bearer_auth_credentials=BearerAuthCredentials(
122
+ access_token='AccessToken'
123
+ ),
124
+ environment=Environment.PRODUCTION,
125
+ base_url='https://api.univapay.com',
126
+ logging_configuration=LoggingConfiguration(
127
+ log_level=logging.INFO,
128
+ request_logging_config=RequestLoggingConfiguration(
129
+ log_body=True
130
+ ),
131
+ response_logging_config=ResponseLoggingConfiguration(
132
+ log_headers=True
133
+ )
134
+ )
135
+ )
136
+ ```
137
+
138
+ ### Environment-Based Client Initialization
139
+
140
+ ```python
141
+ from univapayclientsdk.univapay_client_sdk_client import UnivapayClientSdkClient
142
+
143
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
144
+ client = UnivapayClientSdkClient.from_environment(dotenv_path='/path/to/.env')
145
+ ```
146
+
147
+ See the [Environment-Based Client Initialization](doc/environment-based-client-initialization.md) section for details.
148
+
149
+ ## Environments
150
+
151
+ The SDK can be configured to use a different environment for making API calls. Available environments are:
152
+
153
+ ### Fields
154
+
155
+ | Name | Description |
156
+ | --- | --- |
157
+ | PRODUCTION | **Default** Production Server |
158
+
159
+ ## Authorization
160
+
161
+ This API uses the following authentication schemes.
162
+
163
+ * [`JWT_TOKEN (OAuth 2 Bearer token)`](doc/auth/oauth-2-bearer-token.md)
164
+
165
+ ## List of APIs
166
+
167
+ * [Transaction Tokens](doc/controllers/transaction-tokens.md)
168
+ * [Charges](doc/controllers/charges.md)
169
+ * [Refunds](doc/controllers/refunds.md)
170
+ * [Subscriptions](doc/controllers/subscriptions.md)
171
+ * [Cancels](doc/controllers/cancels.md)
172
+ * [Merchants](doc/controllers/merchants.md)
173
+ * [Stores](doc/controllers/stores.md)
174
+ * [Webhooks](doc/controllers/webhooks.md)
175
+
176
+ ## Webhooks
177
+
178
+ * [Charge](doc/events/webhooks/charge-handler.md)
179
+ * [Token](doc/events/webhooks/token-handler.md)
180
+ * [Refund](doc/events/webhooks/refund-handler.md)
181
+ * [Cancel](doc/events/webhooks/cancel-handler.md)
182
+ * [Subscription](doc/events/webhooks/subscription-handler.md)
183
+ * [Bank-Transfer](doc/events/webhooks/bank-transfer-handler.md)
184
+ * [Customs](doc/events/webhooks/customs-handler.md)
185
+
186
+ ## SDK Infrastructure
187
+
188
+ ### Configuration
189
+
190
+ * [ProxySettings](doc/proxy-settings.md)
191
+ * [Environment-Based Client Initialization](doc/environment-based-client-initialization.md)
192
+ * [AbstractLogger](doc/abstract-logger.md)
193
+ * [LoggingConfiguration](doc/logging-configuration.md)
194
+ * [RequestLoggingConfiguration](doc/request-logging-configuration.md)
195
+ * [ResponseLoggingConfiguration](doc/response-logging-configuration.md)
196
+
197
+ ### HTTP
198
+
199
+ * [HttpResponse](doc/http-response.md)
200
+ * [HttpRequest](doc/http-request.md)
201
+ * [Request](doc/request.md)
202
+
203
+ ### Utilities
204
+
205
+ * [ApiResponse](doc/api-response.md)
206
+ * [ApiHelper](doc/api-helper.md)
207
+ * [HttpDateTime](doc/http-date-time.md)
208
+ * [RFC3339DateTime](doc/rfc3339-date-time.md)
209
+ * [UnixDateTime](doc/unix-date-time.md)
210
+