payflow 0.1.0
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 +7 -0
- data/LICENSE +21 -0
- data/README.md +116 -0
- data/app/controllers/payflow/application_controller.rb +6 -0
- data/app/controllers/payflow/webhooks/asaas_controller.rb +18 -0
- data/app/controllers/payflow/webhooks/stripe_controller.rb +18 -0
- data/app/jobs/payflow/application_job.rb +6 -0
- data/app/jobs/payflow/overdue_accounts_job.rb +16 -0
- data/app/jobs/payflow/webhook_job.rb +21 -0
- data/app/models/payflow/application_record.rb +7 -0
- data/app/models/payflow/invoice.rb +18 -0
- data/app/models/payflow/subscription.rb +32 -0
- data/app/models/payflow/webhook_event.rb +19 -0
- data/config/routes.rb +8 -0
- data/db/migrate/20260617180001_create_payflow_subscriptions.rb +19 -0
- data/db/migrate/20260617180002_create_payflow_invoices.rb +18 -0
- data/db/migrate/20260617180003_create_payflow_webhook_events.rb +17 -0
- data/lib/generators/payflow/install_generator.rb +40 -0
- data/lib/generators/payflow/templates/initializer.rb +13 -0
- data/lib/generators/payflow/templates/migration_invoice.rb +16 -0
- data/lib/generators/payflow/templates/migration_subscription.rb +17 -0
- data/lib/generators/payflow/templates/migration_webhook_event.rb +15 -0
- data/lib/payflow/billable.rb +34 -0
- data/lib/payflow/configuration.rb +31 -0
- data/lib/payflow/engine.rb +23 -0
- data/lib/payflow/errors.rb +13 -0
- data/lib/payflow/events.rb +9 -0
- data/lib/payflow/provider_resolver.rb +18 -0
- data/lib/payflow/providers/asaas/customer.rb +17 -0
- data/lib/payflow/providers/asaas/provider.rb +41 -0
- data/lib/payflow/providers/asaas/subscription.rb +50 -0
- data/lib/payflow/providers/asaas/webhook.rb +43 -0
- data/lib/payflow/providers/base.rb +51 -0
- data/lib/payflow/providers/stripe/provider.rb +40 -0
- data/lib/payflow/providers/stripe/subscription.rb +28 -0
- data/lib/payflow/providers/stripe/webhook.rb +31 -0
- data/lib/payflow/subscription_service.rb +48 -0
- data/lib/payflow/version.rb +5 -0
- data/lib/payflow/webhooks/dispatcher.rb +50 -0
- data/lib/payflow/webhooks/signature_verifier.rb +57 -0
- data/lib/payflow.rb +39 -0
- data/lib/tasks/payflow_tasks.rake +28 -0
- metadata +184 -0
metadata
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: payflow
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Conexus Systems
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: rails
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '7.0'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '7.0'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: faraday
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '2.0'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '2.0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: sidekiq
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '6.0'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '6.0'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: activejob
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - ">="
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '0'
|
|
61
|
+
type: :runtime
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - ">="
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '0'
|
|
68
|
+
- !ruby/object:Gem::Dependency
|
|
69
|
+
name: rspec-rails
|
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - ">="
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '0'
|
|
75
|
+
type: :development
|
|
76
|
+
prerelease: false
|
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - ">="
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '0'
|
|
82
|
+
- !ruby/object:Gem::Dependency
|
|
83
|
+
name: rubocop
|
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - ">="
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '0'
|
|
89
|
+
type: :development
|
|
90
|
+
prerelease: false
|
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
92
|
+
requirements:
|
|
93
|
+
- - ">="
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: '0'
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: sqlite3
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - ">="
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '0'
|
|
103
|
+
type: :development
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - ">="
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0'
|
|
110
|
+
description: A mountable Rails engine for subscription billing with Asaas and Stripe
|
|
111
|
+
providers.
|
|
112
|
+
email:
|
|
113
|
+
- dev@conexus-systems.com.br
|
|
114
|
+
executables: []
|
|
115
|
+
extensions: []
|
|
116
|
+
extra_rdoc_files: []
|
|
117
|
+
files:
|
|
118
|
+
- LICENSE
|
|
119
|
+
- README.md
|
|
120
|
+
- app/controllers/payflow/application_controller.rb
|
|
121
|
+
- app/controllers/payflow/webhooks/asaas_controller.rb
|
|
122
|
+
- app/controllers/payflow/webhooks/stripe_controller.rb
|
|
123
|
+
- app/jobs/payflow/application_job.rb
|
|
124
|
+
- app/jobs/payflow/overdue_accounts_job.rb
|
|
125
|
+
- app/jobs/payflow/webhook_job.rb
|
|
126
|
+
- app/models/payflow/application_record.rb
|
|
127
|
+
- app/models/payflow/invoice.rb
|
|
128
|
+
- app/models/payflow/subscription.rb
|
|
129
|
+
- app/models/payflow/webhook_event.rb
|
|
130
|
+
- config/routes.rb
|
|
131
|
+
- db/migrate/20260617180001_create_payflow_subscriptions.rb
|
|
132
|
+
- db/migrate/20260617180002_create_payflow_invoices.rb
|
|
133
|
+
- db/migrate/20260617180003_create_payflow_webhook_events.rb
|
|
134
|
+
- lib/generators/payflow/install_generator.rb
|
|
135
|
+
- lib/generators/payflow/templates/initializer.rb
|
|
136
|
+
- lib/generators/payflow/templates/migration_invoice.rb
|
|
137
|
+
- lib/generators/payflow/templates/migration_subscription.rb
|
|
138
|
+
- lib/generators/payflow/templates/migration_webhook_event.rb
|
|
139
|
+
- lib/payflow.rb
|
|
140
|
+
- lib/payflow/billable.rb
|
|
141
|
+
- lib/payflow/configuration.rb
|
|
142
|
+
- lib/payflow/engine.rb
|
|
143
|
+
- lib/payflow/errors.rb
|
|
144
|
+
- lib/payflow/events.rb
|
|
145
|
+
- lib/payflow/provider_resolver.rb
|
|
146
|
+
- lib/payflow/providers/asaas/customer.rb
|
|
147
|
+
- lib/payflow/providers/asaas/provider.rb
|
|
148
|
+
- lib/payflow/providers/asaas/subscription.rb
|
|
149
|
+
- lib/payflow/providers/asaas/webhook.rb
|
|
150
|
+
- lib/payflow/providers/base.rb
|
|
151
|
+
- lib/payflow/providers/stripe/provider.rb
|
|
152
|
+
- lib/payflow/providers/stripe/subscription.rb
|
|
153
|
+
- lib/payflow/providers/stripe/webhook.rb
|
|
154
|
+
- lib/payflow/subscription_service.rb
|
|
155
|
+
- lib/payflow/version.rb
|
|
156
|
+
- lib/payflow/webhooks/dispatcher.rb
|
|
157
|
+
- lib/payflow/webhooks/signature_verifier.rb
|
|
158
|
+
- lib/tasks/payflow_tasks.rake
|
|
159
|
+
homepage: https://github.com/tantoniazi/payflow
|
|
160
|
+
licenses:
|
|
161
|
+
- MIT
|
|
162
|
+
metadata:
|
|
163
|
+
homepage_uri: https://github.com/tantoniazi/payflow
|
|
164
|
+
source_code_uri: https://github.com/tantoniazi/payflow
|
|
165
|
+
changelog_uri: https://github.com/tantoniazi/payflow/blob/main/CHANGELOG.md
|
|
166
|
+
rubygems_mfa_required: 'true'
|
|
167
|
+
rdoc_options: []
|
|
168
|
+
require_paths:
|
|
169
|
+
- lib
|
|
170
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
171
|
+
requirements:
|
|
172
|
+
- - ">="
|
|
173
|
+
- !ruby/object:Gem::Version
|
|
174
|
+
version: 3.1.0
|
|
175
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
|
+
requirements:
|
|
177
|
+
- - ">="
|
|
178
|
+
- !ruby/object:Gem::Version
|
|
179
|
+
version: '0'
|
|
180
|
+
requirements: []
|
|
181
|
+
rubygems_version: 3.6.9
|
|
182
|
+
specification_version: 4
|
|
183
|
+
summary: Unified billing engine for Rails (Asaas, Stripe)
|
|
184
|
+
test_files: []
|