Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/createsend/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,15 @@ def set_basics(self, company, timezone, country):
response = self._put(self.uri_for('setbasics'), json.dumps(body))

def set_payg_billing(self, currency, can_purchase_credits, client_pays, markup_percentage,
markup_on_delivery=0, markup_per_recipient=0, markup_on_design_spam_test=0):
markup_on_delivery=0, markup_per_recipient=0):
"""Sets the PAYG billing settings for this client."""
body = {
"Currency": currency,
"CanPurchaseCredits": can_purchase_credits,
"ClientPays": client_pays,
"MarkupPercentage": markup_percentage,
"MarkupOnDelivery": markup_on_delivery,
"MarkupPerRecipient": markup_per_recipient,
"MarkupOnDesignSpamTest": markup_on_design_spam_test}
"MarkupPerRecipient": markup_per_recipient}
response = self._put(self.uri_for('setpaygbilling'), json.dumps(body))

def set_monthly_billing(self, currency, client_pays, markup_percentage, monthly_scheme=None):
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/client_details.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"BillingDetails": {
"CanPurchaseCredits": true,
"Credits": 500,
"MarkupOnDesignSpamTest": 0.0,
"ClientPays": true,
"BaseRatePerRecipient": 1.0,
"MarkupPerRecipient": 0.0,
Expand Down