/
o_b_amount14.go
38 lines (29 loc) · 998 Bytes
/
o_b_amount14.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/validate"
)
// OBAmount14 Cap amount charged for a fee/charge (where it is charged in terms of an amount rather than a rate)
//
// swagger:model OB_Amount1_4
type OBAmount14 string
// Validate validates this o b amount1 4
func (m OBAmount14) Validate(formats strfmt.Registry) error {
var res []error
if err := validate.Pattern("", "body", string(m), `^(-?\\d{1,14}){1}(\\.\\d{1,4}){0,1}$`); err != nil {
return err
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// ContextValidate validates this o b amount1 4 based on context it is used
func (m OBAmount14) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}