kard-financial-sdk 0.0.82__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 (302) hide show
  1. kard_financial_sdk-0.0.82/PKG-INFO +238 -0
  2. kard_financial_sdk-0.0.82/README.md +210 -0
  3. kard_financial_sdk-0.0.82/pyproject.toml +86 -0
  4. kard_financial_sdk-0.0.82/src/kard/__init__.py +579 -0
  5. kard_financial_sdk-0.0.82/src/kard/auth/__init__.py +34 -0
  6. kard_financial_sdk-0.0.82/src/kard/auth/client.py +121 -0
  7. kard_financial_sdk-0.0.82/src/kard/auth/raw_client.py +108 -0
  8. kard_financial_sdk-0.0.82/src/kard/auth/types/__init__.py +34 -0
  9. kard_financial_sdk-0.0.82/src/kard/auth/types/token_response.py +25 -0
  10. kard_financial_sdk-0.0.82/src/kard/client.py +416 -0
  11. kard_financial_sdk-0.0.82/src/kard/commons/__init__.py +120 -0
  12. kard_financial_sdk-0.0.82/src/kard/commons/errors/__init__.py +44 -0
  13. kard_financial_sdk-0.0.82/src/kard/commons/errors/conflict_error.py +11 -0
  14. kard_financial_sdk-0.0.82/src/kard/commons/errors/does_not_exist_error.py +11 -0
  15. kard_financial_sdk-0.0.82/src/kard/commons/errors/internal_server_error.py +11 -0
  16. kard_financial_sdk-0.0.82/src/kard/commons/errors/invalid_request.py +11 -0
  17. kard_financial_sdk-0.0.82/src/kard/commons/errors/unauthorized_error.py +11 -0
  18. kard_financial_sdk-0.0.82/src/kard/commons/types/__init__.py +107 -0
  19. kard_financial_sdk-0.0.82/src/kard/commons/types/category_option.py +26 -0
  20. kard_financial_sdk-0.0.82/src/kard/commons/types/commission_type.py +5 -0
  21. kard_financial_sdk-0.0.82/src/kard/commons/types/commission_value.py +28 -0
  22. kard_financial_sdk-0.0.82/src/kard/commons/types/commission_value_type.py +5 -0
  23. kard_financial_sdk-0.0.82/src/kard/commons/types/empty_object.py +17 -0
  24. kard_financial_sdk-0.0.82/src/kard/commons/types/enrolled_rewards_type.py +5 -0
  25. kard_financial_sdk-0.0.82/src/kard/commons/types/error_object.py +43 -0
  26. kard_financial_sdk-0.0.82/src/kard/commons/types/error_response.py +20 -0
  27. kard_financial_sdk-0.0.82/src/kard/commons/types/error_source.py +32 -0
  28. kard_financial_sdk-0.0.82/src/kard/commons/types/job.py +24 -0
  29. kard_financial_sdk-0.0.82/src/kard/commons/types/job_response.py +27 -0
  30. kard_financial_sdk-0.0.82/src/kard/commons/types/job_status.py +5 -0
  31. kard_financial_sdk-0.0.82/src/kard/commons/types/links.py +27 -0
  32. kard_financial_sdk-0.0.82/src/kard/commons/types/mongo_id.py +3 -0
  33. kard_financial_sdk-0.0.82/src/kard/commons/types/notification_type.py +19 -0
  34. kard_financial_sdk-0.0.82/src/kard/commons/types/organization_id.py +3 -0
  35. kard_financial_sdk-0.0.82/src/kard/commons/types/purchase_channel.py +5 -0
  36. kard_financial_sdk-0.0.82/src/kard/commons/types/relationship_data.py +24 -0
  37. kard_financial_sdk-0.0.82/src/kard/commons/types/relationship_multiple.py +20 -0
  38. kard_financial_sdk-0.0.82/src/kard/commons/types/relationship_single.py +20 -0
  39. kard_financial_sdk-0.0.82/src/kard/commons/types/resource_type.py +3 -0
  40. kard_financial_sdk-0.0.82/src/kard/commons/types/state.py +68 -0
  41. kard_financial_sdk-0.0.82/src/kard/commons/types/subscription_id.py +3 -0
  42. kard_financial_sdk-0.0.82/src/kard/commons/types/user_id.py +3 -0
  43. kard_financial_sdk-0.0.82/src/kard/core/__init__.py +105 -0
  44. kard_financial_sdk-0.0.82/src/kard/core/api_error.py +23 -0
  45. kard_financial_sdk-0.0.82/src/kard/core/client_wrapper.py +97 -0
  46. kard_financial_sdk-0.0.82/src/kard/core/datetime_utils.py +28 -0
  47. kard_financial_sdk-0.0.82/src/kard/core/file.py +67 -0
  48. kard_financial_sdk-0.0.82/src/kard/core/force_multipart.py +18 -0
  49. kard_financial_sdk-0.0.82/src/kard/core/http_client.py +613 -0
  50. kard_financial_sdk-0.0.82/src/kard/core/http_response.py +55 -0
  51. kard_financial_sdk-0.0.82/src/kard/core/http_sse/__init__.py +42 -0
  52. kard_financial_sdk-0.0.82/src/kard/core/http_sse/_api.py +112 -0
  53. kard_financial_sdk-0.0.82/src/kard/core/http_sse/_decoders.py +61 -0
  54. kard_financial_sdk-0.0.82/src/kard/core/http_sse/_exceptions.py +7 -0
  55. kard_financial_sdk-0.0.82/src/kard/core/http_sse/_models.py +17 -0
  56. kard_financial_sdk-0.0.82/src/kard/core/jsonable_encoder.py +100 -0
  57. kard_financial_sdk-0.0.82/src/kard/core/oauth_token_provider.py +73 -0
  58. kard_financial_sdk-0.0.82/src/kard/core/pydantic_utilities.py +260 -0
  59. kard_financial_sdk-0.0.82/src/kard/core/query_encoder.py +58 -0
  60. kard_financial_sdk-0.0.82/src/kard/core/remove_none_from_dict.py +11 -0
  61. kard_financial_sdk-0.0.82/src/kard/core/request_options.py +35 -0
  62. kard_financial_sdk-0.0.82/src/kard/core/serialization.py +276 -0
  63. kard_financial_sdk-0.0.82/src/kard/environment.py +8 -0
  64. kard_financial_sdk-0.0.82/src/kard/files/__init__.py +58 -0
  65. kard_financial_sdk-0.0.82/src/kard/files/client.py +213 -0
  66. kard_financial_sdk-0.0.82/src/kard/files/errors/__init__.py +34 -0
  67. kard_financial_sdk-0.0.82/src/kard/files/errors/forbidden_error.py +11 -0
  68. kard_financial_sdk-0.0.82/src/kard/files/raw_client.py +278 -0
  69. kard_financial_sdk-0.0.82/src/kard/files/types/__init__.py +53 -0
  70. kard_financial_sdk-0.0.82/src/kard/files/types/file_metadata_attribute.py +39 -0
  71. kard_financial_sdk-0.0.82/src/kard/files/types/file_metadata_with_url.py +34 -0
  72. kard_financial_sdk-0.0.82/src/kard/files/types/file_type.py +13 -0
  73. kard_financial_sdk-0.0.82/src/kard/files/types/files_metadata_sort_options.py +5 -0
  74. kard_financial_sdk-0.0.82/src/kard/files/types/get_files_metadata_response.py +71 -0
  75. kard_financial_sdk-0.0.82/src/kard/files/types/pagination_meta.py +29 -0
  76. kard_financial_sdk-0.0.82/src/kard/notifications/__init__.py +279 -0
  77. kard_financial_sdk-0.0.82/src/kard/notifications/client.py +63 -0
  78. kard_financial_sdk-0.0.82/src/kard/notifications/raw_client.py +13 -0
  79. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/__init__.py +97 -0
  80. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/client.py +372 -0
  81. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/raw_client.py +581 -0
  82. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/__init__.py +94 -0
  83. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/create_subscription_union.py +27 -0
  84. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/create_subscriptions_response_object.py +43 -0
  85. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/created_subscription.py +23 -0
  86. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/subscription.py +25 -0
  87. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/subscription_attributes.py +35 -0
  88. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/subscription_request.py +20 -0
  89. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/subscription_request_attributes.py +35 -0
  90. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/subscription_request_body.py +42 -0
  91. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/subscription_request_union.py +26 -0
  92. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/subscription_union.py +27 -0
  93. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/subscriptions_response_object.py +43 -0
  94. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/update_subscription_request.py +20 -0
  95. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/update_subscription_request_attributes.py +39 -0
  96. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/update_subscription_request_body.py +40 -0
  97. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/update_subscription_request_union.py +26 -0
  98. kard_financial_sdk-0.0.82/src/kard/notifications/subscriptions/types/update_subscriptions_response_object.py +41 -0
  99. kard_financial_sdk-0.0.82/src/kard/notifications/types/__init__.py +214 -0
  100. kard_financial_sdk-0.0.82/src/kard/notifications/types/audit_update_attributes.py +88 -0
  101. kard_financial_sdk-0.0.82/src/kard/notifications/types/audit_update_data.py +27 -0
  102. kard_financial_sdk-0.0.82/src/kard/notifications/types/audit_update_relationships.py +21 -0
  103. kard_financial_sdk-0.0.82/src/kard/notifications/types/broker_amount.py +28 -0
  104. kard_financial_sdk-0.0.82/src/kard/notifications/types/broker_amount_type.py +5 -0
  105. kard_financial_sdk-0.0.82/src/kard/notifications/types/broker_asset.py +33 -0
  106. kard_financial_sdk-0.0.82/src/kard/notifications/types/broker_asset_type.py +5 -0
  107. kard_financial_sdk-0.0.82/src/kard/notifications/types/broker_operation_hours.py +30 -0
  108. kard_financial_sdk-0.0.82/src/kard/notifications/types/broker_operation_period.py +28 -0
  109. kard_financial_sdk-0.0.82/src/kard/notifications/types/broker_purchase_channel.py +5 -0
  110. kard_financial_sdk-0.0.82/src/kard/notifications/types/broker_reward.py +28 -0
  111. kard_financial_sdk-0.0.82/src/kard/notifications/types/broker_reward_type.py +5 -0
  112. kard_financial_sdk-0.0.82/src/kard/notifications/types/clawback_data.py +27 -0
  113. kard_financial_sdk-0.0.82/src/kard/notifications/types/earned_reward_approved_data.py +27 -0
  114. kard_financial_sdk-0.0.82/src/kard/notifications/types/earned_reward_attributes.py +18 -0
  115. kard_financial_sdk-0.0.82/src/kard/notifications/types/earned_reward_relationships.py +21 -0
  116. kard_financial_sdk-0.0.82/src/kard/notifications/types/earned_reward_settled_attributes.py +23 -0
  117. kard_financial_sdk-0.0.82/src/kard/notifications/types/earned_reward_settled_data.py +27 -0
  118. kard_financial_sdk-0.0.82/src/kard/notifications/types/failed_transaction_attributes.py +41 -0
  119. kard_financial_sdk-0.0.82/src/kard/notifications/types/failed_transaction_data.py +27 -0
  120. kard_financial_sdk-0.0.82/src/kard/notifications/types/failed_transaction_relationships.py +22 -0
  121. kard_financial_sdk-0.0.82/src/kard/notifications/types/location_address.py +39 -0
  122. kard_financial_sdk-0.0.82/src/kard/notifications/types/location_coordinates.py +27 -0
  123. kard_financial_sdk-0.0.82/src/kard/notifications/types/location_status.py +5 -0
  124. kard_financial_sdk-0.0.82/src/kard/notifications/types/merchant_source.py +5 -0
  125. kard_financial_sdk-0.0.82/src/kard/notifications/types/notification_data_union.py +203 -0
  126. kard_financial_sdk-0.0.82/src/kard/notifications/types/notification_metadata.py +22 -0
  127. kard_financial_sdk-0.0.82/src/kard/notifications/types/notification_payload.py +65 -0
  128. kard_financial_sdk-0.0.82/src/kard/notifications/types/offer_status.py +5 -0
  129. kard_financial_sdk-0.0.82/src/kard/notifications/types/offer_type.py +5 -0
  130. kard_financial_sdk-0.0.82/src/kard/notifications/types/reward_notification_attributes.py +48 -0
  131. kard_financial_sdk-0.0.82/src/kard/notifications/types/time_period.py +27 -0
  132. kard_financial_sdk-0.0.82/src/kard/notifications/types/transaction_relationships.py +22 -0
  133. kard_financial_sdk-0.0.82/src/kard/notifications/types/user_offer_status.py +5 -0
  134. kard_financial_sdk-0.0.82/src/kard/notifications/types/valid_transaction_attributes.py +25 -0
  135. kard_financial_sdk-0.0.82/src/kard/notifications/types/valid_transaction_commission_earned.py +21 -0
  136. kard_financial_sdk-0.0.82/src/kard/notifications/types/valid_transaction_data.py +27 -0
  137. kard_financial_sdk-0.0.82/src/kard/notifications/types/webhook_locations_attributes.py +71 -0
  138. kard_financial_sdk-0.0.82/src/kard/notifications/types/webhook_locations_data.py +27 -0
  139. kard_financial_sdk-0.0.82/src/kard/notifications/types/webhook_locations_relationships.py +20 -0
  140. kard_financial_sdk-0.0.82/src/kard/notifications/types/webhook_merchant_attributes.py +67 -0
  141. kard_financial_sdk-0.0.82/src/kard/notifications/types/webhook_merchant_data.py +27 -0
  142. kard_financial_sdk-0.0.82/src/kard/notifications/types/webhook_merchant_relationships.py +20 -0
  143. kard_financial_sdk-0.0.82/src/kard/notifications/types/webhook_offer_attributes.py +143 -0
  144. kard_financial_sdk-0.0.82/src/kard/notifications/types/webhook_offer_data.py +27 -0
  145. kard_financial_sdk-0.0.82/src/kard/notifications/types/webhook_offer_relationships.py +20 -0
  146. kard_financial_sdk-0.0.82/src/kard/notifications/types/webhook_user_offer_attributes.py +41 -0
  147. kard_financial_sdk-0.0.82/src/kard/notifications/types/webhook_user_offer_data.py +27 -0
  148. kard_financial_sdk-0.0.82/src/kard/notifications/types/webhook_user_offer_relationships.py +21 -0
  149. kard_financial_sdk-0.0.82/src/kard/ping/__init__.py +39 -0
  150. kard_financial_sdk-0.0.82/src/kard/ping/client.py +100 -0
  151. kard_financial_sdk-0.0.82/src/kard/ping/errors/__init__.py +34 -0
  152. kard_financial_sdk-0.0.82/src/kard/ping/errors/network_blocked_error.py +11 -0
  153. kard_financial_sdk-0.0.82/src/kard/ping/raw_client.py +113 -0
  154. kard_financial_sdk-0.0.82/src/kard/ping/types/__init__.py +38 -0
  155. kard_financial_sdk-0.0.82/src/kard/ping/types/network_blocked_error_body.py +34 -0
  156. kard_financial_sdk-0.0.82/src/kard/ping/types/ping_response_object.py +46 -0
  157. kard_financial_sdk-0.0.82/src/kard/py.typed +0 -0
  158. kard_financial_sdk-0.0.82/src/kard/transactions/__init__.py +212 -0
  159. kard_financial_sdk-0.0.82/src/kard/transactions/client.py +639 -0
  160. kard_financial_sdk-0.0.82/src/kard/transactions/errors/__init__.py +40 -0
  161. kard_financial_sdk-0.0.82/src/kard/transactions/errors/create_audit_multi_status.py +11 -0
  162. kard_financial_sdk-0.0.82/src/kard/transactions/errors/create_incoming_transactions_multi_status.py +11 -0
  163. kard_financial_sdk-0.0.82/src/kard/transactions/errors/fraud_multi_status.py +11 -0
  164. kard_financial_sdk-0.0.82/src/kard/transactions/raw_client.py +925 -0
  165. kard_financial_sdk-0.0.82/src/kard/transactions/types/__init__.py +199 -0
  166. kard_financial_sdk-0.0.82/src/kard/transactions/types/audit_attributes.py +44 -0
  167. kard_financial_sdk-0.0.82/src/kard/transactions/types/audit_request_data.py +20 -0
  168. kard_financial_sdk-0.0.82/src/kard/transactions/types/audit_response_attributes.py +24 -0
  169. kard_financial_sdk-0.0.82/src/kard/transactions/types/audit_response_data.py +25 -0
  170. kard_financial_sdk-0.0.82/src/kard/transactions/types/audit_status.py +5 -0
  171. kard_financial_sdk-0.0.82/src/kard/transactions/types/card_network.py +5 -0
  172. kard_financial_sdk-0.0.82/src/kard/transactions/types/commission_earned_details.py +21 -0
  173. kard_financial_sdk-0.0.82/src/kard/transactions/types/create_audit_multi_status_response.py +21 -0
  174. kard_financial_sdk-0.0.82/src/kard/transactions/types/create_audit_request_body.py +43 -0
  175. kard_financial_sdk-0.0.82/src/kard/transactions/types/create_audit_request_data_union.py +26 -0
  176. kard_financial_sdk-0.0.82/src/kard/transactions/types/create_audit_response_body.py +41 -0
  177. kard_financial_sdk-0.0.82/src/kard/transactions/types/create_audit_response_data_union.py +27 -0
  178. kard_financial_sdk-0.0.82/src/kard/transactions/types/direction_type.py +5 -0
  179. kard_financial_sdk-0.0.82/src/kard/transactions/types/fraudulent_transaction_attributes.py +24 -0
  180. kard_financial_sdk-0.0.82/src/kard/transactions/types/fraudulent_transaction_data.py +30 -0
  181. kard_financial_sdk-0.0.82/src/kard/transactions/types/fraudulent_transaction_object.py +42 -0
  182. kard_financial_sdk-0.0.82/src/kard/transactions/types/fraudulent_transaction_request_body.py +45 -0
  183. kard_financial_sdk-0.0.82/src/kard/transactions/types/fraudulent_transaction_response.py +21 -0
  184. kard_financial_sdk-0.0.82/src/kard/transactions/types/get_earned_rewards_response.py +133 -0
  185. kard_financial_sdk-0.0.82/src/kard/transactions/types/matched_transactions_attributes.py +156 -0
  186. kard_financial_sdk-0.0.82/src/kard/transactions/types/matched_transactions_request.py +25 -0
  187. kard_financial_sdk-0.0.82/src/kard/transactions/types/merchant.py +82 -0
  188. kard_financial_sdk-0.0.82/src/kard/transactions/types/payment_status.py +5 -0
  189. kard_financial_sdk-0.0.82/src/kard/transactions/types/payment_type.py +5 -0
  190. kard_financial_sdk-0.0.82/src/kard/transactions/types/processor_mid.py +26 -0
  191. kard_financial_sdk-0.0.82/src/kard/transactions/types/receipt_medium_type.py +5 -0
  192. kard_financial_sdk-0.0.82/src/kard/transactions/types/rewarded_transaction.py +27 -0
  193. kard_financial_sdk-0.0.82/src/kard/transactions/types/rewarded_transaction_attributes.py +74 -0
  194. kard_financial_sdk-0.0.82/src/kard/transactions/types/rewarded_transaction_relationships.py +22 -0
  195. kard_financial_sdk-0.0.82/src/kard/transactions/types/rewarded_transaction_status.py +5 -0
  196. kard_financial_sdk-0.0.82/src/kard/transactions/types/rewarded_transaction_union.py +29 -0
  197. kard_financial_sdk-0.0.82/src/kard/transactions/types/states.py +68 -0
  198. kard_financial_sdk-0.0.82/src/kard/transactions/types/transaction_included_resource.py +47 -0
  199. kard_financial_sdk-0.0.82/src/kard/transactions/types/transaction_merchant_attributes.py +22 -0
  200. kard_financial_sdk-0.0.82/src/kard/transactions/types/transaction_merchant_resource.py +28 -0
  201. kard_financial_sdk-0.0.82/src/kard/transactions/types/transaction_offer_attributes.py +26 -0
  202. kard_financial_sdk-0.0.82/src/kard/transactions/types/transaction_offer_resource.py +28 -0
  203. kard_financial_sdk-0.0.82/src/kard/transactions/types/transaction_payment_type.py +5 -0
  204. kard_financial_sdk-0.0.82/src/kard/transactions/types/transaction_status.py +5 -0
  205. kard_financial_sdk-0.0.82/src/kard/transactions/types/transactions.py +46 -0
  206. kard_financial_sdk-0.0.82/src/kard/transactions/types/transactions_attributes.py +198 -0
  207. kard_financial_sdk-0.0.82/src/kard/transactions/types/transactions_multi_response.py +21 -0
  208. kard_financial_sdk-0.0.82/src/kard/transactions/types/transactions_request.py +25 -0
  209. kard_financial_sdk-0.0.82/src/kard/transactions/types/transactions_request_body.py +90 -0
  210. kard_financial_sdk-0.0.82/src/kard/transactions/types/transactions_response.py +38 -0
  211. kard_financial_sdk-0.0.82/src/kard/transactions/types/transactions_response_data.py +27 -0
  212. kard_financial_sdk-0.0.82/src/kard/transactions/types/visa_mid.py +23 -0
  213. kard_financial_sdk-0.0.82/src/kard/transactions/types/visa_mid_details.py +27 -0
  214. kard_financial_sdk-0.0.82/src/kard/users/__init__.py +293 -0
  215. kard_financial_sdk-0.0.82/src/kard/users/attributions/__init__.py +73 -0
  216. kard_financial_sdk-0.0.82/src/kard/users/attributions/client.py +229 -0
  217. kard_financial_sdk-0.0.82/src/kard/users/attributions/raw_client.py +215 -0
  218. kard_financial_sdk-0.0.82/src/kard/users/attributions/types/__init__.py +73 -0
  219. kard_financial_sdk-0.0.82/src/kard/users/attributions/types/create_attribution_request_object.py +75 -0
  220. kard_financial_sdk-0.0.82/src/kard/users/attributions/types/create_attribution_request_union.py +45 -0
  221. kard_financial_sdk-0.0.82/src/kard/users/attributions/types/create_attribution_response.py +38 -0
  222. kard_financial_sdk-0.0.82/src/kard/users/attributions/types/event_code.py +5 -0
  223. kard_financial_sdk-0.0.82/src/kard/users/attributions/types/notification_attribution_attributes.py +35 -0
  224. kard_financial_sdk-0.0.82/src/kard/users/attributions/types/notification_attribution_request.py +20 -0
  225. kard_financial_sdk-0.0.82/src/kard/users/attributions/types/notification_medium.py +5 -0
  226. kard_financial_sdk-0.0.82/src/kard/users/attributions/types/offer_attribution_attributes.py +35 -0
  227. kard_financial_sdk-0.0.82/src/kard/users/attributions/types/offer_attribution_request.py +20 -0
  228. kard_financial_sdk-0.0.82/src/kard/users/attributions/types/offer_medium.py +5 -0
  229. kard_financial_sdk-0.0.82/src/kard/users/client.py +512 -0
  230. kard_financial_sdk-0.0.82/src/kard/users/errors/__init__.py +34 -0
  231. kard_financial_sdk-0.0.82/src/kard/users/errors/multi_status.py +11 -0
  232. kard_financial_sdk-0.0.82/src/kard/users/raw_client.py +783 -0
  233. kard_financial_sdk-0.0.82/src/kard/users/rewards/__init__.py +133 -0
  234. kard_financial_sdk-0.0.82/src/kard/users/rewards/client.py +448 -0
  235. kard_financial_sdk-0.0.82/src/kard/users/rewards/raw_client.py +587 -0
  236. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/__init__.py +130 -0
  237. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/amount.py +21 -0
  238. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/amount_type.py +5 -0
  239. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/asset.py +28 -0
  240. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/category_data.py +18 -0
  241. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/category_fields.py +23 -0
  242. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/category_identifier.py +24 -0
  243. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/category_included.py +21 -0
  244. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/category_relationship.py +20 -0
  245. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/category_relationship_object.py +20 -0
  246. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/commission.py +21 -0
  247. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/coordinates.py +20 -0
  248. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/eligibility_location_address.py +24 -0
  249. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/eligibility_location_included.py +8 -0
  250. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/eligibility_offer_included.py +7 -0
  251. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/eligibility_offer_relationship.py +7 -0
  252. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/location_attributes.py +28 -0
  253. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/location_data.py +32 -0
  254. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/location_relationships.py +18 -0
  255. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/location_sort_options.py +5 -0
  256. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/locations_response_object.py +215 -0
  257. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/offer_common_fields.py +103 -0
  258. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/offer_data_union.py +30 -0
  259. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/offer_relationship.py +21 -0
  260. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/offer_sort_options.py +7 -0
  261. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/offers_response_object.py +130 -0
  262. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/operation_hours.py +23 -0
  263. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/operation_period.py +21 -0
  264. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/operation_time.py +20 -0
  265. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/standard_offer.py +21 -0
  266. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/standard_offer_core.py +26 -0
  267. kard_financial_sdk-0.0.82/src/kard/users/rewards/types/standard_offer_fields.py +18 -0
  268. kard_financial_sdk-0.0.82/src/kard/users/types/__init__.py +66 -0
  269. kard_financial_sdk-0.0.82/src/kard/users/types/create_users_multi_status_response.py +21 -0
  270. kard_financial_sdk-0.0.82/src/kard/users/types/create_users_object.py +42 -0
  271. kard_financial_sdk-0.0.82/src/kard/users/types/delete_user_response_object.py +34 -0
  272. kard_financial_sdk-0.0.82/src/kard/users/types/update_user_object.py +40 -0
  273. kard_financial_sdk-0.0.82/src/kard/users/types/user_request_attributes.py +60 -0
  274. kard_financial_sdk-0.0.82/src/kard/users/types/user_request_data.py +22 -0
  275. kard_financial_sdk-0.0.82/src/kard/users/types/user_request_data_union.py +28 -0
  276. kard_financial_sdk-0.0.82/src/kard/users/types/user_response_no_data.py +22 -0
  277. kard_financial_sdk-0.0.82/src/kard/users/types/user_response_union_no_data.py +28 -0
  278. kard_financial_sdk-0.0.82/src/kard/users/uploads/__init__.py +112 -0
  279. kard_financial_sdk-0.0.82/src/kard/users/uploads/client.py +484 -0
  280. kard_financial_sdk-0.0.82/src/kard/users/uploads/errors/__init__.py +34 -0
  281. kard_financial_sdk-0.0.82/src/kard/users/uploads/errors/upload_part_multi_status.py +13 -0
  282. kard_financial_sdk-0.0.82/src/kard/users/uploads/raw_client.py +625 -0
  283. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/__init__.py +119 -0
  284. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/create_upload_part_data_union.py +27 -0
  285. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/create_upload_part_multi_status_response.py +21 -0
  286. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/create_upload_part_request_object.py +74 -0
  287. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/create_upload_part_response_data.py +25 -0
  288. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/create_upload_part_response_data_union.py +27 -0
  289. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/create_upload_part_response_object.py +39 -0
  290. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/create_upload_request_data_union.py +26 -0
  291. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/create_upload_request_object.py +36 -0
  292. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/create_upload_response_data.py +25 -0
  293. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/create_upload_response_data_union.py +27 -0
  294. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/create_upload_response_object.py +37 -0
  295. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/historical_transaction_complete_no_data.py +25 -0
  296. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/start_historical_upload_no_data.py +20 -0
  297. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/update_upload_request_data_union.py +27 -0
  298. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/update_upload_request_object.py +37 -0
  299. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/update_upload_response_data.py +25 -0
  300. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/update_upload_response_data_union.py +27 -0
  301. kard_financial_sdk-0.0.82/src/kard/users/uploads/types/update_upload_response_object.py +37 -0
  302. kard_financial_sdk-0.0.82/src/kard/version.py +3 -0
@@ -0,0 +1,238 @@
1
+ Metadata-Version: 2.1
2
+ Name: kard-financial-sdk
3
+ Version: 0.0.82
4
+ Summary:
5
+ Requires-Python: >=3.8,<4.0
6
+ Classifier: Intended Audience :: Developers
7
+ Classifier: Operating System :: MacOS
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Operating System :: POSIX
11
+ Classifier: Operating System :: POSIX :: Linux
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Classifier: Typing :: Typed
21
+ Requires-Dist: httpx (>=0.21.2)
22
+ Requires-Dist: pydantic (>=1.9.2)
23
+ Requires-Dist: pydantic-core (>=2.18.2)
24
+ Requires-Dist: typing_extensions (>=4.0.0)
25
+ Project-URL: Repository, https://github.com/KardFinancial/kard-python-sdk
26
+ Description-Content-Type: text/markdown
27
+
28
+ # Kard Python Library
29
+
30
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FKardFinancial%2Fkard-python-sdk)
31
+ [![pypi](https://img.shields.io/pypi/v/kard-financial-sdk)](https://pypi.python.org/pypi/kard-financial-sdk)
32
+
33
+ The Kard Python library provides convenient access to the Kard APIs from Python.
34
+
35
+ ## Table of Contents
36
+
37
+ - [Installation](#installation)
38
+ - [Reference](#reference)
39
+ - [Usage](#usage)
40
+ - [Async Client](#async-client)
41
+ - [Exception Handling](#exception-handling)
42
+ - [Oauth Token Override](#oauth-token-override)
43
+ - [Advanced](#advanced)
44
+ - [Access Raw Response Data](#access-raw-response-data)
45
+ - [Retries](#retries)
46
+ - [Timeouts](#timeouts)
47
+ - [Custom Client](#custom-client)
48
+ - [Contributing](#contributing)
49
+
50
+ ## Installation
51
+
52
+ ```sh
53
+ pip install kard-financial-sdk
54
+ ```
55
+
56
+ ## Reference
57
+
58
+ A full reference for this library is available [here](https://github.com/KardFinancial/kard-python-sdk/blob/HEAD/./reference.md).
59
+
60
+ ## Usage
61
+
62
+ Instantiate and use the client with the following:
63
+
64
+ ```python
65
+ from kard import KardApi
66
+ from kard.users import UserRequestAttributes, UserRequestDataUnion_User
67
+
68
+ client = KardApi(
69
+ client_id="YOUR_CLIENT_ID",
70
+ client_secret="YOUR_CLIENT_SECRET",
71
+ )
72
+ client.users.create(
73
+ organization_id="organization-123",
74
+ data=[
75
+ UserRequestDataUnion_User(
76
+ id="1234567890",
77
+ attributes=UserRequestAttributes(
78
+ zip_code="11238",
79
+ enrolled_rewards=["CARDLINKED"],
80
+ ),
81
+ )
82
+ ],
83
+ )
84
+ ```
85
+
86
+ ## Async Client
87
+
88
+ The SDK also exports an `async` client so that you can make non-blocking calls to our API. Note that if you are constructing an Async httpx client class to pass into this client, use `httpx.AsyncClient()` instead of `httpx.Client()` (e.g. for the `httpx_client` parameter of this client).
89
+
90
+ ```python
91
+ import asyncio
92
+
93
+ from kard import AsyncKardApi
94
+ from kard.users import UserRequestAttributes, UserRequestDataUnion_User
95
+
96
+ client = AsyncKardApi(
97
+ client_id="YOUR_CLIENT_ID",
98
+ client_secret="YOUR_CLIENT_SECRET",
99
+ )
100
+
101
+
102
+ async def main() -> None:
103
+ await client.users.create(
104
+ organization_id="organization-123",
105
+ data=[
106
+ UserRequestDataUnion_User(
107
+ id="1234567890",
108
+ attributes=UserRequestAttributes(
109
+ zip_code="11238",
110
+ enrolled_rewards=["CARDLINKED"],
111
+ ),
112
+ )
113
+ ],
114
+ )
115
+
116
+
117
+ asyncio.run(main())
118
+ ```
119
+
120
+ ## Exception Handling
121
+
122
+ When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
123
+ will be thrown.
124
+
125
+ ```python
126
+ from kard.core.api_error import ApiError
127
+
128
+ try:
129
+ client.users.create(...)
130
+ except ApiError as e:
131
+ print(e.status_code)
132
+ print(e.body)
133
+ ```
134
+
135
+ ## Oauth Token Override
136
+
137
+ This SDK supports two authentication methods: OAuth client credentials flow (automatic token management) or direct bearer token authentication. You can choose between these options when initializing the client:
138
+
139
+ ```python
140
+ from kard import KardApi
141
+
142
+ # Option 1: Direct bearer token (bypass OAuth flow)
143
+ client = KardApi(..., token="my-pre-generated-bearer-token")
144
+
145
+ from kard import KardApi
146
+
147
+ # Option 2: OAuth client credentials flow (automatic token management)
148
+ client = KardApi(
149
+ ..., client_id="your-client-id", client_secret="your-client-secret"
150
+ )
151
+ ```
152
+
153
+ ## Advanced
154
+
155
+ ### Access Raw Response Data
156
+
157
+ The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
158
+ The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
159
+
160
+ ```python
161
+ from kard import KardApi
162
+
163
+ client = KardApi(
164
+ ...,
165
+ )
166
+ response = client.users.with_raw_response.create(...)
167
+ print(response.headers) # access the response headers
168
+ print(response.data) # access the underlying object
169
+ ```
170
+
171
+ ### Retries
172
+
173
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
174
+ as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
175
+ retry limit (default: 2).
176
+
177
+ A request is deemed retryable when any of the following HTTP status codes is returned:
178
+
179
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
180
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
181
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
182
+
183
+ Use the `max_retries` request option to configure this behavior.
184
+
185
+ ```python
186
+ client.users.create(..., request_options={
187
+ "max_retries": 1
188
+ })
189
+ ```
190
+
191
+ ### Timeouts
192
+
193
+ The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
194
+
195
+ ```python
196
+
197
+ from kard import KardApi
198
+
199
+ client = KardApi(
200
+ ...,
201
+ timeout=20.0,
202
+ )
203
+
204
+
205
+ # Override timeout for a specific method
206
+ client.users.create(..., request_options={
207
+ "timeout_in_seconds": 1
208
+ })
209
+ ```
210
+
211
+ ### Custom Client
212
+
213
+ You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
214
+ and transports.
215
+
216
+ ```python
217
+ import httpx
218
+ from kard import KardApi
219
+
220
+ client = KardApi(
221
+ ...,
222
+ httpx_client=httpx.Client(
223
+ proxy="http://my.test.proxy.example.com",
224
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
225
+ ),
226
+ )
227
+ ```
228
+
229
+ ## Contributing
230
+
231
+ While we value open-source contributions to this SDK, this library is generated programmatically.
232
+ Additions made directly to this library would have to be moved over to our generation code,
233
+ otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
234
+ a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
235
+ an issue first to discuss with us!
236
+
237
+ On the other hand, contributions to the README are always very welcome!
238
+
@@ -0,0 +1,210 @@
1
+ # Kard Python Library
2
+
3
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FKardFinancial%2Fkard-python-sdk)
4
+ [![pypi](https://img.shields.io/pypi/v/kard-financial-sdk)](https://pypi.python.org/pypi/kard-financial-sdk)
5
+
6
+ The Kard Python library provides convenient access to the Kard APIs from Python.
7
+
8
+ ## Table of Contents
9
+
10
+ - [Installation](#installation)
11
+ - [Reference](#reference)
12
+ - [Usage](#usage)
13
+ - [Async Client](#async-client)
14
+ - [Exception Handling](#exception-handling)
15
+ - [Oauth Token Override](#oauth-token-override)
16
+ - [Advanced](#advanced)
17
+ - [Access Raw Response Data](#access-raw-response-data)
18
+ - [Retries](#retries)
19
+ - [Timeouts](#timeouts)
20
+ - [Custom Client](#custom-client)
21
+ - [Contributing](#contributing)
22
+
23
+ ## Installation
24
+
25
+ ```sh
26
+ pip install kard-financial-sdk
27
+ ```
28
+
29
+ ## Reference
30
+
31
+ A full reference for this library is available [here](https://github.com/KardFinancial/kard-python-sdk/blob/HEAD/./reference.md).
32
+
33
+ ## Usage
34
+
35
+ Instantiate and use the client with the following:
36
+
37
+ ```python
38
+ from kard import KardApi
39
+ from kard.users import UserRequestAttributes, UserRequestDataUnion_User
40
+
41
+ client = KardApi(
42
+ client_id="YOUR_CLIENT_ID",
43
+ client_secret="YOUR_CLIENT_SECRET",
44
+ )
45
+ client.users.create(
46
+ organization_id="organization-123",
47
+ data=[
48
+ UserRequestDataUnion_User(
49
+ id="1234567890",
50
+ attributes=UserRequestAttributes(
51
+ zip_code="11238",
52
+ enrolled_rewards=["CARDLINKED"],
53
+ ),
54
+ )
55
+ ],
56
+ )
57
+ ```
58
+
59
+ ## Async Client
60
+
61
+ The SDK also exports an `async` client so that you can make non-blocking calls to our API. Note that if you are constructing an Async httpx client class to pass into this client, use `httpx.AsyncClient()` instead of `httpx.Client()` (e.g. for the `httpx_client` parameter of this client).
62
+
63
+ ```python
64
+ import asyncio
65
+
66
+ from kard import AsyncKardApi
67
+ from kard.users import UserRequestAttributes, UserRequestDataUnion_User
68
+
69
+ client = AsyncKardApi(
70
+ client_id="YOUR_CLIENT_ID",
71
+ client_secret="YOUR_CLIENT_SECRET",
72
+ )
73
+
74
+
75
+ async def main() -> None:
76
+ await client.users.create(
77
+ organization_id="organization-123",
78
+ data=[
79
+ UserRequestDataUnion_User(
80
+ id="1234567890",
81
+ attributes=UserRequestAttributes(
82
+ zip_code="11238",
83
+ enrolled_rewards=["CARDLINKED"],
84
+ ),
85
+ )
86
+ ],
87
+ )
88
+
89
+
90
+ asyncio.run(main())
91
+ ```
92
+
93
+ ## Exception Handling
94
+
95
+ When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
96
+ will be thrown.
97
+
98
+ ```python
99
+ from kard.core.api_error import ApiError
100
+
101
+ try:
102
+ client.users.create(...)
103
+ except ApiError as e:
104
+ print(e.status_code)
105
+ print(e.body)
106
+ ```
107
+
108
+ ## Oauth Token Override
109
+
110
+ This SDK supports two authentication methods: OAuth client credentials flow (automatic token management) or direct bearer token authentication. You can choose between these options when initializing the client:
111
+
112
+ ```python
113
+ from kard import KardApi
114
+
115
+ # Option 1: Direct bearer token (bypass OAuth flow)
116
+ client = KardApi(..., token="my-pre-generated-bearer-token")
117
+
118
+ from kard import KardApi
119
+
120
+ # Option 2: OAuth client credentials flow (automatic token management)
121
+ client = KardApi(
122
+ ..., client_id="your-client-id", client_secret="your-client-secret"
123
+ )
124
+ ```
125
+
126
+ ## Advanced
127
+
128
+ ### Access Raw Response Data
129
+
130
+ The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
131
+ The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
132
+
133
+ ```python
134
+ from kard import KardApi
135
+
136
+ client = KardApi(
137
+ ...,
138
+ )
139
+ response = client.users.with_raw_response.create(...)
140
+ print(response.headers) # access the response headers
141
+ print(response.data) # access the underlying object
142
+ ```
143
+
144
+ ### Retries
145
+
146
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
147
+ as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
148
+ retry limit (default: 2).
149
+
150
+ A request is deemed retryable when any of the following HTTP status codes is returned:
151
+
152
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
153
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
154
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
155
+
156
+ Use the `max_retries` request option to configure this behavior.
157
+
158
+ ```python
159
+ client.users.create(..., request_options={
160
+ "max_retries": 1
161
+ })
162
+ ```
163
+
164
+ ### Timeouts
165
+
166
+ The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
167
+
168
+ ```python
169
+
170
+ from kard import KardApi
171
+
172
+ client = KardApi(
173
+ ...,
174
+ timeout=20.0,
175
+ )
176
+
177
+
178
+ # Override timeout for a specific method
179
+ client.users.create(..., request_options={
180
+ "timeout_in_seconds": 1
181
+ })
182
+ ```
183
+
184
+ ### Custom Client
185
+
186
+ You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
187
+ and transports.
188
+
189
+ ```python
190
+ import httpx
191
+ from kard import KardApi
192
+
193
+ client = KardApi(
194
+ ...,
195
+ httpx_client=httpx.Client(
196
+ proxy="http://my.test.proxy.example.com",
197
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
198
+ ),
199
+ )
200
+ ```
201
+
202
+ ## Contributing
203
+
204
+ While we value open-source contributions to this SDK, this library is generated programmatically.
205
+ Additions made directly to this library would have to be moved over to our generation code,
206
+ otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
207
+ a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
208
+ an issue first to discuss with us!
209
+
210
+ On the other hand, contributions to the README are always very welcome!
@@ -0,0 +1,86 @@
1
+ [project]
2
+ name = "kard-financial-sdk"
3
+ dynamic = ["version"]
4
+
5
+ [tool.poetry]
6
+ name = "kard-financial-sdk"
7
+ version = "0.0.82"
8
+ description = ""
9
+ readme = "README.md"
10
+ authors = []
11
+ keywords = []
12
+
13
+ classifiers = [
14
+ "Intended Audience :: Developers",
15
+ "Programming Language :: Python",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.8",
18
+ "Programming Language :: Python :: 3.9",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Operating System :: OS Independent",
23
+ "Operating System :: POSIX",
24
+ "Operating System :: MacOS",
25
+ "Operating System :: POSIX :: Linux",
26
+ "Operating System :: Microsoft :: Windows",
27
+ "Topic :: Software Development :: Libraries :: Python Modules",
28
+ "Typing :: Typed"
29
+ ]
30
+ packages = [
31
+ { include = "kard", from = "src"}
32
+ ]
33
+
34
+ [tool.poetry.urls]
35
+ Repository = 'https://github.com/KardFinancial/kard-python-sdk'
36
+
37
+ [tool.poetry.dependencies]
38
+ python = "^3.8"
39
+ httpx = ">=0.21.2"
40
+ pydantic = ">= 1.9.2"
41
+ pydantic-core = ">=2.18.2"
42
+ typing_extensions = ">= 4.0.0"
43
+
44
+ [tool.poetry.group.dev.dependencies]
45
+ mypy = "==1.13.0"
46
+ pytest = "^7.4.0"
47
+ pytest-asyncio = "^0.23.5"
48
+ pytest-xdist = "^3.6.1"
49
+ python-dateutil = "^2.9.0"
50
+ types-python-dateutil = "^2.9.0.20240316"
51
+ ruff = "==0.11.5"
52
+
53
+ [tool.pytest.ini_options]
54
+ testpaths = [ "tests" ]
55
+ asyncio_mode = "auto"
56
+
57
+ [tool.mypy]
58
+ plugins = ["pydantic.mypy"]
59
+
60
+ [tool.ruff]
61
+ line-length = 120
62
+
63
+ [tool.ruff.lint]
64
+ select = [
65
+ "E", # pycodestyle errors
66
+ "F", # pyflakes
67
+ "I", # isort
68
+ ]
69
+ ignore = [
70
+ "E402", # Module level import not at top of file
71
+ "E501", # Line too long
72
+ "E711", # Comparison to `None` should be `cond is not None`
73
+ "E712", # Avoid equality comparisons to `True`; use `if ...:` checks
74
+ "E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
75
+ "E722", # Do not use bare `except`
76
+ "E731", # Do not assign a `lambda` expression, use a `def`
77
+ "F821", # Undefined name
78
+ "F841" # Local variable ... is assigned to but never used
79
+ ]
80
+
81
+ [tool.ruff.lint.isort]
82
+ section-order = ["future", "standard-library", "third-party", "first-party"]
83
+
84
+ [build-system]
85
+ requires = ["poetry-core"]
86
+ build-backend = "poetry.core.masonry.api"