Skip to content

Commit ead7ade

Browse files
feat: Add custom action structure to the create token flow (#20)
Co-authored-by: ProcessOut Fountain <internal@processout.com>
1 parent 99600ef commit ead7ade

14 files changed

+1097
-10
lines changed

processout/__init__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818
from processout.token import Token
1919
from processout.discount import Discount
2020
from processout.event import Event
21+
from processout.exportlayout import ExportLayout
22+
from processout.exportlayoutconfiguration import ExportLayoutConfiguration
23+
from processout.exportlayoutconfigurationcolumn import ExportLayoutConfigurationColumn
24+
from processout.exportlayoutconfigurationtime import ExportLayoutConfigurationTime
25+
from processout.exportlayoutconfigurationamount import ExportLayoutConfigurationAmount
26+
from processout.exportlayoutconfigurationoptions import ExportLayoutConfigurationOptions
27+
from processout.exportlayoutconfigurationconfigurationoptionstime import ExportLayoutConfigurationConfigurationOptionsTime
28+
from processout.exportlayoutconfigurationconfigurationoptionsamount import ExportLayoutConfigurationConfigurationOptionsAmount
2129
from processout.gateway import Gateway
2230
from processout.gatewayconfiguration import GatewayConfiguration
2331
from processout.invoice import Invoice
@@ -62,9 +70,10 @@
6270
from processout.cardupdaterequest import CardUpdateRequest
6371
from processout.errorcodes import ErrorCodes
6472
from processout.categoryerrorcodes import CategoryErrorCodes
73+
from processout.externalthreeds import ExternalThreeDS
74+
from processout.nativeapmtransactiondetails import NativeAPMTransactionDetails
6575
from processout.nativeapmtransactiondetailsgateway import NativeAPMTransactionDetailsGateway
6676
from processout.nativeapmtransactiondetailsinvoice import NativeAPMTransactionDetailsInvoice
67-
from processout.nativeapmtransactiondetails import NativeAPMTransactionDetails
6877

6978
from processout.gatewayrequest import GatewayRequest
7079

processout/client.py

Lines changed: 64 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,58 @@ def new_event(self, prefill=None):
129129
prefill -- Data used to prefill the object (optional)"""
130130
return processout.Event(self, prefill)
131131

132+
def new_export_layout(self, prefill=None):
133+
"""Create a new ExportLayout instance
134+
Keyword argument:
135+
prefill -- Data used to prefill the object (optional)"""
136+
return processout.ExportLayout(self, prefill)
137+
138+
def new_export_layout_configuration(self, prefill=None):
139+
"""Create a new ExportLayoutConfiguration instance
140+
Keyword argument:
141+
prefill -- Data used to prefill the object (optional)"""
142+
return processout.ExportLayoutConfiguration(self, prefill)
143+
144+
def new_export_layout_configuration_column(self, prefill=None):
145+
"""Create a new ExportLayoutConfigurationColumn instance
146+
Keyword argument:
147+
prefill -- Data used to prefill the object (optional)"""
148+
return processout.ExportLayoutConfigurationColumn(self, prefill)
149+
150+
def new_export_layout_configuration_time(self, prefill=None):
151+
"""Create a new ExportLayoutConfigurationTime instance
152+
Keyword argument:
153+
prefill -- Data used to prefill the object (optional)"""
154+
return processout.ExportLayoutConfigurationTime(self, prefill)
155+
156+
def new_export_layout_configuration_amount(self, prefill=None):
157+
"""Create a new ExportLayoutConfigurationAmount instance
158+
Keyword argument:
159+
prefill -- Data used to prefill the object (optional)"""
160+
return processout.ExportLayoutConfigurationAmount(self, prefill)
161+
162+
def new_export_layout_configuration_options(self, prefill=None):
163+
"""Create a new ExportLayoutConfigurationOptions instance
164+
Keyword argument:
165+
prefill -- Data used to prefill the object (optional)"""
166+
return processout.ExportLayoutConfigurationOptions(self, prefill)
167+
168+
def new_export_layout_configuration_configuration_options_time(
169+
self, prefill=None):
170+
"""Create a new ExportLayoutConfigurationConfigurationOptionsTime instance
171+
Keyword argument:
172+
prefill -- Data used to prefill the object (optional)"""
173+
return processout.ExportLayoutConfigurationConfigurationOptionsTime(
174+
self, prefill)
175+
176+
def new_export_layout_configuration_configuration_options_amount(
177+
self, prefill=None):
178+
"""Create a new ExportLayoutConfigurationConfigurationOptionsAmount instance
179+
Keyword argument:
180+
prefill -- Data used to prefill the object (optional)"""
181+
return processout.ExportLayoutConfigurationConfigurationOptionsAmount(
182+
self, prefill)
183+
132184
def new_gateway(self, prefill=None):
133185
"""Create a new Gateway instance
134186
Keyword argument:
@@ -393,6 +445,18 @@ def new_category_error_codes(self, prefill=None):
393445
prefill -- Data used to prefill the object (optional)"""
394446
return processout.CategoryErrorCodes(self, prefill)
395447

448+
def new_external_three_ds(self, prefill=None):
449+
"""Create a new ExternalThreeDS instance
450+
Keyword argument:
451+
prefill -- Data used to prefill the object (optional)"""
452+
return processout.ExternalThreeDS(self, prefill)
453+
454+
def new_native_apm_transaction_details(self, prefill=None):
455+
"""Create a new NativeAPMTransactionDetails instance
456+
Keyword argument:
457+
prefill -- Data used to prefill the object (optional)"""
458+
return processout.NativeAPMTransactionDetails(self, prefill)
459+
396460
def new_native_apm_transaction_details_gateway(self, prefill=None):
397461
"""Create a new NativeAPMTransactionDetailsGateway instance
398462
Keyword argument:
@@ -404,9 +468,3 @@ def new_native_apm_transaction_details_invoice(self, prefill=None):
404468
Keyword argument:
405469
prefill -- Data used to prefill the object (optional)"""
406470
return processout.NativeAPMTransactionDetailsInvoice(self, prefill)
407-
408-
def new_native_apm_transaction_details(self, prefill=None):
409-
"""Create a new NativeAPMTransactionDetails instance
410-
Keyword argument:
411-
prefill -- Data used to prefill the object (optional)"""
412-
return processout.NativeAPMTransactionDetails(self, prefill)

0 commit comments

Comments
 (0)