- CustomTypeClass<PredeterminedOrderCalculationMethod>
- PredeterminedOrderCalculationMethod

- new
Predetermined (msg): PredeterminedOrderCalculationMethodOrder Calculation Method #### Parameters

#### Returns PredeterminedOrderCalculationMethod

challengeTrackerId : string

Use the merkle challenge leaf index as the order number. Must specify ONE merkle challenge with the useLeafIndexForTransferOrder flag set to true. If so, we will use the leaf index of each merkle proof to calculate the order number. This is used to reserve specific balances for specific leaves (such as codes or whitelist address leafs)

useMerkleChallengeLeafIndex : boolean

Use the merkle challenge leaf index as the order number. Must specify ONE merkle challenge with the useLeafIndexForTransferOrder flag set to true. If so, we will use the leaf index of each merkle proof to calculate the order number. This is used to reserve specific balances for specific leaves (such as codes or whitelist address leafs)

useOverallNumTransfers : boolean

Use the overall number of transfers this approval has been used with as the order number. Ex: If this approval has been used 2 times by ANY address, then the order number for the next transfer will be 3.

usePerFromAddressNumTransfers : boolean

Use the number of times this approval has been used by each from address as the order number. Ex: If this approval has been used 2 times by from address A, then the order number for the next transfer by from address A will be 3.

usePerInitiatedByAddressNumTransfers : boolean

Use the number of times this approval has been used by each initiated by address as the order number. Ex: If this approval has been used 2 times by initiated by address A, then the order number for the next transfer by initiated by address A will be 3.

usePerToAddressNumTransfers : boolean

Use the number of times this approval has been used by each to address as the order number. Ex: If this approval has been used 2 times by to address A, then the order number for the next transfer by to address A will be 3.

- clone(): PredeterminedOrderCalculationMethod
Deep copies the object and returns a new instance.

#### Returns PredeterminedOrderCalculationMethod

- convert<U>(_convertFunction?): CustomType<any>
#### Type Parameters

- U extends NumberType

#### Parameters

`Optional`

_convertFunction: ((val) => U)- (val): U
#### Parameters

- val: NumberType

#### Returns U

#### Returns CustomType<any>

#### Deprecated

This function is unnecessary as this field has no numeric types. Please use the

`.clone()`

method instead.

- equals<U>(other, normalizeNumberTypes?): boolean
Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

If

`normalizeNumberTypes`

is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").#### Type Parameters

- U extends CustomType<U>

#### Parameters

- other: undefined | null | CustomType<U>
`Optional`

normalizeNumberTypes: boolean

#### Returns boolean

- to
Proto (): proto.badges.PredeterminedOrderCalculationMethod #### Returns proto.badges.PredeterminedOrderCalculationMethod

`Static`

from- from
Json (jsonValue, options?): PredeterminedOrderCalculationMethod #### Parameters

- jsonValue: JsonValue
`Optional`

options: Partial<JsonReadOptions>

#### Returns PredeterminedOrderCalculationMethod

`Static`

from- from
Json (jsonString, options?): PredeterminedOrderCalculationMethodString #### Parameters

- jsonString: string
`Optional`

options: Partial<JsonReadOptions>

#### Returns PredeterminedOrderCalculationMethod

`Static`

from- from
Proto (item): PredeterminedOrderCalculationMethod #### Parameters

#### Returns PredeterminedOrderCalculationMethod

PredeterminedOrderCalculationMethod represents the order calculation method for the predetermined balances. Only one option can be set to true. For manual balances, the order number corresponds to the index of the balance in the array. For incremented balances, the order number corresponds to the number of times we increment.