diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ea7414..91f7779 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +### v2.31.0 (2023-09-26) +* * * + +#### New attributes: +* venmo has been added to the PaymentSource resource. +* proration_type has been added to the QuotedCharge, QuotedSubscription and Subscription resource. + +#### New Enum values: +* ebanx has been added to Gateway. +* venmo has been added to Customer#TypeEnum. +* venmo has been added to PaymentMethodEnum. +* venmo has been added to PaymentMethodTypeEnum. +* venmo has been added to TypeEnum. +* venmo has been added to PaymentIntent#PaymentMethodTypeEnum. + +#### New Input parameters: +* einvoicing_method has been added to HostedPage#CheckoutOneTimeForItemsRequest. +* einvoicing_method has been added to HostedPage#CheckoutNewForItemsRequest. +* additional_information has been added to PaymentSource#CardAdditionalInformation. + ### v2.30.0 (2023-09-05) * * * diff --git a/chargebee/models/payment_source.py b/chargebee/models/payment_source.py index 109c0aa..e0b865d 100644 --- a/chargebee/models/payment_source.py +++ b/chargebee/models/payment_source.py @@ -25,14 +25,17 @@ class Upi(Model): class Paypal(Model): fields = ["email", "agreement_id"] pass + class Venmo(Model): + fields = ["user_name"] + pass class Mandate(Model): fields = ["id", "subscription_id", "created_at"] pass fields = ["id", "resource_version", "updated_at", "created_at", "customer_id", "type", \ "reference_id", "status", "gateway", "gateway_account_id", "ip_address", "issuing_country", \ - "card", "bank_account", "boleto", "billing_address", "amazon_payment", "upi", "paypal", "mandates", \ - "deleted", "business_entity_id"] + "card", "bank_account", "boleto", "billing_address", "amazon_payment", "upi", "paypal", "venmo", \ + "mandates", "deleted", "business_entity_id"] @staticmethod diff --git a/chargebee/models/quoted_charge.py b/chargebee/models/quoted_charge.py index 55e538e..5a32148 100644 --- a/chargebee/models/quoted_charge.py +++ b/chargebee/models/quoted_charge.py @@ -8,7 +8,7 @@ class Charge(Model): fields = ["amount", "amount_in_decimal", "description", "service_period_in_days", "avalara_sale_type", "avalara_transaction_type", "avalara_service_type"] pass class Addon(Model): - fields = ["id", "quantity", "unit_price", "quantity_in_decimal", "unit_price_in_decimal", "service_period"] + fields = ["id", "quantity", "unit_price", "quantity_in_decimal", "unit_price_in_decimal", "proration_type", "service_period"] pass class InvoiceItem(Model): fields = ["item_price_id", "quantity", "quantity_in_decimal", "unit_price", "unit_price_in_decimal", "service_period_days"] diff --git a/chargebee/models/quoted_subscription.py b/chargebee/models/quoted_subscription.py index 92cb561..5849dfe 100644 --- a/chargebee/models/quoted_subscription.py +++ b/chargebee/models/quoted_subscription.py @@ -5,7 +5,7 @@ class QuotedSubscription(Model): class Addon(Model): - fields = ["id", "quantity", "unit_price", "amount", "trial_end", "remaining_billing_cycles", "quantity_in_decimal", "unit_price_in_decimal", "amount_in_decimal"] + fields = ["id", "quantity", "unit_price", "amount", "trial_end", "remaining_billing_cycles", "quantity_in_decimal", "unit_price_in_decimal", "amount_in_decimal", "proration_type"] pass class EventBasedAddon(Model): fields = ["id", "quantity", "unit_price", "service_period_in_days", "on_event", "charge_once", "quantity_in_decimal", "unit_price_in_decimal"] diff --git a/chargebee/models/subscription.py b/chargebee/models/subscription.py index 1fe709c..d13031a 100644 --- a/chargebee/models/subscription.py +++ b/chargebee/models/subscription.py @@ -14,7 +14,7 @@ class ChargedItem(Model): fields = ["item_price_id", "last_charged_at"] pass class Addon(Model): - fields = ["id", "quantity", "unit_price", "amount", "trial_end", "remaining_billing_cycles", "quantity_in_decimal", "unit_price_in_decimal", "amount_in_decimal"] + fields = ["id", "quantity", "unit_price", "amount", "trial_end", "remaining_billing_cycles", "quantity_in_decimal", "unit_price_in_decimal", "amount_in_decimal", "proration_type"] pass class EventBasedAddon(Model): fields = ["id", "quantity", "unit_price", "service_period_in_days", "on_event", "charge_once", "quantity_in_decimal", "unit_price_in_decimal"] diff --git a/chargebee/result.py b/chargebee/result.py index 130d697..6c702f3 100644 --- a/chargebee/result.py +++ b/chargebee/result.py @@ -69,7 +69,7 @@ def token(self): @property def payment_source(self): payment_source = self._get('payment_source', PaymentSource, - {'card' : PaymentSource.Card, 'bank_account' : PaymentSource.BankAccount, 'cust_voucher_source' : PaymentSource.CustVoucherSource, 'billing_address' : PaymentSource.BillingAddress, 'amazon_payment' : PaymentSource.AmazonPayment, 'upi' : PaymentSource.Upi, 'paypal' : PaymentSource.Paypal, 'mandates' : PaymentSource.Mandate}); + {'card' : PaymentSource.Card, 'bank_account' : PaymentSource.BankAccount, 'cust_voucher_source' : PaymentSource.CustVoucherSource, 'billing_address' : PaymentSource.BillingAddress, 'amazon_payment' : PaymentSource.AmazonPayment, 'upi' : PaymentSource.Upi, 'paypal' : PaymentSource.Paypal, 'venmo' : PaymentSource.Venmo, 'mandates' : PaymentSource.Mandate}); return payment_source; @property diff --git a/chargebee/version.py b/chargebee/version.py index 26b23cd..2e49b97 100644 --- a/chargebee/version.py +++ b/chargebee/version.py @@ -1 +1 @@ -VERSION = '2.30.0' +VERSION = '2.31.0'