Skip to content

Commit d78ba00

Browse files
feat: add new phone object, has_been_authorized card flag, gateway configuration metadata, invoice nativeAPM and unsupported_feature_bypass, nativeAPM objects, ravelin external fraud tool key, PSP external_details, SFTP settings API, gateway error codes API, payout API, refund API
1 parent cca9e6a commit d78ba00

26 files changed

+1860
-7
lines changed

processout/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,23 @@
1414
from processout.cardinformation import CardInformation
1515
from processout.coupon import Coupon
1616
from processout.customer import Customer
17+
from processout.customerphone import CustomerPhone
1718
from processout.token import Token
1819
from processout.discount import Discount
1920
from processout.event import Event
2021
from processout.gateway import Gateway
2122
from processout.gatewayconfiguration import GatewayConfiguration
2223
from processout.invoice import Invoice
24+
from processout.nativeapmrequest import NativeAPMRequest
25+
from processout.nativeapmparametervalue import NativeAPMParameterValue
2326
from processout.invoicetax import InvoiceTax
2427
from processout.invoiceexternalfraudtools import InvoiceExternalFraudTools
2528
from processout.invoicerisk import InvoiceRisk
2629
from processout.invoicedevice import InvoiceDevice
2730
from processout.invoiceshipping import InvoiceShipping
31+
from processout.invoiceshippingphone import InvoiceShippingPhone
2832
from processout.invoicebilling import InvoiceBilling
33+
from processout.unsupportedfeaturebypass import UnsupportedFeatureBypass
2934
from processout.invoicedetail import InvoiceDetail
3035
from processout.customeraction import CustomerAction
3136
from processout.dunningaction import DunningAction
@@ -34,16 +39,26 @@
3439
from processout.plan import Plan
3540
from processout.product import Product
3641
from processout.project import Project
42+
from processout.projectsftpsettings import ProjectSFTPSettings
3743
from processout.refund import Refund
3844
from processout.subscription import Subscription
3945
from processout.transaction import Transaction
46+
from processout.nativeapmresponse import NativeAPMResponse
47+
from processout.nativeapmparameterdefinition import NativeAPMParameterDefinition
48+
from processout.nativeapmparametervaluedefinition import NativeAPMParameterValueDefinition
4049
from processout.threeds import ThreeDS
4150
from processout.paymentdatathreedsrequest import PaymentDataThreeDSRequest
4251
from processout.paymentdatanetworkauthentication import PaymentDataNetworkAuthentication
4352
from processout.paymentdatathreedsauthentication import PaymentDataThreeDSAuthentication
4453
from processout.transactionoperation import TransactionOperation
4554
from processout.webhook import Webhook
4655
from processout.webhookendpoint import WebhookEndpoint
56+
from processout.errorcodes import ErrorCodes
57+
from processout.categoryerrorcodes import CategoryErrorCodes
58+
from processout.nativeapmtransactiondetailsgateway import NativeAPMTransactionDetailsGateway
59+
from processout.nativeapmtransactiondetailsinvoice import NativeAPMTransactionDetailsInvoice
60+
from processout.nativeapmtransactiondetails import NativeAPMTransactionDetails
61+
from processout.invoicesprocessnativepaymentresponse import InvoicesProcessNativePaymentResponse
4762

4863
from processout.gatewayrequest import GatewayRequest
4964

processout/card.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def __init__(self, client, prefill=None):
4343
self._ip_address = None
4444
self._fingerprint = None
4545
self._token_type = None
46+
self._used = None
47+
self._has_been_authorized = None
4648
self._metadata = None
4749
self._expires_soon = None
4850
self._sandbox = None
@@ -419,6 +421,32 @@ def token_type(self, val):
419421
self._token_type = val
420422
return self
421423

424+
@property
425+
def used(self):
426+
"""Get used"""
427+
return self._used
428+
429+
@used.setter
430+
def used(self, val):
431+
"""Set used
432+
Keyword argument:
433+
val -- New used value"""
434+
self._used = val
435+
return self
436+
437+
@property
438+
def has_been_authorized(self):
439+
"""Get has_been_authorized"""
440+
return self._has_been_authorized
441+
442+
@has_been_authorized.setter
443+
def has_been_authorized(self, val):
444+
"""Set has_been_authorized
445+
Keyword argument:
446+
val -- New has_been_authorized value"""
447+
self._has_been_authorized = val
448+
return self
449+
422450
@property
423451
def metadata(self):
424452
"""Get metadata"""
@@ -529,6 +557,10 @@ def fill_with_data(self, data):
529557
self.fingerprint = data["fingerprint"]
530558
if "token_type" in data.keys():
531559
self.token_type = data["token_type"]
560+
if "used" in data.keys():
561+
self.used = data["used"]
562+
if "has_been_authorized" in data.keys():
563+
self.has_been_authorized = data["has_been_authorized"]
532564
if "metadata" in data.keys():
533565
self.metadata = data["metadata"]
534566
if "expires_soon" in data.keys():
@@ -569,6 +601,8 @@ def to_json(self):
569601
"ip_address": self.ip_address,
570602
"fingerprint": self.fingerprint,
571603
"token_type": self.token_type,
604+
"used": self.used,
605+
"has_been_authorized": self.has_been_authorized,
572606
"metadata": self.metadata,
573607
"expires_soon": self.expires_soon,
574608
"sandbox": self.sandbox,

processout/categoryerrorcodes.py

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
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+
15+
class CategoryErrorCodes(object):
16+
def __init__(self, client, prefill=None):
17+
self._client = client
18+
19+
self._generic = None
20+
self._service = None
21+
self._gateway = None
22+
self._card = None
23+
self._check = None
24+
self._shipping = None
25+
self._customer = None
26+
self._payment = None
27+
self._refund = None
28+
self._wallet = None
29+
self._request = None
30+
if prefill is not None:
31+
self.fill_with_data(prefill)
32+
33+
@property
34+
def generic(self):
35+
"""Get generic"""
36+
return self._generic
37+
38+
@generic.setter
39+
def generic(self, val):
40+
"""Set generic
41+
Keyword argument:
42+
val -- New generic value"""
43+
self._generic = val
44+
return self
45+
46+
@property
47+
def service(self):
48+
"""Get service"""
49+
return self._service
50+
51+
@service.setter
52+
def service(self, val):
53+
"""Set service
54+
Keyword argument:
55+
val -- New service value"""
56+
self._service = val
57+
return self
58+
59+
@property
60+
def gateway(self):
61+
"""Get gateway"""
62+
return self._gateway
63+
64+
@gateway.setter
65+
def gateway(self, val):
66+
"""Set gateway
67+
Keyword argument:
68+
val -- New gateway value"""
69+
self._gateway = val
70+
return self
71+
72+
@property
73+
def card(self):
74+
"""Get card"""
75+
return self._card
76+
77+
@card.setter
78+
def card(self, val):
79+
"""Set card
80+
Keyword argument:
81+
val -- New card value"""
82+
self._card = val
83+
return self
84+
85+
@property
86+
def check(self):
87+
"""Get check"""
88+
return self._check
89+
90+
@check.setter
91+
def check(self, val):
92+
"""Set check
93+
Keyword argument:
94+
val -- New check value"""
95+
self._check = val
96+
return self
97+
98+
@property
99+
def shipping(self):
100+
"""Get shipping"""
101+
return self._shipping
102+
103+
@shipping.setter
104+
def shipping(self, val):
105+
"""Set shipping
106+
Keyword argument:
107+
val -- New shipping value"""
108+
self._shipping = val
109+
return self
110+
111+
@property
112+
def customer(self):
113+
"""Get customer"""
114+
return self._customer
115+
116+
@customer.setter
117+
def customer(self, val):
118+
"""Set customer
119+
Keyword argument:
120+
val -- New customer value"""
121+
self._customer = val
122+
return self
123+
124+
@property
125+
def payment(self):
126+
"""Get payment"""
127+
return self._payment
128+
129+
@payment.setter
130+
def payment(self, val):
131+
"""Set payment
132+
Keyword argument:
133+
val -- New payment value"""
134+
self._payment = val
135+
return self
136+
137+
@property
138+
def refund(self):
139+
"""Get refund"""
140+
return self._refund
141+
142+
@refund.setter
143+
def refund(self, val):
144+
"""Set refund
145+
Keyword argument:
146+
val -- New refund value"""
147+
self._refund = val
148+
return self
149+
150+
@property
151+
def wallet(self):
152+
"""Get wallet"""
153+
return self._wallet
154+
155+
@wallet.setter
156+
def wallet(self, val):
157+
"""Set wallet
158+
Keyword argument:
159+
val -- New wallet value"""
160+
self._wallet = val
161+
return self
162+
163+
@property
164+
def request(self):
165+
"""Get request"""
166+
return self._request
167+
168+
@request.setter
169+
def request(self, val):
170+
"""Set request
171+
Keyword argument:
172+
val -- New request value"""
173+
self._request = val
174+
return self
175+
176+
def fill_with_data(self, data):
177+
"""Fill the current object with the new values pulled from data
178+
Keyword argument:
179+
data -- The data from which to pull the new values"""
180+
if "generic" in data.keys():
181+
self.generic = data["generic"]
182+
if "service" in data.keys():
183+
self.service = data["service"]
184+
if "gateway" in data.keys():
185+
self.gateway = data["gateway"]
186+
if "card" in data.keys():
187+
self.card = data["card"]
188+
if "check" in data.keys():
189+
self.check = data["check"]
190+
if "shipping" in data.keys():
191+
self.shipping = data["shipping"]
192+
if "customer" in data.keys():
193+
self.customer = data["customer"]
194+
if "payment" in data.keys():
195+
self.payment = data["payment"]
196+
if "refund" in data.keys():
197+
self.refund = data["refund"]
198+
if "wallet" in data.keys():
199+
self.wallet = data["wallet"]
200+
if "request" in data.keys():
201+
self.request = data["request"]
202+
203+
return self
204+
205+
def to_json(self):
206+
return {
207+
"generic": self.generic,
208+
"service": self.service,
209+
"gateway": self.gateway,
210+
"card": self.card,
211+
"check": self.check,
212+
"shipping": self.shipping,
213+
"customer": self.customer,
214+
"payment": self.payment,
215+
"refund": self.refund,
216+
"wallet": self.wallet,
217+
"request": self.request,
218+
}

0 commit comments

Comments
 (0)