NAV
GS2-Script

GS2-Exchange

Reference for event triggers that call GS2-Script

GS2-Script Reference

Trigger

exchange

exchange

namespace = args.namespace
rateModel = args.rateModel
userId = args.userId
count = args.count
config = args.config

result = {
  permit=permit
}

Event trigger to call GS2-Script before Exchange.

Request

Type Description
namespace Namespace Namespace
rateModel RateModel Exchange rate model
userId string User ID performing the exchange
count int Exchanging volume
config Config[] Set values to be applied to stamp sheet variables

Result

Type Require Default Limitation Description
permit bool Allow exchange

exchangeDone

exchangeDone

namespace = args.namespace
rateModel = args.rateModel
userId = args.userId
count = args.count
config = args.config

result = {
}

GS2-Script called after Exchange.

Request

Type Description
namespace Namespace Namespace
rateModel RateModel Exchange rate model
userId string User ID performing the exchange
count int Exchanging volume
config Config[] Set values to be applied to stamp sheet variables

Result

Type Require Default Limitation Description