/
model_fetch_terminal_qr_codes_entity.go
62 lines (49 loc) · 1.59 KB
/
model_fetch_terminal_qr_codes_entity.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
/*
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: 2022-09-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 FetchTerminalQRCodesEntity type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &FetchTerminalQRCodesEntity{}
// FetchTerminalQRCodesEntity Fetch Static QR Codes using terminal ID or phone number
type FetchTerminalQRCodesEntity struct {
// Name of the bank that is linked to the Static QR.
Bank *string `json:"bank,omitempty"`
// Base-64 Encoded QR Code URL
QrCode *string `json:"qrCode,omitempty"`
// URL of the qr Code.
QrCodeUrl *string `json:"qrCodeUrl,omitempty"`
// Status of the static QR.
Status *string `json:"status,omitempty"`
}
func (o FetchTerminalQRCodesEntity) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o FetchTerminalQRCodesEntity) ToMap() (map[string]interface{}, error) {
strings.HasPrefix("cf", "cf")
toSerialize := map[string]interface{}{}
if !IsNil(o.Bank) {
toSerialize["bank"] = o.Bank
}
if !IsNil(o.QrCode) {
toSerialize["qrCode"] = o.QrCode
}
if !IsNil(o.QrCodeUrl) {
toSerialize["qrCodeUrl"] = o.QrCodeUrl
}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
return toSerialize, nil
}