This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
/
openpitrix_submit_vendor_verify_info_request.go
76 lines (57 loc) · 2.04 KB
/
openpitrix_submit_vendor_verify_info_request.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// 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 (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
)
// OpenpitrixSubmitVendorVerifyInfoRequest openpitrix submit vendor verify info request
// swagger:model openpitrixSubmitVendorVerifyInfoRequest
type OpenpitrixSubmitVendorVerifyInfoRequest struct {
// required, authorizer email eg. xxx@yunify.com
AuthorizerEmail string `json:"authorizer_email,omitempty"`
// required, authorizer name
AuthorizerName string `json:"authorizer_name,omitempty"`
// authorizer phone, string of 11 digit
AuthorizerPhone string `json:"authorizer_phone,omitempty"`
// bank account name
BankAccountName string `json:"bank_account_name,omitempty"`
// bank account number
BankAccountNumber string `json:"bank_account_number,omitempty"`
// bank name
BankName string `json:"bank_name,omitempty"`
// required, company name
CompanyName string `json:"company_name,omitempty"`
// company profile
CompanyProfile string `json:"company_profile,omitempty"`
// company website
CompanyWebsite string `json:"company_website,omitempty"`
// required, id of user to submit
UserID string `json:"user_id,omitempty"`
}
// Validate validates this openpitrix submit vendor verify info request
func (m *OpenpitrixSubmitVendorVerifyInfoRequest) Validate(formats strfmt.Registry) error {
var res []error
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
// MarshalBinary interface implementation
func (m *OpenpitrixSubmitVendorVerifyInfoRequest) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *OpenpitrixSubmitVendorVerifyInfoRequest) UnmarshalBinary(b []byte) error {
var res OpenpitrixSubmitVendorVerifyInfoRequest
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}