sdk_ruby_apis_efi 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b2911571314341305ceb645c8efc78e10263df2ac2aa88ca7a900e97fa0ead3
4
- data.tar.gz: 9b9dd80c9afe06309f671603c1d09ec073ad8c90b7e6a786fd664a55e8fb5963
3
+ metadata.gz: 7125f98453df71f3f98f747c1d928125f8aae2cba106c0f5e787dfb25cbd14b9
4
+ data.tar.gz: 5f4ac882ea584757e243c012758be7bb23e62c606285607aa8b73b66922530e5
5
5
  SHA512:
6
- metadata.gz: 71a99654131b336c3709381a5cdb0a5458642d35a7094f3001a9ae56eed0b4df173dac778f8bdb7098e30c52a3dc47b79f2771d9896bb731f18e2200209c2cd7
7
- data.tar.gz: d475b5580aeaf907c62f6ca02482822610d371239735e5315a42c814ecbc95b0e09270ff40520fbc7505bea48153940738c1ba7e4358e975c7f90f8a051c1410
6
+ metadata.gz: baa5ecc527125427047be6ff580e3a31657c60c4ea5cc016a2980558c79017f2770a761fa38106fbbd837429f9422a2b76ed39e2d9db872b2f97fa4c9fb11799
7
+ data.tar.gz: 9de4365d43710abcc4e64fe0019ef5ce2dfb7d18db1f36c6d67007f4c9b4d2f364cb0b175b28275b40ca59c2e40ee5d0bcdf1a4dd661ed22abf6db38e2cbd393
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
@@ -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.sejaefi.com.br/.
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
- create_charge: {
15
+ createCharge: {
16
16
  route: "/v1/charge",
17
17
  method: "post"
18
18
  },
19
- create_one_step_charge: {
19
+ createOneStepCharge: {
20
20
  route: "/v1/charge/one-step",
21
21
  method: "post"
22
22
  },
23
- create_one_step_charge_partner: {
23
+ createOneStepChargePartner: {
24
24
  route: "/v1/partner/charge/one-step",
25
25
  method: "post"
26
26
  },
27
- detail_charge: {
27
+ detailCharge: {
28
28
  route: "/v1/charge/:id",
29
29
  method: "get"
30
30
  },
31
- update_charge_metadata: {
31
+ updateChargeMetadata: {
32
32
  route: "/v1/charge/:id/metadata",
33
33
  method: "put"
34
34
  },
35
- update_billet: {
35
+ updateBillet: {
36
36
  route: "/v1/charge/:id/billet",
37
37
  method: "put"
38
38
  },
39
- define_pay_method: {
39
+ definePayMethod: {
40
40
  route: "/v1/charge/:id/pay",
41
41
  method: "post"
42
42
  },
43
- define_pay_method_partner: {
43
+ definePayMethodPartner: {
44
44
  route: "/v1/partner/charge/:id/pay",
45
45
  method: "post"
46
46
  },
47
- cancel_charge: {
47
+ cancelCharge: {
48
48
  route: "/v1/charge/:id/cancel",
49
49
  method: "put"
50
50
  },
51
- create_carnet: {
51
+ createCarnet: {
52
52
  route: "/v1/carnet",
53
53
  method: "post"
54
54
  },
55
- detail_carnet: {
55
+ detailCarnet: {
56
56
  route: "/v1/carnet/:id",
57
57
  method: "get"
58
58
  },
59
- update_carnet_parcel: {
59
+ updateCarnetParcel: {
60
60
  route: "/v1/carnet/:id/parcel/:parcel",
61
61
  method: "put"
62
62
  },
63
- update_carnet_metadata: {
63
+ updateCarnetMetadata: {
64
64
  route: "/v1/carnet/:id/metadata",
65
65
  method: "put"
66
66
  },
67
- get_notification: {
67
+ getNotification: {
68
68
  route: "/v1/notification/:token",
69
69
  method: "get"
70
70
  },
71
- list_plans: {
71
+ listPlans: {
72
72
  route: "/v1/plans",
73
73
  method: "get"
74
74
  },
75
- create_plan: {
75
+ createPlan: {
76
76
  route: "/v1/plan",
77
77
  method: "post"
78
78
  },
79
- delete_plan: {
79
+ deletePlan: {
80
80
  route: "/v1/plan/:id",
81
81
  method: "delete"
82
82
  },
83
- create_subscription: {
83
+ createSubscription: {
84
84
  route: "/v1/plan/:id/subscription",
85
85
  method: "post"
86
86
  },
87
- create_one_step_subscription: {
87
+ createOneStepSubscription: {
88
88
  route: "/v1/plan/:id/subscription/one-step",
89
89
  method: "post"
90
90
  },
91
- create_one_step_subscription_link: {
91
+ createOneStepSubscriptionLink: {
92
92
  route: "/v1/plan/:id/subscription/one-step/link",
93
93
  method: "post"
94
94
  },
95
- detail_subscription: {
95
+ detailSubscription: {
96
96
  route: "/v1/subscription/:id",
97
97
  method: "get"
98
98
  },
99
- define_subscription_pay_method: {
99
+ defineSubscriptionPayMethod: {
100
100
  route: "/v1/subscription/:id/pay",
101
101
  method: "post"
102
102
  },
103
- cancel_subscription: {
103
+ cancelSubscription: {
104
104
  route: "/v1/subscription/:id/cancel",
105
105
  method: "put"
106
106
  },
107
- update_subscription_metadata: {
107
+ updateSubscriptionMetadata: {
108
108
  route: "/v1/subscription/:id/metadata",
109
109
  method: "put"
110
110
  },
111
- create_subscription_history: {
111
+ createSubscriptionHistory: {
112
112
  route: "/v1/subscription/:id/history",
113
113
  method: "post"
114
114
  },
115
- send_subscription_link_email: {
115
+ sendSubscriptionLinkEmail: {
116
116
  route: "/v1/charge/:id/subscription/resend",
117
117
  method: "post"
118
118
  },
119
- get_installments: {
119
+ getInstallments: {
120
120
  route: "/v1/installments",
121
121
  method: "get"
122
122
  },
123
- send_billet_email: {
123
+ sendBilletEmail: {
124
124
  route: "/v1/charge/:id/billet/resend",
125
125
  method: "post"
126
126
  },
127
- create_charge_history: {
127
+ createChargeHistory: {
128
128
  route: "/v1/charge/:id/history",
129
129
  method: "post"
130
130
  },
131
- send_carnet_email: {
131
+ sendCarnetEmail: {
132
132
  route: "/v1/carnet/:id/resend",
133
133
  method: "post"
134
134
  },
135
- send_carnet_parcel_email: {
135
+ sendCarnetParcelEmail: {
136
136
  route: "/v1/carnet/:id/parcel/:parcel/resend",
137
137
  method: "post"
138
138
  },
139
- create_carnet_history: {
139
+ createCarnetHistory: {
140
140
  route: "/v1/carnet/:id/history",
141
141
  method: "post"
142
142
  },
143
- cancel_carnet: {
143
+ cancelCarnet: {
144
144
  route: "/v1/carnet/:id/cancel",
145
145
  method: "put"
146
146
  },
147
- cancel_carnet_parcel: {
147
+ cancelCarnetParcel: {
148
148
  route: "/v1/carnet/:id/parcel/:parcel/cancel",
149
149
  method: "put"
150
150
  },
151
- create_one_step_link: {
151
+ createOneStepLink: {
152
152
  route: "/v1/charge/one-step/link",
153
153
  method: "post"
154
154
  },
155
- define_link_pay_method: {
155
+ defineLinkPayMethod: {
156
156
  route: "/v1/charge/:id/link",
157
157
  method: "post"
158
158
  },
159
- update_charge_link: {
159
+ updateChargeLink: {
160
160
  route: "/v1/charge/:id/link",
161
161
  method: "put"
162
162
  },
163
- send_link_email: {
163
+ sendLinkEmail: {
164
164
  route: "/v1/charge/:id/link/resend",
165
165
  method: "post"
166
166
  },
167
- update_plan: {
167
+ updatePlan: {
168
168
  route: "/v1/plan/:id",
169
169
  method: "put"
170
170
  },
171
- define_balance_sheet_billet: {
171
+ defineBalanceSheetBillet: {
172
172
  route: "/v1/charge/:id/balance-sheet",
173
173
  method: "post"
174
174
  },
175
- settle_charge: {
175
+ settleCharge: {
176
176
  route: "/v1/charge/:id/settle",
177
177
  method: "put"
178
178
  },
179
- settle_carnet: {
179
+ settleCarnet: {
180
180
  route: "/v1/carnet/:id/settle",
181
181
  method: "put"
182
182
  },
183
- settle_carnet_parcel: {
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
- pix_config_webhook: {
200
+ pixConfigWebhook: {
201
201
  route: "/v2/webhook/:chave",
202
202
  method: "put"
203
203
  },
204
- pix_detail_webhook: {
204
+ pixDetailWebhook: {
205
205
  route: "/v2/webhook/:chave",
206
206
  method: "get"
207
207
  },
208
- pix_list_webhook: {
208
+ pixListWebhook: {
209
209
  route: "/v2/webhook",
210
210
  method: "get"
211
211
  },
212
- pix_delete_webhook: {
212
+ pixDeleteWebhook: {
213
213
  route: "/v2/webhook/:chave",
214
214
  method: "delete"
215
215
  },
216
- pix_create_charge: {
216
+ pixCreateCharge: {
217
217
  route: "/v2/cob/:txid",
218
218
  method: "put"
219
219
  },
220
- pix_create_immediate_charge: {
220
+ pixCreateImmediateCharge: {
221
221
  route: "/v2/cob",
222
222
  method: "post"
223
223
  },
224
- pix_detail_charge: {
224
+ pixDetailCharge: {
225
225
  route: "/v2/cob/:txid",
226
226
  method: "get"
227
227
  },
228
- pix_update_charge: {
228
+ pixUpdateCharge: {
229
229
  route: "/v2/cob/:txid",
230
230
  method: "patch"
231
231
  },
232
- pix_list_charges: {
232
+ pixListCharges: {
233
233
  route: "/v2/cob",
234
234
  method: "get"
235
235
  },
236
- pix_devolution: {
236
+ pixDevolution: {
237
237
  route: "/v2/pix/:e2eId/devolucao/:id",
238
238
  method: "put"
239
239
  },
240
- pix_detail_devolution: {
240
+ pixDetailDevolution: {
241
241
  route: "/v2/pix/:e2eId/devolucao/:id",
242
242
  method: "get"
243
243
  },
244
- pix_send: {
244
+ pixSend: {
245
245
  route: "/v2/gn/pix/:idEnvio",
246
246
  method: "put"
247
247
  },
248
- pix_send_detail: {
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
- pix_send_list: {
256
+ pixSendList: {
253
257
  route: "/v2/gn/pix/enviados",
254
258
  method: "get"
255
259
  },
256
- pix_detail_received: {
260
+ pixDetailReceived: {
257
261
  route: "/v2/pix/:e2eId",
258
262
  method: "get"
259
263
  },
260
- pix_received_list: {
264
+ pixReceivedList: {
261
265
  route: "/v2/pix",
262
266
  method: "get"
263
267
  },
264
- pix_generate_qrcode: {
268
+ pixGenerateQrcode: {
265
269
  route: "/v2/loc/:id/qrcode",
266
270
  method: "get"
267
271
  },
268
- pix_create_location: {
272
+ pixCreateLocation: {
269
273
  route: "/v2/loc",
270
274
  method: "post"
271
275
  },
272
- pix_location_list: {
276
+ pixLocationList: {
273
277
  route: "/v2/loc",
274
278
  method: "get"
275
279
  },
276
- pix_detail_location: {
280
+ pixDetailLocation: {
277
281
  route: "/v2/loc/:id",
278
282
  method: "get"
279
283
  },
280
- pix_unlink_txid_location: {
284
+ pixUnlinkTxidLocation: {
281
285
  route: "/v2/loc/:id/txid",
282
286
  method: "delete"
283
287
  },
284
- pix_create_evp: {
288
+ pixCreateEvp: {
285
289
  route: "/v2/gn/evp",
286
290
  method: "post"
287
291
  },
288
- pix_list_evp: {
292
+ pixListEvp: {
289
293
  route: "/v2/gn/evp",
290
294
  method: "get"
291
295
  },
292
- pix_delete_evp: {
296
+ pixDeleteEvp: {
293
297
  route: "/v2/gn/evp/:chave",
294
298
  method: "delete"
295
299
  },
296
- pix_split_detail_charge: {
300
+ pixSplitDetailCharge: {
297
301
  route: "/v2/gn/split/cob/:txid",
298
302
  method: "get"
299
303
  },
300
- pix_split_link_charge: {
304
+ pixSplitLinkCharge: {
301
305
  route: "/v2/gn/split/cob/:txid/vinculo/:splitConfigId",
302
306
  method: "put"
303
307
  },
304
- pix_split_unlink_charge: {
308
+ pixSplitUnlinkCharge: {
305
309
  route: "/v2/gn/split/cob/:txid/vinculo/:splitConfigId",
306
310
  method: "delete"
307
311
  },
308
- pix_split_detail_due_charge: {
312
+ pixSplitDetailDueCharge: {
309
313
  route: "/v2/gn/split/cobv/:txid",
310
314
  method: "get"
311
315
  },
312
- pix_split_link_due_charge: {
316
+ pixSplitLinkDueCharge: {
313
317
  route: "/v2/gn/split/cobv/:txid/vinculo/:splitConfigId",
314
318
  method: "put"
315
319
  },
316
- pix_split_unlink_due_charge: {
320
+ pixSplitUnlinkDueCharge: {
317
321
  route: "/v2/gn/split/cobv/:txid/vinculo/:splitConfigId",
318
322
  method: "delete"
319
323
  },
320
- pix_split_config: {
324
+ pixSplitConfig: {
321
325
  route: "/v2/gn/split/config",
322
326
  method: "post"
323
327
  },
324
- pix_split_config_id: {
328
+ pixSplitConfigId: {
325
329
  route: "/v2/gn/split/config/:id",
326
330
  method: "put"
327
331
  },
328
- pix_split_detail_config: {
332
+ pixSplitDetailConfig: {
329
333
  route: "/v2/gn/split/config/:id",
330
334
  method: "get"
331
335
  },
332
- get_account_balance: {
336
+ getAccountBalance: {
333
337
  route: "/v2/gn/saldo",
334
338
  method: "get"
335
339
  },
336
- update_account_config: {
340
+ updateAccountConfig: {
337
341
  route: "/v2/gn/config",
338
342
  method: "put"
339
343
  },
340
- list_account_config: {
344
+ listAccountConfig: {
341
345
  route: "/v2/gn/config",
342
346
  method: "get"
343
347
  },
344
- pix_create_due_charge: {
348
+ pixCreateDueCharge: {
345
349
  route: "/v2/cobv/:txid",
346
350
  method: "put"
347
351
  },
348
- pix_update_due_charge: {
352
+ pixUpdateDueCharge: {
349
353
  route: "/v2/cobv/:txid",
350
354
  method: "patch"
351
355
  },
352
- pix_detail_due_charge: {
356
+ pixDetailDueCharge: {
353
357
  route: "/v2/cobv/:txid",
354
358
  method: "get"
355
359
  },
356
- pix_list_due_charges: {
360
+ pixListDueCharges: {
357
361
  route: "/v2/cobv/",
358
362
  method: "get"
359
363
  },
360
- create_report: {
364
+ createReport: {
361
365
  route: "/v2/gn/relatorios/extrato-conciliacao",
362
366
  method: "post"
363
367
  },
364
- detail_report: {
368
+ detailReport: {
365
369
  route: "/v2/gn/relatorios/:id",
366
370
  method: "get"
367
371
  }
@@ -378,27 +382,27 @@ module SdkRubyApisEfi
378
382
  route: "/open-finance/oauth/token",
379
383
  method: "post"
380
384
  },
381
- of_config_update: {
385
+ ofConfigUpdate: {
382
386
  route: "/open-finance/config",
383
387
  method: "put"
384
388
  },
385
- of_config_detail: {
389
+ ofConfigDetail: {
386
390
  route: "/open-finance/config",
387
391
  method: "get"
388
392
  },
389
- of_list_participants: {
393
+ ofListParticipants: {
390
394
  route: "/open-finance/participantes",
391
395
  method: "get"
392
396
  },
393
- of_start_pix_payment: {
397
+ ofStartPixPayment: {
394
398
  route: "/open-finance/pagamentos/pix",
395
399
  method: "post"
396
400
  },
397
- of_list_pix_payment: {
401
+ ofListPixPayment: {
398
402
  route: "/open-finance/pagamentos/pix",
399
403
  method: "get"
400
404
  },
401
- of_devolution_pix: {
405
+ ofDevolutionPix: {
402
406
  route: "/open-finance/devolucao/pagamento/pix",
403
407
  method: "post"
404
408
  }
@@ -414,19 +418,19 @@ module SdkRubyApisEfi
414
418
  route: "/oauth/token",
415
419
  method: "post"
416
420
  },
417
- pay_detail_barcode: {
421
+ payDetailBarcode: {
418
422
  route: "/pagamento/codBarras/:codBarras",
419
423
  method: "get"
420
424
  },
421
- pay_request_barcode: {
425
+ payRequestBarcode: {
422
426
  route: "/pagamento/codBarras/:codBarras",
423
427
  method: "post"
424
428
  },
425
- pay_detail_payment: {
429
+ payDetailPayment: {
426
430
  route: "/pagamento/:idPagamento",
427
431
  method: "get"
428
432
  },
429
- pay_list_payments: {
433
+ payListPayments: {
430
434
  route: "/pagamento/resumo",
431
435
  method: "get"
432
436
  }
@@ -442,31 +446,31 @@ module SdkRubyApisEfi
442
446
  route: "/oauth/token",
443
447
  method: "post"
444
448
  },
445
- create_account: {
449
+ createAccount: {
446
450
  route: "/cadastro/conta-simplificada",
447
451
  method: "post"
448
452
  },
449
- get_account_credentials: {
453
+ getAccountCredentials: {
450
454
  route: "/cadastro/conta-simplificada/:idContaSimplificada/credenciais",
451
455
  method: "get"
452
456
  },
453
- get_account_certificate: {
457
+ createAccountCertificate: {
454
458
  route: "/cadastro/conta-simplificada/:idContaSimplificada/certificado",
455
- method: "get"
459
+ method: "post"
456
460
  },
457
- account_config_webhook: {
461
+ accountConfigWebhook: {
458
462
  route: "/cadastro/webhook",
459
463
  method: "post"
460
464
  },
461
- account_list_webhook: {
465
+ accountListWebhook: {
462
466
  route: "/cadastro/webhooks",
463
467
  method: "get"
464
468
  },
465
- account_detail_webhook: {
469
+ accountDetailWebhook: {
466
470
  route: "/cadastro/webhook/:identificadorWebhook",
467
471
  method: "get"
468
472
  },
469
- account_delete_webhook: {
473
+ accountDeleteWebhook: {
470
474
  route: "/cadastro/webhook/:identificadorWebhook",
471
475
  method: "delete"
472
476
  }
@@ -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 = {
@@ -1,4 +1,4 @@
1
1
  # :nodoc:
2
2
  module SdkRubyApisEfi
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Muniz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-01 00:00:00.000000000 Z
11
+ date: 2023-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler