wp-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 (224) hide show
  1. wp_sdk-1.0.0/LICENSE +28 -0
  2. wp_sdk-1.0.0/MANIFEST.in +2 -0
  3. wp_sdk-1.0.0/PKG-INFO +137 -0
  4. wp_sdk-1.0.0/README.md +120 -0
  5. wp_sdk-1.0.0/pyproject.toml +25 -0
  6. wp_sdk-1.0.0/reportingsettlementresearchapi/__init__.py +13 -0
  7. wp_sdk-1.0.0/reportingsettlementresearchapi/api_helper.py +19 -0
  8. wp_sdk-1.0.0/reportingsettlementresearchapi/apis/__init__.py +11 -0
  9. wp_sdk-1.0.0/reportingsettlementresearchapi/apis/base_api.py +70 -0
  10. wp_sdk-1.0.0/reportingsettlementresearchapi/apis/settlement_batches_api.py +139 -0
  11. wp_sdk-1.0.0/reportingsettlementresearchapi/apis/settlement_daily_totals_api.py +89 -0
  12. wp_sdk-1.0.0/reportingsettlementresearchapi/apis/settlement_errors_api.py +147 -0
  13. wp_sdk-1.0.0/reportingsettlementresearchapi/apis/settlements_api.py +90 -0
  14. wp_sdk-1.0.0/reportingsettlementresearchapi/apis/transaction_status_api.py +81 -0
  15. wp_sdk-1.0.0/reportingsettlementresearchapi/apis/transaction_type_api.py +79 -0
  16. wp_sdk-1.0.0/reportingsettlementresearchapi/configuration.py +252 -0
  17. wp_sdk-1.0.0/reportingsettlementresearchapi/exceptions/__init__.py +13 -0
  18. wp_sdk-1.0.0/reportingsettlementresearchapi/exceptions/api_exception.py +36 -0
  19. wp_sdk-1.0.0/reportingsettlementresearchapi/exceptions/search_date_0_error_exception.py +79 -0
  20. wp_sdk-1.0.0/reportingsettlementresearchapi/exceptions/search_store_0_error_exception.py +79 -0
  21. wp_sdk-1.0.0/reportingsettlementresearchapi/exceptions/settlementerrors_pendingsettlementbatches_search_0_error_exception.py +80 -0
  22. wp_sdk-1.0.0/reportingsettlementresearchapi/exceptions/settlementerrors_settlementfileerrors_search_0_error_exception.py +80 -0
  23. wp_sdk-1.0.0/reportingsettlementresearchapi/exceptions/settlements_daily_totals_search_0_error_exception.py +80 -0
  24. wp_sdk-1.0.0/reportingsettlementresearchapi/exceptions/settlements_search_0_error_exception.py +79 -0
  25. wp_sdk-1.0.0/reportingsettlementresearchapi/exceptions/transaction_statuses_0_error_exception.py +79 -0
  26. wp_sdk-1.0.0/reportingsettlementresearchapi/exceptions/transaction_types_0_error_exception.py +79 -0
  27. wp_sdk-1.0.0/reportingsettlementresearchapi/http/__init__.py +11 -0
  28. wp_sdk-1.0.0/reportingsettlementresearchapi/http/api_response.py +67 -0
  29. wp_sdk-1.0.0/reportingsettlementresearchapi/http/auth/__init__.py +5 -0
  30. wp_sdk-1.0.0/reportingsettlementresearchapi/http/auth/custom_header_authentication.py +101 -0
  31. wp_sdk-1.0.0/reportingsettlementresearchapi/http/http_call_back.py +20 -0
  32. wp_sdk-1.0.0/reportingsettlementresearchapi/http/http_client_provider.py +23 -0
  33. wp_sdk-1.0.0/reportingsettlementresearchapi/http/http_method_enum.py +25 -0
  34. wp_sdk-1.0.0/reportingsettlementresearchapi/http/http_request.py +55 -0
  35. wp_sdk-1.0.0/reportingsettlementresearchapi/http/http_response.py +45 -0
  36. wp_sdk-1.0.0/reportingsettlementresearchapi/http/proxy_settings.py +50 -0
  37. wp_sdk-1.0.0/reportingsettlementresearchapi/logging/__init__.py +6 -0
  38. wp_sdk-1.0.0/reportingsettlementresearchapi/logging/configuration/__init__.py +5 -0
  39. wp_sdk-1.0.0/reportingsettlementresearchapi/logging/configuration/api_logging_configuration.py +398 -0
  40. wp_sdk-1.0.0/reportingsettlementresearchapi/logging/sdk_logger.py +28 -0
  41. wp_sdk-1.0.0/reportingsettlementresearchapi/models/__init__.py +178 -0
  42. wp_sdk-1.0.0/reportingsettlementresearchapi/models/account_name_inquiry.py +151 -0
  43. wp_sdk-1.0.0/reportingsettlementresearchapi/models/aci.py +151 -0
  44. wp_sdk-1.0.0/reportingsettlementresearchapi/models/additional_details.py +224 -0
  45. wp_sdk-1.0.0/reportingsettlementresearchapi/models/authorization_currency.py +151 -0
  46. wp_sdk-1.0.0/reportingsettlementresearchapi/models/authorization_source.py +151 -0
  47. wp_sdk-1.0.0/reportingsettlementresearchapi/models/avs_response_code.py +151 -0
  48. wp_sdk-1.0.0/reportingsettlementresearchapi/models/bank_card_rej_real_time_transaction.py +332 -0
  49. wp_sdk-1.0.0/reportingsettlementresearchapi/models/bank_card_rejects_search_request.py +287 -0
  50. wp_sdk-1.0.0/reportingsettlementresearchapi/models/bank_card_rejects_search_response.py +142 -0
  51. wp_sdk-1.0.0/reportingsettlementresearchapi/models/batch_card_type.py +51 -0
  52. wp_sdk-1.0.0/reportingsettlementresearchapi/models/batch_card_type_1.py +51 -0
  53. wp_sdk-1.0.0/reportingsettlementresearchapi/models/batch_hold_status.py +151 -0
  54. wp_sdk-1.0.0/reportingsettlementresearchapi/models/billing_indicator.py +151 -0
  55. wp_sdk-1.0.0/reportingsettlementresearchapi/models/card_account_term.py +151 -0
  56. wp_sdk-1.0.0/reportingsettlementresearchapi/models/card_details.py +711 -0
  57. wp_sdk-1.0.0/reportingsettlementresearchapi/models/card_details_2.py +709 -0
  58. wp_sdk-1.0.0/reportingsettlementresearchapi/models/card_network.py +151 -0
  59. wp_sdk-1.0.0/reportingsettlementresearchapi/models/card_networks.py +108 -0
  60. wp_sdk-1.0.0/reportingsettlementresearchapi/models/card_product_results.py +151 -0
  61. wp_sdk-1.0.0/reportingsettlementresearchapi/models/card_product_type.py +151 -0
  62. wp_sdk-1.0.0/reportingsettlementresearchapi/models/card_types.py +57 -0
  63. wp_sdk-1.0.0/reportingsettlementresearchapi/models/card_types_1.py +51 -0
  64. wp_sdk-1.0.0/reportingsettlementresearchapi/models/cardholder_id.py +151 -0
  65. wp_sdk-1.0.0/reportingsettlementresearchapi/models/code_and_description.py +153 -0
  66. wp_sdk-1.0.0/reportingsettlementresearchapi/models/code_and_description_1.py +130 -0
  67. wp_sdk-1.0.0/reportingsettlementresearchapi/models/country_of_origin.py +151 -0
  68. wp_sdk-1.0.0/reportingsettlementresearchapi/models/credit_additional_details.py +226 -0
  69. wp_sdk-1.0.0/reportingsettlementresearchapi/models/credit_card_details.py +416 -0
  70. wp_sdk-1.0.0/reportingsettlementresearchapi/models/credit_interchange_details.py +389 -0
  71. wp_sdk-1.0.0/reportingsettlementresearchapi/models/credit_merchant_hierarchy_details.py +183 -0
  72. wp_sdk-1.0.0/reportingsettlementresearchapi/models/credit_other_services_details.py +264 -0
  73. wp_sdk-1.0.0/reportingsettlementresearchapi/models/credit_premium_payback_details.py +199 -0
  74. wp_sdk-1.0.0/reportingsettlementresearchapi/models/credit_transaction_details.py +845 -0
  75. wp_sdk-1.0.0/reportingsettlementresearchapi/models/customer_fields.py +153 -0
  76. wp_sdk-1.0.0/reportingsettlementresearchapi/models/customer_fields_2.py +151 -0
  77. wp_sdk-1.0.0/reportingsettlementresearchapi/models/cvv_2_presence_indicator.py +151 -0
  78. wp_sdk-1.0.0/reportingsettlementresearchapi/models/cvv_2_response_code.py +151 -0
  79. wp_sdk-1.0.0/reportingsettlementresearchapi/models/date_range_1.py +128 -0
  80. wp_sdk-1.0.0/reportingsettlementresearchapi/models/date_type.py +47 -0
  81. wp_sdk-1.0.0/reportingsettlementresearchapi/models/daterange.py +130 -0
  82. wp_sdk-1.0.0/reportingsettlementresearchapi/models/emv_details.py +181 -0
  83. wp_sdk-1.0.0/reportingsettlementresearchapi/models/emv_details_2.py +179 -0
  84. wp_sdk-1.0.0/reportingsettlementresearchapi/models/entity.py +157 -0
  85. wp_sdk-1.0.0/reportingsettlementresearchapi/models/entry_mode.py +151 -0
  86. wp_sdk-1.0.0/reportingsettlementresearchapi/models/error.py +153 -0
  87. wp_sdk-1.0.0/reportingsettlementresearchapi/models/field_name.py +90 -0
  88. wp_sdk-1.0.0/reportingsettlementresearchapi/models/field_name_1.py +72 -0
  89. wp_sdk-1.0.0/reportingsettlementresearchapi/models/field_name_2.py +63 -0
  90. wp_sdk-1.0.0/reportingsettlementresearchapi/models/field_name_3.py +63 -0
  91. wp_sdk-1.0.0/reportingsettlementresearchapi/models/field_name_4.py +66 -0
  92. wp_sdk-1.0.0/reportingsettlementresearchapi/models/field_name_5.py +57 -0
  93. wp_sdk-1.0.0/reportingsettlementresearchapi/models/fraud_coverage_type.py +151 -0
  94. wp_sdk-1.0.0/reportingsettlementresearchapi/models/fraud_detection_stage.py +151 -0
  95. wp_sdk-1.0.0/reportingsettlementresearchapi/models/fraud_fields.py +159 -0
  96. wp_sdk-1.0.0/reportingsettlementresearchapi/models/fraud_fields_2.py +157 -0
  97. wp_sdk-1.0.0/reportingsettlementresearchapi/models/fraud_fields_fraud_score.py +131 -0
  98. wp_sdk-1.0.0/reportingsettlementresearchapi/models/fraud_response_code.py +59 -0
  99. wp_sdk-1.0.0/reportingsettlementresearchapi/models/fraud_response_code_2.py +151 -0
  100. wp_sdk-1.0.0/reportingsettlementresearchapi/models/fraud_rule_result.py +56 -0
  101. wp_sdk-1.0.0/reportingsettlementresearchapi/models/fraud_rule_result_2.py +151 -0
  102. wp_sdk-1.0.0/reportingsettlementresearchapi/models/fraud_score.py +128 -0
  103. wp_sdk-1.0.0/reportingsettlementresearchapi/models/fraud_sight_details.py +212 -0
  104. wp_sdk-1.0.0/reportingsettlementresearchapi/models/fraud_sight_details_2.py +210 -0
  105. wp_sdk-1.0.0/reportingsettlementresearchapi/models/funded_net_settle.py +180 -0
  106. wp_sdk-1.0.0/reportingsettlementresearchapi/models/funded_net_settle_2.py +178 -0
  107. wp_sdk-1.0.0/reportingsettlementresearchapi/models/hierarchy.py +155 -0
  108. wp_sdk-1.0.0/reportingsettlementresearchapi/models/hierarchy_1.py +155 -0
  109. wp_sdk-1.0.0/reportingsettlementresearchapi/models/hierarchy_10.py +233 -0
  110. wp_sdk-1.0.0/reportingsettlementresearchapi/models/hierarchy_2.py +128 -0
  111. wp_sdk-1.0.0/reportingsettlementresearchapi/models/hierarchy_4.py +181 -0
  112. wp_sdk-1.0.0/reportingsettlementresearchapi/models/hierarchy_6.py +155 -0
  113. wp_sdk-1.0.0/reportingsettlementresearchapi/models/hierarchy_7.py +211 -0
  114. wp_sdk-1.0.0/reportingsettlementresearchapi/models/hierarchy_9.py +187 -0
  115. wp_sdk-1.0.0/reportingsettlementresearchapi/models/hierarchy_level.py +157 -0
  116. wp_sdk-1.0.0/reportingsettlementresearchapi/models/hierarchy_levels.py +157 -0
  117. wp_sdk-1.0.0/reportingsettlementresearchapi/models/interchange_code.py +128 -0
  118. wp_sdk-1.0.0/reportingsettlementresearchapi/models/interchange_data.py +179 -0
  119. wp_sdk-1.0.0/reportingsettlementresearchapi/models/interchange_details.py +387 -0
  120. wp_sdk-1.0.0/reportingsettlementresearchapi/models/interchange_details_1.py +177 -0
  121. wp_sdk-1.0.0/reportingsettlementresearchapi/models/international_indicator.py +151 -0
  122. wp_sdk-1.0.0/reportingsettlementresearchapi/models/level.py +54 -0
  123. wp_sdk-1.0.0/reportingsettlementresearchapi/models/level_1.py +57 -0
  124. wp_sdk-1.0.0/reportingsettlementresearchapi/models/level_2.py +47 -0
  125. wp_sdk-1.0.0/reportingsettlementresearchapi/models/level_3.py +71 -0
  126. wp_sdk-1.0.0/reportingsettlementresearchapi/models/level_indicator.py +151 -0
  127. wp_sdk-1.0.0/reportingsettlementresearchapi/models/location_details.py +361 -0
  128. wp_sdk-1.0.0/reportingsettlementresearchapi/models/location_details_2.py +359 -0
  129. wp_sdk-1.0.0/reportingsettlementresearchapi/models/mail_phone_indicator.py +151 -0
  130. wp_sdk-1.0.0/reportingsettlementresearchapi/models/market_specific_data_indicator.py +151 -0
  131. wp_sdk-1.0.0/reportingsettlementresearchapi/models/mastercard_tic_indicator.py +151 -0
  132. wp_sdk-1.0.0/reportingsettlementresearchapi/models/merchant_category.py +151 -0
  133. wp_sdk-1.0.0/reportingsettlementresearchapi/models/merchant_hierarchy.py +189 -0
  134. wp_sdk-1.0.0/reportingsettlementresearchapi/models/merchant_hierarchy_detail.py +213 -0
  135. wp_sdk-1.0.0/reportingsettlementresearchapi/models/merchant_info.py +235 -0
  136. wp_sdk-1.0.0/reportingsettlementresearchapi/models/network_group.py +151 -0
  137. wp_sdk-1.0.0/reportingsettlementresearchapi/models/order_by.py +47 -0
  138. wp_sdk-1.0.0/reportingsettlementresearchapi/models/order_by_for_settled_daily_totals.py +130 -0
  139. wp_sdk-1.0.0/reportingsettlementresearchapi/models/order_by_for_settled_transactions_type.py +130 -0
  140. wp_sdk-1.0.0/reportingsettlementresearchapi/models/origin_type.py +151 -0
  141. wp_sdk-1.0.0/reportingsettlementresearchapi/models/other_services.py +319 -0
  142. wp_sdk-1.0.0/reportingsettlementresearchapi/models/other_services_2.py +317 -0
  143. wp_sdk-1.0.0/reportingsettlementresearchapi/models/pagination.py +128 -0
  144. wp_sdk-1.0.0/reportingsettlementresearchapi/models/pagination_4.py +173 -0
  145. wp_sdk-1.0.0/reportingsettlementresearchapi/models/pagination_response.py +175 -0
  146. wp_sdk-1.0.0/reportingsettlementresearchapi/models/paginationtype.py +130 -0
  147. wp_sdk-1.0.0/reportingsettlementresearchapi/models/payment_gateway_details.py +203 -0
  148. wp_sdk-1.0.0/reportingsettlementresearchapi/models/payment_gateway_details_1.py +201 -0
  149. wp_sdk-1.0.0/reportingsettlementresearchapi/models/pin_less.py +151 -0
  150. wp_sdk-1.0.0/reportingsettlementresearchapi/models/pos_condition_code.py +151 -0
  151. wp_sdk-1.0.0/reportingsettlementresearchapi/models/premium_payback.py +197 -0
  152. wp_sdk-1.0.0/reportingsettlementresearchapi/models/processdaterange.py +130 -0
  153. wp_sdk-1.0.0/reportingsettlementresearchapi/models/rejection_reason.py +151 -0
  154. wp_sdk-1.0.0/reportingsettlementresearchapi/models/search_auth_transactions.py +414 -0
  155. wp_sdk-1.0.0/reportingsettlementresearchapi/models/search_daily_totals.py +143 -0
  156. wp_sdk-1.0.0/reportingsettlementresearchapi/models/search_daily_totals_details.py +318 -0
  157. wp_sdk-1.0.0/reportingsettlementresearchapi/models/search_date_request.py +191 -0
  158. wp_sdk-1.0.0/reportingsettlementresearchapi/models/search_date_response.py +140 -0
  159. wp_sdk-1.0.0/reportingsettlementresearchapi/models/search_requesttransaction_amount_range.py +157 -0
  160. wp_sdk-1.0.0/reportingsettlementresearchapi/models/search_settle_daily_totals_request.py +231 -0
  161. wp_sdk-1.0.0/reportingsettlementresearchapi/models/search_settle_transactions_request.py +469 -0
  162. wp_sdk-1.0.0/reportingsettlementresearchapi/models/search_store_request.py +191 -0
  163. wp_sdk-1.0.0/reportingsettlementresearchapi/models/search_store_response.py +140 -0
  164. wp_sdk-1.0.0/reportingsettlementresearchapi/models/search_transaction_details_response.py +142 -0
  165. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_batches_date_request.py +193 -0
  166. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_batches_date_response.py +142 -0
  167. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_batches_entity.py +130 -0
  168. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_batches_hierarchy.py +183 -0
  169. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_batches_sort_store.py +130 -0
  170. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_batches_sortbankcarddetails.py +130 -0
  171. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_batches_store_request.py +193 -0
  172. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_batches_store_response.py +142 -0
  173. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_batches_transaction_date.py +369 -0
  174. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_batches_transaction_store.py +370 -0
  175. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_rej_real_time_transaction.py +280 -0
  176. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_rejects_search_request.py +170 -0
  177. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlement_rejects_search_response.py +142 -0
  178. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlementerrors_pendingsettlementbatches_search_request.py +288 -0
  179. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlementerrors_pendingsettlementbatches_search_response.py +143 -0
  180. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlementerrors_settlementfileerrors_search_request.py +169 -0
  181. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlementerrors_settlementfileerrors_search_response.py +141 -0
  182. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlements_daily_totals_search_request.py +229 -0
  183. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlements_daily_totals_search_response.py +140 -0
  184. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlements_search_request.py +467 -0
  185. wp_sdk-1.0.0/reportingsettlementresearchapi/models/settlements_search_response.py +140 -0
  186. wp_sdk-1.0.0/reportingsettlementresearchapi/models/signature_capabilities_indicator.py +151 -0
  187. wp_sdk-1.0.0/reportingsettlementresearchapi/models/signature_compression.py +151 -0
  188. wp_sdk-1.0.0/reportingsettlementresearchapi/models/signature_pen.py +151 -0
  189. wp_sdk-1.0.0/reportingsettlementresearchapi/models/signify_details.py +162 -0
  190. wp_sdk-1.0.0/reportingsettlementresearchapi/models/signifyd_detail.py +164 -0
  191. wp_sdk-1.0.0/reportingsettlementresearchapi/models/sort_results_by.py +128 -0
  192. wp_sdk-1.0.0/reportingsettlementresearchapi/models/sort_results_by_1.py +128 -0
  193. wp_sdk-1.0.0/reportingsettlementresearchapi/models/sort_results_by_2.py +128 -0
  194. wp_sdk-1.0.0/reportingsettlementresearchapi/models/sort_results_by_3.py +128 -0
  195. wp_sdk-1.0.0/reportingsettlementresearchapi/models/sort_results_by_4.py +128 -0
  196. wp_sdk-1.0.0/reportingsettlementresearchapi/models/sort_results_by_5.py +128 -0
  197. wp_sdk-1.0.0/reportingsettlementresearchapi/models/sortbankcarddetails.py +130 -0
  198. wp_sdk-1.0.0/reportingsettlementresearchapi/models/sortsettlementfiledetails.py +130 -0
  199. wp_sdk-1.0.0/reportingsettlementresearchapi/models/stand_in_indicator.py +151 -0
  200. wp_sdk-1.0.0/reportingsettlementresearchapi/models/stand_in_level.py +151 -0
  201. wp_sdk-1.0.0/reportingsettlementresearchapi/models/surcharge_reason.py +128 -0
  202. wp_sdk-1.0.0/reportingsettlementresearchapi/models/terminal.py +178 -0
  203. wp_sdk-1.0.0/reportingsettlementresearchapi/models/terminal_capability.py +151 -0
  204. wp_sdk-1.0.0/reportingsettlementresearchapi/models/terminal_details.py +180 -0
  205. wp_sdk-1.0.0/reportingsettlementresearchapi/models/transaction_amount_range.py +155 -0
  206. wp_sdk-1.0.0/reportingsettlementresearchapi/models/transaction_details.py +1435 -0
  207. wp_sdk-1.0.0/reportingsettlementresearchapi/models/transaction_details_2.py +1433 -0
  208. wp_sdk-1.0.0/reportingsettlementresearchapi/models/transaction_status.py +151 -0
  209. wp_sdk-1.0.0/reportingsettlementresearchapi/models/transaction_status_code.py +153 -0
  210. wp_sdk-1.0.0/reportingsettlementresearchapi/models/transaction_status_code_1.py +792 -0
  211. wp_sdk-1.0.0/reportingsettlementresearchapi/models/transaction_summary.py +317 -0
  212. wp_sdk-1.0.0/reportingsettlementresearchapi/models/transaction_summary_data.py +319 -0
  213. wp_sdk-1.0.0/reportingsettlementresearchapi/models/transaction_type.py +151 -0
  214. wp_sdk-1.0.0/reportingsettlementresearchapi/models/transaction_type_code.py +153 -0
  215. wp_sdk-1.0.0/reportingsettlementresearchapi/models/transaction_type_code_1.py +186 -0
  216. wp_sdk-1.0.0/reportingsettlementresearchapi/reportingsettlementresearchapi_client.py +117 -0
  217. wp_sdk-1.0.0/reportingsettlementresearchapi/utilities/__init__.py +6 -0
  218. wp_sdk-1.0.0/reportingsettlementresearchapi/utilities/file_wrapper.py +45 -0
  219. wp_sdk-1.0.0/setup.cfg +8 -0
  220. wp_sdk-1.0.0/wp_sdk.egg-info/PKG-INFO +137 -0
  221. wp_sdk-1.0.0/wp_sdk.egg-info/SOURCES.txt +223 -0
  222. wp_sdk-1.0.0/wp_sdk.egg-info/dependency_links.txt +1 -0
  223. wp_sdk-1.0.0/wp_sdk.egg-info/requires.txt +7 -0
  224. wp_sdk-1.0.0/wp_sdk.egg-info/top_level.txt +3 -0
wp_sdk-1.0.0/LICENSE ADDED
@@ -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
wp_sdk-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,137 @@
1
+ Metadata-Version: 2.4
2
+ Name: wp-sdk
3
+ Version: 1.0.0
4
+ Summary: SDKs for WP
5
+ Author-email: Muhammad Rafay <muhammad.rafay@apimatic.io>
6
+ Project-URL: Documentation, https://www.worldpay.com/en
7
+ Requires-Python: >=3.7
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: apimatic-core>=0.2.24,~=0.2.0
11
+ Requires-Dist: apimatic-core-interfaces>=0.1.8,~=0.1.0
12
+ Requires-Dist: apimatic-requests-client-adapter>=0.1.10,~=0.1.0
13
+ Requires-Dist: python-dotenv<2.0,>=0.21
14
+ Provides-Extra: testutils
15
+ Requires-Dist: pytest>=7.2.2; extra == "testutils"
16
+ Dynamic: license-file
17
+
18
+
19
+ # Getting Started with Reporting: Settlement Research API
20
+
21
+ ## Introduction
22
+
23
+ API used to search and retrieve settled transactions. This API is used to search settled transactions and retrieve individual transaction details based on card types.
24
+
25
+ ## Install the Package
26
+
27
+ The package is compatible with Python versions `3.7+`.
28
+ Install the package from PyPi using the following pip command:
29
+
30
+ ```bash
31
+ pip install wp-sdk==1.0.0
32
+ ```
33
+
34
+ You can also view the package at:
35
+ https://pypi.python.org/pypi/wp-sdk/1.0.0
36
+
37
+ ## Initialize the API Client
38
+
39
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/client.md)
40
+
41
+ The following parameters are configurable for the API Client:
42
+
43
+ | Parameter | Type | Description |
44
+ | --- | --- | --- |
45
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
46
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
47
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
48
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 60** |
49
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
50
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
51
+ | 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]** |
52
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT"]** |
53
+ | proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
54
+ | logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/logging-configuration.md) | The SDK logging configuration for API calls |
55
+ | custom_header_authentication_credentials | [`CustomHeaderAuthenticationCredentials`](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/auth/custom-header-signature.md) | The credential object for Custom Header Signature |
56
+
57
+ The API client can be initialized as follows:
58
+
59
+ ### Code-Based Client Initialization
60
+
61
+ ```python
62
+ import logging
63
+
64
+ from reportingsettlementresearchapi.configuration import Environment
65
+ from reportingsettlementresearchapi.http.auth.custom_header_authentication import CustomHeaderAuthenticationCredentials
66
+ from reportingsettlementresearchapi.logging.configuration.api_logging_configuration import LoggingConfiguration
67
+ from reportingsettlementresearchapi.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
68
+ from reportingsettlementresearchapi.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
69
+ from reportingsettlementresearchapi.reportingsettlementresearchapi_client import ReportingsettlementresearchapiClient
70
+
71
+ client = ReportingsettlementresearchapiClient(
72
+ custom_header_authentication_credentials=CustomHeaderAuthenticationCredentials(
73
+ authorization='Authorization'
74
+ ),
75
+ environment=Environment.PRODUCTION,
76
+ logging_configuration=LoggingConfiguration(
77
+ log_level=logging.INFO,
78
+ request_logging_config=RequestLoggingConfiguration(
79
+ log_body=True
80
+ ),
81
+ response_logging_config=ResponseLoggingConfiguration(
82
+ log_headers=True
83
+ )
84
+ )
85
+ )
86
+ ```
87
+
88
+ ### Environment-Based Client Initialization
89
+
90
+ ```python
91
+ from reportingsettlementresearchapi.reportingsettlementresearchapi_client import ReportingsettlementresearchapiClient
92
+
93
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
94
+ client = ReportingsettlementresearchapiClient.from_environment(dotenv_path='/path/to/.env')
95
+ ```
96
+
97
+ See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md) section for details.
98
+
99
+ ## Authorization
100
+
101
+ This API uses the following authentication schemes.
102
+
103
+ * [`api_key (Custom Header Signature)`](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/auth/custom-header-signature.md)
104
+
105
+ ## List of APIs
106
+
107
+ * [Settlement Errors](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/controllers/settlement-errors.md)
108
+ * [Settlement Daily Totals](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/controllers/settlement-daily-totals.md)
109
+ * [Settlement Batches](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/controllers/settlement-batches.md)
110
+ * [Transaction Type](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/controllers/transaction-type.md)
111
+ * [Transaction Status](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/controllers/transaction-status.md)
112
+ * [Settlements](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/controllers/settlements.md)
113
+
114
+ ## SDK Infrastructure
115
+
116
+ ### Configuration
117
+
118
+ * [ProxySettings](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/proxy-settings.md)
119
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
120
+ * [AbstractLogger](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/abstract-logger.md)
121
+ * [LoggingConfiguration](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/logging-configuration.md)
122
+ * [RequestLoggingConfiguration](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/request-logging-configuration.md)
123
+ * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/response-logging-configuration.md)
124
+
125
+ ### HTTP
126
+
127
+ * [HttpResponse](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/http-response.md)
128
+ * [HttpRequest](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/http-request.md)
129
+
130
+ ### Utilities
131
+
132
+ * [ApiResponse](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/api-response.md)
133
+ * [ApiHelper](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/api-helper.md)
134
+ * [HttpDateTime](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/http-date-time.md)
135
+ * [RFC3339DateTime](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/rfc3339-date-time.md)
136
+ * [UnixDateTime](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/unix-date-time.md)
137
+
wp_sdk-1.0.0/README.md ADDED
@@ -0,0 +1,120 @@
1
+
2
+ # Getting Started with Reporting: Settlement Research API
3
+
4
+ ## Introduction
5
+
6
+ API used to search and retrieve settled transactions. This API is used to search settled transactions and retrieve individual transaction details based on card types.
7
+
8
+ ## Install the Package
9
+
10
+ The package is compatible with Python versions `3.7+`.
11
+ Install the package from PyPi using the following pip command:
12
+
13
+ ```bash
14
+ pip install wp-sdk==1.0.0
15
+ ```
16
+
17
+ You can also view the package at:
18
+ https://pypi.python.org/pypi/wp-sdk/1.0.0
19
+
20
+ ## Initialize the API Client
21
+
22
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/client.md)
23
+
24
+ The following parameters are configurable for the API Client:
25
+
26
+ | Parameter | Type | Description |
27
+ | --- | --- | --- |
28
+ | http_client_instance | `Union[Session, HttpClientProvider]` | The Http Client passed from the sdk user for making requests |
29
+ | override_http_client_configuration | `bool` | The value which determines to override properties of the passed Http Client from the sdk user |
30
+ | http_call_back | `HttpCallBack` | The callback value that is invoked before and after an HTTP call is made to an endpoint |
31
+ | timeout | `float` | The value to use for connection timeout. <br> **Default: 60** |
32
+ | max_retries | `int` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
33
+ | backoff_factor | `float` | A backoff factor to apply between attempts after the second try. <br> **Default: 2** |
34
+ | 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]** |
35
+ | retry_methods | `Array of string` | The http methods on which retry is to be done. <br> **Default: ["GET", "PUT"]** |
36
+ | proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
37
+ | logging_configuration | [`LoggingConfiguration`](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/logging-configuration.md) | The SDK logging configuration for API calls |
38
+ | custom_header_authentication_credentials | [`CustomHeaderAuthenticationCredentials`](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/auth/custom-header-signature.md) | The credential object for Custom Header Signature |
39
+
40
+ The API client can be initialized as follows:
41
+
42
+ ### Code-Based Client Initialization
43
+
44
+ ```python
45
+ import logging
46
+
47
+ from reportingsettlementresearchapi.configuration import Environment
48
+ from reportingsettlementresearchapi.http.auth.custom_header_authentication import CustomHeaderAuthenticationCredentials
49
+ from reportingsettlementresearchapi.logging.configuration.api_logging_configuration import LoggingConfiguration
50
+ from reportingsettlementresearchapi.logging.configuration.api_logging_configuration import RequestLoggingConfiguration
51
+ from reportingsettlementresearchapi.logging.configuration.api_logging_configuration import ResponseLoggingConfiguration
52
+ from reportingsettlementresearchapi.reportingsettlementresearchapi_client import ReportingsettlementresearchapiClient
53
+
54
+ client = ReportingsettlementresearchapiClient(
55
+ custom_header_authentication_credentials=CustomHeaderAuthenticationCredentials(
56
+ authorization='Authorization'
57
+ ),
58
+ environment=Environment.PRODUCTION,
59
+ logging_configuration=LoggingConfiguration(
60
+ log_level=logging.INFO,
61
+ request_logging_config=RequestLoggingConfiguration(
62
+ log_body=True
63
+ ),
64
+ response_logging_config=ResponseLoggingConfiguration(
65
+ log_headers=True
66
+ )
67
+ )
68
+ )
69
+ ```
70
+
71
+ ### Environment-Based Client Initialization
72
+
73
+ ```python
74
+ from reportingsettlementresearchapi.reportingsettlementresearchapi_client import ReportingsettlementresearchapiClient
75
+
76
+ # Specify the path to your .env file if it’s located outside the project’s root directory.
77
+ client = ReportingsettlementresearchapiClient.from_environment(dotenv_path='/path/to/.env')
78
+ ```
79
+
80
+ See the [Environment-Based Client Initialization](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md) section for details.
81
+
82
+ ## Authorization
83
+
84
+ This API uses the following authentication schemes.
85
+
86
+ * [`api_key (Custom Header Signature)`](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/auth/custom-header-signature.md)
87
+
88
+ ## List of APIs
89
+
90
+ * [Settlement Errors](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/controllers/settlement-errors.md)
91
+ * [Settlement Daily Totals](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/controllers/settlement-daily-totals.md)
92
+ * [Settlement Batches](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/controllers/settlement-batches.md)
93
+ * [Transaction Type](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/controllers/transaction-type.md)
94
+ * [Transaction Status](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/controllers/transaction-status.md)
95
+ * [Settlements](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/controllers/settlements.md)
96
+
97
+ ## SDK Infrastructure
98
+
99
+ ### Configuration
100
+
101
+ * [ProxySettings](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/proxy-settings.md)
102
+ * [Environment-Based Client Initialization](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/environment-based-client-initialization.md)
103
+ * [AbstractLogger](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/abstract-logger.md)
104
+ * [LoggingConfiguration](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/logging-configuration.md)
105
+ * [RequestLoggingConfiguration](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/request-logging-configuration.md)
106
+ * [ResponseLoggingConfiguration](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/response-logging-configuration.md)
107
+
108
+ ### HTTP
109
+
110
+ * [HttpResponse](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/http-response.md)
111
+ * [HttpRequest](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/http-request.md)
112
+
113
+ ### Utilities
114
+
115
+ * [ApiResponse](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/api-response.md)
116
+ * [ApiHelper](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/api-helper.md)
117
+ * [HttpDateTime](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/http-date-time.md)
118
+ * [RFC3339DateTime](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/rfc3339-date-time.md)
119
+ * [UnixDateTime](https://www.github.com/sdks-io/wp-python-sdk/tree/1.0.0/doc/unix-date-time.md)
120
+
@@ -0,0 +1,25 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+ [project]
5
+ name = "wp-sdk"
6
+ description = "SDKs for WP"
7
+ version = "1.0.0"
8
+ readme = "README.md"
9
+ keywords = []
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 = "Muhammad Rafay"
15
+ email = "muhammad.rafay@apimatic.io"
16
+
17
+ [project.urls]
18
+ Documentation = "https://www.worldpay.com/en"
19
+ [project.optional-dependencies]
20
+ testutils = ["pytest>=7.2.2"]
21
+ [tool]
22
+ [tool.setuptools]
23
+ [tool.setuptools.packages]
24
+ [tool.setuptools.packages.find]
25
+ exclude = ["tests", "tests.*"]
@@ -0,0 +1,13 @@
1
+ # ruff: noqa: D104 | Missing docstring in public package
2
+ # ruff: noqa: RUF022 | `__all__` is not sorted
3
+ __all__ = [
4
+ "api_helper",
5
+ "apis",
6
+ "configuration",
7
+ "exceptions",
8
+ "http",
9
+ "logging",
10
+ "models",
11
+ "reportingsettlementresearchapi_client",
12
+ "utilities",
13
+ ]
@@ -0,0 +1,19 @@
1
+ """
2
+ reportingsettlementresearchapi
3
+
4
+ This file was automatically generated by APIMATIC v3.0 (
5
+ https://www.apimatic.io ).
6
+ """
7
+
8
+ from apimatic_core.utilities.api_helper import ApiHelper as CoreApiHelper
9
+
10
+
11
+ class APIHelper(CoreApiHelper):
12
+ """
13
+ A Helper Class for various functions associated with API Calls.
14
+
15
+ This class contains static methods for operations that need to be
16
+ performed during API requests. All of the methods inside this class are
17
+ static methods, there is no need to ever initialise an instance of this
18
+ class.
19
+ """
@@ -0,0 +1,11 @@
1
+ # ruff: noqa: D104 | Missing docstring in public package
2
+ # ruff: noqa: RUF022 | `__all__` is not sorted
3
+ __all__ = [
4
+ "base_api",
5
+ "settlement_batches_api",
6
+ "settlement_daily_totals_api",
7
+ "settlement_errors_api",
8
+ "settlements_api",
9
+ "transaction_status_api",
10
+ "transaction_type_api",
11
+ ]
@@ -0,0 +1,70 @@
1
+ """reportingsettlementresearchapi.
2
+
3
+ This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
4
+ """
5
+
6
+ import platform
7
+
8
+ from apimatic_core.api_call import ApiCall
9
+ from apimatic_core.types.error_case import ErrorCase
10
+
11
+ from reportingsettlementresearchapi.exceptions.api_exception import (
12
+ ApiException,
13
+ )
14
+
15
+
16
+ class BaseApi(object):
17
+ """All controllers inherit from this base class.
18
+
19
+ Attributes:
20
+ config (Configuration): The HttpClient which a specific controller
21
+ instance will use. By default all the controller objects share
22
+ the same HttpClient. A user can use his own custom HttpClient
23
+ as well.
24
+ http_call_back (HttpCallBack): An object which holds call back
25
+ methods to be called before and after the execution of an HttpRequest.
26
+ new_api_call_builder (APICall): Returns the API Call builder instance.
27
+
28
+ """
29
+
30
+ @staticmethod
31
+ def user_agent():
32
+ """Return UserAgent value."""
33
+ return "Python SDK, Version: 1.0.0, on OS {os-info}"
34
+
35
+ @staticmethod
36
+ def user_agent_parameters():
37
+ """Return UserAgentParameters value."""
38
+ return {
39
+ "os-info": {"value": platform.system(), "encode": False},
40
+ }
41
+
42
+ @staticmethod
43
+ def global_errors():
44
+ """Return GlobalErrors value."""
45
+ return {
46
+ "default": ErrorCase()
47
+ .error_message("HTTP response not OK.")
48
+ .exception_type(ApiException),
49
+ }
50
+
51
+ def __init__(self, config):
52
+ """Initialize BaseApi object."""
53
+ self._config = config.get_http_client_configuration()
54
+ self._http_call_back = self.config.http_callback
55
+ self.api_call = ApiCall(config)
56
+
57
+ @property
58
+ def config(self):
59
+ """Return Configuration object."""
60
+ return self._config
61
+
62
+ @property
63
+ def http_call_back(self):
64
+ """Return HttpCallBack object."""
65
+ return self._http_call_back
66
+
67
+ @property
68
+ def new_api_call_builder(self):
69
+ """Return New ApiCallBuilder object."""
70
+ return self.api_call.new_builder
@@ -0,0 +1,139 @@
1
+ """reportingsettlementresearchapi.
2
+
3
+ This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
4
+ """
5
+
6
+ # ruff: noqa: D410, E501, E101, D206
7
+ from apimatic_core.authentication.multiple.single_auth import (
8
+ Single,
9
+ )
10
+ from apimatic_core.request_builder import RequestBuilder
11
+ from apimatic_core.response_handler import ResponseHandler
12
+ from apimatic_core.types.parameter import Parameter
13
+
14
+ from reportingsettlementresearchapi.api_helper import (
15
+ APIHelper,
16
+ )
17
+ from reportingsettlementresearchapi.apis.base_api import (
18
+ BaseApi,
19
+ )
20
+ from reportingsettlementresearchapi.configuration import (
21
+ Server,
22
+ )
23
+ from reportingsettlementresearchapi.exceptions.search_date_0_error_exception import (
24
+ SearchDate0ErrorException,
25
+ )
26
+ from reportingsettlementresearchapi.exceptions.search_store_0_error_exception import (
27
+ SearchStore0ErrorException,
28
+ )
29
+ from reportingsettlementresearchapi.http.http_method_enum import (
30
+ HttpMethodEnum,
31
+ )
32
+ from reportingsettlementresearchapi.models.search_date_response import (
33
+ SearchDateResponse,
34
+ )
35
+ from reportingsettlementresearchapi.models.search_store_response import (
36
+ SearchStoreResponse,
37
+ )
38
+
39
+
40
+ class SettlementBatchesApi(BaseApi):
41
+ """A Controller to access Endpoints in the reportingsettlementresearchapi API."""
42
+
43
+ def __init__(self, config):
44
+ """Initialize SettlementBatchesApi object."""
45
+ super(SettlementBatchesApi, self).__init__(config)
46
+
47
+ def search_settlement_batches_store(self,
48
+ body,
49
+ v_correlation_id=None):
50
+ """Perform a POST request to /search/store.
51
+
52
+ Search settlement batches grouped by store.
53
+
54
+ Args:
55
+ body (SearchStoreRequest): The request body parameter.
56
+ v_correlation_id (uuid|str, optional): Correlation Id
57
+
58
+ Returns:
59
+ ApiResponse: An object with the response value as well as other useful
60
+ information such as status codes and headers. OK
61
+
62
+ Raises:
63
+ ApiException: When an error occurs while fetching the data from the
64
+ remote API. This exception includes the HTTP Response code, an error
65
+ message, and the HTTP body that was received in the request.
66
+
67
+ """
68
+ return super().new_api_call_builder.request(
69
+ RequestBuilder().server(Server.DEFAULT)
70
+ .path("/search/store")
71
+ .http_method(HttpMethodEnum.POST)
72
+ .header_param(Parameter()
73
+ .key("Content-Type")
74
+ .value("application/json"))
75
+ .body_param(Parameter()
76
+ .value(body)
77
+ .is_required(True))
78
+ .header_param(Parameter()
79
+ .key("v-correlation-id")
80
+ .value(v_correlation_id))
81
+ .header_param(Parameter()
82
+ .key("accept")
83
+ .value("application/json"))
84
+ .body_serializer(APIHelper.json_serialize)
85
+ .auth(Single("api_key")),
86
+ ).response(
87
+ ResponseHandler()
88
+ .deserializer(APIHelper.json_deserialize)
89
+ .deserialize_into(SearchStoreResponse.from_dictionary)
90
+ .is_api_response(True)
91
+ .local_error("default", "Default errors", SearchStore0ErrorException),
92
+ ).execute()
93
+
94
+ def search_settlement_batches_date(self,
95
+ body,
96
+ v_correlation_id=None):
97
+ """Perform a POST request to /search/date.
98
+
99
+ Search settlement batches grouped by date.
100
+
101
+ Args:
102
+ body (SearchDateRequest): The request body parameter.
103
+ v_correlation_id (uuid|str, optional): Correlation Id
104
+
105
+ Returns:
106
+ ApiResponse: An object with the response value as well as other useful
107
+ information such as status codes and headers. OK
108
+
109
+ Raises:
110
+ ApiException: When an error occurs while fetching the data from the
111
+ remote API. This exception includes the HTTP Response code, an error
112
+ message, and the HTTP body that was received in the request.
113
+
114
+ """
115
+ return super().new_api_call_builder.request(
116
+ RequestBuilder().server(Server.DEFAULT)
117
+ .path("/search/date")
118
+ .http_method(HttpMethodEnum.POST)
119
+ .header_param(Parameter()
120
+ .key("Content-Type")
121
+ .value("application/json"))
122
+ .body_param(Parameter()
123
+ .value(body)
124
+ .is_required(True))
125
+ .header_param(Parameter()
126
+ .key("v-correlation-id")
127
+ .value(v_correlation_id))
128
+ .header_param(Parameter()
129
+ .key("accept")
130
+ .value("application/json"))
131
+ .body_serializer(APIHelper.json_serialize)
132
+ .auth(Single("api_key")),
133
+ ).response(
134
+ ResponseHandler()
135
+ .deserializer(APIHelper.json_deserialize)
136
+ .deserialize_into(SearchDateResponse.from_dictionary)
137
+ .is_api_response(True)
138
+ .local_error("default", "Default errors", SearchDate0ErrorException),
139
+ ).execute()
@@ -0,0 +1,89 @@
1
+ """reportingsettlementresearchapi.
2
+
3
+ This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
4
+ """
5
+
6
+ # ruff: noqa: D410, E501, E101, D206
7
+ from apimatic_core.authentication.multiple.single_auth import (
8
+ Single,
9
+ )
10
+ from apimatic_core.request_builder import RequestBuilder
11
+ from apimatic_core.response_handler import ResponseHandler
12
+ from apimatic_core.types.parameter import Parameter
13
+
14
+ from reportingsettlementresearchapi.api_helper import (
15
+ APIHelper,
16
+ )
17
+ from reportingsettlementresearchapi.apis.base_api import (
18
+ BaseApi,
19
+ )
20
+ from reportingsettlementresearchapi.configuration import (
21
+ Server,
22
+ )
23
+ from reportingsettlementresearchapi.exceptions.settlements_daily_totals_search_0_error_exception import ( # noqa: E501
24
+ SettlementsDailyTotalsSearch0ErrorException,
25
+ )
26
+ from reportingsettlementresearchapi.http.http_method_enum import (
27
+ HttpMethodEnum,
28
+ )
29
+ from reportingsettlementresearchapi.models.settlements_daily_totals_search_response import ( # noqa: E501
30
+ SettlementsDailyTotalsSearchResponse,
31
+ )
32
+
33
+
34
+ class SettlementDailyTotalsApi(BaseApi):
35
+ """A Controller to access Endpoints in the reportingsettlementresearchapi API."""
36
+
37
+ def __init__(self, config):
38
+ """Initialize SettlementDailyTotalsApi object."""
39
+ super(SettlementDailyTotalsApi, self).__init__(config)
40
+
41
+ def search_settlements_daily_totals(self,
42
+ body,
43
+ v_correlation_id=None):
44
+ """Perform a POST request to /settlements/daily-totals/search.
45
+
46
+ Retrieve the settled transactions daily financial activity for a given
47
+ hierarchy and date range. Optional fields help refine the search.
48
+
49
+ Args:
50
+ body (SettlementsDailyTotalsSearchRequest): The request body parameter.
51
+ v_correlation_id (uuid|str, optional): Correlation Id
52
+
53
+ Returns:
54
+ ApiResponse: An object with the response value as well as other useful
55
+ information such as status codes and headers. OK
56
+
57
+ Raises:
58
+ ApiException: When an error occurs while fetching the data from the
59
+ remote API. This exception includes the HTTP Response code, an error
60
+ message, and the HTTP body that was received in the request.
61
+
62
+ """
63
+ return super().new_api_call_builder.request(
64
+ RequestBuilder().server(Server.DEFAULT)
65
+ .path("/settlements/daily-totals/search")
66
+ .http_method(HttpMethodEnum.POST)
67
+ .header_param(Parameter()
68
+ .key("Content-Type")
69
+ .value("application/json"))
70
+ .body_param(Parameter()
71
+ .value(body)
72
+ .is_required(True))
73
+ .header_param(Parameter()
74
+ .key("v-correlation-id")
75
+ .value(v_correlation_id))
76
+ .header_param(Parameter()
77
+ .key("accept")
78
+ .value("application/json"))
79
+ .body_serializer(APIHelper.json_serialize)
80
+ .auth(Single("api_key")),
81
+ ).response(
82
+ ResponseHandler()
83
+ .deserializer(APIHelper.json_deserialize)
84
+ .deserialize_into(SettlementsDailyTotalsSearchResponse.from_dictionary)
85
+ .is_api_response(True)
86
+ .local_error("default",
87
+ "Default errors",
88
+ SettlementsDailyTotalsSearch0ErrorException),
89
+ ).execute()