def post_stripe_invoice_id(tx_type, tx_id, invoice_id, **kwargs): api_url = kwargs.get("api_url") token = kwargs.get("token") token_type = kwargs.get("token_type") advantage = UAContractsAPI(session, token, token_type=token_type, api_url=api_url) return advantage.post_stripe_invoice_id(tx_type, tx_id, invoice_id)
def post_stripe_invoice_id(tx_type, tx_id, invoice_id, **kwargs): api_url = kwargs.get("api_url") token = kwargs.get("token") token_type = kwargs.get("token_type") advantage = UAContractsAPI( session, token, token_type=token_type, api_url=api_url ) response = advantage.post_stripe_invoice_id(tx_type, tx_id, invoice_id) if response is None: return flask.jsonify({"message": "invoice updated"}) return response