def _humanized_features(self):
     return [{
         'type':
         get_feature_name(feature['type'], SoftwareProductType.COMMCARE),
         'amount':
         fmt_dollar_amount(feature['amount'])
     } for feature in self.features]
 def get_email_context(self):
     if self.product_type:
         credit_name = _("%s Software Plan" % self.product_type)
     else:
         credit_name = get_feature_name(self.feature_type, self.core_product)
     return {
         'credit_name': credit_name,
     }
 def get_email_context(self):
     context = super(InvoiceStripePaymentHandler, self).get_email_context()
     if self.product_type:
         credit_name = _("%s Software Plan" % self.product_type)
     else:
         credit_name = get_feature_name(self.feature_type, self.core_product)
     context.update({
         'credit_name': credit_name,
     })
     return context
 def _humanized_features(self):
     return [{'type': get_feature_name(feature['type'], self.core_product),
              'amount': fmt_dollar_amount(feature['amount'])}
             for feature in self.features]
Exemple #5
0
 def _humanized_features(self):
     return [{'type': get_feature_name(feature['type'], SoftwareProductType.COMMCARE),
              'amount': fmt_dollar_amount(feature['amount'])}
             for feature in self.features]
 def _humanized_features(self):
     return [{
         'type': get_feature_name(feature['type'], self.core_product),
         'amount': fmt_dollar_amount(feature['amount'])
     } for feature in self.features]