-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmodel_create_subscription_payment_request_enach_enach.go
More file actions
79 lines (66 loc) · 2.4 KB
/
Copy pathmodel_create_subscription_payment_request_enach_enach.go
File metadata and controls
79 lines (66 loc) · 2.4 KB
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
/*
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: 2026-01-01
Contact: developers@cashfree.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package cashfree_pg
import (
"encoding/json"
"fmt"
"strings"
)
var _ = fmt.Errorf
// checks if the CreateSubscriptionPaymentRequestEnachEnach type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CreateSubscriptionPaymentRequestEnachEnach{}
// CreateSubscriptionPaymentRequestEnachEnach struct for CreateSubscriptionPaymentRequestEnachEnach
type CreateSubscriptionPaymentRequestEnachEnach struct {
// Account bank code (mandatory). Consists of the first four alphabetic characters of the IFSC.
AccountBankCode *string `json:"account_bank_code,omitempty"`
// Account holder name.
AccountHolderName *string `json:"account_holder_name,omitempty"`
// Account IFSC (optional). Complete 11-character alphanumeric code.
AccountIfsc *string `json:"account_ifsc,omitempty"`
// Account number.
AccountNumber *string `json:"account_number,omitempty"`
// Account type.
AccountType *string `json:"account_type,omitempty"`
// Authentication mode. can be `debit_card`, `aadhaar`, or `net_banking`.
AuthMode *string `json:"auth_mode,omitempty"`
// Channel. can be link.
Channel *string `json:"channel,omitempty"`
}
func (o CreateSubscriptionPaymentRequestEnachEnach) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o CreateSubscriptionPaymentRequestEnachEnach) ToMap() (map[string]interface{}, error) {
strings.HasPrefix("cf", "cf")
toSerialize := map[string]interface{}{}
if !IsNil(o.AccountBankCode) {
toSerialize["account_bank_code"] = o.AccountBankCode
}
if !IsNil(o.AccountHolderName) {
toSerialize["account_holder_name"] = o.AccountHolderName
}
if !IsNil(o.AccountIfsc) {
toSerialize["account_ifsc"] = o.AccountIfsc
}
if !IsNil(o.AccountNumber) {
toSerialize["account_number"] = o.AccountNumber
}
if !IsNil(o.AccountType) {
toSerialize["account_type"] = o.AccountType
}
if !IsNil(o.AuthMode) {
toSerialize["auth_mode"] = o.AuthMode
}
if !IsNil(o.Channel) {
toSerialize["channel"] = o.Channel
}
return toSerialize, nil
}