Sha256: 869295e30abf4dfde16ff9c120e1bfea95880f4879af6bec4b4ee82af8651c90
Contents?: true
Size: 1.13 KB
Versions: 12
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true module CXML module Protocol VERSION = '1.2.011' REQUEST_ELEMENTS = %w[ OrderRequest ProfileRequest PunchOutSetupRequest StatusUpdateRequest GetPendingRequest ConfirmationRequest ShipNoticeRequest ProviderSetupRequest PaymentRemittanceRequest ].freeze RESPONSE_ELEMENTS = %w[ ProfileResponse PunchOutSetupResponse GetPendingResponse ].freeze STATUS_CODES = [ 200, 201, 204, 280, 281, 400, 401, 402, 403, 406, 409, 412, 417, 450, 475, 476, 477, 500, 550, 551, 560, ].freeze class << self # Get current protocol version # @return [String] def version VERSION end # Get available request elements # @return [Array<String>] def request_elements REQUEST_ELEMENTS end # Get available response elements # @return [Array<String>] def response_elements RESPONSE_ELEMENTS end # Get available status codes # @return [Array<Fixnum>] def status_codes STATUS_CODES end end end end
Version data entries
12 entries across 12 versions & 1 rubygems