glassfyReplacementModeToInt function

int glassfyReplacementModeToInt(
  1. GlassfyReplacementMode mode
)

Implementation

int glassfyReplacementModeToInt(GlassfyReplacementMode mode) {
  switch (mode) {
    case GlassfyReplacementMode.unknownReplacementMode:
      return 0;
    case GlassfyReplacementMode.withTimeProration:
      return 1;
    case GlassfyReplacementMode.chargeProratedPrice:
      return 2;
    case GlassfyReplacementMode.withoutProration:
      return 3;
    case GlassfyReplacementMode.chargeFullPrice:
      return 5;
    case GlassfyReplacementMode.deferred:
      return 6;
    default:
      return -1;
  }
}