solidus_mp_dois 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20241119165521_create_solidus_mp_dois_credit_card_sources.rb +25 -0
- data/db/migrate/20241125135226_create_solidus_mp_dois_customers.rb +17 -0
- data/db/migrate/20241125201926_create_solidus_mp_dois_cards.rb +14 -0
- data/db/migrate/20241209174725_create_solidus_mp_dois_pix_sources.rb +20 -0
- metadata +6 -2
- /data/lib/generators/solidus_mp_dois/install/templates/app/javascript/controllers/{mp_three_ds_controller.js → three_ds_controller.js} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d612afa07b8ba401d38482aca50e91bc7e946c28562ac562f5fb8805f94c76d3
|
4
|
+
data.tar.gz: bf2d2b3c68adbb59e29f7bbec4378364e55f5110adf47c5e3ed6ab0675e0c557
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bb4938f08ea5f136628664a27e7c7ccfce37f392c010ccbeb1fca91124f15421ce73ca82e71a579ab5ea99e64e6b3a35dc31c3d5e67acbb5116f285e5d0647a
|
7
|
+
data.tar.gz: 576189faad94ba148cc165fbf8be512c733e3b8949e558f211b7111832cfb77e58c67549dddec2b308e9422665e152a6412b67188de61939f8b9be22af4497ae
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class CreateSolidusMpDoisCreditCardSources < ActiveRecord::Migration[7.1]
|
2
|
+
def change
|
3
|
+
create_table :solidus_mp_dois_credit_card_sources do |t|
|
4
|
+
t.string :external_id
|
5
|
+
t.string :status
|
6
|
+
t.decimal :amount
|
7
|
+
t.string :payer_identification_type
|
8
|
+
t.string :tax_id
|
9
|
+
t.string :email
|
10
|
+
t.string :issuer_id
|
11
|
+
t.integer :installments
|
12
|
+
t.string :token
|
13
|
+
t.string :three_ds_mode
|
14
|
+
t.string :three_ds_creq
|
15
|
+
t.string :three_ds_url
|
16
|
+
t.string :card_brand
|
17
|
+
t.integer :payment_method_id
|
18
|
+
t.string :internal_error
|
19
|
+
t.string :last_four_digits
|
20
|
+
t.boolean :saved_card
|
21
|
+
|
22
|
+
t.timestamps
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class CreateSolidusMpDoisCustomers < ActiveRecord::Migration[7.1]
|
2
|
+
def change
|
3
|
+
create_table :solidus_mp_dois_customers do |t|
|
4
|
+
t.string :external_id
|
5
|
+
t.string :email
|
6
|
+
t.string :first_name
|
7
|
+
t.string :identification_type
|
8
|
+
t.string :tax_id
|
9
|
+
t.integer :spree_user_id, null: false
|
10
|
+
|
11
|
+
t.timestamps
|
12
|
+
t.foreign_key :spree_users, column: :spree_user_id
|
13
|
+
end
|
14
|
+
|
15
|
+
add_index :solidus_mp_dois_customers, :external_id, unique: true
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class CreateSolidusMpDoisCards < ActiveRecord::Migration[7.1]
|
2
|
+
def change
|
3
|
+
create_table :solidus_mp_dois_cards do |t|
|
4
|
+
t.string :external_id
|
5
|
+
t.string :last_four_digits
|
6
|
+
t.string :mp_payment_method_id
|
7
|
+
t.integer :customer_id, null: false
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
|
12
|
+
add_index :solidus_mp_dois_cards, :external_id, unique: true
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class CreateSolidusMpDoisPixSources < ActiveRecord::Migration[7.1]
|
2
|
+
def change
|
3
|
+
create_table :solidus_mp_dois_pix_sources do |t|
|
4
|
+
t.string :external_id
|
5
|
+
t.string :status
|
6
|
+
t.decimal :amount
|
7
|
+
t.datetime :expiration
|
8
|
+
t.string :email
|
9
|
+
t.string :tax_id
|
10
|
+
t.integer :payment_method_id
|
11
|
+
t.string :qr_code
|
12
|
+
t.text :qr_code_base64
|
13
|
+
t.string :ticket_url
|
14
|
+
t.string :description
|
15
|
+
t.string :internal_error
|
16
|
+
|
17
|
+
t.timestamps
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_mp_dois
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todas Essas Coisas
|
@@ -58,10 +58,14 @@ files:
|
|
58
58
|
- app/views/spree/admin/payments/source_views/_mercado_pago_pix.html.erb
|
59
59
|
- app/views/spree/api/payments/source_views/_mercado_pago_card.json.jbuilder
|
60
60
|
- app/views/spree/api/payments/source_views/_mercado_pago_pix.json.jbuilder
|
61
|
+
- db/migrate/20241119165521_create_solidus_mp_dois_credit_card_sources.rb
|
62
|
+
- db/migrate/20241125135226_create_solidus_mp_dois_customers.rb
|
63
|
+
- db/migrate/20241125201926_create_solidus_mp_dois_cards.rb
|
64
|
+
- db/migrate/20241209174725_create_solidus_mp_dois_pix_sources.rb
|
61
65
|
- lib/generators/solidus_mp_dois/install/install_generator.rb
|
62
66
|
- lib/generators/solidus_mp_dois/install/templates/app/javascript/controllers/card_payment_brick_controller.js
|
63
|
-
- lib/generators/solidus_mp_dois/install/templates/app/javascript/controllers/mp_three_ds_controller.js
|
64
67
|
- lib/generators/solidus_mp_dois/install/templates/app/javascript/controllers/payment_brick_controller.js
|
68
|
+
- lib/generators/solidus_mp_dois/install/templates/app/javascript/controllers/three_ds_controller.js
|
65
69
|
- lib/solidus_mp_dois.rb
|
66
70
|
- lib/solidus_mp_dois/engine.rb
|
67
71
|
homepage: https://github.com/todasessascoisas/solidus_mp_dois
|