def purchase(self, money, credit_card, options = None):
        options = options or {}
        resp = self.store(credit_card, options = options)
        subscription_id = resp["response"]["subscription"]["id"]
        resp = self._chargebee_request("post", "/invoices/charge", 
                                       data = {"subscription_id": subscription_id,
                                               "amount": money,
                                               "description": options.get("description")})
        if 200 <= resp.status_code < 300:
            transaction_was_successful.send(sender=self,
                                            type="purchase",
                                            response=resp.json())
            return {'status': 'SUCCESS', 'response': resp.json()}
        transaction_was_unsuccessful.send(sender=self,
                                          type="purchase",
                                          response=resp.json())
        return {'status': 'FAILURE', 'response': resp.json()}
Determine which class our tweet belongs to
dataset/ETHPy150Open agiliq/merchant/billing/gateways/chargebee_gateway.py/ChargebeeGateway.purchase--crossover with--dataset/ETHPy150Open ianozsvald/social_media_brand_disambiguator/tweet_annotator.py/determine_class