gerencianet 0.0.15 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +2 -2
  3. data/CHANGELOG.md +4 -0
  4. data/README.md +4 -4
  5. data/examples/certs/developmentCertificate.pem +0 -0
  6. data/examples/certs/productionCertificate.pem +0 -0
  7. data/examples/credentials.rb +4 -2
  8. data/examples/{cancel_carnet.rb → default/carnet/cancel_carnet.rb} +2 -2
  9. data/examples/{cancel_parcel.rb → default/carnet/cancel_parcel.rb} +1 -1
  10. data/examples/{create_carnet.rb → default/carnet/create_carnet.rb} +2 -2
  11. data/examples/{create_carnet_history.rb → default/carnet/create_carnet_history.rb} +1 -1
  12. data/examples/{detail_carnet.rb → default/carnet/detail_carnet.rb} +1 -1
  13. data/examples/{resend_carnet.rb → default/carnet/resend_carnet.rb} +1 -1
  14. data/examples/{resend_parcel.rb → default/carnet/resend_parcel.rb} +1 -1
  15. data/examples/{settle_carnet_parcel.rb → default/carnet/settle_carnet_parcel.rb} +1 -1
  16. data/examples/{update_carnet_metadata.rb → default/carnet/update_carnet_metadata.rb} +1 -1
  17. data/examples/{update_parcel.rb → default/carnet/update_parcel.rb} +1 -1
  18. data/examples/{all_in_one.rb → default/charge/all_in_one.rb} +2 -2
  19. data/examples/{cancel_charge.rb → default/charge/cancel_charge.rb} +1 -1
  20. data/examples/{charge_link.rb → default/charge/charge_link.rb} +1 -1
  21. data/examples/{create_billet_payment.rb → default/charge/create_billet_payment.rb} +2 -2
  22. data/examples/{create_card_payment.rb → default/charge/create_card_payment.rb} +2 -2
  23. data/examples/{create_charge.rb → default/charge/create_charge.rb} +1 -1
  24. data/examples/{create_charge_balance_sheet.rb → default/charge/create_charge_balance_sheet.rb} +1 -1
  25. data/examples/{create_charge_history.rb → default/charge/create_charge_history.rb} +1 -1
  26. data/examples/{create_charge_onestep.rb → default/charge/create_charge_onestep.rb} +2 -2
  27. data/examples/{create_charge_onestep_creditcard.rb → default/charge/create_charge_onestep_creditcard.rb} +1 -1
  28. data/examples/{detail_charge.rb → default/charge/detail_charge.rb} +1 -1
  29. data/examples/{resend_billet.rb → default/charge/resend_billet.rb} +1 -1
  30. data/examples/{settle_charge.rb → default/charge/settle_charge.rb} +1 -1
  31. data/examples/{update_billet.rb → default/charge/update_billet.rb} +1 -1
  32. data/examples/{update_charge_link.rb → default/charge/update_charge_link.rb} +1 -1
  33. data/examples/{update_charge_metadata.rb → default/charge/update_charge_metadata.rb} +1 -1
  34. data/examples/default/marketplace/create_charge_onestep_billet_marketplace.rb +45 -0
  35. data/examples/default/marketplace/create_charge_onestep_creditcard_marketplace.rb +54 -0
  36. data/examples/{get_notification.rb → default/notification/get_notification.rb} +1 -1
  37. data/examples/{get_installments.rb → default/others/get_installments.rb} +1 -1
  38. data/examples/{cancel_subscription.rb → default/subscriptions/cancel_subscription.rb} +1 -1
  39. data/examples/{create_plan.rb → default/subscriptions/create_plan.rb} +1 -1
  40. data/examples/{create_subscription.rb → default/subscriptions/create_subscription.rb} +1 -1
  41. data/examples/{create_subscription_history.rb → default/subscriptions/create_subscription_history.rb} +1 -1
  42. data/examples/{create_subscription_payment.rb → default/subscriptions/create_subscription_payment.rb} +2 -2
  43. data/examples/{delete_plan.rb → default/subscriptions/delete_plan.rb} +1 -1
  44. data/examples/{detail_subscription.rb → default/subscriptions/detail_subscription.rb} +1 -1
  45. data/examples/{get_plans.rb → default/subscriptions/get_plans.rb} +1 -1
  46. data/examples/{update_plan.rb → default/subscriptions/update_plan.rb} +1 -1
  47. data/examples/{update_subscription_metadata.rb → default/subscriptions/update_subscription_metadata.rb} +1 -1
  48. data/examples/gn/account/pix_detail_balance.rb +16 -0
  49. data/examples/gn/account/pix_detail_settings.rb +17 -0
  50. data/examples/gn/account/pix_update_settings.rb +33 -0
  51. data/examples/gn/key/pix_create_evp.rb +17 -0
  52. data/examples/gn/key/pix_delete_evp.rb +20 -0
  53. data/examples/gn/key/pix_list_evp.rb +16 -0
  54. data/examples/pix/charge/pix_create_charge.rb +35 -0
  55. data/examples/pix/charge/pix_create_immediate_charge.rb +31 -0
  56. data/examples/pix/charge/pix_detail_charge.rb +21 -0
  57. data/examples/pix/charge/pix_list_charges.rb +21 -0
  58. data/examples/pix/charge/pix_update_charge.rb +26 -0
  59. data/examples/pix/location/pix_create_location.rb +20 -0
  60. data/examples/pix/location/pix_detail_location.rb +20 -0
  61. data/examples/pix/location/pix_generate_qrcode.rb +26 -0
  62. data/examples/pix/location/pix_list_location.rb +21 -0
  63. data/examples/pix/location/pix_unset_txid.rb +21 -0
  64. data/examples/pix/pix/pix_detail.rb +20 -0
  65. data/examples/pix/pix/pix_detail_devolution.rb +22 -0
  66. data/examples/pix/pix/pix_devolution.rb +27 -0
  67. data/examples/pix/pix/pix_list_received.rb +21 -0
  68. data/examples/pix/pix/pix_send.rb +27 -0
  69. data/examples/pix/webhooks/pix_config_webhook.rb +28 -0
  70. data/examples/pix/webhooks/pix_delete_webhook.rb +22 -0
  71. data/examples/pix/webhooks/pix_detail_webhook.rb +21 -0
  72. data/examples/pix/webhooks/pix_list_webhook.rb +22 -0
  73. data/lib/gerencianet/constants.rb +264 -150
  74. data/lib/gerencianet/endpoints.rb +73 -20
  75. data/lib/gerencianet/version.rb +1 -1
  76. metadata +108 -80
@@ -0,0 +1,26 @@
1
+ require "gerencianet"
2
+ require_relative "../../credentials"
3
+
4
+ require "uri"
5
+ require "net/http"
6
+ require "openssl"
7
+
8
+ options = {
9
+ client_id: CREDENTIALS::CLIENT_ID,
10
+ client_secret: CREDENTIALS::CLIENT_SECRET,
11
+ pix_cert: CREDENTIALS::PIX_CERT,
12
+ sandbox: CREDENTIALS::SANDBOX
13
+ }
14
+
15
+ params = {
16
+ id: " "
17
+ }
18
+
19
+ gerencianet = Gerencianet.new(options)
20
+ response = gerencianet.pix_generate_qrcode(params: params)
21
+ puts response['qrcode']
22
+
23
+ data = response['imagemQrcode']
24
+ image_data = Base64.decode64(data['data:image/png;base64,'.length .. -1])
25
+ new_file=File.new("./../../../imgQrcode/qrCodeImage.png", 'wb') #salva a imagem do qrcode na pasta imgQrcode no diretório raiz
26
+ new_file.write(image_data)
@@ -0,0 +1,21 @@
1
+ require "gerencianet"
2
+ require_relative "../../credentials"
3
+
4
+ require "uri"
5
+ require "net/http"
6
+ require "openssl"
7
+
8
+ options = {
9
+ client_id: CREDENTIALS::CLIENT_ID,
10
+ client_secret: CREDENTIALS::CLIENT_SECRET,
11
+ pix_cert: CREDENTIALS::PIX_CERT,
12
+ sandbox: CREDENTIALS::SANDBOX
13
+ }
14
+
15
+ params = {
16
+ inicio: "2020-10-22T16:01:35Z",
17
+ fim: "2021-04-23T16:01:35Z"
18
+ }
19
+
20
+ gerencianet = Gerencianet.new(options)
21
+ puts gerencianet.pix_list_location(params: params)
@@ -0,0 +1,21 @@
1
+ require "gerencianet"
2
+ require_relative "../../credentials"
3
+
4
+ require "uri"
5
+ require "net/http"
6
+ require "openssl"
7
+
8
+ options = {
9
+ client_id: CREDENTIALS::CLIENT_ID,
10
+ client_secret: CREDENTIALS::CLIENT_SECRET,
11
+ pix_cert: CREDENTIALS::PIX_CERT,
12
+ sandbox: CREDENTIALS::SANDBOX
13
+ }
14
+
15
+ params = {
16
+ id: " "
17
+ }
18
+
19
+ gerencianet = Gerencianet.new(options)
20
+ puts gerencianet.pix_unset_txid(params: params)
21
+
@@ -0,0 +1,20 @@
1
+ require "gerencianet"
2
+ require_relative "../../credentials"
3
+
4
+ require "uri"
5
+ require "net/http"
6
+ require "openssl"
7
+
8
+ options = {
9
+ client_id: CREDENTIALS::CLIENT_ID,
10
+ client_secret: CREDENTIALS::CLIENT_SECRET,
11
+ pix_cert: CREDENTIALS::PIX_CERT,
12
+ sandbox: CREDENTIALS::SANDBOX
13
+ }
14
+
15
+ params = {
16
+ e2eId: " "
17
+ }
18
+
19
+ gerencianet = Gerencianet.new(options)
20
+ puts gerencianet.pix_detail(params: params)
@@ -0,0 +1,22 @@
1
+ require "gerencianet"
2
+ require_relative "../../credentials"
3
+
4
+ require "uri"
5
+ require "net/http"
6
+ require "openssl"
7
+
8
+ options = {
9
+ client_id: CREDENTIALS::CLIENT_ID,
10
+ client_secret: CREDENTIALS::CLIENT_SECRET,
11
+ pix_cert: CREDENTIALS::PIX_CERT,
12
+ sandbox: CREDENTIALS::SANDBOX
13
+ }
14
+
15
+ params = {
16
+ e2eId: " ",
17
+ id: " "
18
+ }
19
+
20
+ gerencianet = Gerencianet.new(options)
21
+ puts gerencianet.pix_detail_devolution(params: params)
22
+
@@ -0,0 +1,27 @@
1
+ require "gerencianet"
2
+ require_relative "../../credentials"
3
+
4
+ require "uri"
5
+ require "net/http"
6
+ require "openssl"
7
+
8
+ options = {
9
+ client_id: CREDENTIALS::CLIENT_ID,
10
+ client_secret: CREDENTIALS::CLIENT_SECRET,
11
+ pix_cert: CREDENTIALS::PIX_CERT,
12
+ sandbox: CREDENTIALS::SANDBOX
13
+ }
14
+
15
+ params = {
16
+ e2eId: " ",
17
+ id: " "
18
+ }
19
+
20
+ body = {
21
+ valor: "0.01"
22
+ }
23
+
24
+
25
+ gerencianet = Gerencianet.new(options)
26
+ puts gerencianet.pix_devolution(params: params, body: body)
27
+
@@ -0,0 +1,21 @@
1
+ require "gerencianet"
2
+ require_relative "../../credentials"
3
+
4
+ require "uri"
5
+ require "net/http"
6
+ require "openssl"
7
+
8
+ options = {
9
+ client_id: CREDENTIALS::CLIENT_ID,
10
+ client_secret: CREDENTIALS::CLIENT_SECRET,
11
+ pix_cert: CREDENTIALS::PIX_CERT,
12
+ sandbox: CREDENTIALS::SANDBOX
13
+ }
14
+
15
+ params = {
16
+ inicio: "2020-10-22T16:01:35Z",
17
+ fim: "2021-04-23T16:01:35Z"
18
+ }
19
+
20
+ gerencianet = Gerencianet.new(options)
21
+ puts gerencianet.pix_list_received(params: params)
@@ -0,0 +1,27 @@
1
+ require "gerencianet"
2
+ require_relative "../../credentials"
3
+
4
+ require "uri"
5
+ require "net/http"
6
+ require "openssl"
7
+
8
+ options = {
9
+ client_id: CREDENTIALS::CLIENT_ID,
10
+ client_secret: CREDENTIALS::CLIENT_SECRET,
11
+ pix_cert: CREDENTIALS::PIX_CERT,
12
+ sandbox: CREDENTIALS::SANDBOX
13
+ }
14
+
15
+ body = {
16
+ valor: "0.01",
17
+ pagador: {
18
+ chave: "sua_chave"
19
+ },
20
+ favorecido: {
21
+ chave: "chave_favorecido"
22
+ }
23
+ }
24
+
25
+ gerencianet = Gerencianet.new(options)
26
+ puts gerencianet.pix_send(body: body)
27
+
@@ -0,0 +1,28 @@
1
+ require "gerencianet"
2
+ require_relative "../../credentials"
3
+
4
+ require "uri"
5
+ require "net/http"
6
+ require "openssl"
7
+
8
+ #verificar o mtls
9
+
10
+ options = {
11
+ client_id: CREDENTIALS::CLIENT_ID,
12
+ client_secret: CREDENTIALS::CLIENT_SECRET,
13
+ pix_cert: CREDENTIALS::PIX_CERT,
14
+ sandbox: CREDENTIALS::SANDBOX,
15
+ "x-skip-mtls-checking": "true"
16
+ }
17
+
18
+
19
+ params = {
20
+ chave: "sua_chave"
21
+ }
22
+
23
+ body = {
24
+ webhookUrl: "https://exemplo-pix/webhook"
25
+ }
26
+
27
+ gerencianet = Gerencianet.new(options)
28
+ puts gerencianet.pix_config_webhook(params: params, body: body)
@@ -0,0 +1,22 @@
1
+ require "gerencianet"
2
+ require_relative "../../credentials"
3
+
4
+ require "uri"
5
+ require "net/http"
6
+ require "openssl"
7
+
8
+
9
+ options = {
10
+ client_id: CREDENTIALS::CLIENT_ID,
11
+ client_secret: CREDENTIALS::CLIENT_SECRET,
12
+ pix_cert: CREDENTIALS::PIX_CERT,
13
+ sandbox: CREDENTIALS::SANDBOX
14
+ }
15
+
16
+ params = {
17
+ chave: "sua_chave"
18
+ }
19
+
20
+ gerencianet = Gerencianet.new(options)
21
+ puts gerencianet.pix_delete_webhook(params: params)
22
+
@@ -0,0 +1,21 @@
1
+ require "gerencianet"
2
+ require_relative "../../credentials"
3
+
4
+ require "uri"
5
+ require "net/http"
6
+ require "openssl"
7
+
8
+ options = {
9
+ client_id: CREDENTIALS::CLIENT_ID,
10
+ client_secret: CREDENTIALS::CLIENT_SECRET,
11
+ pix_cert: CREDENTIALS::PIX_CERT,
12
+ sandbox: CREDENTIALS::SANDBOX
13
+ }
14
+
15
+ params = {
16
+ chave: "sua_chave"
17
+ }
18
+
19
+ gerencianet = Gerencianet.new(options)
20
+ puts gerencianet.pix_detail_webhook(params: params)
21
+
@@ -0,0 +1,22 @@
1
+ require "gerencianet"
2
+ require_relative "../../credentials"
3
+
4
+ require "uri"
5
+ require "net/http"
6
+ require "openssl"
7
+
8
+ options = {
9
+ client_id: CREDENTIALS::CLIENT_ID,
10
+ client_secret: CREDENTIALS::CLIENT_SECRET,
11
+ pix_cert: CREDENTIALS::PIX_CERT,
12
+ sandbox: CREDENTIALS::SANDBOX
13
+ }
14
+
15
+ params = {
16
+ inicio: "2020-10-22T16:01:35Z",
17
+ fim: "2021-06-25T16:01:35Z"
18
+ }
19
+
20
+ gerencianet = Gerencianet.new(options)
21
+ puts gerencianet.pix_list_webhook(params: params)
22
+
@@ -2,159 +2,273 @@ module Gerencianet
2
2
  # Endpoints signatures
3
3
  module Constants
4
4
  URL = {
5
- production: "https://api.gerencianet.com.br/v1",
6
- sandbox: "https://sandbox.gerencianet.com.br/v1"
5
+ DEFAULT: {
6
+ production: "https://api.gerencianet.com.br/v1",
7
+ sandbox: "https://sandbox.gerencianet.com.br/v1"
8
+ },
9
+ PIX: {
10
+ production: "https://api-pix.gerencianet.com.br",
11
+ sandbox: "https://api-pix-h.gerencianet.com.br"
12
+ }
7
13
  }
8
14
 
9
15
  ENDPOINTS = {
10
- authorize: {
11
- route: "/authorize",
12
- method: "post"
13
- },
14
- create_charge: {
15
- route: "/charge",
16
- method: "post"
17
- },
18
- detail_charge: {
19
- route: "/charge/:id",
20
- method: "get"
21
- },
22
- update_charge_metadata: {
23
- route: "/charge/:id/metadata",
24
- method: "put"
25
- },
26
- update_billet: {
27
- route: "/charge/:id/billet",
28
- method: "put"
29
- },
30
- pay_charge: {
31
- route: "/charge/:id/pay",
32
- method: "post"
33
- },
34
- cancel_charge: {
35
- route: "/charge/:id/cancel",
36
- method: "put"
37
- },
38
- create_carnet: {
39
- route: "/carnet",
40
- method: "post"
41
- },
42
- detail_carnet: {
43
- route: "/carnet/:id",
44
- method: "get"
45
- },
46
- update_parcel: {
47
- route: "/carnet/:id/parcel/:parcel",
48
- method: "put"
49
- },
50
- update_carnet_metadata: {
51
- route: "/carnet/:id/metadata",
52
- method: "put"
53
- },
54
- get_notification: {
55
- route: "/notification/:token",
56
- method: "get"
57
- },
58
- get_plans: {
59
- route: "/plans",
60
- method: "get"
61
- },
62
- create_plan: {
63
- route: "/plan",
64
- method: "post"
65
- },
66
- delete_plan: {
67
- route: "/plan/:id",
68
- method: "delete"
69
- },
70
- create_subscription: {
71
- route: "/plan/:id/subscription",
72
- method: "post"
73
- },
74
- detail_subscription: {
75
- route: "/subscription/:id",
76
- method: "get"
77
- },
78
- pay_subscription: {
79
- route: "/subscription/:id/pay",
80
- method: "post"
81
- },
82
- cancel_subscription: {
83
- route: "/subscription/:id/cancel",
84
- method: "put"
85
- },
86
- update_subscription_metadata: {
87
- route: "/subscription/:id/metadata",
88
- method: "put"
89
- },
90
- get_installments: {
91
- route: "/installments",
92
- method: "get"
93
- },
94
- resend_billet: {
95
- route: "/charge/:id/billet/resend",
96
- method: "post"
97
- },
98
- create_charge_history: {
99
- route: "/charge/:id/history",
100
- method: "post"
101
- },
102
- resend_carnet: {
103
- route: "/carnet/:id/resend",
104
- method: "post"
105
- },
106
- resend_parcel: {
107
- route: "/carnet/:id/parcel/:parcel/resend",
108
- method: "post"
109
- },
110
- create_carnet_history: {
111
- route: "/carnet/:id/history",
112
- method: "post"
113
- },
114
- cancel_carnet: {
115
- route: "/carnet/:id/cancel",
116
- method: "put"
117
- },
118
- cancel_parcel: {
119
- route: "/carnet/:id/parcel/:parcel/cancel",
120
- method: "put"
121
- },
122
- link_charge: {
123
- route: "/charge/:id/link",
124
- method: "post"
125
- },
126
- charge_link: {
127
- route: "/charge/:id/link",
128
- method: "post"
129
- },
130
- update_charge_link: {
131
- route: "/charge/:id/link",
132
- method: "put"
133
- },
134
- update_plan: {
135
- route: "/plan/:id",
136
- method: "put"
137
- },
138
- create_subscription_history: {
139
- route: "/subscription/:id/history",
140
- method: "post"
141
- },
142
- create_charge_balance_sheet: {
143
- route: "/charge/:id/balance-sheet",
144
- method: "post"
145
- },
146
- create_charge_onestep: {
147
- route: "/charge/one-step",
148
- method: "post"
149
- },
150
- settleCharge: {
151
- route: '/charge/:id/settle',
152
- method: 'put'
153
- },
154
- settleCarnetParcel: {
155
- route: '/carnet/:id/parcel/:parcel/settle',
156
- method: 'put'
157
- }
16
+ DEFAULT: {
17
+ authorize: {
18
+ route: "/authorize",
19
+ method: "post"
20
+ },
21
+ create_charge: {
22
+ route: "/charge",
23
+ method: "post"
24
+ },
25
+ detail_charge: {
26
+ route: "/charge/:id",
27
+ method: "get"
28
+ },
29
+ update_charge_metadata: {
30
+ route: "/charge/:id/metadata",
31
+ method: "put"
32
+ },
33
+ update_billet: {
34
+ route: "/charge/:id/billet",
35
+ method: "put"
36
+ },
37
+ pay_charge: {
38
+ route: "/charge/:id/pay",
39
+ method: "post"
40
+ },
41
+ cancel_charge: {
42
+ route: "/charge/:id/cancel",
43
+ method: "put"
44
+ },
45
+ create_carnet: {
46
+ route: "/carnet",
47
+ method: "post"
48
+ },
49
+ detail_carnet: {
50
+ route: "/carnet/:id",
51
+ method: "get"
52
+ },
53
+ update_parcel: {
54
+ route: "/carnet/:id/parcel/:parcel",
55
+ method: "put"
56
+ },
57
+ update_carnet_metadata: {
58
+ route: "/carnet/:id/metadata",
59
+ method: "put"
60
+ },
61
+ get_notification: {
62
+ route: "/notification/:token",
63
+ method: "get"
64
+ },
65
+ get_plans: {
66
+ route: "/plans",
67
+ method: "get"
68
+ },
69
+ create_plan: {
70
+ route: "/plan",
71
+ method: "post"
72
+ },
73
+ delete_plan: {
74
+ route: "/plan/:id",
75
+ method: "delete"
76
+ },
77
+ create_subscription: {
78
+ route: "/plan/:id/subscription",
79
+ method: "post"
80
+ },
81
+ detail_subscription: {
82
+ route: "/subscription/:id",
83
+ method: "get"
84
+ },
85
+ pay_subscription: {
86
+ route: "/subscription/:id/pay",
87
+ method: "post"
88
+ },
89
+ cancel_subscription: {
90
+ route: "/subscription/:id/cancel",
91
+ method: "put"
92
+ },
93
+ update_subscription_metadata: {
94
+ route: "/subscription/:id/metadata",
95
+ method: "put"
96
+ },
97
+ get_installments: {
98
+ route: "/installments",
99
+ method: "get"
100
+ },
101
+ resend_billet: {
102
+ route: "/charge/:id/billet/resend",
103
+ method: "post"
104
+ },
105
+ create_charge_history: {
106
+ route: "/charge/:id/history",
107
+ method: "post"
108
+ },
109
+ resend_carnet: {
110
+ route: "/carnet/:id/resend",
111
+ method: "post"
112
+ },
113
+ resend_parcel: {
114
+ route: "/carnet/:id/parcel/:parcel/resend",
115
+ method: "post"
116
+ },
117
+ create_carnet_history: {
118
+ route: "/carnet/:id/history",
119
+ method: "post"
120
+ },
121
+ cancel_carnet: {
122
+ route: "/carnet/:id/cancel",
123
+ method: "put"
124
+ },
125
+ cancel_parcel: {
126
+ route: "/carnet/:id/parcel/:parcel/cancel",
127
+ method: "put"
128
+ },
129
+ link_charge: {
130
+ route: "/charge/:id/link",
131
+ method: "post"
132
+ },
133
+ charge_link: {
134
+ route: "/charge/:id/link",
135
+ method: "post"
136
+ },
137
+ update_charge_link: {
138
+ route: "/charge/:id/link",
139
+ method: "put"
140
+ },
141
+ update_plan: {
142
+ route: "/plan/:id",
143
+ method: "put"
144
+ },
145
+ create_subscription_history: {
146
+ route: "/subscription/:id/history",
147
+ method: "post"
148
+ },
149
+ create_charge_balance_sheet: {
150
+ route: "/charge/:id/balance-sheet",
151
+ method: "post"
152
+ },
153
+ create_charge_onestep: {
154
+ route: "/charge/one-step",
155
+ method: "post"
156
+ },
157
+ settle_charge: {
158
+ route: "/charge/:id/settle",
159
+ method: "put"
160
+ },
161
+ settle_carnet_parcel: {
162
+ route: "/carnet/:id/parcel/:parcel/settle",
163
+ method: "put"
164
+ }
165
+ },
166
+ PIX: {
167
+ authorize: {
168
+ route: "/oauth/token",
169
+ method: "post"
170
+ },
171
+ pix_config_webhook: {
172
+ route: "/v2/webhook/:chave",
173
+ method: "put"
174
+ },
175
+ pix_detail_webhook: {
176
+ route: "/v2/webhook/:chave",
177
+ method: "get"
178
+ },
179
+ pix_list_webhook: {
180
+ route: "/v2/webhook",
181
+ method: "get"
182
+ },
183
+ pix_delete_webhook: {
184
+ route: "/v2/webhook/:chave",
185
+ method: "delete"
186
+ },
187
+ pix_create_charge: {
188
+ route: "/v2/cob/:txid",
189
+ method: "put"
190
+ },
191
+ pix_create_immediate_charge: {
192
+ route: "/v2/cob",
193
+ method: "post"
194
+ },
195
+ pix_detail_charge: {
196
+ route: "/v2/cob/:txid",
197
+ method: "get"
198
+ },
199
+ pix_update_charge: {
200
+ route: "/v2/cob/:txid",
201
+ method: "patch"
202
+ },
203
+ pix_list_charges: {
204
+ route: "/v2/cob",
205
+ method: "get"
206
+ },
207
+ pix_generate_qrcode: {
208
+ route: "/v2/loc/:id/qrcode",
209
+ method: "get"
210
+ },
211
+ pix_devolution: {
212
+ route: "/v2/pix/:e2eId/devolucao/:id",
213
+ method: "put"
214
+ },
215
+ pix_detail_devolution: {
216
+ route: "/v2/pix/:e2eId/devolucao/:id",
217
+ method: "get"
218
+ },
219
+ pix_send: {
220
+ route: "/v2/pix",
221
+ method: "post"
222
+ },
223
+ pix_detail: {
224
+ route: "/v2/pix/:e2eId",
225
+ method: "get"
226
+ },
227
+ pix_list_received: {
228
+ route: "/v2/pix",
229
+ method: "get"
230
+ },
231
+ pix_create_location: {
232
+ route: "/v2/loc",
233
+ method: "post"
234
+ },
235
+ pix_list_location: {
236
+ route: "/v2/loc",
237
+ method: "get"
238
+ },
239
+ pix_detail_location: {
240
+ route: "/v2/loc/:id",
241
+ method: "get"
242
+ },
243
+ pix_unset_txid: {
244
+ route: "/v2/loc/:id/txid",
245
+ method: "delete"
246
+ },
247
+ pix_create_evp: {
248
+ route: "/v2/gn/evp",
249
+ method: "post"
250
+ },
251
+ pix_list_evp: {
252
+ route: "/v2/gn/evp",
253
+ method: "get"
254
+ },
255
+ pix_delete_evp: {
256
+ route: "/v2/gn/evp/:chave",
257
+ method: "delete"
258
+ },
259
+ pix_detail_balance: {
260
+ route: "/v2/gn/saldo",
261
+ method: "get"
262
+ },
263
+ pix_update_settings: {
264
+ route: "/v2/gn/config",
265
+ method: "put"
266
+ },
267
+ pix_detail_settings: {
268
+ route: "/v2/gn/config",
269
+ method: "get"
270
+ }
271
+ }
158
272
  }
159
273
  end
160
274
  end