Skip to content

Commit a49159d

Browse files
committed
Refactor project structure and remove deprecated files
- Remove deprecated model and test files from Monei/model and test directories - Consolidate models in Monei/models directory - Update OpenAPI generator version to 7.12.0 - Remove unused scripts and lock files - Update configuration and test settings
1 parent 32faacd commit a49159d

File tree

333 files changed

+17657
-53076
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+17657
-53076
lines changed

.cursor/rules/general.mdc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
description: General rules
3+
globs:
4+
---
5+
- always use `uv` instead of `pip` directly

.github/workflows/python.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5+
6+
name: Monei Python package
7+
8+
on: [push, pull_request]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
pip install -r test-requirements.txt
29+
- name: Test with pytest
30+
run: |
31+
pytest --cov=Monei

.openapi-generator/FILES

Lines changed: 85 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.github/workflows/python.yml
12
Monei/__init__.py
23
Monei/api/__init__.py
34
Monei/api/apple_pay_domain_api.py
@@ -6,115 +7,95 @@ Monei/api/payment_methods_api.py
67
Monei/api/payments_api.py
78
Monei/api/subscriptions_api.py
89
Monei/api_client.py
9-
Monei/apis/__init__.py
10+
Monei/api_response.py
1011
Monei/configuration.py
1112
Monei/exceptions.py
12-
Monei/model/__init__.py
13-
Monei/model/activate_subscription_request.py
14-
Monei/model/address.py
15-
Monei/model/apple_pay_domain_register200_response.py
16-
Monei/model/apple_pay_domain_register400_response.py
17-
Monei/model/apple_pay_domain_register401_response.py
18-
Monei/model/apple_pay_domain_register404_response.py
19-
Monei/model/apple_pay_domain_register422_response.py
20-
Monei/model/apple_pay_domain_register500_response.py
21-
Monei/model/apple_pay_domain_register503_response.py
22-
Monei/model/bizum_validate_phone200_response.py
23-
Monei/model/cancel_payment_request.py
24-
Monei/model/cancel_subscription_request.py
25-
Monei/model/capture_payment_request.py
26-
Monei/model/confirm_payment_request.py
27-
Monei/model/confirm_payment_request_payment_method.py
28-
Monei/model/confirm_payment_request_payment_method_card.py
29-
Monei/model/create_payment_request.py
30-
Monei/model/create_subscription_request.py
31-
Monei/model/error.py
32-
Monei/model/pause_subscription_request.py
33-
Monei/model/payment.py
34-
Monei/model/payment_billing_details.py
35-
Monei/model/payment_cancellation_reason.py
36-
Monei/model/payment_customer.py
37-
Monei/model/payment_last_refund_reason.py
38-
Monei/model/payment_message_channel.py
39-
Monei/model/payment_message_language.py
40-
Monei/model/payment_methods.py
41-
Monei/model/payment_methods_metadata.py
42-
Monei/model/payment_methods_metadata_alipay.py
43-
Monei/model/payment_methods_metadata_apple_pay.py
44-
Monei/model/payment_methods_metadata_bancontact.py
45-
Monei/model/payment_methods_metadata_bizum.py
46-
Monei/model/payment_methods_metadata_blik.py
47-
Monei/model/payment_methods_metadata_card.py
48-
Monei/model/payment_methods_metadata_click_to_pay.py
49-
Monei/model/payment_methods_metadata_click_to_pay_discover.py
50-
Monei/model/payment_methods_metadata_click_to_pay_mastercard.py
51-
Monei/model/payment_methods_metadata_click_to_pay_visa.py
52-
Monei/model/payment_methods_metadata_eps.py
53-
Monei/model/payment_methods_metadata_giropay.py
54-
Monei/model/payment_methods_metadata_google_pay.py
55-
Monei/model/payment_methods_metadata_i_deal.py
56-
Monei/model/payment_methods_metadata_klarna.py
57-
Monei/model/payment_methods_metadata_mbway.py
58-
Monei/model/payment_methods_metadata_sepa.py
59-
Monei/model/payment_methods_metadata_sofort.py
60-
Monei/model/payment_methods_metadata_trustly.py
61-
Monei/model/payment_methods_methods.py
62-
Monei/model/payment_next_action.py
63-
Monei/model/payment_payment_method.py
64-
Monei/model/payment_payment_method_bizum.py
65-
Monei/model/payment_payment_method_bizum_input.py
66-
Monei/model/payment_payment_method_card.py
67-
Monei/model/payment_payment_method_card_input.py
68-
Monei/model/payment_payment_method_cofidis.py
69-
Monei/model/payment_payment_method_input.py
70-
Monei/model/payment_payment_method_klarna.py
71-
Monei/model/payment_payment_method_mbway.py
72-
Monei/model/payment_payment_method_paypal.py
73-
Monei/model/payment_payment_method_sepa.py
74-
Monei/model/payment_payment_method_trustly.py
75-
Monei/model/payment_payment_methods.py
76-
Monei/model/payment_refund_reason.py
77-
Monei/model/payment_sequence.py
78-
Monei/model/payment_sequence_recurring.py
79-
Monei/model/payment_session_details.py
80-
Monei/model/payment_shipping_details.py
81-
Monei/model/payment_shop.py
82-
Monei/model/payment_status.py
83-
Monei/model/payment_trace_details.py
84-
Monei/model/payment_transaction_type.py
85-
Monei/model/recurring_payment_request.py
86-
Monei/model/refund_payment_request.py
87-
Monei/model/register_apple_pay_domain_request.py
88-
Monei/model/send_payment_link_request.py
89-
Monei/model/send_payment_receipt_request.py
90-
Monei/model/send_payment_request_request.py
91-
Monei/model/send_subscription_link_request.py
92-
Monei/model/send_subscription_status_request.py
93-
Monei/model/subscription.py
94-
Monei/model/subscription_interval.py
95-
Monei/model/subscription_last_payment.py
96-
Monei/model/subscription_payment_method.py
97-
Monei/model/subscription_payment_method_card.py
98-
Monei/model/subscription_retry_schedule.py
99-
Monei/model/subscription_retry_schedule_inner.py
100-
Monei/model/subscription_status.py
101-
Monei/model/update_subscription_request.py
102-
Monei/model/validate_bizum_phone_request.py
103-
Monei/model_utils.py
10413
Monei/models/__init__.py
14+
Monei/models/activate_subscription_request.py
15+
Monei/models/address.py
16+
Monei/models/apple_pay_domain_register200_response.py
17+
Monei/models/bizum_validate_phone200_response.py
18+
Monei/models/cancel_payment_request.py
19+
Monei/models/cancel_subscription_request.py
20+
Monei/models/capture_payment_request.py
21+
Monei/models/confirm_payment_request.py
22+
Monei/models/confirm_payment_request_payment_method.py
23+
Monei/models/confirm_payment_request_payment_method_card.py
24+
Monei/models/create_payment_request.py
25+
Monei/models/create_subscription_request.py
26+
Monei/models/error.py
27+
Monei/models/pause_subscription_request.py
28+
Monei/models/payment.py
29+
Monei/models/payment_billing_details.py
30+
Monei/models/payment_cancellation_reason.py
31+
Monei/models/payment_customer.py
32+
Monei/models/payment_last_refund_reason.py
33+
Monei/models/payment_message_channel.py
34+
Monei/models/payment_message_language.py
35+
Monei/models/payment_methods.py
36+
Monei/models/payment_methods_metadata.py
37+
Monei/models/payment_methods_metadata_alipay.py
38+
Monei/models/payment_methods_metadata_apple_pay.py
39+
Monei/models/payment_methods_metadata_bancontact.py
40+
Monei/models/payment_methods_metadata_bizum.py
41+
Monei/models/payment_methods_metadata_blik.py
42+
Monei/models/payment_methods_metadata_card.py
43+
Monei/models/payment_methods_metadata_click_to_pay.py
44+
Monei/models/payment_methods_metadata_click_to_pay_discover.py
45+
Monei/models/payment_methods_metadata_click_to_pay_mastercard.py
46+
Monei/models/payment_methods_metadata_click_to_pay_visa.py
47+
Monei/models/payment_methods_metadata_eps.py
48+
Monei/models/payment_methods_metadata_giropay.py
49+
Monei/models/payment_methods_metadata_google_pay.py
50+
Monei/models/payment_methods_metadata_i_deal.py
51+
Monei/models/payment_methods_metadata_klarna.py
52+
Monei/models/payment_methods_metadata_mbway.py
53+
Monei/models/payment_methods_metadata_sepa.py
54+
Monei/models/payment_methods_metadata_sofort.py
55+
Monei/models/payment_methods_metadata_trustly.py
56+
Monei/models/payment_next_action.py
57+
Monei/models/payment_payment_method.py
58+
Monei/models/payment_payment_method_bizum.py
59+
Monei/models/payment_payment_method_bizum_input.py
60+
Monei/models/payment_payment_method_card.py
61+
Monei/models/payment_payment_method_card_input.py
62+
Monei/models/payment_payment_method_cofidis.py
63+
Monei/models/payment_payment_method_input.py
64+
Monei/models/payment_payment_method_klarna.py
65+
Monei/models/payment_payment_method_mbway.py
66+
Monei/models/payment_payment_method_paypal.py
67+
Monei/models/payment_payment_method_sepa.py
68+
Monei/models/payment_payment_method_trustly.py
69+
Monei/models/payment_refund_reason.py
70+
Monei/models/payment_sequence.py
71+
Monei/models/payment_sequence_recurring.py
72+
Monei/models/payment_session_details.py
73+
Monei/models/payment_shipping_details.py
74+
Monei/models/payment_shop.py
75+
Monei/models/payment_status.py
76+
Monei/models/payment_trace_details.py
77+
Monei/models/payment_transaction_type.py
78+
Monei/models/recurring_payment_request.py
79+
Monei/models/refund_payment_request.py
80+
Monei/models/register_apple_pay_domain_request.py
81+
Monei/models/send_payment_link_request.py
82+
Monei/models/send_payment_receipt_request.py
83+
Monei/models/send_payment_request_request.py
84+
Monei/models/send_subscription_link_request.py
85+
Monei/models/send_subscription_status_request.py
86+
Monei/models/subscription.py
87+
Monei/models/subscription_interval.py
88+
Monei/models/subscription_last_payment.py
89+
Monei/models/subscription_payment_method.py
90+
Monei/models/subscription_payment_method_card.py
91+
Monei/models/subscription_retry_schedule_inner.py
92+
Monei/models/subscription_status.py
93+
Monei/models/update_subscription_request.py
94+
Monei/models/validate_bizum_phone_request.py
95+
Monei/py.typed
10596
Monei/rest.py
97+
pyproject.toml
10698
requirements.txt
10799
test-requirements.txt
108100
test/__init__.py
109-
test/test_apple_pay_domain_register200_response.py
110-
test/test_apple_pay_domain_register400_response.py
111-
test/test_apple_pay_domain_register401_response.py
112-
test/test_apple_pay_domain_register404_response.py
113-
test/test_apple_pay_domain_register422_response.py
114-
test/test_apple_pay_domain_register500_response.py
115-
test/test_apple_pay_domain_register503_response.py
116-
test/test_bizum_validate_phone200_response.py
117-
test/test_payment_methods_methods.py
118-
test/test_subscription_retry_schedule.py
119-
test/test_subscription_retry_schedule_inner.py
120101
tox.ini

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.1
1+
7.12.0

0 commit comments

Comments
 (0)