You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `:user` [Organization/Project, default nil]: Organization or Project struct returned from StarkBank.project(). Only necessary if default project or organization has not been set in configs.
Receive a stream of DarfPayment Log structs previously created in the Stark Bank API
64
-
65
+
65
66
## Options:
66
67
- `:limit` [integer, default nil]: maximum number of entities to be retrieved. Unlimited if nil. ex: 35
67
68
- `:after` [Date or string, default nil]: date filter for entities created only after specified date. ex: ~D[2020-03-25]
68
69
- `:before` [Date or string, default nil]: date filter for entities created only before specified date. ex: ~D[2020-03-25]
69
70
- `:types` [list of strings, default null]: filter retrieved structs by event types. ex: 'paid' or 'registered'
70
71
- `:payment_ids` [list of strings, default null]: list of DarfPayment ids to filter retrieved structs. ex: ['5656565656565656', '4545454545454545']
71
72
- `:user` [Organization/Project, default nil]: Organization or Project struct returned from StarkBank.project(). Only necessary if default project or organization has not been set in configs.
72
-
73
+
73
74
## Return:
74
75
- stream of DarfPayment Log structs with updated attributes
75
76
"""
@@ -90,7 +91,7 @@ defmodule StarkBank.DarfPayment.Log do
90
91
defquery(options\\[])do
91
92
Rest.get_list(resource(),options)
92
93
end
93
-
94
+
94
95
@doc"""
95
96
Same as query(), but it will unwrap the error tuple and raise in case of errors.
96
97
"""
@@ -106,11 +107,11 @@ defmodule StarkBank.DarfPayment.Log do
106
107
defquery!(options\\[])do
107
108
Rest.get_list!(resource(),options)
108
109
end
109
-
110
+
110
111
@doc"""
111
112
Receive a list of up to 100 DarfPayment structs previously created in the Stark Bank API and the cursor to the next page.
112
113
Use this function instead of query if you want to manually page your requests.
113
-
114
+
114
115
## Options:
115
116
- `:cursor` [string, default nil]: cursor returned on the previous page function call
116
117
- `:limit` [integer, default nil]: maximum number of entities to be retrieved. Unlimited if nil. ex: 35
@@ -119,7 +120,7 @@ defmodule StarkBank.DarfPayment.Log do
119
120
- `:types` [list of strings, default null]: filter retrieved structs by event types. ex: 'paid' or 'registered'
120
121
- `:payment_ids` [list of strings, default null]: list of DarfPayment ids to filter retrieved structs. ex: ['5656565656565656', '4545454545454545']
121
122
- `:user` [Organization/Project, default nil]: Organization or Project struct returned from StarkBank.project(). Only necessary if default project or organization has not been set in configs.
122
-
123
+
123
124
## Return:
124
125
- list of DarfPayment Log structs with updated attributes and cursor to retrieve the next page of DarfPayment structs
125
126
"""
@@ -131,12 +132,12 @@ defmodule StarkBank.DarfPayment.Log do
131
132
types: [binary],
132
133
payment_ids: [binary],
133
134
user: Project.t()|Organization.t()
134
-
)::
135
-
{:ok,{binary,[Log.t()]}}|{:error,[%Error{}]}
135
+
)::
136
+
{:ok,{binary,[Log.t()]}}|{:error,[%Error{}]}
136
137
defpage(options\\[])do
137
138
Rest.get_page(resource(),options)
138
139
end
139
-
140
+
140
141
@doc"""
141
142
Same as page(), but it will unwrap the error tuple and raise in case of errors.
142
143
"""
@@ -149,7 +150,7 @@ defmodule StarkBank.DarfPayment.Log do
149
150
types: [binary],
150
151
payment_ids: [binary],
151
152
user: Project.t()|Organization.t()
152
-
)::
153
+
)::
153
154
[Log.t()]
154
155
defpage!(options\\[])do
155
156
Rest.get_page!(resource(),options)
@@ -162,16 +163,15 @@ defmodule StarkBank.DarfPayment.Log do
0 commit comments