sdk_ruby_apis_efi 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +3 -3
- data/lib/sdk_ruby_apis_efi/constants.rb +134 -126
- data/lib/sdk_ruby_apis_efi/endpoints.rb +2 -2
- data/lib/sdk_ruby_apis_efi/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b0688fbf73eabdadead6506c64b6ad9ee0e34710d7f41ecee85f7fde79970e5
|
|
4
|
+
data.tar.gz: cabc7947697e469e38d1c713e07d127b19490914a3a949a82a7089e6c85edfb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec055d914866e26dfc7999433726414c6751b3287a8532ed69b7ae62f45a1c239b42368611a89cc209c1157aefd80b8cce905d401077489208e2e188564e5b4b
|
|
7
|
+
data.tar.gz: 32ad027b1fa4b2c0e6a0fb7a904b43364dc231ed046aeee0003a15ea56fde8f8eecb2a99f878df7434b5780eb49bd895f741309316b7a4c20ba3e45d1de6bd7d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
Version 1.0.1 (2023-09-20)
|
|
5
|
+
--------------------------
|
|
6
|
+
* docs: Updated examples
|
|
7
|
+
- All methods now are in cammelCase instead of snake_case
|
|
8
|
+
- New method pixSendDetailId
|
|
9
|
+
- Method getAccountCertificate renamed to createAccountCertificate and HTTP Method updated to POST instead of GET
|
|
10
|
+
|
|
11
|
+
* chore: Changed header 'api-sdk'
|
|
12
|
+
|
|
4
13
|
Version 1.0.0 (2023-07-31)
|
|
5
14
|
--------------------------
|
|
6
15
|
* Initial release
|
data/README.md
CHANGED
|
@@ -51,7 +51,7 @@ charge = {
|
|
|
51
51
|
}]
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
response = efipay.
|
|
54
|
+
response = efipay.createCharge(body: charge)
|
|
55
55
|
puts response
|
|
56
56
|
```
|
|
57
57
|
|
|
@@ -60,7 +60,7 @@ puts response
|
|
|
60
60
|
You can run the examples inside `examples` with the following command:
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
$ ruby examples/
|
|
63
|
+
$ ruby examples/createCharge.rb
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
Just remember to set the correct credentials inside `examples/credentials.rb` before running.
|
|
@@ -68,7 +68,7 @@ Just remember to set the correct credentials inside `examples/credentials.rb` be
|
|
|
68
68
|
|
|
69
69
|
## Additional documentation
|
|
70
70
|
|
|
71
|
-
The full documentation with all available endpoints is in https://dev.
|
|
71
|
+
The full documentation with all available endpoints is in https://dev.efipay.com.br/.
|
|
72
72
|
|
|
73
73
|
## Changelog
|
|
74
74
|
|
|
@@ -12,175 +12,175 @@ module SdkRubyApisEfi
|
|
|
12
12
|
route: "/v1/authorize",
|
|
13
13
|
method: "post"
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
createCharge: {
|
|
16
16
|
route: "/v1/charge",
|
|
17
17
|
method: "post"
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
createOneStepCharge: {
|
|
20
20
|
route: "/v1/charge/one-step",
|
|
21
21
|
method: "post"
|
|
22
22
|
},
|
|
23
|
-
|
|
23
|
+
createOneStepChargePartner: {
|
|
24
24
|
route: "/v1/partner/charge/one-step",
|
|
25
25
|
method: "post"
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
detailCharge: {
|
|
28
28
|
route: "/v1/charge/:id",
|
|
29
29
|
method: "get"
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
updateChargeMetadata: {
|
|
32
32
|
route: "/v1/charge/:id/metadata",
|
|
33
33
|
method: "put"
|
|
34
34
|
},
|
|
35
|
-
|
|
35
|
+
updateBillet: {
|
|
36
36
|
route: "/v1/charge/:id/billet",
|
|
37
37
|
method: "put"
|
|
38
38
|
},
|
|
39
|
-
|
|
39
|
+
definePayMethod: {
|
|
40
40
|
route: "/v1/charge/:id/pay",
|
|
41
41
|
method: "post"
|
|
42
42
|
},
|
|
43
|
-
|
|
43
|
+
definePayMethodPartner: {
|
|
44
44
|
route: "/v1/partner/charge/:id/pay",
|
|
45
45
|
method: "post"
|
|
46
46
|
},
|
|
47
|
-
|
|
47
|
+
cancelCharge: {
|
|
48
48
|
route: "/v1/charge/:id/cancel",
|
|
49
49
|
method: "put"
|
|
50
50
|
},
|
|
51
|
-
|
|
51
|
+
createCarnet: {
|
|
52
52
|
route: "/v1/carnet",
|
|
53
53
|
method: "post"
|
|
54
54
|
},
|
|
55
|
-
|
|
55
|
+
detailCarnet: {
|
|
56
56
|
route: "/v1/carnet/:id",
|
|
57
57
|
method: "get"
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
updateCarnetParcel: {
|
|
60
60
|
route: "/v1/carnet/:id/parcel/:parcel",
|
|
61
61
|
method: "put"
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
updateCarnetMetadata: {
|
|
64
64
|
route: "/v1/carnet/:id/metadata",
|
|
65
65
|
method: "put"
|
|
66
66
|
},
|
|
67
|
-
|
|
67
|
+
getNotification: {
|
|
68
68
|
route: "/v1/notification/:token",
|
|
69
69
|
method: "get"
|
|
70
70
|
},
|
|
71
|
-
|
|
71
|
+
listPlans: {
|
|
72
72
|
route: "/v1/plans",
|
|
73
73
|
method: "get"
|
|
74
74
|
},
|
|
75
|
-
|
|
75
|
+
createPlan: {
|
|
76
76
|
route: "/v1/plan",
|
|
77
77
|
method: "post"
|
|
78
78
|
},
|
|
79
|
-
|
|
79
|
+
deletePlan: {
|
|
80
80
|
route: "/v1/plan/:id",
|
|
81
81
|
method: "delete"
|
|
82
82
|
},
|
|
83
|
-
|
|
83
|
+
createSubscription: {
|
|
84
84
|
route: "/v1/plan/:id/subscription",
|
|
85
85
|
method: "post"
|
|
86
86
|
},
|
|
87
|
-
|
|
87
|
+
createOneStepSubscription: {
|
|
88
88
|
route: "/v1/plan/:id/subscription/one-step",
|
|
89
89
|
method: "post"
|
|
90
90
|
},
|
|
91
|
-
|
|
91
|
+
createOneStepSubscriptionLink: {
|
|
92
92
|
route: "/v1/plan/:id/subscription/one-step/link",
|
|
93
93
|
method: "post"
|
|
94
94
|
},
|
|
95
|
-
|
|
95
|
+
detailSubscription: {
|
|
96
96
|
route: "/v1/subscription/:id",
|
|
97
97
|
method: "get"
|
|
98
98
|
},
|
|
99
|
-
|
|
99
|
+
defineSubscriptionPayMethod: {
|
|
100
100
|
route: "/v1/subscription/:id/pay",
|
|
101
101
|
method: "post"
|
|
102
102
|
},
|
|
103
|
-
|
|
103
|
+
cancelSubscription: {
|
|
104
104
|
route: "/v1/subscription/:id/cancel",
|
|
105
105
|
method: "put"
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
updateSubscriptionMetadata: {
|
|
108
108
|
route: "/v1/subscription/:id/metadata",
|
|
109
109
|
method: "put"
|
|
110
110
|
},
|
|
111
|
-
|
|
111
|
+
createSubscriptionHistory: {
|
|
112
112
|
route: "/v1/subscription/:id/history",
|
|
113
113
|
method: "post"
|
|
114
114
|
},
|
|
115
|
-
|
|
115
|
+
sendSubscriptionLinkEmail: {
|
|
116
116
|
route: "/v1/charge/:id/subscription/resend",
|
|
117
117
|
method: "post"
|
|
118
118
|
},
|
|
119
|
-
|
|
119
|
+
getInstallments: {
|
|
120
120
|
route: "/v1/installments",
|
|
121
121
|
method: "get"
|
|
122
122
|
},
|
|
123
|
-
|
|
123
|
+
sendBilletEmail: {
|
|
124
124
|
route: "/v1/charge/:id/billet/resend",
|
|
125
125
|
method: "post"
|
|
126
126
|
},
|
|
127
|
-
|
|
127
|
+
createChargeHistory: {
|
|
128
128
|
route: "/v1/charge/:id/history",
|
|
129
129
|
method: "post"
|
|
130
130
|
},
|
|
131
|
-
|
|
131
|
+
sendCarnetEmail: {
|
|
132
132
|
route: "/v1/carnet/:id/resend",
|
|
133
133
|
method: "post"
|
|
134
134
|
},
|
|
135
|
-
|
|
135
|
+
sendCarnetParcelEmail: {
|
|
136
136
|
route: "/v1/carnet/:id/parcel/:parcel/resend",
|
|
137
137
|
method: "post"
|
|
138
138
|
},
|
|
139
|
-
|
|
139
|
+
createCarnetHistory: {
|
|
140
140
|
route: "/v1/carnet/:id/history",
|
|
141
141
|
method: "post"
|
|
142
142
|
},
|
|
143
|
-
|
|
143
|
+
cancelCarnet: {
|
|
144
144
|
route: "/v1/carnet/:id/cancel",
|
|
145
145
|
method: "put"
|
|
146
146
|
},
|
|
147
|
-
|
|
147
|
+
cancelCarnetParcel: {
|
|
148
148
|
route: "/v1/carnet/:id/parcel/:parcel/cancel",
|
|
149
149
|
method: "put"
|
|
150
150
|
},
|
|
151
|
-
|
|
151
|
+
createOneStepLink: {
|
|
152
152
|
route: "/v1/charge/one-step/link",
|
|
153
153
|
method: "post"
|
|
154
154
|
},
|
|
155
|
-
|
|
155
|
+
defineLinkPayMethod: {
|
|
156
156
|
route: "/v1/charge/:id/link",
|
|
157
157
|
method: "post"
|
|
158
158
|
},
|
|
159
|
-
|
|
159
|
+
updateChargeLink: {
|
|
160
160
|
route: "/v1/charge/:id/link",
|
|
161
161
|
method: "put"
|
|
162
162
|
},
|
|
163
|
-
|
|
163
|
+
sendLinkEmail: {
|
|
164
164
|
route: "/v1/charge/:id/link/resend",
|
|
165
165
|
method: "post"
|
|
166
166
|
},
|
|
167
|
-
|
|
167
|
+
updatePlan: {
|
|
168
168
|
route: "/v1/plan/:id",
|
|
169
169
|
method: "put"
|
|
170
170
|
},
|
|
171
|
-
|
|
171
|
+
defineBalanceSheetBillet: {
|
|
172
172
|
route: "/v1/charge/:id/balance-sheet",
|
|
173
173
|
method: "post"
|
|
174
174
|
},
|
|
175
|
-
|
|
175
|
+
settleCharge: {
|
|
176
176
|
route: "/v1/charge/:id/settle",
|
|
177
177
|
method: "put"
|
|
178
178
|
},
|
|
179
|
-
|
|
179
|
+
settleCarnet: {
|
|
180
180
|
route: "/v1/carnet/:id/settle",
|
|
181
181
|
method: "put"
|
|
182
182
|
},
|
|
183
|
-
|
|
183
|
+
settleCarnetParcel: {
|
|
184
184
|
route: "/v1/carnet/:id/parcel/:parcel/settle",
|
|
185
185
|
method: "put"
|
|
186
186
|
}
|
|
@@ -197,171 +197,175 @@ module SdkRubyApisEfi
|
|
|
197
197
|
route: "/oauth/token",
|
|
198
198
|
method: "post"
|
|
199
199
|
},
|
|
200
|
-
|
|
200
|
+
pixConfigWebhook: {
|
|
201
201
|
route: "/v2/webhook/:chave",
|
|
202
202
|
method: "put"
|
|
203
203
|
},
|
|
204
|
-
|
|
204
|
+
pixDetailWebhook: {
|
|
205
205
|
route: "/v2/webhook/:chave",
|
|
206
206
|
method: "get"
|
|
207
207
|
},
|
|
208
|
-
|
|
208
|
+
pixListWebhook: {
|
|
209
209
|
route: "/v2/webhook",
|
|
210
210
|
method: "get"
|
|
211
211
|
},
|
|
212
|
-
|
|
212
|
+
pixDeleteWebhook: {
|
|
213
213
|
route: "/v2/webhook/:chave",
|
|
214
214
|
method: "delete"
|
|
215
215
|
},
|
|
216
|
-
|
|
216
|
+
pixCreateCharge: {
|
|
217
217
|
route: "/v2/cob/:txid",
|
|
218
218
|
method: "put"
|
|
219
219
|
},
|
|
220
|
-
|
|
220
|
+
pixCreateImmediateCharge: {
|
|
221
221
|
route: "/v2/cob",
|
|
222
222
|
method: "post"
|
|
223
223
|
},
|
|
224
|
-
|
|
224
|
+
pixDetailCharge: {
|
|
225
225
|
route: "/v2/cob/:txid",
|
|
226
226
|
method: "get"
|
|
227
227
|
},
|
|
228
|
-
|
|
228
|
+
pixUpdateCharge: {
|
|
229
229
|
route: "/v2/cob/:txid",
|
|
230
230
|
method: "patch"
|
|
231
231
|
},
|
|
232
|
-
|
|
232
|
+
pixListCharges: {
|
|
233
233
|
route: "/v2/cob",
|
|
234
234
|
method: "get"
|
|
235
235
|
},
|
|
236
|
-
|
|
236
|
+
pixDevolution: {
|
|
237
237
|
route: "/v2/pix/:e2eId/devolucao/:id",
|
|
238
238
|
method: "put"
|
|
239
239
|
},
|
|
240
|
-
|
|
240
|
+
pixDetailDevolution: {
|
|
241
241
|
route: "/v2/pix/:e2eId/devolucao/:id",
|
|
242
242
|
method: "get"
|
|
243
243
|
},
|
|
244
|
-
|
|
244
|
+
pixSend: {
|
|
245
245
|
route: "/v2/gn/pix/:idEnvio",
|
|
246
246
|
method: "put"
|
|
247
247
|
},
|
|
248
|
-
|
|
248
|
+
pixSendDetailId: {
|
|
249
|
+
route: "/v2/gn/pix/enviados/id-envio/:idEnvio",
|
|
250
|
+
method: "get"
|
|
251
|
+
},
|
|
252
|
+
pixSendDetail: {
|
|
249
253
|
route: "/v2/gn/pix/enviados/:e2eId",
|
|
250
254
|
method: "get"
|
|
251
255
|
},
|
|
252
|
-
|
|
256
|
+
pixSendList: {
|
|
253
257
|
route: "/v2/gn/pix/enviados",
|
|
254
258
|
method: "get"
|
|
255
259
|
},
|
|
256
|
-
|
|
260
|
+
pixDetailReceived: {
|
|
257
261
|
route: "/v2/pix/:e2eId",
|
|
258
262
|
method: "get"
|
|
259
263
|
},
|
|
260
|
-
|
|
264
|
+
pixReceivedList: {
|
|
261
265
|
route: "/v2/pix",
|
|
262
266
|
method: "get"
|
|
263
267
|
},
|
|
264
|
-
|
|
268
|
+
pixGenerateQrcode: {
|
|
265
269
|
route: "/v2/loc/:id/qrcode",
|
|
266
270
|
method: "get"
|
|
267
271
|
},
|
|
268
|
-
|
|
272
|
+
pixCreateLocation: {
|
|
269
273
|
route: "/v2/loc",
|
|
270
274
|
method: "post"
|
|
271
275
|
},
|
|
272
|
-
|
|
276
|
+
pixLocationList: {
|
|
273
277
|
route: "/v2/loc",
|
|
274
278
|
method: "get"
|
|
275
279
|
},
|
|
276
|
-
|
|
280
|
+
pixDetailLocation: {
|
|
277
281
|
route: "/v2/loc/:id",
|
|
278
282
|
method: "get"
|
|
279
283
|
},
|
|
280
|
-
|
|
284
|
+
pixUnlinkTxidLocation: {
|
|
281
285
|
route: "/v2/loc/:id/txid",
|
|
282
286
|
method: "delete"
|
|
283
287
|
},
|
|
284
|
-
|
|
288
|
+
pixCreateEvp: {
|
|
285
289
|
route: "/v2/gn/evp",
|
|
286
290
|
method: "post"
|
|
287
291
|
},
|
|
288
|
-
|
|
292
|
+
pixListEvp: {
|
|
289
293
|
route: "/v2/gn/evp",
|
|
290
294
|
method: "get"
|
|
291
295
|
},
|
|
292
|
-
|
|
296
|
+
pixDeleteEvp: {
|
|
293
297
|
route: "/v2/gn/evp/:chave",
|
|
294
298
|
method: "delete"
|
|
295
299
|
},
|
|
296
|
-
|
|
300
|
+
pixSplitDetailCharge: {
|
|
297
301
|
route: "/v2/gn/split/cob/:txid",
|
|
298
302
|
method: "get"
|
|
299
303
|
},
|
|
300
|
-
|
|
304
|
+
pixSplitLinkCharge: {
|
|
301
305
|
route: "/v2/gn/split/cob/:txid/vinculo/:splitConfigId",
|
|
302
306
|
method: "put"
|
|
303
307
|
},
|
|
304
|
-
|
|
308
|
+
pixSplitUnlinkCharge: {
|
|
305
309
|
route: "/v2/gn/split/cob/:txid/vinculo/:splitConfigId",
|
|
306
310
|
method: "delete"
|
|
307
311
|
},
|
|
308
|
-
|
|
312
|
+
pixSplitDetailDueCharge: {
|
|
309
313
|
route: "/v2/gn/split/cobv/:txid",
|
|
310
314
|
method: "get"
|
|
311
315
|
},
|
|
312
|
-
|
|
316
|
+
pixSplitLinkDueCharge: {
|
|
313
317
|
route: "/v2/gn/split/cobv/:txid/vinculo/:splitConfigId",
|
|
314
318
|
method: "put"
|
|
315
319
|
},
|
|
316
|
-
|
|
320
|
+
pixSplitUnlinkDueCharge: {
|
|
317
321
|
route: "/v2/gn/split/cobv/:txid/vinculo/:splitConfigId",
|
|
318
322
|
method: "delete"
|
|
319
323
|
},
|
|
320
|
-
|
|
324
|
+
pixSplitConfig: {
|
|
321
325
|
route: "/v2/gn/split/config",
|
|
322
326
|
method: "post"
|
|
323
327
|
},
|
|
324
|
-
|
|
328
|
+
pixSplitConfigId: {
|
|
325
329
|
route: "/v2/gn/split/config/:id",
|
|
326
330
|
method: "put"
|
|
327
331
|
},
|
|
328
|
-
|
|
332
|
+
pixSplitDetailConfig: {
|
|
329
333
|
route: "/v2/gn/split/config/:id",
|
|
330
334
|
method: "get"
|
|
331
335
|
},
|
|
332
|
-
|
|
336
|
+
getAccountBalance: {
|
|
333
337
|
route: "/v2/gn/saldo",
|
|
334
338
|
method: "get"
|
|
335
339
|
},
|
|
336
|
-
|
|
340
|
+
updateAccountConfig: {
|
|
337
341
|
route: "/v2/gn/config",
|
|
338
342
|
method: "put"
|
|
339
343
|
},
|
|
340
|
-
|
|
344
|
+
listAccountConfig: {
|
|
341
345
|
route: "/v2/gn/config",
|
|
342
346
|
method: "get"
|
|
343
347
|
},
|
|
344
|
-
|
|
348
|
+
pixCreateDueCharge: {
|
|
345
349
|
route: "/v2/cobv/:txid",
|
|
346
350
|
method: "put"
|
|
347
351
|
},
|
|
348
|
-
|
|
352
|
+
pixUpdateDueCharge: {
|
|
349
353
|
route: "/v2/cobv/:txid",
|
|
350
354
|
method: "patch"
|
|
351
355
|
},
|
|
352
|
-
|
|
356
|
+
pixDetailDueCharge: {
|
|
353
357
|
route: "/v2/cobv/:txid",
|
|
354
358
|
method: "get"
|
|
355
359
|
},
|
|
356
|
-
|
|
360
|
+
pixListDueCharges: {
|
|
357
361
|
route: "/v2/cobv/",
|
|
358
362
|
method: "get"
|
|
359
363
|
},
|
|
360
|
-
|
|
364
|
+
createReport: {
|
|
361
365
|
route: "/v2/gn/relatorios/extrato-conciliacao",
|
|
362
366
|
method: "post"
|
|
363
367
|
},
|
|
364
|
-
|
|
368
|
+
detailReport: {
|
|
365
369
|
route: "/v2/gn/relatorios/:id",
|
|
366
370
|
method: "get"
|
|
367
371
|
}
|
|
@@ -375,59 +379,63 @@ module SdkRubyApisEfi
|
|
|
375
379
|
},
|
|
376
380
|
ENDPOINTS: {
|
|
377
381
|
authorize: {
|
|
378
|
-
route: "/
|
|
382
|
+
route: "/v1/oauth/token",
|
|
379
383
|
method: "post"
|
|
380
384
|
},
|
|
381
|
-
|
|
382
|
-
route: "/
|
|
385
|
+
ofConfigUpdate: {
|
|
386
|
+
route: "/v1/config",
|
|
383
387
|
method: "put"
|
|
384
388
|
},
|
|
385
|
-
|
|
386
|
-
route: "/
|
|
389
|
+
ofConfigDetail: {
|
|
390
|
+
route: "/v1/config",
|
|
387
391
|
method: "get"
|
|
388
392
|
},
|
|
389
|
-
|
|
390
|
-
route: "/
|
|
393
|
+
ofListParticipants: {
|
|
394
|
+
route: "/v1/participantes",
|
|
391
395
|
method: "get"
|
|
392
396
|
},
|
|
393
|
-
|
|
394
|
-
route: "/
|
|
397
|
+
ofStartPixPayment: {
|
|
398
|
+
route: "/v1/pagamentos/pix",
|
|
395
399
|
method: "post"
|
|
396
400
|
},
|
|
397
|
-
|
|
398
|
-
route: "/
|
|
401
|
+
ofListPixPayment: {
|
|
402
|
+
route: "/v1/pagamentos/pix",
|
|
399
403
|
method: "get"
|
|
400
404
|
},
|
|
401
|
-
|
|
402
|
-
route: "/
|
|
405
|
+
ofDevolutionPix: {
|
|
406
|
+
route: "/v1/pagamentos/pix/:identificadorPagamento/devolver",
|
|
403
407
|
method: "post"
|
|
404
|
-
}
|
|
408
|
+
},
|
|
409
|
+
ofCancelSchedulePix: {
|
|
410
|
+
route: "/v1/pagamentos/pix/:identificadorPagamento/cancelar",
|
|
411
|
+
method: "patch"
|
|
412
|
+
},
|
|
405
413
|
}
|
|
406
414
|
}
|
|
407
415
|
PAYMENTS = {
|
|
408
416
|
URL: {
|
|
409
417
|
production: "https://pagarcontas.api.efipay.com.br",
|
|
410
|
-
sandbox:
|
|
418
|
+
sandbox: nil
|
|
411
419
|
},
|
|
412
420
|
ENDPOINTS: {
|
|
413
421
|
authorize: {
|
|
414
|
-
route: "/oauth/token",
|
|
422
|
+
route: "/v1/oauth/token",
|
|
415
423
|
method: "post"
|
|
416
424
|
},
|
|
417
|
-
|
|
418
|
-
route: "/
|
|
425
|
+
payDetailBarcode: {
|
|
426
|
+
route: "/v1/codBarras/:codBarras",
|
|
419
427
|
method: "get"
|
|
420
428
|
},
|
|
421
|
-
|
|
422
|
-
route: "/
|
|
429
|
+
payRequestBarcode: {
|
|
430
|
+
route: "/v1/codBarras/:codBarras",
|
|
423
431
|
method: "post"
|
|
424
432
|
},
|
|
425
|
-
|
|
426
|
-
route: "/
|
|
433
|
+
payDetailPayment: {
|
|
434
|
+
route: "/v1/:idPagamento",
|
|
427
435
|
method: "get"
|
|
428
436
|
},
|
|
429
|
-
|
|
430
|
-
route: "/
|
|
437
|
+
payListPayments: {
|
|
438
|
+
route: "/v1/resumo",
|
|
431
439
|
method: "get"
|
|
432
440
|
}
|
|
433
441
|
}
|
|
@@ -435,39 +443,39 @@ module SdkRubyApisEfi
|
|
|
435
443
|
ACCOUNTS_OPENING = {
|
|
436
444
|
URL: {
|
|
437
445
|
production: "https://abrircontas.api.efipay.com.br",
|
|
438
|
-
sandbox: "https://abrircontas.api.efipay.com.br"
|
|
446
|
+
sandbox: "https://abrircontas-h.api.efipay.com.br"
|
|
439
447
|
},
|
|
440
448
|
ENDPOINTS: {
|
|
441
449
|
authorize: {
|
|
442
|
-
route: "/oauth/token",
|
|
450
|
+
route: "/v1/oauth/token",
|
|
443
451
|
method: "post"
|
|
444
452
|
},
|
|
445
|
-
|
|
446
|
-
route: "/
|
|
453
|
+
createAccount: {
|
|
454
|
+
route: "/v1/conta-simplificada",
|
|
447
455
|
method: "post"
|
|
448
456
|
},
|
|
449
|
-
|
|
450
|
-
route: "/
|
|
457
|
+
getAccountCredentials: {
|
|
458
|
+
route: "/v1/conta-simplificada/:idContaSimplificada/credenciais",
|
|
451
459
|
method: "get"
|
|
452
460
|
},
|
|
453
|
-
|
|
454
|
-
route: "/
|
|
455
|
-
method: "
|
|
461
|
+
createAccountCertificate: {
|
|
462
|
+
route: "/v1/conta-simplificada/:idContaSimplificada/certificado",
|
|
463
|
+
method: "post"
|
|
456
464
|
},
|
|
457
|
-
|
|
458
|
-
route: "/
|
|
465
|
+
accountConfigWebhook: {
|
|
466
|
+
route: "/v1/webhook",
|
|
459
467
|
method: "post"
|
|
460
468
|
},
|
|
461
|
-
|
|
462
|
-
route: "/
|
|
469
|
+
accountListWebhook: {
|
|
470
|
+
route: "/v1/webhooks",
|
|
463
471
|
method: "get"
|
|
464
472
|
},
|
|
465
|
-
|
|
466
|
-
route: "/
|
|
473
|
+
accountDetailWebhook: {
|
|
474
|
+
route: "/v1/webhook/:identificadorWebhook",
|
|
467
475
|
method: "get"
|
|
468
476
|
},
|
|
469
|
-
|
|
470
|
-
route: "/
|
|
477
|
+
accountDeleteWebhook: {
|
|
478
|
+
route: "/v1/webhook/:identificadorWebhook",
|
|
471
479
|
method: "delete"
|
|
472
480
|
}
|
|
473
481
|
}
|
|
@@ -86,7 +86,7 @@ module SdkRubyApisEfi
|
|
|
86
86
|
end
|
|
87
87
|
headers = {
|
|
88
88
|
"accept" => "application/json",
|
|
89
|
-
"api-sdk" => "ruby-#{SdkRubyApisEfi::VERSION}"
|
|
89
|
+
"api-sdk" => "efi-ruby-#{SdkRubyApisEfi::VERSION}"
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
if headersComplement.any?
|
|
@@ -136,7 +136,7 @@ module SdkRubyApisEfi
|
|
|
136
136
|
|
|
137
137
|
headers = {
|
|
138
138
|
"accept" => "application/json",
|
|
139
|
-
"api-sdk" => "ruby-#{SdkRubyApisEfi::VERSION}"
|
|
139
|
+
"api-sdk" => "efi-ruby-#{SdkRubyApisEfi::VERSION}"
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
auth_headers = {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sdk_ruby_apis_efi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- João Muniz
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -133,7 +133,7 @@ homepage: https://github.com/efipay/sdk-ruby-apis-efi
|
|
|
133
133
|
licenses:
|
|
134
134
|
- MIT
|
|
135
135
|
metadata: {}
|
|
136
|
-
post_install_message:
|
|
136
|
+
post_install_message:
|
|
137
137
|
rdoc_options: []
|
|
138
138
|
require_paths:
|
|
139
139
|
- lib
|
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
149
149
|
version: '0'
|
|
150
150
|
requirements: []
|
|
151
151
|
rubygems_version: 3.2.33
|
|
152
|
-
signing_key:
|
|
152
|
+
signing_key:
|
|
153
153
|
specification_version: 4
|
|
154
154
|
summary: Efí Pay API Ruby Gem
|
|
155
155
|
test_files: []
|