@@ -765,6 +765,12 @@ def cast(cls, result):
765
765
if cls .__name__ == "RecurringPayInMIT" :
766
766
return RecurringPayInMIT
767
767
768
+ if cls .__name__ == "RecurringPayPalPayInCIT" :
769
+ return RecurringPayPalPayInCIT
770
+
771
+ if cls .__name__ == "RecurringPayPalPayInMIT" :
772
+ return RecurringPayPalPayInMIT
773
+
768
774
payment_type = result .get ('PaymentType' )
769
775
execution_type = result .get ('ExecutionType' )
770
776
@@ -797,7 +803,7 @@ def cast(cls, result):
797
803
@python_2_unicode_compatible
798
804
class RecurringPayInRegistration (BaseModel ):
799
805
author = ForeignKeyField (User , api_name = 'AuthorId' , required = True )
800
- card = ForeignKeyField (Card , api_name = 'CardId' , required = True )
806
+ card = ForeignKeyField (Card , api_name = 'CardId' )
801
807
user = ForeignKeyField (User , api_name = 'CreditedUserId' )
802
808
credited_wallet = ForeignKeyField (Wallet , api_name = 'CreditedWalletId' )
803
809
first_transaction_debited_funds = MoneyField (api_name = 'FirstTransactionDebitedFunds' , required = True )
@@ -817,6 +823,7 @@ class RecurringPayInRegistration(BaseModel):
817
823
recurring_type = CharField (api_name = 'RecurringType' )
818
824
current_state = CurrentStateField (api_name = 'CurrentState' )
819
825
status = CharField (api_name = 'Status' , choices = constants .STATUS_CHOICES , default = None )
826
+ payment_type = CharField (api_name = 'PaymentType' , choices = constants .RECURRING_PAYIN_REGISTRATION_PAYMENT_TYPE , default = None )
820
827
821
828
def get_read_only_properties (self ):
822
829
read_only = ["Id" , "FreeCycles" , "CycleNumber" , "TotalAmount" , "RecurringType" , "Status" , "CurrentState" ]
@@ -907,6 +914,76 @@ class Meta:
907
914
}
908
915
909
916
917
+ @python_2_unicode_compatible
918
+ class RecurringPayPalPayInCIT (PayIn ):
919
+ creation_date = DateTimeField (api_name = 'CreationDate' )
920
+ debited_funds = MoneyField (api_name = 'DebitedFunds' )
921
+ fees = MoneyField (api_name = 'Fees' )
922
+ author = ForeignKeyField (User , api_name = 'AuthorId' )
923
+ return_url = CharField (api_name = 'ReturnURL' , required = True )
924
+ redirect_url = CharField (api_name = 'RedirectURL' )
925
+ statement_descriptor = CharField (api_name = 'StatementDescriptor' )
926
+ shipping = ShippingField (api_name = 'Shipping' )
927
+ line_items = ListField (api_name = 'LineItems' , required = True )
928
+ culture = CharField (api_name = 'Culture' )
929
+ shipping_preference = CharField (api_name = 'ShippingPreference' , choices = constants .SHIPPING_PREFERENCE_CHOICES ,
930
+ default = None )
931
+ buyer_account_email = CharField (api_name = "PaypalBuyerAccountEmail" )
932
+ reference = CharField (api_name = 'Reference' )
933
+ trackings = ListField (api_name = 'Trackings' )
934
+ cancel_url = CharField (api_name = 'CancelURL' )
935
+ paypal_order_id = CharField (api_name = 'PaypalOrderID' )
936
+ buyer_country = CharField (api_name = 'BuyerCountry' )
937
+ buyer_first_name = CharField (api_name = 'BuyerFirstname' )
938
+ buyer_last_name = CharField (api_name = 'BuyerLastname' )
939
+ buyer_phone = CharField (api_name = 'BuyerPhone' )
940
+ paypal_payer_id = CharField (api_name = 'PaypalPayerID' )
941
+ recurring_payin_registration_id = CharField (api_name = 'RecurringPayinRegistrationId' , required = True )
942
+
943
+ class Meta :
944
+ verbose_name = 'recurring_paypal_payin'
945
+ verbose_name_plural = 'recurring_paypal_payins'
946
+ url = {
947
+ InsertQuery .identifier : '/payins/payment-methods/paypal/recurring' ,
948
+ SelectQuery .identifier : '/payins'
949
+ }
950
+
951
+
952
+ @python_2_unicode_compatible
953
+ class RecurringPayPalPayInMIT (PayIn ):
954
+ creation_date = DateTimeField (api_name = 'CreationDate' )
955
+ debited_funds = MoneyField (api_name = 'DebitedFunds' )
956
+ fees = MoneyField (api_name = 'Fees' )
957
+ author = ForeignKeyField (User , api_name = 'AuthorId' )
958
+ return_url = CharField (api_name = 'ReturnURL' , required = True )
959
+ redirect_url = CharField (api_name = 'RedirectURL' )
960
+ statement_descriptor = CharField (api_name = 'StatementDescriptor' )
961
+ shipping = ShippingField (api_name = 'Shipping' )
962
+ line_items = ListField (api_name = 'LineItems' , required = True )
963
+ culture = CharField (api_name = 'Culture' )
964
+ shipping_preference = CharField (api_name = 'ShippingPreference' , choices = constants .SHIPPING_PREFERENCE_CHOICES ,
965
+ default = None )
966
+ buyer_account_email = CharField (api_name = "PaypalBuyerAccountEmail" )
967
+ reference = CharField (api_name = 'Reference' )
968
+ trackings = ListField (api_name = 'Trackings' )
969
+ cancel_url = CharField (api_name = 'CancelURL' )
970
+ paypal_order_id = CharField (api_name = 'PaypalOrderID' )
971
+ buyer_country = CharField (api_name = 'BuyerCountry' )
972
+ buyer_first_name = CharField (api_name = 'BuyerFirstname' )
973
+ buyer_last_name = CharField (api_name = 'BuyerLastname' )
974
+ buyer_phone = CharField (api_name = 'BuyerPhone' )
975
+ paypal_payer_id = CharField (api_name = 'PaypalPayerID' )
976
+ recurring_payin_registration_id = CharField (api_name = 'RecurringPayinRegistrationId' , required = True )
977
+
978
+ class Meta :
979
+ verbose_name = 'recurring_paypal_payin'
980
+ verbose_name_plural = 'recurring_paypal_payins'
981
+ url = {
982
+ InsertQuery .identifier : '/payins/payment-methods/paypal/recurring' ,
983
+ SelectQuery .identifier : '/payins'
984
+ }
985
+
986
+
910
987
@python_2_unicode_compatible
911
988
class DirectPayIn (PayIn ):
912
989
author = ForeignKeyField (User , api_name = 'AuthorId' , required = True )
@@ -1324,6 +1401,25 @@ class Meta:
1324
1401
}
1325
1402
1326
1403
1404
+ class TwintPayIn (PayIn ):
1405
+ author = ForeignKeyField (User , api_name = 'AuthorId' , required = True )
1406
+ credited_wallet = ForeignKeyField (Wallet , api_name = 'CreditedWalletId' , required = True )
1407
+ debited_funds = MoneyField (api_name = 'DebitedFunds' , required = True )
1408
+ fees = MoneyField (api_name = 'Fees' , required = True )
1409
+ return_url = CharField (api_name = 'ReturnURL' , required = True )
1410
+ statement_descriptor = CharField (api_name = 'StatementDescriptor' )
1411
+ creation_date = DateTimeField (api_name = 'CreationDate' )
1412
+ redirect_url = CharField (api_name = 'RedirectURL' )
1413
+
1414
+ class Meta :
1415
+ verbose_name = 'twint_payin'
1416
+ verbose_name_plural = 'twint_payins'
1417
+ url = {
1418
+ InsertQuery .identifier : '/payins/payment-methods/twint' ,
1419
+ SelectQuery .identifier : '/payins'
1420
+ }
1421
+
1422
+
1327
1423
class BancontactPayIn (PayIn ):
1328
1424
author = ForeignKeyField (User , api_name = 'AuthorId' , required = True )
1329
1425
credited_wallet = ForeignKeyField (Wallet , api_name = 'CreditedWalletId' , required = True )
@@ -1528,6 +1624,33 @@ class Meta:
1528
1624
}
1529
1625
1530
1626
1627
+ class PayByBankPayIn (PayIn ):
1628
+ author = ForeignKeyField (User , api_name = 'AuthorId' , required = True )
1629
+ credited_wallet = ForeignKeyField (Wallet , api_name = 'CreditedWalletId' , required = True )
1630
+ debited_funds = MoneyField (api_name = 'DebitedFunds' , required = True )
1631
+ fees = MoneyField (api_name = 'Fees' , required = True )
1632
+ return_url = CharField (api_name = 'ReturnURL' , required = True )
1633
+ redirect_url = CharField (api_name = 'RedirectURL' )
1634
+ statement_descriptor = CharField (api_name = 'StatementDescriptor' )
1635
+ creation_date = DateTimeField (api_name = 'CreationDate' )
1636
+ country = CharField (api_name = 'Country' , required = True )
1637
+ bic = CharField (api_name = 'BIC' )
1638
+ iban = CharField (api_name = 'IBAN' )
1639
+ payment_flow = CharField (api_name = 'PaymentFlow' )
1640
+ bank_name = CharField (api_name = 'BankName' )
1641
+ culture = CharField (api_name = 'Culture' )
1642
+ scheme = CharField (api_name = 'Scheme' )
1643
+ processing_status = CharField (api_name = 'ProcessingStatus' )
1644
+
1645
+ class Meta :
1646
+ verbose_name = 'pay_by_bank_payin'
1647
+ verbose_name_plural = 'pay_by_bank_payins'
1648
+ url = {
1649
+ InsertQuery .identifier : '/payins/payment-methods/openbanking' ,
1650
+ SelectQuery .identifier : '/payins'
1651
+ }
1652
+
1653
+
1531
1654
@python_2_unicode_compatible
1532
1655
class BankAccount (BaseModel ):
1533
1656
user = ForeignKeyField (User , api_name = 'UserId' , related_name = 'bankaccounts' )
0 commit comments