maytes-api-client-py 0.1.6__tar.gz → 0.1.7__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 (127) hide show
  1. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/PKG-INFO +1 -1
  2. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/__init__.py +7 -1
  3. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/api_client.py +1 -1
  4. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/configuration.py +1 -1
  5. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/__init__.py +3 -0
  6. maytes_api_client_py-0.1.7/maytes_api_client/models/checkout_friend.py +123 -0
  7. maytes_api_client_py-0.1.7/maytes_api_client/models/checkout_friend_item.py +91 -0
  8. maytes_api_client_py-0.1.7/maytes_api_client/models/checkout_friends.py +99 -0
  9. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/create_checkout422_response.py +2 -2
  10. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/create_checkout_request.py +13 -2
  11. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client_py.egg-info/PKG-INFO +1 -1
  12. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client_py.egg-info/SOURCES.txt +6 -0
  13. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/pyproject.toml +1 -1
  14. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/setup.py +1 -1
  15. maytes_api_client_py-0.1.7/test/test_checkout_friend.py +61 -0
  16. maytes_api_client_py-0.1.7/test/test_checkout_friend_item.py +53 -0
  17. maytes_api_client_py-0.1.7/test/test_checkout_friends.py +63 -0
  18. maytes_api_client_py-0.1.7/test/test_create_checkout_request.py +122 -0
  19. maytes_api_client_py-0.1.6/test/test_create_checkout_request.py +0 -108
  20. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/LICENSE +0 -0
  21. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/README.md +0 -0
  22. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/api/__init__.py +0 -0
  23. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/api/default_api.py +0 -0
  24. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/api_response.py +0 -0
  25. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/exceptions.py +0 -0
  26. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/managed_client.py +0 -0
  27. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/cancel_checkout409_response.py +0 -0
  28. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/cancel_checkout_request.py +0 -0
  29. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/cancel_checkout_response.py +0 -0
  30. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/capture_checkout409_response.py +0 -0
  31. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/capture_checkout422_response.py +0 -0
  32. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/capture_checkout_request.py +0 -0
  33. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/capture_checkout_response.py +0 -0
  34. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/checkout.py +0 -0
  35. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/checkout_cancelled.py +0 -0
  36. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/checkout_captured.py +0 -0
  37. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/checkout_created.py +0 -0
  38. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/checkout_discount.py +0 -0
  39. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/checkout_fee.py +0 -0
  40. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/create_checkout401_response.py +0 -0
  41. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/create_checkout409_response.py +0 -0
  42. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/create_checkout_response.py +0 -0
  43. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/create_refund_request.py +0 -0
  44. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/customer_data.py +0 -0
  45. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/digital_goods_custom_data.py +0 -0
  46. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/digital_goods_line_item.py +0 -0
  47. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/donation_line_item.py +0 -0
  48. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/error_response_dto.py +0 -0
  49. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/fee.py +0 -0
  50. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/fee_breakdown_line.py +0 -0
  51. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/food_beverage_line_item.py +0 -0
  52. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/get_checkout404_response.py +0 -0
  53. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/get_checkout422_response.py +0 -0
  54. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/get_checkout_response.py +0 -0
  55. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/get_settlement_response.py +0 -0
  56. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/health_response.py +0 -0
  57. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/line_item.py +0 -0
  58. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/list_settlements_response.py +0 -0
  59. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/o_auth_token_request.py +0 -0
  60. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/o_auth_token_response.py +0 -0
  61. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/other_line_item.py +0 -0
  62. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/physical_goods_custom_data.py +0 -0
  63. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/physical_goods_line_item.py +0 -0
  64. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/refund_checkout402_response.py +0 -0
  65. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/refund_checkout409_response.py +0 -0
  66. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/service_custom_data.py +0 -0
  67. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/service_line_item.py +0 -0
  68. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/settlement.py +0 -0
  69. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/tax.py +0 -0
  70. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/ticket_custom_data.py +0 -0
  71. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/ticket_line_item.py +0 -0
  72. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/models/ticket_seating.py +0 -0
  73. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/py.typed +0 -0
  74. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/rest.py +0 -0
  75. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client/webhook_verifier.py +0 -0
  76. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client_py.egg-info/dependency_links.txt +0 -0
  77. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client_py.egg-info/requires.txt +0 -0
  78. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/maytes_api_client_py.egg-info/top_level.txt +0 -0
  79. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/setup.cfg +0 -0
  80. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_cancel_checkout409_response.py +0 -0
  81. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_cancel_checkout_request.py +0 -0
  82. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_cancel_checkout_response.py +0 -0
  83. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_capture_checkout409_response.py +0 -0
  84. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_capture_checkout422_response.py +0 -0
  85. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_capture_checkout_request.py +0 -0
  86. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_capture_checkout_response.py +0 -0
  87. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_checkout.py +0 -0
  88. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_checkout_cancelled.py +0 -0
  89. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_checkout_captured.py +0 -0
  90. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_checkout_created.py +0 -0
  91. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_checkout_discount.py +0 -0
  92. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_checkout_fee.py +0 -0
  93. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_create_checkout401_response.py +0 -0
  94. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_create_checkout409_response.py +0 -0
  95. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_create_checkout422_response.py +0 -0
  96. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_create_checkout_response.py +0 -0
  97. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_create_refund_request.py +0 -0
  98. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_customer_data.py +0 -0
  99. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_default_api.py +0 -0
  100. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_digital_goods_custom_data.py +0 -0
  101. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_digital_goods_line_item.py +0 -0
  102. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_donation_line_item.py +0 -0
  103. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_error_response_dto.py +0 -0
  104. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_fee.py +0 -0
  105. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_fee_breakdown_line.py +0 -0
  106. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_food_beverage_line_item.py +0 -0
  107. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_get_checkout404_response.py +0 -0
  108. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_get_checkout422_response.py +0 -0
  109. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_get_checkout_response.py +0 -0
  110. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_get_settlement_response.py +0 -0
  111. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_health_response.py +0 -0
  112. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_line_item.py +0 -0
  113. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_list_settlements_response.py +0 -0
  114. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_o_auth_token_request.py +0 -0
  115. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_o_auth_token_response.py +0 -0
  116. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_other_line_item.py +0 -0
  117. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_physical_goods_custom_data.py +0 -0
  118. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_physical_goods_line_item.py +0 -0
  119. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_refund_checkout402_response.py +0 -0
  120. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_refund_checkout409_response.py +0 -0
  121. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_service_custom_data.py +0 -0
  122. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_service_line_item.py +0 -0
  123. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_settlement.py +0 -0
  124. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_tax.py +0 -0
  125. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_ticket_custom_data.py +0 -0
  126. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/test/test_ticket_line_item.py +0 -0
  127. {maytes_api_client_py-0.1.6 → maytes_api_client_py-0.1.7}/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.6
3
+ Version: 0.1.7
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.6"
17
+ __version__ = "0.1.7"
18
18
 
19
19
  # Define package exports
20
20
  __all__ = [
@@ -41,6 +41,9 @@ __all__ = [
41
41
  "CheckoutCreated",
42
42
  "CheckoutDiscount",
43
43
  "CheckoutFee",
44
+ "CheckoutFriend",
45
+ "CheckoutFriendItem",
46
+ "CheckoutFriends",
44
47
  "CreateCheckout401Response",
45
48
  "CreateCheckout409Response",
46
49
  "CreateCheckout422Response",
@@ -106,6 +109,9 @@ from maytes_api_client.models.checkout_captured import CheckoutCaptured as Check
106
109
  from maytes_api_client.models.checkout_created import CheckoutCreated as CheckoutCreated
107
110
  from maytes_api_client.models.checkout_discount import CheckoutDiscount as CheckoutDiscount
108
111
  from maytes_api_client.models.checkout_fee import CheckoutFee as CheckoutFee
112
+ from maytes_api_client.models.checkout_friend import CheckoutFriend as CheckoutFriend
113
+ from maytes_api_client.models.checkout_friend_item import CheckoutFriendItem as CheckoutFriendItem
114
+ from maytes_api_client.models.checkout_friends import CheckoutFriends as CheckoutFriends
109
115
  from maytes_api_client.models.create_checkout401_response import CreateCheckout401Response as CreateCheckout401Response
110
116
  from maytes_api_client.models.create_checkout409_response import CreateCheckout409Response as CreateCheckout409Response
111
117
  from maytes_api_client.models.create_checkout422_response import CreateCheckout422Response as CreateCheckout422Response
@@ -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.6/python'
94
+ self.user_agent = 'OpenAPI-Generator/0.1.7/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.6".\
561
+ "SDK Package Version: 0.1.7".\
562
562
  format(env=sys.platform, pyversion=sys.version)
563
563
 
564
564
  def get_host_settings(self) -> List[HostSetting]:
@@ -26,6 +26,9 @@ from maytes_api_client.models.checkout_captured import CheckoutCaptured
26
26
  from maytes_api_client.models.checkout_created import CheckoutCreated
27
27
  from maytes_api_client.models.checkout_discount import CheckoutDiscount
28
28
  from maytes_api_client.models.checkout_fee import CheckoutFee
29
+ from maytes_api_client.models.checkout_friend import CheckoutFriend
30
+ from maytes_api_client.models.checkout_friend_item import CheckoutFriendItem
31
+ from maytes_api_client.models.checkout_friends import CheckoutFriends
29
32
  from maytes_api_client.models.create_checkout401_response import CreateCheckout401Response
30
33
  from maytes_api_client.models.create_checkout409_response import CreateCheckout409Response
31
34
  from maytes_api_client.models.create_checkout422_response import CreateCheckout422Response
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Maytes API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, field_validator
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing_extensions import Annotated
23
+ from maytes_api_client.models.checkout_friend_item import CheckoutFriendItem
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+ from pydantic_core import to_jsonable_python
27
+
28
+ class CheckoutFriend(BaseModel):
29
+ """
30
+ CheckoutFriend
31
+ """ # noqa: E501
32
+ name: Annotated[str, Field(min_length=1, strict=True, max_length=200)]
33
+ mobile: Annotated[str, Field(min_length=3, strict=True, max_length=20)] = Field(description="E.164, e.g. +61412345678")
34
+ email: Optional[Annotated[str, Field(strict=True)]] = None
35
+ amount: Optional[Annotated[int, Field(strict=True, gt=0)]] = Field(default=None, description="This friend’s share in minor units. Give it for every friend or for none.")
36
+ items: Optional[Annotated[List[CheckoutFriendItem], Field(min_length=1)]] = Field(default=None, description="The cart lines this friend pays for (item_assignment only). Give it for every friend or for none.")
37
+ __properties: ClassVar[List[str]] = ["name", "mobile", "email", "amount", "items"]
38
+
39
+ @field_validator('email')
40
+ def email_validate_regular_expression(cls, value):
41
+ """Validates the regular expression"""
42
+ if value is None:
43
+ return value
44
+
45
+ if not isinstance(value, str):
46
+ value = str(value)
47
+
48
+ if not re.match(r"^(?!\.)(?!.*\.\.)([A-Za-z0-9_\'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$", value):
49
+ raise ValueError(r"must validate the regular expression /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/")
50
+ return value
51
+
52
+ model_config = ConfigDict(
53
+ validate_by_name=True,
54
+ validate_by_alias=True,
55
+ validate_assignment=True,
56
+ protected_namespaces=(),
57
+ )
58
+
59
+
60
+ def to_str(self) -> str:
61
+ """Returns the string representation of the model using alias"""
62
+ return pprint.pformat(self.model_dump(by_alias=True))
63
+
64
+ def to_json(self) -> str:
65
+ """Returns the JSON representation of the model using alias"""
66
+ return json.dumps(to_jsonable_python(self.to_dict()))
67
+
68
+ @classmethod
69
+ def from_json(cls, json_str: str) -> Optional[Self]:
70
+ """Create an instance of CheckoutFriend from a JSON string"""
71
+ return cls.from_dict(json.loads(json_str))
72
+
73
+ def to_dict(self) -> Dict[str, Any]:
74
+ """Return the dictionary representation of the model using alias.
75
+
76
+ This has the following differences from calling pydantic's
77
+ `self.model_dump(by_alias=True)`:
78
+
79
+ * `None` is only added to the output dict for nullable fields that
80
+ were set at model initialization. Other fields with value `None`
81
+ are ignored.
82
+ """
83
+ excluded_fields: Set[str] = set([
84
+ ])
85
+
86
+ _dict = self.model_dump(
87
+ by_alias=True,
88
+ exclude=excluded_fields,
89
+ exclude_none=True,
90
+ )
91
+ # override the default output from pydantic by calling `to_dict()` of each item in items (list)
92
+ _items = []
93
+ if self.items:
94
+ for _item_items in self.items:
95
+ if _item_items:
96
+ _items.append(_item_items.to_dict())
97
+ _dict['items'] = _items
98
+ # set to None if email (nullable) is None
99
+ # and model_fields_set contains the field
100
+ if self.email is None and "email" in self.model_fields_set:
101
+ _dict['email'] = None
102
+
103
+ return _dict
104
+
105
+ @classmethod
106
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
107
+ """Create an instance of CheckoutFriend from a dict"""
108
+ if obj is None:
109
+ return None
110
+
111
+ if not isinstance(obj, dict):
112
+ return cls.model_validate(obj)
113
+
114
+ _obj = cls.model_validate({
115
+ "name": obj.get("name"),
116
+ "mobile": obj.get("mobile"),
117
+ "email": obj.get("email"),
118
+ "amount": obj.get("amount"),
119
+ "items": [CheckoutFriendItem.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None
120
+ })
121
+ return _obj
122
+
123
+
@@ -0,0 +1,91 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Maytes API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing_extensions import Annotated
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+ from pydantic_core import to_jsonable_python
26
+
27
+ class CheckoutFriendItem(BaseModel):
28
+ """
29
+ CheckoutFriendItem
30
+ """ # noqa: E501
31
+ item_ref: Annotated[str, Field(min_length=1, strict=True)]
32
+ quantity: Optional[Annotated[int, Field(strict=True, gt=0)]] = Field(default=None, description="How many units of this line this friend pays for. Omit for the whole line.")
33
+ __properties: ClassVar[List[str]] = ["item_ref", "quantity"]
34
+
35
+ model_config = ConfigDict(
36
+ validate_by_name=True,
37
+ validate_by_alias=True,
38
+ validate_assignment=True,
39
+ protected_namespaces=(),
40
+ )
41
+
42
+
43
+ def to_str(self) -> str:
44
+ """Returns the string representation of the model using alias"""
45
+ return pprint.pformat(self.model_dump(by_alias=True))
46
+
47
+ def to_json(self) -> str:
48
+ """Returns the JSON representation of the model using alias"""
49
+ return json.dumps(to_jsonable_python(self.to_dict()))
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> Optional[Self]:
53
+ """Create an instance of CheckoutFriendItem from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self) -> Dict[str, Any]:
57
+ """Return the dictionary representation of the model using alias.
58
+
59
+ This has the following differences from calling pydantic's
60
+ `self.model_dump(by_alias=True)`:
61
+
62
+ * `None` is only added to the output dict for nullable fields that
63
+ were set at model initialization. Other fields with value `None`
64
+ are ignored.
65
+ """
66
+ excluded_fields: Set[str] = set([
67
+ ])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ return _dict
75
+
76
+ @classmethod
77
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
+ """Create an instance of CheckoutFriendItem from a dict"""
79
+ if obj is None:
80
+ return None
81
+
82
+ if not isinstance(obj, dict):
83
+ return cls.model_validate(obj)
84
+
85
+ _obj = cls.model_validate({
86
+ "item_ref": obj.get("item_ref"),
87
+ "quantity": obj.get("quantity")
88
+ })
89
+ return _obj
90
+
91
+
@@ -0,0 +1,99 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Maytes API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing_extensions import Annotated
23
+ from maytes_api_client.models.checkout_friend import CheckoutFriend
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+ from pydantic_core import to_jsonable_python
27
+
28
+ class CheckoutFriends(BaseModel):
29
+ """
30
+ CheckoutFriends
31
+ """ # noqa: E501
32
+ count: Optional[Annotated[int, Field(le=50, strict=True, ge=1)]] = Field(default=None, description="How many friends will split, not counting the customer. Give this or `people`.")
33
+ people: Optional[Annotated[List[CheckoutFriend], Field(min_length=1, max_length=50)]] = Field(default=None, description="The friends, optionally with their shares. Give this or `count`.")
34
+ __properties: ClassVar[List[str]] = ["count", "people"]
35
+
36
+ model_config = ConfigDict(
37
+ validate_by_name=True,
38
+ validate_by_alias=True,
39
+ validate_assignment=True,
40
+ protected_namespaces=(),
41
+ )
42
+
43
+
44
+ def to_str(self) -> str:
45
+ """Returns the string representation of the model using alias"""
46
+ return pprint.pformat(self.model_dump(by_alias=True))
47
+
48
+ def to_json(self) -> str:
49
+ """Returns the JSON representation of the model using alias"""
50
+ return json.dumps(to_jsonable_python(self.to_dict()))
51
+
52
+ @classmethod
53
+ def from_json(cls, json_str: str) -> Optional[Self]:
54
+ """Create an instance of CheckoutFriends from a JSON string"""
55
+ return cls.from_dict(json.loads(json_str))
56
+
57
+ def to_dict(self) -> Dict[str, Any]:
58
+ """Return the dictionary representation of the model using alias.
59
+
60
+ This has the following differences from calling pydantic's
61
+ `self.model_dump(by_alias=True)`:
62
+
63
+ * `None` is only added to the output dict for nullable fields that
64
+ were set at model initialization. Other fields with value `None`
65
+ are ignored.
66
+ """
67
+ excluded_fields: Set[str] = set([
68
+ ])
69
+
70
+ _dict = self.model_dump(
71
+ by_alias=True,
72
+ exclude=excluded_fields,
73
+ exclude_none=True,
74
+ )
75
+ # override the default output from pydantic by calling `to_dict()` of each item in people (list)
76
+ _items = []
77
+ if self.people:
78
+ for _item_people in self.people:
79
+ if _item_people:
80
+ _items.append(_item_people.to_dict())
81
+ _dict['people'] = _items
82
+ return _dict
83
+
84
+ @classmethod
85
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
86
+ """Create an instance of CheckoutFriends from a dict"""
87
+ if obj is None:
88
+ return None
89
+
90
+ if not isinstance(obj, dict):
91
+ return cls.model_validate(obj)
92
+
93
+ _obj = cls.model_validate({
94
+ "count": obj.get("count"),
95
+ "people": [CheckoutFriend.from_dict(_item) for _item in obj["people"]] if obj.get("people") is not None else None
96
+ })
97
+ return _obj
98
+
99
+
@@ -36,8 +36,8 @@ class CreateCheckout422Response(BaseModel):
36
36
  @field_validator('code')
37
37
  def code_validate_enum(cls, value):
38
38
  """Validates the enum"""
39
- if value not in set(['invalid_amount', 'amount_below_minimum', 'invalid_amount_arithmetic', 'currency_not_supported', 'merchant_currency_mismatch', 'merchant_not_configured']):
40
- raise ValueError("must be one of enum values ('invalid_amount', 'amount_below_minimum', 'invalid_amount_arithmetic', 'currency_not_supported', 'merchant_currency_mismatch', 'merchant_not_configured')")
39
+ if value not in set(['invalid_amount', 'invalid_friends', 'amount_below_minimum', 'invalid_amount_arithmetic', 'currency_not_supported', 'merchant_currency_mismatch', 'merchant_not_configured']):
40
+ raise ValueError("must be one of enum values ('invalid_amount', 'invalid_friends', 'amount_below_minimum', 'invalid_amount_arithmetic', 'currency_not_supported', 'merchant_currency_mismatch', 'merchant_not_configured')")
41
41
  return value
42
42
 
43
43
  model_config = ConfigDict(
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing_extensions import Annotated
24
24
  from maytes_api_client.models.checkout_discount import CheckoutDiscount
25
25
  from maytes_api_client.models.checkout_fee import CheckoutFee
26
+ from maytes_api_client.models.checkout_friends import CheckoutFriends
26
27
  from maytes_api_client.models.customer_data import CustomerData
27
28
  from maytes_api_client.models.line_item import LineItem
28
29
  from maytes_api_client.models.tax import Tax
@@ -48,7 +49,8 @@ class CreateCheckoutRequest(BaseModel):
48
49
  customer_data: Optional[CustomerData] = None
49
50
  metadata: Optional[Dict[str, Any]] = None
50
51
  allocation_model: Optional[StrictStr] = None
51
- __properties: ClassVar[List[str]] = ["merchant_order_id", "merchant_expires_at", "total_amount", "currency", "return_url", "cancel_url", "items", "fees", "discounts", "tax", "shipping_amount", "customer_data", "metadata", "allocation_model"]
52
+ friends: Optional[CheckoutFriends] = Field(default=None, description="Who the customer is expected to split with. Pre-fills their share and allocation screens; the customer can still change it. Personal data — send it only when you hold it.")
53
+ __properties: ClassVar[List[str]] = ["merchant_order_id", "merchant_expires_at", "total_amount", "currency", "return_url", "cancel_url", "items", "fees", "discounts", "tax", "shipping_amount", "customer_data", "metadata", "allocation_model", "friends"]
52
54
 
53
55
  @field_validator('currency')
54
56
  def currency_validate_regular_expression(cls, value):
@@ -136,6 +138,9 @@ class CreateCheckoutRequest(BaseModel):
136
138
  # override the default output from pydantic by calling `to_dict()` of customer_data
137
139
  if self.customer_data:
138
140
  _dict['customer_data'] = self.customer_data.to_dict()
141
+ # override the default output from pydantic by calling `to_dict()` of friends
142
+ if self.friends:
143
+ _dict['friends'] = self.friends.to_dict()
139
144
  # set to None if merchant_order_id (nullable) is None
140
145
  # and model_fields_set contains the field
141
146
  if self.merchant_order_id is None and "merchant_order_id" in self.model_fields_set:
@@ -181,6 +186,11 @@ class CreateCheckoutRequest(BaseModel):
181
186
  if self.allocation_model is None and "allocation_model" in self.model_fields_set:
182
187
  _dict['allocation_model'] = None
183
188
 
189
+ # set to None if friends (nullable) is None
190
+ # and model_fields_set contains the field
191
+ if self.friends is None and "friends" in self.model_fields_set:
192
+ _dict['friends'] = None
193
+
184
194
  return _dict
185
195
 
186
196
  @classmethod
@@ -206,7 +216,8 @@ class CreateCheckoutRequest(BaseModel):
206
216
  "shipping_amount": obj.get("shipping_amount"),
207
217
  "customer_data": CustomerData.from_dict(obj["customer_data"]) if obj.get("customer_data") is not None else None,
208
218
  "metadata": obj.get("metadata"),
209
- "allocation_model": obj.get("allocation_model")
219
+ "allocation_model": obj.get("allocation_model"),
220
+ "friends": CheckoutFriends.from_dict(obj["friends"]) if obj.get("friends") is not None else None
210
221
  })
211
222
  return _obj
212
223
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maytes-api-client-py
3
- Version: 0.1.6
3
+ Version: 0.1.7
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
@@ -28,6 +28,9 @@ maytes_api_client/models/checkout_captured.py
28
28
  maytes_api_client/models/checkout_created.py
29
29
  maytes_api_client/models/checkout_discount.py
30
30
  maytes_api_client/models/checkout_fee.py
31
+ maytes_api_client/models/checkout_friend.py
32
+ maytes_api_client/models/checkout_friend_item.py
33
+ maytes_api_client/models/checkout_friends.py
31
34
  maytes_api_client/models/create_checkout401_response.py
32
35
  maytes_api_client/models/create_checkout409_response.py
33
36
  maytes_api_client/models/create_checkout422_response.py
@@ -81,6 +84,9 @@ test/test_checkout_captured.py
81
84
  test/test_checkout_created.py
82
85
  test/test_checkout_discount.py
83
86
  test/test_checkout_fee.py
87
+ test/test_checkout_friend.py
88
+ test/test_checkout_friend_item.py
89
+ test/test_checkout_friends.py
84
90
  test/test_create_checkout401_response.py
85
91
  test/test_create_checkout409_response.py
86
92
  test/test_create_checkout422_response.py
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "maytes-api-client-py"
3
- version = "0.1.6"
3
+ version = "0.1.7"
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.6"
22
+ VERSION = "0.1.7"
23
23
  PYTHON_REQUIRES = ">= 3.10"
24
24
  REQUIRES = [
25
25
  "urllib3 >= 2.1.0, < 3.0.0",
@@ -0,0 +1,61 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Maytes API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from maytes_api_client.models.checkout_friend import CheckoutFriend
18
+
19
+ class TestCheckoutFriend(unittest.TestCase):
20
+ """CheckoutFriend unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> CheckoutFriend:
29
+ """Test CheckoutFriend
30
+ include_optional is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `CheckoutFriend`
34
+ """
35
+ model = CheckoutFriend()
36
+ if include_optional:
37
+ return CheckoutFriend(
38
+ name = '0',
39
+ mobile = '012',
40
+ email = '/URPSSEW9gFbDSx8mxCScjDL\'CXm8g@zvKX7.gKpul80FcVjSkp5IHYCm.L-v0dZfUof.MERjsmInY9s-EmMH6kw8gsnXv2Z7jRPK542XGp8ZohR8pb-ziKqEd.IfXg9wdpfxa2-zRi2iAxU4NCUavTrirUe4ba7JnjrgEdBCJE-ArE6U3CZ-Vnrj9Rmau.Zv71lRsCjOv6MeuvKGSDRGKUIQ8yNXhXoEdbZpGptfI4pvLXG.6k-kwwO2jcMEEkIauW5ApNaDi5ackLaR2kw9-zmvqRnM-dar09VaHCQ.rTlT4b42Jml4PJXMbVMO8G0e5q9Z.wMWovY63Gk6ixTd5NxRU25mQYd6VBLRGkQ5H9-FH2v5iUaMQ6iIJ-7auxDSR-lIIfhhw9bP3XhsKpT6YkX2.6MVYtYsF.D8OyxaBZ75cAidDZ6lvrLQxekRdyiJFjhCbEZunVXTqV3VP-DPQpzY-c9WhD1h649MeA.qz67NG9dihNlL1YPO1GvRUDnbsR0-SswaNzc7s9ONPZw-HNPtVfykpnotMPK4Aqhv7.uToBNn1oLFWRpSx-dyd2clYhZAGiUmDTPB5iVX1lhmY7Gh2I3pT2SDuv66tyxEBpX6RQusWUzrY2IaluFJfz8Zwx6YGCN.JCndVdQ8Zqh8o9Fu3-luW1PzrlptgIbB7lMjnQ.Kdim087U4e00bXYPH263P2Qk0LGzQ-Q5b8qpf900OPrJ7NsXeu0SeHiClor8kJwu9CQe1tTxWk3GoxqObZMXxUrUZ.vO24g6xCEEGYs5NZ9BhURG1p1vKPKEsaka3pD3hXM15Q-LQUOofFYT6wb4OCgvTgDaAqbKuYurrDjTDCxuHecKtov6.RCwqpGvF10AyNzlABWKNXeFooO85mDfPdkPvuMP4UItRxglXsbfmNlQ5dxg25oBYSAJH9pP2AsvJ1ScQkpdOFoJb48VqkgYNM.wLrDcYKGedFO0HBfI81yv9G-D76SNMcY0UPPPdI22mRwN8gXBGGp92k53h1KEc7ag0ak9ETa6LnPl34V25Jc4YC3rXILhaa6J.M4hzAqllACM9319wGio4p44OFkGlPpgN.ltJZS0AaW9X3CHj-n2hyQAB8SP.Ajus1nTBPTJPb-Hj0LrcV6H860Rpwn8zGLfibFlAiPGyvhU8Ye52iQcNh1XhyIjU5N0a56m2ONPCsy2yJE2MQH9Vtj3dWmBLqE.MauRy5wUhGt7xNZoWfe9JGrar3ZeHRc4dSsd0RIlQ1YUo31fGOwi1Xfgvhhe4JPG5EYj9qSsH3.oZps5aXdx--TYsRRGn8p-Q2t9ufMVk.a3LCRAkC2MHGjLeFDChVzm1sl-Bu5nHUPV3JcSLLtz.EWd203hy3cgItmozD9jSoTmmDlQzmeuMjs4cmyHkc7OcKpa5ZkmXKIhuWWL1PB8JQFInAlUihvI.iWmd74vVNVou.Mq7lr13izMpQeXTwCX7eZR4diuBp12rqicd-pO1cprK6eZP-b1SuInOS2bPzpLsEcDg9JOefS2IKCBgZkZN1V.5iisCMqqvZJfQbTm0l8TqUvVVYQzBM3pTF3YFunJjn79ryX76dFbUfrQdChCsMXdVXhXKWhK7aKxfLZMGV1t5ZLS.WhCBeSp3g1WqnxFKTMlmqL5kYD0D-QlZnDQWB6CfFrfdWw.0B5yxG2ZsNwUTxPepPDck0MHjx1bWWkthueuyZwIYJFC-DPXpDz0q9BcSZ9lSO3Fm1Aw-wm4a.srqk8Aqw1gHodBjUGpKTy8xuN4TvW3wydnv61CL6-Ma55v-Kci4bPbKvnn4ON1zDx0RE5Nx-CnG.XNNhQQuMJYkjplO3Qdqu9Y32.UkTws1aTVFS.eW-Cc3Zlfh6YwbO-wd61ok6dkgj3fNObedaoZA1F02Pi3WxdB.NK7kZq-foRRQUAGEMz-biz--.syEvzi6C8Y89wwxrO.NQYuRs.gAFe2Oz26sXflDj3ZKPbbJ5LwwjHM1Zfj0bJ3cHAnEwK3LXdBrD99XSqFR6aV9uy.sGqoEJe-wvWZmWi2Ihctr-seZcIsU78A-6x6uPNyWuBas5q7-lfce9-8Do101kYW1tCLjm3E.YhKxmyhBJAlXkoQZqOkD.t.FPWkqotc6fQJs.bXQKpgtkhgJP2pCWDIqetgTZsY7xlN3E7zxLDrXBG.ru1s7At6U2M.h0H33HhkJRPicrz91Mnqr4yUQy3nOCQv4yqYRM8d7UUXqQdz8ORLX7PhYoA5ITVLr1rCs1RdaEl0tG5if.QpOOAVHva9i7wKGIOmsYkpwPB08qBqbgiKD8h-jhgo.T6oEaEIg9hq.9k87piJu2fHTHWNw1WGbDvK.IlEM0pWG7gx2ybjAuT6q1dUrLCN6NPK0brTSwMFavOBDfYh6SWU.k7XO3.BfW9YRgab03cIqVgnG7dDviEQYeYsVp6bNv9XqJoDDSwcwkJvnEdiYdDcVLlRMsgGfQl-tGvdMn.BnxRe7EAipxSvUxD.9hGX0wQGc87DOhmM3dQkRuht7pIqysrRPSNqVg2qV7yPxS6zN1jFxe9RVYcK-Jhhbgms67HfNYbVp9o.g6x-W9PX.BTeltcxjzVBajOnyD0pkOF1WFBnFimcWC6Ggb7ozlleM8QgTjBaA9mfSMCxZLogapWzy373M4zkkTNr-.hdkUMXZbHzFcOhyLEEaimeLa3YKjuAetlS3K.13re5yyNydVmSrcU07T2IefMatN49EwBjoSdfp0qUZT9.pikdceGh-PrN5eZiRnbnxhaAGJdNWy8YuT1nhbdHhnszeIEGYoiOAz3w8t8JeOqPk8.7dt3n9Q18SKzea-IlLBLRzcEhoqVuUCEMQ93-aK7kTUKwGpNFs6oxf4rK2c2cqKr6NdT0mVcCzXpEYgd4j2pfz.shgwjHo70TeTNn-kC1tWGTwvSe04Vuj8uQ5FMrHjWbBFG.9prQcHDQ9XaR45mJyb0kvP09gLqmLT2ZBctrFe4rKz49D8bgU2rmVhxKQwKj2Cvvce.R-a4qXa3zFRMnF0LCTb2XXgfhZnLhogeg-lX38MmIJ9H8XwoZJXltyM.MvaJ2YVjDcbdQ3VQQRHJ.kzsoJEJN7qLewjxfK3R3v.GYDnMtqbnX0dYax2JyQF6TkCgEB.6KhM4sm4rjZsdx7lu4l53pRPPb8XS149u1VRYFMhW1wnOrz.C53Dpcj0YE965xb8tPZiBISh06UNhxOXkofWvDZlXae8vxS3voQDpISEjIe.4NXpuCSEy9-XmRCnV0niE1U4rp1ZPlh3wlN47VgugUYKQDrYL92AwFYYryDXtlnvo.Ypnq9Y0ZwTAz6XEBkT.ztai7aKxwHuzIkrJeJ-oI4Mz-yiFXstaMYYePTr5BYMF4-A7DFKe3ZUZP6eBl2t-dBZc-tJQSmmC0rxlMJoSAg.s79j69O4t11hvcqgP35-N3ip.8rK9GmfL20x7w7TWlGsR-F41zDI6SQArXdgwuFEVb.P3iwlrKz1Fy-xZq53PmNrIC8f06zV7KLtpOwpZ87LSz3cmXgnmwpmvgp6cQ8lS2ooCWYglI2BlSOChtdxX4QGr9.GNlZaptZ1bq1IS8F-5et24cV618sltl94PSjILy7rGGXqmEok4CQbCgX2Eb5cMxm.UamVH-RBGWIxDmXfLHijBoztEsBN4GqfjGeSpNHk3h9IDa95xRFMFxDHBj2rrqs8w91QPWB0nd7O3.l4X08vnrJzHWtg749JwAIxhCyhBLIS77fmRDyeqoBxkGCtoJ1Pg6g7qTn.b40YEgtZkoixHTS0JsvxdJjmSeym.HxZDW.rVmnLJPNtEapDegXXh.BBtHZZx1Io3fpdQyf7bdyxW76itcs5CPi3.rP3jLvWanxz31GuOQ9oyO.bSmdpNllPpoMFanemkDjEHTAEuvVMgKaHIzsejRQjgUnYnMRjvYYtyYQCwHJSBQNqcRcCdDacVKNPRENNhIBLEgGi',
41
+ amount = 0,
42
+ items = [
43
+ maytes_api_client.models.checkout_friend_item.CheckoutFriendItem(
44
+ item_ref = '0',
45
+ quantity = 0, )
46
+ ]
47
+ )
48
+ else:
49
+ return CheckoutFriend(
50
+ name = '0',
51
+ mobile = '012',
52
+ )
53
+ """
54
+
55
+ def testCheckoutFriend(self):
56
+ """Test CheckoutFriend"""
57
+ # inst_req_only = self.make_instance(include_optional=False)
58
+ # inst_req_and_optional = self.make_instance(include_optional=True)
59
+
60
+ if __name__ == '__main__':
61
+ unittest.main()
@@ -0,0 +1,53 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Maytes API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import unittest
16
+
17
+ from maytes_api_client.models.checkout_friend_item import CheckoutFriendItem
18
+
19
+ class TestCheckoutFriendItem(unittest.TestCase):
20
+ """CheckoutFriendItem unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> CheckoutFriendItem:
29
+ """Test CheckoutFriendItem
30
+ include_optional is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `CheckoutFriendItem`
34
+ """
35
+ model = CheckoutFriendItem()
36
+ if include_optional:
37
+ return CheckoutFriendItem(
38
+ item_ref = '0',
39
+ quantity = 0
40
+ )
41
+ else:
42
+ return CheckoutFriendItem(
43
+ item_ref = '0',
44
+ )
45
+ """
46
+
47
+ def testCheckoutFriendItem(self):
48
+ """Test CheckoutFriendItem"""
49
+ # inst_req_only = self.make_instance(include_optional=False)
50
+ # inst_req_and_optional = self.make_instance(include_optional=True)
51
+
52
+ if __name__ == '__main__':
53
+ unittest.main()