Skip to content

Commit

Permalink
Releasing v2.31.0. Please refer changelog for the updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-thushitamariaselvan committed Sep 26, 2023
1 parent 2e0b037 commit d44e861
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 7 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
* * *

Expand Down
7 changes: 5 additions & 2 deletions chargebee/models/payment_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion chargebee/models/quoted_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion chargebee/models/quoted_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion chargebee/models/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion chargebee/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion chargebee/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '2.30.0'
VERSION = '2.31.0'

0 comments on commit d44e861

Please sign in to comment.