/
model_fetch_settlements_request_pagination.go
50 lines (37 loc) · 1.59 KB
/
model_fetch_settlements_request_pagination.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
/*
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 FetchSettlementsRequestPagination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &FetchSettlementsRequestPagination{}
// FetchSettlementsRequestPagination To fetch the next set of settlements, pass the cursor received in the response to the next API call. To receive the data for the first time, pass the cursor as null. Limit would be number of settlements that you want to receive.
type FetchSettlementsRequestPagination struct {
// The number of settlements you want to fetch. Maximum limit is 1000, default value is 10.
Limit int32 `json:"limit"`
// Specifies from where the next set of settlement details should be fetched.
Cursor *string `json:"cursor,omitempty"`
}
func (o FetchSettlementsRequestPagination) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o FetchSettlementsRequestPagination) ToMap() (map[string]interface{}, error) {
strings.HasPrefix("cf", "cf")
toSerialize := map[string]interface{}{}
toSerialize["limit"] = o.Limit
if !IsNil(o.Cursor) {
toSerialize["cursor"] = o.Cursor
}
return toSerialize, nil
}