Sha256: ec1b93f16375ed06abf668fdf2442c3d19a9d34362be305607fb6c893500ad22

Contents?: true

Size: 615 Bytes

Versions: 41

Compression:

Stored size: 615 Bytes

Contents

# frozen_string_literal: true

module IronBank
  module Actions
    # Use the execute call to execute the process to split an invoice into
    # multiple invoices (the original invoice must be in draft status)
    # https://www.zuora.com/developer/api-reference/#operation/Action_POSTexecute
    #
    class Execute < Action
      private

      def params
        {
          ids:         args.fetch(:ids),
          synchronous: args.fetch(:synchronous),
          type:        type
        }
      end

      def type
        IronBank::Utils.camelize(args.fetch(:type), type: :upper)
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
iron_bank-5.4.1 lib/iron_bank/actions/execute.rb
iron_bank-5.4.0 lib/iron_bank/actions/execute.rb
iron_bank-5.3.2 lib/iron_bank/actions/execute.rb
iron_bank-5.3.0 lib/iron_bank/actions/execute.rb
iron_bank-5.2.6 lib/iron_bank/actions/execute.rb
iron_bank-5.2.4 lib/iron_bank/actions/execute.rb
iron_bank-5.2.3 lib/iron_bank/actions/execute.rb
iron_bank-5.2.0 lib/iron_bank/actions/execute.rb
iron_bank-5.1.1 lib/iron_bank/actions/execute.rb
iron_bank-5.1.0 lib/iron_bank/actions/execute.rb
iron_bank-4.4.3 lib/iron_bank/actions/execute.rb
iron_bank-5.0.1 lib/iron_bank/actions/execute.rb
iron_bank-5.0.0 lib/iron_bank/actions/execute.rb
iron_bank-4.4.1 lib/iron_bank/actions/execute.rb
iron_bank-4.4.0 lib/iron_bank/actions/execute.rb
iron_bank-4.3.1 lib/iron_bank/actions/execute.rb
iron_bank-4.3.0 lib/iron_bank/actions/execute.rb
iron_bank-4.2.0 lib/iron_bank/actions/execute.rb
iron_bank-4.1.1 lib/iron_bank/actions/execute.rb
iron_bank-4.1.0 lib/iron_bank/actions/execute.rb