maytes-api-client-py 0.1.5__tar.gz → 0.1.6__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 (120) hide show
  1. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/PKG-INFO +1 -1
  2. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/__init__.py +1 -1
  3. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/api_client.py +1 -1
  4. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/configuration.py +1 -1
  5. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/checkout.py +3 -1
  6. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client_py.egg-info/PKG-INFO +1 -1
  7. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/pyproject.toml +1 -1
  8. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/setup.py +1 -1
  9. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_checkout.py +2 -0
  10. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_get_checkout_response.py +2 -0
  11. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/LICENSE +0 -0
  12. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/README.md +0 -0
  13. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/api/__init__.py +0 -0
  14. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/api/default_api.py +0 -0
  15. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/api_response.py +0 -0
  16. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/exceptions.py +0 -0
  17. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/managed_client.py +0 -0
  18. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/__init__.py +0 -0
  19. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/cancel_checkout409_response.py +0 -0
  20. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/cancel_checkout_request.py +0 -0
  21. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/cancel_checkout_response.py +0 -0
  22. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/capture_checkout409_response.py +0 -0
  23. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/capture_checkout422_response.py +0 -0
  24. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/capture_checkout_request.py +0 -0
  25. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/capture_checkout_response.py +0 -0
  26. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/checkout_cancelled.py +0 -0
  27. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/checkout_captured.py +0 -0
  28. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/checkout_created.py +0 -0
  29. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/checkout_discount.py +0 -0
  30. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/checkout_fee.py +0 -0
  31. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/create_checkout401_response.py +0 -0
  32. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/create_checkout409_response.py +0 -0
  33. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/create_checkout422_response.py +0 -0
  34. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/create_checkout_request.py +0 -0
  35. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/create_checkout_response.py +0 -0
  36. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/create_refund_request.py +0 -0
  37. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/customer_data.py +0 -0
  38. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/digital_goods_custom_data.py +0 -0
  39. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/digital_goods_line_item.py +0 -0
  40. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/donation_line_item.py +0 -0
  41. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/error_response_dto.py +0 -0
  42. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/fee.py +0 -0
  43. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/fee_breakdown_line.py +0 -0
  44. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/food_beverage_line_item.py +0 -0
  45. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/get_checkout404_response.py +0 -0
  46. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/get_checkout422_response.py +0 -0
  47. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/get_checkout_response.py +0 -0
  48. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/get_settlement_response.py +0 -0
  49. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/health_response.py +0 -0
  50. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/line_item.py +0 -0
  51. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/list_settlements_response.py +0 -0
  52. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/o_auth_token_request.py +0 -0
  53. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/o_auth_token_response.py +0 -0
  54. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/other_line_item.py +0 -0
  55. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/physical_goods_custom_data.py +0 -0
  56. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/physical_goods_line_item.py +0 -0
  57. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/refund_checkout402_response.py +0 -0
  58. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/refund_checkout409_response.py +0 -0
  59. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/service_custom_data.py +0 -0
  60. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/service_line_item.py +0 -0
  61. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/settlement.py +0 -0
  62. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/tax.py +0 -0
  63. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/ticket_custom_data.py +0 -0
  64. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/ticket_line_item.py +0 -0
  65. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/models/ticket_seating.py +0 -0
  66. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/py.typed +0 -0
  67. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/rest.py +0 -0
  68. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client/webhook_verifier.py +0 -0
  69. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client_py.egg-info/SOURCES.txt +0 -0
  70. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client_py.egg-info/dependency_links.txt +0 -0
  71. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client_py.egg-info/requires.txt +0 -0
  72. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/maytes_api_client_py.egg-info/top_level.txt +0 -0
  73. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/setup.cfg +0 -0
  74. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_cancel_checkout409_response.py +0 -0
  75. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_cancel_checkout_request.py +0 -0
  76. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_cancel_checkout_response.py +0 -0
  77. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_capture_checkout409_response.py +0 -0
  78. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_capture_checkout422_response.py +0 -0
  79. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_capture_checkout_request.py +0 -0
  80. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_capture_checkout_response.py +0 -0
  81. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_checkout_cancelled.py +0 -0
  82. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_checkout_captured.py +0 -0
  83. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_checkout_created.py +0 -0
  84. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_checkout_discount.py +0 -0
  85. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_checkout_fee.py +0 -0
  86. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_create_checkout401_response.py +0 -0
  87. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_create_checkout409_response.py +0 -0
  88. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_create_checkout422_response.py +0 -0
  89. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_create_checkout_request.py +0 -0
  90. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_create_checkout_response.py +0 -0
  91. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_create_refund_request.py +0 -0
  92. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_customer_data.py +0 -0
  93. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_default_api.py +0 -0
  94. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_digital_goods_custom_data.py +0 -0
  95. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_digital_goods_line_item.py +0 -0
  96. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_donation_line_item.py +0 -0
  97. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_error_response_dto.py +0 -0
  98. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_fee.py +0 -0
  99. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_fee_breakdown_line.py +0 -0
  100. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_food_beverage_line_item.py +0 -0
  101. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_get_checkout404_response.py +0 -0
  102. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_get_checkout422_response.py +0 -0
  103. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_get_settlement_response.py +0 -0
  104. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_health_response.py +0 -0
  105. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_line_item.py +0 -0
  106. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_list_settlements_response.py +0 -0
  107. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_o_auth_token_request.py +0 -0
  108. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_o_auth_token_response.py +0 -0
  109. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_other_line_item.py +0 -0
  110. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_physical_goods_custom_data.py +0 -0
  111. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_physical_goods_line_item.py +0 -0
  112. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_refund_checkout402_response.py +0 -0
  113. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_refund_checkout409_response.py +0 -0
  114. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_service_custom_data.py +0 -0
  115. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_service_line_item.py +0 -0
  116. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_settlement.py +0 -0
  117. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_tax.py +0 -0
  118. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_ticket_custom_data.py +0 -0
  119. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_ticket_line_item.py +0 -0
  120. {maytes_api_client_py-0.1.5 → maytes_api_client_py-0.1.6}/test/test_ticket_seating.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maytes-api-client-py
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: Official Python client for the Maytes API — create, capture and cancel checkouts, with OAuth2 token management and webhook signature verification.
5
5
  Home-page: https://github.com/kttipay/maytes-api-client-py
6
6
  Author: Maytes
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "0.1.5"
17
+ __version__ = "0.1.6"
18
18
 
19
19
  # Define package exports
20
20
  __all__ = [
@@ -91,7 +91,7 @@ class ApiClient:
91
91
  self.default_headers[header_name] = header_value
92
92
  self.cookie = cookie
93
93
  # Set default User-Agent.
94
- self.user_agent = 'OpenAPI-Generator/0.1.5/python'
94
+ self.user_agent = 'OpenAPI-Generator/0.1.6/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):
@@ -558,7 +558,7 @@ conf = maytes_api_client.Configuration(
558
558
  "OS: {env}\n"\
559
559
  "Python Version: {pyversion}\n"\
560
560
  "Version of the API: 1.0.0\n"\
561
- "SDK Package Version: 0.1.5".\
561
+ "SDK Package Version: 0.1.6".\
562
562
  format(env=sys.platform, pyversion=sys.version)
563
563
 
564
564
  def get_host_settings(self) -> List[HostSetting]:
@@ -43,10 +43,11 @@ class Checkout(BaseModel):
43
43
  currency: StrictStr
44
44
  service_fee: Fee
45
45
  refunded_amount: Annotated[int, Field(strict=True, ge=0)]
46
+ remaining_amount: Annotated[int, Field(strict=True, ge=0)]
46
47
  merchant_processor_fee: Annotated[int, Field(strict=True, ge=0)]
47
48
  merchant_service_fee: Annotated[int, Field(strict=True, ge=0)]
48
49
  last_refund_at: Optional[datetime]
49
- __properties: ClassVar[List[str]] = ["checkout_uuid", "merchant_order_id", "status", "transaction_ref", "checkout_url", "merchant_expires_at", "captured_at", "return_url", "cancel_url", "amount", "currency", "service_fee", "refunded_amount", "merchant_processor_fee", "merchant_service_fee", "last_refund_at"]
50
+ __properties: ClassVar[List[str]] = ["checkout_uuid", "merchant_order_id", "status", "transaction_ref", "checkout_url", "merchant_expires_at", "captured_at", "return_url", "cancel_url", "amount", "currency", "service_fee", "refunded_amount", "remaining_amount", "merchant_processor_fee", "merchant_service_fee", "last_refund_at"]
50
51
 
51
52
  model_config = ConfigDict(
52
53
  validate_by_name=True,
@@ -150,6 +151,7 @@ class Checkout(BaseModel):
150
151
  "currency": obj.get("currency"),
151
152
  "service_fee": Fee.from_dict(obj["service_fee"]) if obj.get("service_fee") is not None else None,
152
153
  "refunded_amount": obj.get("refunded_amount"),
154
+ "remaining_amount": obj.get("remaining_amount"),
153
155
  "merchant_processor_fee": obj.get("merchant_processor_fee"),
154
156
  "merchant_service_fee": obj.get("merchant_service_fee"),
155
157
  "last_refund_at": obj.get("last_refund_at")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maytes-api-client-py
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: Official Python client for the Maytes API — create, capture and cancel checkouts, with OAuth2 token management and webhook signature verification.
5
5
  Home-page: https://github.com/kttipay/maytes-api-client-py
6
6
  Author: Maytes
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "maytes-api-client-py"
3
- version = "0.1.5"
3
+ version = "0.1.6"
4
4
  description = "Official Python client for the Maytes API — create, capture and cancel checkouts, with OAuth2 token management and webhook signature verification."
5
5
  authors = [
6
6
  {name = "Maytes"},
@@ -19,7 +19,7 @@ from setuptools import setup, find_packages # noqa: H301
19
19
  # prerequisite: setuptools
20
20
  # http://pypi.python.org/pypi/setuptools
21
21
  NAME = "maytes-api-client-py"
22
- VERSION = "0.1.5"
22
+ VERSION = "0.1.6"
23
23
  PYTHON_REQUIRES = ">= 3.10"
24
24
  REQUIRES = [
25
25
  "urllib3 >= 2.1.0, < 3.0.0",
@@ -58,6 +58,7 @@ class TestCheckout(unittest.TestCase):
58
58
  amount = 56, )
59
59
  ], ),
60
60
  refunded_amount = 0,
61
+ remaining_amount = 0,
61
62
  merchant_processor_fee = 0,
62
63
  merchant_service_fee = 0,
63
64
  last_refund_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
@@ -87,6 +88,7 @@ class TestCheckout(unittest.TestCase):
87
88
  amount = 56, )
88
89
  ], ),
89
90
  refunded_amount = 0,
91
+ remaining_amount = 0,
90
92
  merchant_processor_fee = 0,
91
93
  merchant_service_fee = 0,
92
94
  last_refund_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -59,6 +59,7 @@ class TestGetCheckoutResponse(unittest.TestCase):
59
59
  amount = 56, )
60
60
  ], ),
61
61
  refunded_amount = 0,
62
+ remaining_amount = 0,
62
63
  merchant_processor_fee = 0,
63
64
  merchant_service_fee = 0,
64
65
  last_refund_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
@@ -89,6 +90,7 @@ class TestGetCheckoutResponse(unittest.TestCase):
89
90
  amount = 56, )
90
91
  ], ),
91
92
  refunded_amount = 0,
93
+ remaining_amount = 0,
92
94
  merchant_processor_fee = 0,
93
95
  merchant_service_fee = 0,
94
96
  last_refund_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),