Commit 632537f
@basefy/subscription (#105)
* Refactored `IyzipayResource` to remove v1 auth structure and redundant PKI string generation methods and streamline the signature calculation process across payment operations.
* Added missing `api_key` and `secret_key` to API test configuration.
* Updated image path in sample scripts to use `./images/` directory and added missing sample image.
* Added `ThreedsV2Payment` resource and sample script for 3D Secure v2 payments.
* Updated sample `create_threeds_v2_payment.py` with realistic test data for `paymentId` and `basketId`.
* Added `fast_link` method to `IyziLinkProduct` and sample script for generating fast links.
* Added `update_product_status` method to `IyziLinkProduct` and sample script for updating product status.
* Added `update_item` method for Marketplace sub merchants and a sample script for updating sub-merchant items.
* Added `refund` Payment service method to `IyzipayResource` and sample script for refunding payments.
* Added `PayWithIyzico` resource and sample script for initializing Pay With Iyzico payments.
* Updated `RetrievePaymentDetails` method to support `paymentId` as an optional parameter and modified the sample script accordingly.
* Added `ReportingScrollTransaction` resource to retrieve paginated transaction reports.
* Added `SubscriptionProduct` resource and sample script for creating subscription products.
* Added `list` method to `SubscriptionProduct` and sample script for listing subscription products.
* Added `retrieve` method to `SubscriptionProduct` and sample script for retrieving subscription products.
* Added `delete` method to `SubscriptionProduct` and sample script for deleting subscription products.
* Added `update` method to `SubscriptionProduct` and sample script for updating subscription products.
* Added `SubscriptionPricingPlan` resource and sample script for creating subscription pricing plans.
* Added `list` method to `SubscriptionPricingPlan` and sample script for listing subscription pricing plans.
* Added `update` method to `SubscriptionPricingPlan` and sample script for updating subscription pricing plans.
* Added `retrieve` method to `SubscriptionPricingPlan` and sample script for retrieving subscription pricing plans.
* Added `delete` method to `SubscriptionPricingPlan` and sample script for deleting subscription pricing plans
* Added `create` method to `SubscriptionCheckoutForm` and sample script for initializing subscription checkout forms
* Added `retrieve` method to `SubscriptionCheckoutForm` and sample script for retrieving subscription checkout forms
* Added `retrieve` method to `Subscription` and sample script for listing subscriptions
* Refactored variable names in subscription samples for clarity and consistency
* Added `initialize` method to `Subscription` and sample script for initializing subscriptions
* Added `initialize_with_customer` method to `Subscription` and sample script for initializing subscriptions for a specific customer
* Renamed `subscription_list.py` to `subscription_retrieve.py` in subscription samples for better alignment with functionality.
* Added `payment_card_pki` method to `iyzipay_resource.py` for building PKI strings from payment card details
* Added `list` method to `Subscription` and sample script for listing subscriptions with query parameters
* Added `activate` method to `Subscription` and sample script for activating subscriptions
* Added `retry` method to `Subscription` and sample script for retrying subscription operations
* Added `cancel` method to `Subscription` and sample script for canceling subscriptions
* Added `upgrade` method to `Subscription` and sample script for upgrading subscriptions
* Added `SubscriptionCardUpdate` class with `initialize` and `initialize_with_subscription` methods, and sample scripts for updating subscription cards
* Added `SubscriptionCustomer` class with `create` method and sample script for creating subscription customers
* Added `update` method to `SubscriptionCustomer` and sample script for updating subscription customer details
* Added `retrieve` method to `SubscriptionCustomer` and sample script for retrieving subscription customer details
* Added `delete` method to `SubscriptionCustomer` and sample script for deleting subscription customers
* Added `list` method to `SubscriptionCustomer` and sample script for listing subscription customers
* Added `PayWithIyzico` to imports and corrected HTTP method for `SubscriptionProduct.update`
* Removed debug print statement from `delete` method in `iyzipay_resource`
* Fixed incorrect print statement in `subscription_pricing_plan_delete.py` sample script.
* Updated Python version classifiers in `setup.py`, added support for Python 3.13, and removed deprecated versions.
* Updated GitHub Actions: Upgraded `actions/checkout` to v4, `actions/setup-python` to v5, expanded matrix to include Python 3.9–3.13
---------
Signed-off-by: Bünyamin Yaşar <33955141+byasarcse@users.noreply.github.com>
Co-authored-by: Osman Keser <osman@basefy.com>1 parent 166a788 commit 632537f
43 files changed
Lines changed: 973 additions & 643 deletions
File tree
- .github/workflows
- iyzipay
- samples
- images
- subscriptions
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
58 | 68 | | |
59 | | - | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments