Sha256: b63f9d7334e6425909be021fc3d4553f5c25e904a34baea56de8c77f0a0000dd

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

# This code was automatically generated using xdrgen
# DO NOT EDIT or your changes may be overwritten

require 'xdr'

# === xdr source ============================================================
#
#   union PathPaymentStrictReceiveResult switch (
#       PathPaymentStrictReceiveResultCode code)
#   {
#   case PATH_PAYMENT_STRICT_RECEIVE_SUCCESS:
#       struct
#       {
#           ClaimAtom offers<>;
#           SimplePaymentResult last;
#       } success;
#   case PATH_PAYMENT_STRICT_RECEIVE_NO_ISSUER:
#       Asset noIssuer; // the asset that caused the error
#   default:
#       void;
#   };
#
# ===========================================================================
module Stellar
  class PathPaymentStrictReceiveResult < XDR::Union
    include XDR::Namespace

    autoload :Success

    switch_on PathPaymentStrictReceiveResultCode, :code

    switch :path_payment_strict_receive_success,   :success
    switch :path_payment_strict_receive_no_issuer, :no_issuer
    switch :default

    attribute :success,   Success
    attribute :no_issuer, Asset
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stellar-base-0.32.0 generated/stellar/path_payment_strict_receive_result.rb
stellar-base-0.31.0 generated/stellar/path_payment_strict_receive_result.rb
stellar-base-0.30.0 generated/stellar/path_payment_strict_receive_result.rb