@@ -58,6 +58,7 @@ def __init__(self, client, prefill=None):
5858 self ._payment_type = None
5959 self ._initiation_type = None
6060 self ._payment_intent = None
61+ self ._billing = None
6162 if prefill is not None :
6263 self .fill_with_data (prefill )
6364
@@ -709,6 +710,28 @@ def payment_intent(self, val):
709710 self ._payment_intent = val
710711 return self
711712
713+ @property
714+ def billing (self ):
715+ """Get billing"""
716+ return self ._billing
717+
718+ @billing .setter
719+ def billing (self , val ):
720+ """Set billing
721+ Keyword argument:
722+ val -- New billing value"""
723+ if val is None :
724+ self ._billing = val
725+ return self
726+
727+ if isinstance (val , dict ):
728+ obj = processout .InvoiceBilling (self ._client )
729+ obj .fill_with_data (val )
730+ self ._billing = obj
731+ else :
732+ self ._billing = val
733+ return self
734+
712735 def fill_with_data (self , data ):
713736 """Fill the current object with the new values pulled from data
714737 Keyword argument:
@@ -797,6 +820,8 @@ def fill_with_data(self, data):
797820 self .initiation_type = data ["initiation_type" ]
798821 if "payment_intent" in data .keys ():
799822 self .payment_intent = data ["payment_intent" ]
823+ if "billing" in data .keys ():
824+ self .billing = data ["billing" ]
800825
801826 return self
802827
@@ -844,6 +869,7 @@ def to_json(self):
844869 "payment_type" : self .payment_type ,
845870 "initiation_type" : self .initiation_type ,
846871 "payment_intent" : self .payment_intent ,
872+ "billing" : self .billing ,
847873 }
848874
849875 def increment_authorization (self , amount , options = {}):
@@ -889,6 +915,7 @@ def authorize(self, source, options={}):
889915 'allow_fallback_to_sale' : options .get ("allow_fallback_to_sale" ),
890916 'auto_capture_at' : options .get ("auto_capture_at" ),
891917 'metadata' : options .get ("metadata" ),
918+ 'override_mac_blocking' : options .get ("override_mac_blocking" ),
892919 'source' : source }
893920
894921 response = Response (request .post (path , data , options ))
@@ -921,6 +948,7 @@ def capture(self, source, options={}):
921948 'enable_three_d_s_2' : options .get ("enable_three_d_s_2" ),
922949 'metadata' : options .get ("metadata" ),
923950 'capture_statement_descriptor' : options .get ("capture_statement_descriptor" ),
951+ 'override_mac_blocking' : options .get ("override_mac_blocking" ),
924952 'source' : source }
925953
926954 response = Response (request .post (path , data , options ))
@@ -1113,7 +1141,8 @@ def create(self, options={}):
11131141 'require_backend_capture' : self .require_backend_capture ,
11141142 'external_fraud_tools' : self .external_fraud_tools ,
11151143 'tax' : self .tax ,
1116- 'payment_type' : self .payment_type
1144+ 'payment_type' : self .payment_type ,
1145+ 'billing' : self .billing
11171146 }
11181147
11191148 response = Response (request .post (path , data , options ))
0 commit comments