killbill 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Jarfile +5 -5
  4. data/NEWS +4 -0
  5. data/README.md +45 -8
  6. data/VERSION +1 -1
  7. data/generators/active_merchant/active_merchant_generator.rb +38 -0
  8. data/generators/active_merchant/templates/.gitignore.rb +36 -0
  9. data/generators/active_merchant/templates/.travis.yml.rb +19 -0
  10. data/generators/active_merchant/templates/Gemfile.rb +3 -0
  11. data/generators/active_merchant/templates/Jarfile.rb +6 -0
  12. data/generators/active_merchant/templates/LICENSE.rb +201 -0
  13. data/generators/active_merchant/templates/NEWS.rb +2 -0
  14. data/generators/active_merchant/templates/Rakefile.rb +30 -0
  15. data/generators/active_merchant/templates/VERSION.rb +1 -0
  16. data/generators/active_merchant/templates/config.ru.rb +4 -0
  17. data/generators/active_merchant/templates/config.yml.rb +13 -0
  18. data/generators/active_merchant/templates/db/ddl.sql.rb +64 -0
  19. data/generators/active_merchant/templates/db/schema.rb +64 -0
  20. data/generators/active_merchant/templates/killbill.properties.rb +3 -0
  21. data/generators/active_merchant/templates/lib/api.rb +119 -0
  22. data/generators/active_merchant/templates/lib/application.rb +84 -0
  23. data/generators/active_merchant/templates/lib/models/payment_method.rb +22 -0
  24. data/generators/active_merchant/templates/lib/models/response.rb +22 -0
  25. data/generators/active_merchant/templates/lib/models/transaction.rb +11 -0
  26. data/generators/active_merchant/templates/lib/plugin.rb +23 -0
  27. data/generators/active_merchant/templates/lib/private_api.rb +6 -0
  28. data/generators/active_merchant/templates/lib/views/form.erb +8 -0
  29. data/generators/active_merchant/templates/plugin.gemspec.rb +48 -0
  30. data/generators/active_merchant/templates/pom.xml.rb +44 -0
  31. data/generators/active_merchant/templates/release.sh.rb +41 -0
  32. data/generators/active_merchant/templates/spec/base_plugin_spec.rb +30 -0
  33. data/generators/active_merchant/templates/spec/integration_spec.rb +31 -0
  34. data/generators/active_merchant/templates/spec/spec_helper.rb +24 -0
  35. data/generators/killbill_generator.rb +38 -0
  36. data/killbill.gemspec +10 -2
  37. data/lib/killbill/gen/api/block.rb +82 -0
  38. data/lib/killbill/gen/api/direct_payment.rb +176 -0
  39. data/lib/killbill/gen/api/direct_payment_api.rb +329 -0
  40. data/lib/killbill/gen/api/direct_payment_transaction.rb +156 -0
  41. data/lib/killbill/gen/api/fixed.rb +63 -0
  42. data/lib/killbill/gen/api/invoice_item.rb +7 -1
  43. data/lib/killbill/gen/api/invoice_item_formatter.rb +7 -1
  44. data/lib/killbill/gen/api/invoice_user_api.rb +18 -136
  45. data/lib/killbill/gen/api/migration_plan.rb +6 -6
  46. data/lib/killbill/gen/api/payment_api.rb +216 -54
  47. data/lib/killbill/gen/api/payment_method_plugin.rb +3 -3
  48. data/lib/killbill/gen/api/plan.rb +6 -6
  49. data/lib/killbill/gen/api/plan_phase.rb +16 -23
  50. data/lib/killbill/gen/api/plugin_property.rb +71 -0
  51. data/lib/killbill/gen/api/recurring.rb +63 -0
  52. data/lib/killbill/gen/api/require_gen.rb +10 -1
  53. data/lib/killbill/gen/api/static_catalog.rb +8 -1
  54. data/lib/killbill/gen/api/tier.rb +77 -0
  55. data/lib/killbill/gen/api/tiered_block.rb +88 -0
  56. data/lib/killbill/gen/api/usage.rb +111 -0
  57. data/lib/killbill/gen/api/usage_user_api.rb +59 -3
  58. data/lib/killbill/gen/plugin-api/billing_address.rb +85 -0
  59. data/lib/killbill/gen/plugin-api/customer.rb +73 -0
  60. data/lib/killbill/gen/plugin-api/hosted_payment_page_descriptor_fields.rb +145 -0
  61. data/lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb +80 -0
  62. data/lib/killbill/gen/plugin-api/hosted_payment_page_notification.rb +129 -0
  63. data/lib/killbill/gen/plugin-api/payment_info_plugin.rb +20 -1
  64. data/lib/killbill/gen/plugin-api/payment_plugin_api.rb +358 -39
  65. data/lib/killbill/gen/plugin-api/refund_info_plugin.rb +20 -1
  66. data/lib/killbill/gen/plugin-api/require_gen.rb +3 -0
  67. data/lib/killbill/helpers/active_merchant.rb +21 -0
  68. data/lib/killbill/helpers/active_merchant/active_record.rb +17 -0
  69. data/lib/killbill/helpers/active_merchant/active_record/models/helpers.rb +25 -0
  70. data/lib/killbill/helpers/active_merchant/active_record/models/payment_method.rb +195 -0
  71. data/lib/killbill/helpers/active_merchant/active_record/models/response.rb +178 -0
  72. data/lib/killbill/helpers/active_merchant/active_record/models/streamy_result_set.rb +35 -0
  73. data/lib/killbill/helpers/active_merchant/active_record/models/transaction.rb +63 -0
  74. data/lib/killbill/helpers/active_merchant/configuration.rb +54 -0
  75. data/lib/killbill/helpers/active_merchant/core_ext.rb +41 -0
  76. data/lib/killbill/helpers/active_merchant/gateway.rb +35 -0
  77. data/lib/killbill/helpers/active_merchant/killbill_spec_helper.rb +117 -0
  78. data/lib/killbill/helpers/active_merchant/payment_plugin.rb +365 -0
  79. data/lib/killbill/helpers/active_merchant/private_payment_plugin.rb +119 -0
  80. data/lib/killbill/helpers/active_merchant/properties.rb +20 -0
  81. data/lib/killbill/helpers/active_merchant/sinatra.rb +30 -0
  82. data/lib/killbill/helpers/active_merchant/utils.rb +23 -0
  83. data/lib/killbill/payment.rb +22 -10
  84. data/script/generate +15 -0
  85. data/spec/killbill/helpers/payment_method_spec.rb +101 -0
  86. data/spec/killbill/helpers/response_spec.rb +74 -0
  87. data/spec/killbill/helpers/test_schema.rb +57 -0
  88. data/spec/killbill/helpers/utils_spec.rb +22 -0
  89. data/spec/killbill/payment_plugin_api_spec.rb +23 -18
  90. data/spec/killbill/payment_plugin_spec.rb +11 -10
  91. data/spec/killbill/payment_test.rb +9 -9
  92. data/spec/spec_helper.rb +8 -3
  93. metadata +130 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ab7a1b0644b090a4bd24355986ad459158e65cf
4
- data.tar.gz: 2e34dc457ad13a50897234fa07a1a15537f5cee4
3
+ metadata.gz: b3e2b2173652205054ae00074eaa95b29b28a5a0
4
+ data.tar.gz: fe6277ad4bbeb755a90e5ce3883d761621f99b9f
5
5
  SHA512:
6
- metadata.gz: 6d9cd10ec85f822ccea718d786917d46630f350bd7036cba20cfd44f478f3441de7b6656a8452efe92ec22c747c6f213cbb4284f99082b692ce8aa1556af4689
7
- data.tar.gz: 4bec7027a2331f7be7e7b60069d3a7c02ffefe5a517e3ae8e4f638558df05a7dbf8a129ac932957ee989b5f8389fd04914c37509fd66b93f9f5ddd7b24fea687
6
+ metadata.gz: eb8653e32d042dc14cb4abfa7c824a9c1ca455691ecf38ca7e04a2555514679773124cdff1c571e4d7148f6103884a1eb1bfbfefc64c4b81cab9854f01aed03e
7
+ data.tar.gz: 2500df5527371c926a8963678e2fe187d61af4f89be8c4800e09133a6acd7440371c68813a752fbe6ed4373475a17aedcc30b5b73bdb046ba239c50ccaf77f50
data/.gitignore CHANGED
@@ -22,3 +22,4 @@ Jarfile.lock
22
22
  Gemfile.lock
23
23
  *.swp
24
24
  .idea
25
+ test.db
data/Jarfile CHANGED
@@ -1,6 +1,6 @@
1
- jar 'org.kill-bill.billing:killbill-api', '0.8.2-SNAPSHOT'
2
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.6.4-SNAPSHOT'
3
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.6.4-SNAPSHOT'
4
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.6.4-SNAPSHOT'
5
- jar 'org.kill-bill.billing:killbill-util:tests', '0.9.0-SNAPSHOT'
1
+ jar 'org.kill-bill.billing:killbill-api', '0.9.2'
2
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.7.0'
3
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.7.0'
4
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.7.0'
5
+ jar 'org.kill-bill.billing:killbill-util:tests', '0.11.1'
6
6
  jar 'javax.servlet:javax.servlet-api', '3.0.1'
data/NEWS CHANGED
@@ -1,3 +1,7 @@
1
+ 3.1.0
2
+ Regenerate files for killbill-api 0.9.2 and killbill-plugin-api 0.7.0
3
+ Add ActiveMerchant plugin generator
4
+
1
5
  3.0.0
2
6
  Update package com.ning -> org.killbill
3
7
 
data/README.md CHANGED
@@ -56,28 +56,43 @@ How to write a Payment plugin
56
56
  puts "MyPaymentPlugin plugin started"
57
57
  end
58
58
 
59
- def charge(killbill_account_id, killbill_payment_id, amount_in_cents, options = {})
59
+ def process_payment(kb_account_id, kb_payment_id, kb_payment_method_id, amount, currency, context)
60
60
  end
61
61
 
62
- def refund(killbill_account_id, killbill_payment_id, amount_in_cents, options = {})
62
+ def get_payment_info(kb_account_id, kb_payment_id, context)
63
63
  end
64
64
 
65
- def get_payment_info(killbill_payment_id, options = {})
65
+ def search_payments(search_key, offset, limit, context)
66
66
  end
67
67
 
68
- def add_payment_method(payment_method, options = {})
68
+ def process_refund(kb_account_id, kb_payment_id, refund_amount, currency, context)
69
69
  end
70
70
 
71
- def delete_payment_method(external_payment_method_id, options = {})
71
+ def get_refund_info(kb_account_id, kb_payment_id, context)
72
72
  end
73
73
 
74
- def update_payment_method(payment_method, options = {})
74
+ def search_refunds(search_key, offset, limit, context)
75
75
  end
76
76
 
77
- def set_default_payment_method(payment_method, options = {})
77
+ def add_payment_method(kb_account_id, kb_payment_method_id, payment_method_props, set_default, context)
78
78
  end
79
79
 
80
- def create_account(killbill_account, options = {})
80
+ def delete_payment_method(kb_account_id, kb_payment_method_id, context)
81
+ end
82
+
83
+ def get_payment_method_detail(kb_account_id, kb_payment_method_id, context)
84
+ end
85
+
86
+ def set_default_payment_method(kb_account_id, kb_payment_method_id, context)
87
+ end
88
+
89
+ def get_payment_methods(kb_account_id, refresh_from_gateway, context)
90
+ end
91
+
92
+ def search_payment_methods(search_key, offset, limit, context)
93
+ end
94
+
95
+ def reset_payment_methods(kb_account_id, payment_methods)
81
96
  end
82
97
 
83
98
  # Overriding this method is optional, only if you need to do some tear down work
@@ -93,6 +108,23 @@ Make sure to create the corresponding killbill.properties file:
93
108
  mainClass=MyPaymentPlugin
94
109
  pluginType=PAYMENT
95
110
 
111
+
112
+ How to write a Payment plugin integrated with ActiveMerchant
113
+ ------------------------------------------------------------
114
+
115
+ Use the plugin generator:
116
+
117
+ ./script/generate active_merchant gateway_name /path/to/dir
118
+
119
+ Replace `gateway_name` with the snake case of your ActiveMerchant gateway (e.g. `yandex`, `stripe`, `paypal`, etc.).
120
+
121
+ This will generate a tree of files ready to be plugged into Kill Bill. To package the plugin, run:
122
+
123
+ rake killbill:clean ; rake build ; rake killbill:package
124
+
125
+ Most of the work consists of filling in the blank in `api.rb` (payment plugin API for ActiveMerchant gateways) and `application.rb` (sinatra application for ActiveMerchant integrations). Check the [Stripe plugin](https://github.com/killbill/killbill-stripe-plugin) for an example.
126
+
127
+
96
128
  How to expose HTTP endpoints
97
129
  ----------------------------
98
130
 
@@ -135,3 +167,8 @@ To build the artifacts into pkg/:
135
167
  # Build the Killbill plugin in the pkg/ directory
136
168
  # The <plugin_name>-<plugin-version>/ directory is used as a staging directory
137
169
  rake killbill:package
170
+
171
+
172
+ In case the templates behind the generator change and you want to upgrade your plugin, you can re-run the above
173
+ command on top of your existing code. For each file, you'll be prompted whether you want to overwrite it, show a
174
+ diff, etc.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.1.0
@@ -0,0 +1,38 @@
1
+ require 'thor/group'
2
+ require 'yaml'
3
+
4
+ class ActiveMerchantGenerator < KillbillGenerator
5
+ source_root File.expand_path('..', __FILE__)
6
+
7
+ def generate
8
+ render_templates '/templates/{*,.*}.rb', ['config.yml', 'plugin.gemspec'], nil, false
9
+ template 'templates/config.yml.rb', "#{output_path}/#{identifier}.yml"
10
+ template 'templates/plugin.gemspec.rb', "#{output_path}/killbill-#{identifier}.gemspec"
11
+
12
+ render_templates '/templates/lib/{*,.*}.rb', ['plugin.rb'], "lib/#{identifier}"
13
+ template 'templates/lib/plugin.rb', "#{output_path}/lib/#{identifier}.rb"
14
+
15
+ render_templates '/templates/lib/models/{*,.*}.rb', [], "lib/#{identifier}/models"
16
+
17
+ copy_file 'templates/lib/views/form.erb', "#{output_path}/lib/#{identifier}/views/form.erb"
18
+
19
+ template 'templates/db/ddl.sql.rb', "#{output_path}/db/ddl.sql"
20
+ template 'templates/db/schema.rb', "#{output_path}/db/schema.rb"
21
+
22
+ template 'templates/spec/spec_helper.rb', "#{output_path}/spec/spec_helper.rb"
23
+ template 'templates/spec/base_plugin_spec.rb', "#{output_path}/spec/#{identifier}/base_plugin_spec.rb"
24
+ template 'templates/spec/integration_spec.rb', "#{output_path}/spec/#{identifier}/remote/integration_spec.rb"
25
+ end
26
+
27
+ protected
28
+
29
+ def render_templates(glob, to_exclude = [], extra_dir = nil, keep_rb_extension = true)
30
+ Dir[File.dirname(__FILE__) + glob].each do |f|
31
+ filename = File.basename(f, keep_rb_extension ? '' : '.rb')
32
+
33
+ next if to_exclude.include? filename
34
+
35
+ template f, extra_dir ? "#{output_path}/#{extra_dir}/#{filename}" : "#{output_path}/#{filename}"
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,36 @@
1
+ *.gem
2
+ *.rbc
3
+ *.swp
4
+ .bundle
5
+ .config
6
+ coverage
7
+ InstalledFiles
8
+ lib/bundler/man
9
+ pkg
10
+ rdoc
11
+ spec/reports
12
+ test/tmp
13
+ test/version_tmp
14
+ tmp
15
+
16
+ # YARD artifacts
17
+ .yardoc
18
+ _yardoc
19
+ doc/
20
+
21
+ .jbundler
22
+ Jarfile.lock
23
+ Gemfile.lock
24
+
25
+ .DS_Store
26
+
27
+ # Build directory
28
+ killbill-<%= identifier %>/
29
+
30
+ # Testing database
31
+ test.db
32
+
33
+ target
34
+ pom.xml.asc
35
+
36
+ .idea/
@@ -0,0 +1,19 @@
1
+ language: ruby
2
+
3
+ notifications:
4
+ email:
5
+ - kill-bill-commits@googlegroups.com
6
+
7
+ rvm:
8
+ - jruby-19mode
9
+ - jruby-20mode
10
+ - jruby-head
11
+
12
+ jdk:
13
+ - openjdk6
14
+ - openjdk7
15
+ - oraclejdk7
16
+
17
+ matrix:
18
+ allow_failures:
19
+ - rvm: jruby-head
@@ -0,0 +1,3 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gemspec
@@ -0,0 +1,6 @@
1
+ jar 'org.kill-bill.billing:killbill-api', '0.8.2'
2
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.6.4'
3
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.6.4'
4
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.6.4'
5
+ jar 'org.kill-bill.billing:killbill-util:tests', '0.9.1'
6
+ jar 'javax.servlet:javax.servlet-api', '3.0.1'
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2014 The Billing Project, LLC
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ 0.0.1
2
+ Initial release