update(self,
public_api_key=None,
private_api_key=None)
| source code
|
Updates this object
The properties that can be updated:
-
amount Amount of the payment (minor units). Example:
1000 = 10.00
-
coupon Coupon being assigned to this subscription
-
currency Currency code (ISO-4217). Must match the
currency associated with your account.
-
frequency Frequency of payment for the plan. Example:
Monthly
-
name Name describing subscription
-
plan Plan that should be used for the subscription.
-
prorate Whether to prorate existing subscription.
(required)
-
quantity Quantity of the plan for the subscription.
- Parameters:
public_api_key - Public key to use for the API call. If None , the
value of simplify.public_key will be used.
private_api_key - Private key to use for the API call. If None , the
value of simplify.private_key will be used.
- Returns:
- a Subscription object.
|