

def credit(self, amount, options=None):
    if (not options):
        options = {
            
        }
    assert ('CallerReference' in options), "Expecting 'CallerReference' in options"
    assert ('TransactionId' in options), "Expecting 'TransactionId' in options"
    resp = self.fps_connection.refund(options['CallerReference'], options['TransactionId'], refundAmount=amount, callerDescription=options.get('description', None))
    return {
        'status': resp.RefundResult.TransactionStatus,
        'response': resp.RefundResult,
    }

dataset/ETHPy150Open agiliq/merchant/billing/integrations/amazon_fps_integration.py AmazonFpsIntegration.credit/original