Codebase list chargebee-python / 223609e
Update upstream source from tag 'upstream/1.6.6' Update to upstream version '1.6.6' with Debian dir 52de744ac439410cc59a9a1dff5ac14224206425 Scott Kitterman 4 years ago
7 changed file(s) with 35 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
00 Metadata-Version: 1.0
11 Name: chargebee
2 Version: 1.6.4
2 Version: 1.6.6
33 Summary: Python wrapper for the ChargeBee Subscription Billing API
44 Home-page: https://apidocs.chargebee.com/docs/api?lang=python
55 Author: ChargeBee
1919 return request.send('post', request.uri_path("customers",id,"credit_card"), params, env, headers)
2020
2121 @staticmethod
22 def update_card_for_customer_using_payment_intent(id, params, env=None, headers=None):
22 def update_card_for_customer_using_payment_intent(id, params=None, env=None, headers=None):
2323 return request.send('post', request.uri_path("customers",id,"credit_card_using_payment_intent"), params, env, headers)
2424
2525 @staticmethod
0 import json
1 from chargebee.model import Model
2 from chargebee import request
3 from chargebee import APIError
4
5 class PaymentIntent(Model):
6 class PaymentAttempt(Model):
7 fields = ["id", "status", "id_at_gateway", "error_code", "error_text", "created_at", "modified_at"]
8 pass
9
10 fields = ["id", "status", "currency_code", "amount", "gateway_account_id", "expires_at", \
11 "reference_id", "created_at", "modified_at", "customer_id", "gateway", "active_payment_attempt"]
12
13
14 @staticmethod
15 def create(params, env=None, headers=None):
16 return request.send('post', request.uri_path("payment_intents"), params, env, headers)
17
18 @staticmethod
19 def update(id, params=None, env=None, headers=None):
20 return request.send('post', request.uri_path("payment_intents",id), params, env, headers)
21
22 @staticmethod
23 def retrieve(id, env=None, headers=None):
24 return request.send('get', request.uri_path("payment_intents",id), None, env, headers)
8282 return self._get('portal_session', PortalSession,
8383 {'linked_customers' : PortalSession.LinkedCustomer});
8484
85 @property
86 def payment_intent(self):
87 return self._get('payment_intent', PaymentIntent,
88 {'payment_attempt' : PaymentIntent.PaymentAttempt});
89
8590
8691
8792 def _get(self, type, cls, sub_types=None):
0 VERSION = '1.6.4'
0 VERSION = '1.6.6'
00 Metadata-Version: 1.0
11 Name: chargebee
2 Version: 1.6.4
2 Version: 1.6.6
33 Summary: Python wrapper for the ChargeBee Subscription Billing API
44 Home-page: https://apidocs.chargebee.com/docs/api?lang=python
55 Author: ChargeBee
3030 chargebee/models/hosted_page.py
3131 chargebee/models/invoice.py
3232 chargebee/models/order.py
33 chargebee/models/payment_intent.py
3334 chargebee/models/plan.py
3435 chargebee/models/portal_session.py
3536 chargebee/models/shipping_address.py