full access, freq+bol11
This commit is contained in:
parent
1049586646
commit
0dd79eecf6
6 changed files with 57 additions and 27 deletions
|
|
@ -531,12 +531,14 @@ type DebitRule_rule struct {
|
|||
type LiveDebitRequest_debit_type string
|
||||
|
||||
const (
|
||||
FREQUENCY LiveDebitRequest_debit_type = "frequency"
|
||||
INVOICE LiveDebitRequest_debit_type = "invoice"
|
||||
FREQUENCY LiveDebitRequest_debit_type = "frequency"
|
||||
FULL_ACCESS LiveDebitRequest_debit_type = "full_access"
|
||||
INVOICE LiveDebitRequest_debit_type = "invoice"
|
||||
)
|
||||
|
||||
type LiveDebitRequest_debit struct {
|
||||
Type LiveDebitRequest_debit_type `json:"type"`
|
||||
Frequency *FrequencyRule `json:"frequency"`
|
||||
Invoice *string `json:"invoice"`
|
||||
Type LiveDebitRequest_debit_type `json:"type"`
|
||||
Frequency *FrequencyRule `json:"frequency"`
|
||||
Full_access *Empty `json:"full_access"`
|
||||
Invoice *string `json:"invoice"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2945,6 +2945,7 @@ export const DebitRule_ruleValidate = (o?: DebitRule_rule, opts:DebitRule_ruleOp
|
|||
}
|
||||
export enum LiveDebitRequest_debit_type {
|
||||
FREQUENCY = 'frequency',
|
||||
FULL_ACCESS = 'full_access',
|
||||
INVOICE = 'invoice',
|
||||
}
|
||||
export const enumCheckLiveDebitRequest_debit_type = (e?: LiveDebitRequest_debit_type): boolean => {
|
||||
|
|
@ -2953,10 +2954,12 @@ export const enumCheckLiveDebitRequest_debit_type = (e?: LiveDebitRequest_debit_
|
|||
}
|
||||
export type LiveDebitRequest_debit =
|
||||
{type:LiveDebitRequest_debit_type.FREQUENCY, frequency:FrequencyRule}|
|
||||
{type:LiveDebitRequest_debit_type.FULL_ACCESS, full_access:Empty}|
|
||||
{type:LiveDebitRequest_debit_type.INVOICE, invoice:string}
|
||||
|
||||
export type LiveDebitRequest_debitOptions = {
|
||||
frequency_Options?: FrequencyRuleOptions
|
||||
full_access_Options?: EmptyOptions
|
||||
invoice_CustomCheck?: (v: string) => boolean
|
||||
}
|
||||
export const LiveDebitRequest_debitValidate = (o?: LiveDebitRequest_debit, opts:LiveDebitRequest_debitOptions = {}, path: string = 'LiveDebitRequest_debit::root.'): Error | null => {
|
||||
|
|
@ -2968,6 +2971,12 @@ export const LiveDebitRequest_debitValidate = (o?: LiveDebitRequest_debit, opts:
|
|||
if (frequencyErr !== null) return frequencyErr
|
||||
|
||||
|
||||
break
|
||||
case LiveDebitRequest_debit_type.FULL_ACCESS:
|
||||
const full_accessErr = EmptyValidate(o.full_access, opts.full_access_Options, `${path}.full_access`)
|
||||
if (full_accessErr !== null) return full_accessErr
|
||||
|
||||
|
||||
break
|
||||
case LiveDebitRequest_debit_type.INVOICE:
|
||||
if (typeof o.invoice !== 'string') return new Error(`${path}.invoice: is not a string`)
|
||||
|
|
|
|||
|
|
@ -536,6 +536,7 @@ message LiveDebitRequest {
|
|||
oneof debit {
|
||||
string invoice = 3;
|
||||
FrequencyRule frequency = 4;
|
||||
Empty full_access = 5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue