Skip to content

Commit cba0610

Browse files
feat(python-sdk): Add riskified as supported external fraud tool; removes unused endpoints. (#29)
This PR has been automatically generated. Please review it and merge it if everything is fine. > [!CAUTION] > This is a BREAKING CHANGE. > As a result, the SDK removes support for several deprecated endpoints and related resources. Code using these endpoints will need to be updated. This change adds support for the `riskified` external fraud tool and removes unused endpoints: <details><summary> ### 1. Add `riskified` attribute to InvoiceExternalFraudTools </summary> This change adds support for the `riskified` external fraud tool attribute in the `InvoiceExternalFraudTools` class, following the same pattern as existing fraud tool attributes (`forter`, `ravelin`, `signifyd`). The implementation includes: * Initialization of `_riskified` attribute in `__init__` * Property getter and setter methods for `riskified` * Support for `riskified` in `fill_with_data()` method * Inclusion of `riskified` in `to_json()` serialization </details> <details><summary> ### 2. Remove non-existent endpoints and related resources </summary> The following endpoints and their associated resources have been removed as they are no longer supported by the API: * `/activities` - `Activity` class and `new_activity()` method * `/coupons` - `Coupon` class and `new_coupon()` method * `/customers/:id/subscriptions` - `Customer.fetch_subscriptions()` method and `subscriptions` attribute * `/discounts` - `Discount` class * `/plans` - `Plan` class and `new_plan()` method * `/subscriptions` - `Subscription` class, `new_subscription()` method, and related subscription attributes from `Transaction` and `Customer` * `/addons` - `Addon` class and `new_addon()` method * Supervised projects endpoints - Removed from `Project` class **Files removed:** * `processout/activity.py` * `processout/addon.py` * `processout/coupon.py` * `processout/discount.py` * `processout/plan.py` * `processout/subscription.py` **Files modified:** * `processout/client.py` - Removed factory methods for deleted resources * `processout/customer.py` - Removed `subscriptions` attribute and `fetch_subscriptions()` method * `processout/transaction.py` - Removed `subscription` and `subscription_id` attributes * `processout/__init__.py` - Removed imports for deleted classes * `processout/project.py` - Removed supervised projects endpoints </details> <details><summary> ### 3. Additional changes </summary> This release also includes various other updates: * Added `preferred_card_type` to `CardCreateRequest` and `CardUpdateRequest` * Added `vault_id` to `Customer` and `Token` * Added `threeds_sdk` and `platform` to `Device` * Added `origin` to `Transaction` * Added `capture_type` to `TransactionOperation` * Added `split_payments` to `UnsupportedFeatureBypass` * Updated version to `9.0.0` </details> BREAKING CHANGE: Removal of `subscriptions`, `activity`, `addon`, `coupon`, `discount`, `plan`, in customer, transaction and , projects endpoints. Co-authored-by: ProcessOut Fountain <internal@processout.com>
1 parent 37b7f77 commit cba0610

24 files changed

Lines changed: 297 additions & 3170 deletions

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15-
- uses: go-semantic-release/action@v1
15+
- uses: go-semantic-release/action@v1.24.1
1616
id: semrel
1717
with:
1818
github-token: ${{ secrets.GITHUB_TOKEN }}

processout/__init__.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
from processout.client import ProcessOut
33

44
# Import resources
5-
from processout.activity import Activity
6-
from processout.addon import Addon
75
from processout.apiversion import APIVersion
86
from processout.applepayalternativemerchantcertificates import ApplePayAlternativeMerchantCertificates
97
from processout.alternativemerchantcertificate import AlternativeMerchantCertificate
@@ -13,11 +11,9 @@
1311
from processout.card import Card
1412
from processout.cardinformation import CardInformation
1513
from processout.phone import Phone
16-
from processout.coupon import Coupon
1714
from processout.customer import Customer
1815
from processout.customerphone import CustomerPhone
1916
from processout.token import Token
20-
from processout.discount import Discount
2117
from processout.event import Event
2218
from processout.exportlayout import ExportLayout
2319
from processout.exportlayoutconfiguration import ExportLayoutConfiguration
@@ -49,13 +45,11 @@
4945
from processout.payout import Payout
5046
from processout.payoutitem import PayoutItem
5147
from processout.payoutitemamountbreakdowns import PayoutItemAmountBreakdowns
52-
from processout.plan import Plan
5348
from processout.product import Product
5449
from processout.project import Project
5550
from processout.projectsftpsettings import ProjectSFTPSettings
5651
from processout.projectsftpsettingspublic import ProjectSFTPSettingsPublic
5752
from processout.refund import Refund
58-
from processout.subscription import Subscription
5953
from processout.transaction import Transaction
6054
from processout.nativeapmresponse import NativeAPMResponse
6155
from processout.nativeapmparameterdefinition import NativeAPMParameterDefinition
@@ -67,11 +61,11 @@
6761
from processout.transactionoperation import TransactionOperation
6862
from processout.webhook import Webhook
6963
from processout.webhookendpoint import WebhookEndpoint
64+
from processout.cardupdaterequest import CardUpdateRequest
65+
from processout.cardcreaterequest import CardCreateRequest
7066
from processout.device import Device
7167
from processout.cardcontact import CardContact
7268
from processout.cardshipping import CardShipping
73-
from processout.cardupdaterequest import CardUpdateRequest
74-
from processout.cardcreaterequest import CardCreateRequest
7569
from processout.errorcodes import ErrorCodes
7670
from processout.categoryerrorcodes import CategoryErrorCodes
7771
from processout.externalthreeds import ExternalThreeDS

processout/activity.py

Lines changed: 0 additions & 212 deletions
This file was deleted.

0 commit comments

Comments
 (0)