Sha256: 91c5c48a239f861dd374cb50299009d968365c1452c77a241b471cc401d7f2a4

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

require 'killbill/plugin'
require 'killbill/response/payment_response'

module Killbill
  module Plugin
    class Payment < PluginBase

      class OperationUnsupportedByGatewayError < NotImplementedError
      end

      def get_name
        raise OperationUnsupportedByGatewayError
      end

      def charge(kb_payment_id, kb_payment_method_id, amount_in_cents, options = {})
        raise OperationUnsupportedByGatewayError
      end

      def get_payment_info(kb_payment_id, options = {})
        raise OperationUnsupportedByGatewayError
      end

      def refund(kb_payment_id, amount_in_cents, options = {})
        raise OperationUnsupportedByGatewayError
      end

      def add_payment_method(kb_account_id, kb_payment_method_id, payment_method_props, set_default, options = {})
        raise OperationUnsupportedByGatewayError
      end

      def delete_payment_method(kb_payment_method_id, options = {})
        raise OperationUnsupportedByGatewayError
      end

      def get_payment_method_detail(kb_account_id, kb_payment_method_id, options = {})
        raise OperationUnsupportedByGatewayError
      end

      def set_default_payment_method(kb_payment_method_id, options = {})
        raise OperationUnsupportedByGatewayError
      end

      def get_payment_methods(kb_account_id, options = {})
        raise OperationUnsupportedByGatewayError
      end

      def reset_payment_methods(payment_methods)
        raise OperationUnsupportedByGatewayError
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
killbill-1.0.1 lib/killbill/payment.rb