Skip to content

Commit 842db13

Browse files
fix: Remove non required fields (#30)
Fixes fields marked as required were removed. --------- Co-authored-by: ProcessOut Fountain <internal@processout.com>
1 parent cba0610 commit 842db13

File tree

4 files changed

+3
-27
lines changed

4 files changed

+3
-27
lines changed

processout/invoice.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,9 +1021,6 @@ def authenticate(self, source, options={}):
10211021
data = {
10221022
'device': self.device,
10231023
'incremental': self.incremental,
1024-
'capture_type': self.capture_type,
1025-
'split_allocations': self.split_allocations,
1026-
'installment_plan_id': self.installment_plan_id,
10271024
'synchronous': options.get("synchronous"),
10281025
'retry_drop_liability_shift': options.get("retry_drop_liability_shift"),
10291026
'capture_amount': options.get("capture_amount"),
@@ -1090,9 +1087,6 @@ def authorize(self, source, options={}):
10901087
data = {
10911088
'device': self.device,
10921089
'incremental': self.incremental,
1093-
'capture_type': self.capture_type,
1094-
'split_allocations': self.split_allocations,
1095-
'installment_plan_id': self.installment_plan_id,
10961090
'synchronous': options.get("synchronous"),
10971091
'retry_drop_liability_shift': options.get("retry_drop_liability_shift"),
10981092
'capture_amount': options.get("capture_amount"),
@@ -1133,9 +1127,7 @@ def capture(self, source, options={}):
11331127
path = "/invoices/" + quote_plus(self.id) + "/capture"
11341128
data = {
11351129
'device': self.device,
1136-
'authenticate_only': self.authenticate_only,
11371130
'incremental': self.incremental,
1138-
'installment_plan_id': self.installment_plan_id,
11391131
'authorize_only': options.get("authorize_only"),
11401132
'synchronous': options.get("synchronous"),
11411133
'retry_drop_liability_shift': options.get("retry_drop_liability_shift"),
@@ -1450,8 +1442,7 @@ def create(self, options={}):
14501442
'unsupported_feature_bypass': self.unsupported_feature_bypass,
14511443
'verification': self.verification,
14521444
'auto_capture_at': self.auto_capture_at,
1453-
'expires_at': self.expires_at,
1454-
'split_allocations': self.split_allocations
1445+
'expires_at': self.expires_at
14551446
}
14561447

14571448
response = Response(request.post(path, data, options))

processout/refund.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ def create_for_invoice(self, invoice_id, options={}):
240240
'reason': self.reason,
241241
'information': self.information,
242242
'invoice_detail_ids': self.invoice_detail_ids,
243-
'split_allocations': self.split_allocations,
244243
'metadata': options.get("metadata")
245244
}
246245

@@ -320,7 +319,6 @@ def create(self, options={}):
320319
'reason': self.reason,
321320
'information': self.information,
322321
'invoice_detail_ids': self.invoice_detail_ids,
323-
'split_allocations': self.split_allocations,
324322
'metadata': options.get("metadata")
325323
}
326324

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
setup(
44
name = 'processout',
55
packages = ['processout', 'processout.errors', 'processout.networking'],
6-
version = '9.0.0',
6+
version = '9.0.1',
77
description = 'ProcessOut API bindings.',
88
author = 'ProcessOut',
99
author_email = 'hi@processout.com',
1010
url = 'https://github.com/processout/processout-python',
11-
download_url = 'https://github.com/processout/processout-python/tarball/9.0.0',
11+
download_url = 'https://github.com/processout/processout-python/tarball/9.0.1',
1212
keywords = ['ProcessOut', 'api', 'bindings'],
1313
classifiers = [],
1414
)

spec.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,6 @@ def main():
3434
# Fetch the customers
3535
client.new_customer().all()
3636

37-
# Create a subscription for a customer
38-
customer = client.new_customer().create()
39-
assert customer.id != "", "The created customer ID should not be empty"
40-
41-
subscription = client.new_subscription({
42-
"customer_id": customer.id,
43-
"name": "Test subscription",
44-
"amount": "9.99",
45-
"currency": "USD",
46-
"interval": "1d"
47-
}).create()
48-
assert subscription.id != "", "The created subscription ID should not be empty"
49-
5037
# Expand a customers' project and fetch gateways
5138
customer = client.new_customer().create({"expand": ["project"]})
5239
assert customer.project != None, "The customer project should be expanded"

0 commit comments

Comments
 (0)