-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmodel_create_vendor_response.go
86 lines (73 loc) · 2.21 KB
/
model_create_vendor_response.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
77
78
79
80
81
82
83
/*
Cashfree Payment Gateway APIs
Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
API version: 2023-08-01
Contact: developers@cashfree.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package cashfree_pg
import (
"encoding/json"
"strings"
)
// checks if the CreateVendorResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CreateVendorResponse{}
// CreateVendorResponse Create Vendor Response
type CreateVendorResponse struct {
Email *string `json:"email,omitempty"`
Status *string `json:"status,omitempty"`
Bank []BankDetails `json:"bank,omitempty"`
Upi *string `json:"upi,omitempty"`
Phone *float32 `json:"phone,omitempty"`
Name *string `json:"name,omitempty"`
VendorId *string `json:"vendor_id,omitempty"`
ScheduleOption []ScheduleOption `json:"schedule_option,omitempty"`
KycDetails []KycDetails `json:"kyc_details,omitempty"`
DashboardAccess *bool `json:"dashboard_access,omitempty"`
BankDetails *string `json:"bank_details,omitempty"`
}
func (o CreateVendorResponse) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o CreateVendorResponse) ToMap() (map[string]interface{}, error) {
strings.HasPrefix("cf", "cf")
toSerialize := map[string]interface{}{}
if !IsNil(o.Email) {
toSerialize["email"] = o.Email
}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
if !IsNil(o.Bank) {
toSerialize["bank"] = o.Bank
}
if !IsNil(o.Upi) {
toSerialize["upi"] = o.Upi
}
if !IsNil(o.Phone) {
toSerialize["phone"] = o.Phone
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.VendorId) {
toSerialize["vendor_id"] = o.VendorId
}
if !IsNil(o.ScheduleOption) {
toSerialize["schedule_option"] = o.ScheduleOption
}
if !IsNil(o.KycDetails) {
toSerialize["kyc_details"] = o.KycDetails
}
if !IsNil(o.DashboardAccess) {
toSerialize["dashboard_access"] = o.DashboardAccess
}
if !IsNil(o.BankDetails) {
toSerialize["bank_details"] = o.BankDetails
}
return toSerialize, nil
}