Commit cba0610
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
File tree
- .github/workflows
- processout
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | | - | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
20 | | - | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
| |||
49 | 45 | | |
50 | 46 | | |
51 | 47 | | |
52 | | - | |
53 | 48 | | |
54 | 49 | | |
55 | 50 | | |
56 | 51 | | |
57 | 52 | | |
58 | | - | |
59 | 53 | | |
60 | 54 | | |
61 | 55 | | |
| |||
67 | 61 | | |
68 | 62 | | |
69 | 63 | | |
| 64 | + | |
| 65 | + | |
70 | 66 | | |
71 | 67 | | |
72 | 68 | | |
73 | | - | |
74 | | - | |
75 | 69 | | |
76 | 70 | | |
77 | 71 | | |
| |||
This file was deleted.
0 commit comments