Skip to content

Commit 52a55fd

Browse files
featadd device 3DS2 fields and remove unsupported features
1 parent 842db13 commit 52a55fd

81 files changed

Lines changed: 2657 additions & 1780 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

processout/__init__.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
from processout.invoiceshippingphone import InvoiceShippingPhone
3737
from processout.invoicebilling import InvoiceBilling
3838
from processout.unsupportedfeaturebypass import UnsupportedFeatureBypass
39+
from processout.paymentprocessingconfiguration import PaymentProcessingConfiguration
40+
from processout.apmpaymentprocessingconfiguration import APMPaymentProcessingConfiguration
3941
from processout.invoicedetail import InvoiceDetail
4042
from processout.invoicesubmerchant import InvoiceSubmerchant
4143
from processout.submerchantphonenumber import SubmerchantPhoneNumber
@@ -50,6 +52,8 @@
5052
from processout.projectsftpsettings import ProjectSFTPSettings
5153
from processout.projectsftpsettingspublic import ProjectSFTPSettingsPublic
5254
from processout.refund import Refund
55+
from processout.submerchant import Submerchant
56+
from processout.submerchantmapping import SubmerchantMapping
5357
from processout.transaction import Transaction
5458
from processout.nativeapmresponse import NativeAPMResponse
5559
from processout.nativeapmparameterdefinition import NativeAPMParameterDefinition
@@ -63,6 +67,7 @@
6367
from processout.webhookendpoint import WebhookEndpoint
6468
from processout.cardupdaterequest import CardUpdateRequest
6569
from processout.cardcreaterequest import CardCreateRequest
70+
from processout.cardschemedetails import CardSchemeDetails
6671
from processout.device import Device
6772
from processout.cardcontact import CardContact
6873
from processout.cardshipping import CardShipping
@@ -77,7 +82,7 @@
7782

7883
# Import errors
7984
from processout.errors.authenticationerror import AuthenticationError
80-
from processout.errors.genericerror import GenericError
81-
from processout.errors.internalerror import InternalError
82-
from processout.errors.notfounderror import NotFoundError
83-
from processout.errors.validationerror import ValidationError
85+
from processout.errors.genericerror import GenericError
86+
from processout.errors.internalerror import InternalError
87+
from processout.errors.notfounderror import NotFoundError
88+
from processout.errors.validationerror import ValidationError

processout/alternativemerchantcertificate.py

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
import processout
77
import json
88

9-
from processout.networking.request import Request
9+
from processout.networking.request import Request
1010
from processout.networking.response import Response
1111

1212
# The content of this file was automatically generated
1313

14-
1514
class AlternativeMerchantCertificate(object):
16-
def __init__(self, client, prefill=None):
15+
def __init__(self, client, prefill = None):
1716
self._client = client
1817

1918
self._id = None
20-
if prefill is not None:
19+
if prefill != None:
2120
self.fill_with_data(prefill)
2221

22+
2323
@property
2424
def id(self):
2525
"""Get id"""
@@ -32,64 +32,66 @@ def id(self, val):
3232
val -- New id value"""
3333
self._id = val
3434
return self
35+
3536

3637
def fill_with_data(self, data):
3738
"""Fill the current object with the new values pulled from data
3839
Keyword argument:
3940
data -- The data from which to pull the new values"""
4041
if "id" in data.keys():
4142
self.id = data["id"]
42-
43+
4344
return self
4445

4546
def to_json(self):
4647
return {
4748
"id": self.id,
4849
}
4950

50-
def save(self, options={}):
51+
def save(self, options = {}):
5152
"""Save new alternative apple pay certificates
5253
Keyword argument:
53-
54+
5455
options -- Options for the request"""
5556
self.fill_with_data(options)
5657

5758
request = Request(self._client)
58-
path = "/projects/applepay/alternative-merchant-certificates"
59-
data = {
59+
path = "/projects/applepay/alternative-merchant-certificates"
60+
data = {
6061

6162
}
6263

6364
response = Response(request.post(path, data, options))
6465
return_values = []
65-
66+
6667
body = response.body
6768
body = body.get("alternative_merchant_certificate")
6869
if body is not None:
69-
alternativeMerchantCertificate = processout.AlternativeMerchantCertificate(
70-
self._client)
71-
return_values.append(
72-
alternativeMerchantCertificate.fill_with_data(body))
70+
alternativeMerchantCertificate = processout.AlternativeMerchantCertificate(self._client)
71+
return_values.append(alternativeMerchantCertificate.fill_with_data(body))
7372

73+
7474
return return_values[0]
7575

76-
def delete(self, options={}):
76+
def delete(self, options = {}):
7777
"""Delete a given alternative merchant certificate
7878
Keyword argument:
79-
79+
8080
options -- Options for the request"""
8181
self.fill_with_data(options)
8282

8383
request = Request(self._client)
84-
path = "/projects/applepay/alternative-merchant-certificates/" + \
85-
quote_plus(self.id) + ""
86-
data = {
84+
path = "/projects/applepay/alternative-merchant-certificates/" + quote_plus(self.id) + ""
85+
data = {
8786

8887
}
8988

9089
response = Response(request.delete(path, data, options))
9190
return_values = []
92-
91+
9392
return_values.append(response.success)
9493

94+
9595
return return_values[0]
96+
97+

processout/apiversion.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@
66
import processout
77
import json
88

9-
from processout.networking.request import Request
9+
from processout.networking.request import Request
1010
from processout.networking.response import Response
1111

1212
# The content of this file was automatically generated
1313

14-
1514
class APIVersion(object):
16-
def __init__(self, client, prefill=None):
15+
def __init__(self, client, prefill = None):
1716
self._client = client
1817

1918
self._name = None
2019
self._description = None
2120
self._created_at = None
22-
if prefill is not None:
21+
if prefill != None:
2322
self.fill_with_data(prefill)
2423

24+
2525
@property
2626
def name(self):
2727
"""Get name"""
@@ -34,7 +34,7 @@ def name(self, val):
3434
val -- New name value"""
3535
self._name = val
3636
return self
37-
37+
3838
@property
3939
def description(self):
4040
"""Get description"""
@@ -47,7 +47,7 @@ def description(self, val):
4747
val -- New description value"""
4848
self._description = val
4949
return self
50-
50+
5151
@property
5252
def created_at(self):
5353
"""Get created_at"""
@@ -60,6 +60,7 @@ def created_at(self, val):
6060
val -- New created_at value"""
6161
self._created_at = val
6262
return self
63+
6364

6465
def fill_with_data(self, data):
6566
"""Fill the current object with the new values pulled from data
@@ -71,7 +72,7 @@ def fill_with_data(self, data):
7172
self.description = data["description"]
7273
if "created_at" in data.keys():
7374
self.created_at = data["created_at"]
74-
75+
7576
return self
7677

7778
def to_json(self):
@@ -80,3 +81,5 @@ def to_json(self):
8081
"description": self.description,
8182
"created_at": self.created_at,
8283
}
84+
85+
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
try:
2+
from urllib.parse import quote_plus
3+
except ImportError:
4+
from urllib import quote_plus
5+
6+
import processout
7+
import json
8+
9+
from processout.networking.request import Request
10+
from processout.networking.response import Response
11+
12+
# The content of this file was automatically generated
13+
14+
class APMPaymentProcessingConfiguration(object):
15+
def __init__(self, client, prefill = None):
16+
self._client = client
17+
18+
self._return_redirect_type = None
19+
self._preferred_finalization_mode = None
20+
if prefill != None:
21+
self.fill_with_data(prefill)
22+
23+
24+
@property
25+
def return_redirect_type(self):
26+
"""Get return_redirect_type"""
27+
return self._return_redirect_type
28+
29+
@return_redirect_type.setter
30+
def return_redirect_type(self, val):
31+
"""Set return_redirect_type
32+
Keyword argument:
33+
val -- New return_redirect_type value"""
34+
self._return_redirect_type = val
35+
return self
36+
37+
@property
38+
def preferred_finalization_mode(self):
39+
"""Get preferred_finalization_mode"""
40+
return self._preferred_finalization_mode
41+
42+
@preferred_finalization_mode.setter
43+
def preferred_finalization_mode(self, val):
44+
"""Set preferred_finalization_mode
45+
Keyword argument:
46+
val -- New preferred_finalization_mode value"""
47+
self._preferred_finalization_mode = val
48+
return self
49+
50+
51+
def fill_with_data(self, data):
52+
"""Fill the current object with the new values pulled from data
53+
Keyword argument:
54+
data -- The data from which to pull the new values"""
55+
if "return_redirect_type" in data.keys():
56+
self.return_redirect_type = data["return_redirect_type"]
57+
if "preferred_finalization_mode" in data.keys():
58+
self.preferred_finalization_mode = data["preferred_finalization_mode"]
59+
60+
return self
61+
62+
def to_json(self):
63+
return {
64+
"return_redirect_type": self.return_redirect_type,
65+
"preferred_finalization_mode": self.preferred_finalization_mode,
66+
}
67+
68+

processout/applepayalternativemerchantcertificates.py

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
import processout
77
import json
88

9-
from processout.networking.request import Request
9+
from processout.networking.request import Request
1010
from processout.networking.response import Response
1111

1212
# The content of this file was automatically generated
1313

14-
1514
class ApplePayAlternativeMerchantCertificates(object):
16-
def __init__(self, client, prefill=None):
15+
def __init__(self, client, prefill = None):
1716
self._client = client
1817

1918
self._count = None
2019
self._alternative_merchant_certificates = None
21-
if prefill is not None:
20+
if prefill != None:
2221
self.fill_with_data(prefill)
2322

23+
2424
@property
2525
def count(self):
2626
"""Get count"""
@@ -33,7 +33,7 @@ def count(self, val):
3333
val -- New count value"""
3434
self._count = val
3535
return self
36-
36+
3737
@property
3838
def alternative_merchant_certificates(self):
3939
"""Get alternative_merchant_certificates"""
@@ -48,8 +48,7 @@ def alternative_merchant_certificates(self, val):
4848
self._alternative_merchant_certificates = []
4949
return self
5050

51-
if len(val) > 0 and isinstance(
52-
val[0], processout.AlternativeMerchantCertificate):
51+
if len(val) > 0 and isinstance(val[0], processout.AlternativeMerchantCertificate):
5352
self._alternative_merchant_certificates = val
5453
else:
5554
l = []
@@ -59,6 +58,7 @@ def alternative_merchant_certificates(self, val):
5958
l.append(obj)
6059
self._alternative_merchant_certificates = l
6160
return self
61+
6262

6363
def fill_with_data(self, data):
6464
"""Fill the current object with the new values pulled from data
@@ -68,7 +68,7 @@ def fill_with_data(self, data):
6868
self.count = data["count"]
6969
if "alternative_merchant_certificates" in data.keys():
7070
self.alternative_merchant_certificates = data["alternative_merchant_certificates"]
71-
71+
7272
return self
7373

7474
def to_json(self):
@@ -77,28 +77,29 @@ def to_json(self):
7777
"alternative_merchant_certificates": self.alternative_merchant_certificates,
7878
}
7979

80-
def fetch(self, options={}):
80+
def fetch(self, options = {}):
8181
"""Fetch the project's alternative certificates by ID
8282
Keyword argument:
83-
83+
8484
options -- Options for the request"""
8585
self.fill_with_data(options)
8686

8787
request = Request(self._client)
88-
path = "/projects/applepay/alternative-merchant-certificates"
89-
data = {
88+
path = "/projects/applepay/alternative-merchant-certificates"
89+
data = {
9090

9191
}
9292

9393
response = Response(request.get(path, data, options))
9494
return_values = []
95-
95+
9696
body = response.body
9797
body = body.get("applepay_certificates")
9898
if body is not None:
99-
applePayAlternativeMerchantCertificates = processout.ApplePayAlternativeMerchantCertificates(
100-
self._client)
101-
return_values.append(
102-
applePayAlternativeMerchantCertificates.fill_with_data(body))
99+
applePayAlternativeMerchantCertificates = processout.ApplePayAlternativeMerchantCertificates(self._client)
100+
return_values.append(applePayAlternativeMerchantCertificates.fill_with_data(body))
103101

102+
104103
return return_values[0]
104+
105+

0 commit comments

Comments
 (0)