Sha256: 4367dc6e93f69d2fd1f5f048b330d0196408034ff4606f4430eb6f746c47a310

Contents?: true

Size: 1.73 KB

Versions: 2

Compression:

Stored size: 1.73 KB

Contents

# Automatically generated on 2015-04-26T19:13:29-07:00
# DO NOT EDIT or your changes may be overwritten
        
require 'xdr'

# === xdr source ============================================================
#
#   enum PaymentResultCode
#   {
#       // codes considered as "success" for the operation
#       PAYMENT_SUCCESS = 0,       // simple payment success
#       PAYMENT_SUCCESS_MULTI = 1, // multi-path payment success
#   
#       // codes considered as "failure" for the operation
#       PAYMENT_MALFORMED = -1,      // bad input
#       PAYMENT_UNDERFUNDED = -2,    // not enough funds in source account
#       PAYMENT_NO_DESTINATION = -3, // destination account does not exist
#       PAYMENT_NO_TRUST = -4, // destination missing a trust line for currency
#       PAYMENT_NOT_AUTHORIZED = -5, // destination not authorized to hold currency
#       PAYMENT_LINE_FULL = -6,      // destination would go above their limit
#       PAYMENT_TOO_FEW_OFFERS = -7, // not enough offers to satisfy path payment
#       PAYMENT_OVER_SENDMAX = -8,   // multi-path payment could not satisfy sendmax
#       PAYMENT_LOW_RESERVE = -9 // would create an account below the min reserve
#   };
#
# ===========================================================================
module Stellar
  class PaymentResultCode < XDR::Enum
    member :payment_success,        0
    member :payment_success_multi,  1
    member :payment_malformed,      -1
    member :payment_underfunded,    -2
    member :payment_no_destination, -3
    member :payment_no_trust,       -4
    member :payment_not_authorized, -5
    member :payment_line_full,      -6
    member :payment_too_few_offers, -7
    member :payment_over_sendmax,   -8
    member :payment_low_reserve,    -9

    seal
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stellar-base-0.0.3 generated/stellar/payment_result_code.rb
stellar-base-0.0.2 generated/stellar/payment_result_code.rb