kaui 2.0.4 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (276) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +8 -23
  3. data/Rakefile +4 -2
  4. data/app/assets/config/kaui_manifest.js +45 -0
  5. data/app/assets/javascripts/jquery.spin.js +76 -0
  6. data/app/assets/javascripts/kaui/kaui.js +76 -0
  7. data/app/assets/javascripts/kaui_application.js +25 -0
  8. data/app/assets/javascripts/spin.js +76 -0
  9. data/app/assets/stylesheets/bootstrap_and_overrides.scss +240 -0
  10. data/app/assets/stylesheets/kaui/{account.less → account.scss} +13 -1
  11. data/app/assets/stylesheets/kaui/{audit.less → audit.scss} +5 -1
  12. data/app/assets/stylesheets/kaui/{common.less → common.scss} +19 -17
  13. data/app/assets/stylesheets/kaui/{datatable.less → datatable.scss} +6 -3
  14. data/app/assets/stylesheets/kaui/{header.less → header.scss} +16 -12
  15. data/app/assets/stylesheets/kaui/{home.less → home.scss} +7 -4
  16. data/app/assets/stylesheets/kaui/{invoice.less → invoice.scss} +7 -3
  17. data/app/assets/stylesheets/kaui/kaui.scss +265 -0
  18. data/app/assets/stylesheets/kaui/kaui_bootstrap.scss +3 -0
  19. data/app/assets/stylesheets/kaui/{overdue.less → overdue.scss} +3 -1
  20. data/app/assets/stylesheets/kaui/{payment.less → payment.scss} +3 -0
  21. data/app/assets/stylesheets/kaui/{subscription.less → subscription.scss} +4 -1
  22. data/app/assets/stylesheets/kaui/{tags.less → tags.scss} +9 -5
  23. data/app/assets/stylesheets/kaui/timeline.scss +7 -0
  24. data/app/assets/stylesheets/kaui/tooltip.scss +15 -0
  25. data/app/controllers/kaui/account_children_controller.rb +25 -28
  26. data/app/controllers/kaui/account_custom_fields_controller.rb +16 -15
  27. data/app/controllers/kaui/account_emails_controller.rb +28 -25
  28. data/app/controllers/kaui/account_tags_controller.rb +37 -34
  29. data/app/controllers/kaui/account_timelines_controller.rb +38 -33
  30. data/app/controllers/kaui/accounts_controller.rb +269 -255
  31. data/app/controllers/kaui/admin_allowed_users_controller.rb +105 -99
  32. data/app/controllers/kaui/admin_controller.rb +32 -31
  33. data/app/controllers/kaui/admin_tenants_controller.rb +434 -388
  34. data/app/controllers/kaui/audit_logs_controller.rb +87 -84
  35. data/app/controllers/kaui/bundle_tags_controller.rb +24 -20
  36. data/app/controllers/kaui/bundles_controller.rb +96 -82
  37. data/app/controllers/kaui/chargebacks_controller.rb +36 -33
  38. data/app/controllers/kaui/charges_controller.rb +23 -20
  39. data/app/controllers/kaui/credits_controller.rb +28 -25
  40. data/app/controllers/kaui/custom_fields_controller.rb +172 -38
  41. data/app/controllers/kaui/engine_controller.rb +2 -1
  42. data/app/controllers/kaui/engine_controller_util.rb +134 -114
  43. data/app/controllers/kaui/home_controller.rb +230 -217
  44. data/app/controllers/kaui/invoice_items_controller.rb +43 -39
  45. data/app/controllers/kaui/invoice_tags_controller.rb +32 -0
  46. data/app/controllers/kaui/invoices_controller.rb +134 -88
  47. data/app/controllers/kaui/login_proxy_controller.rb +2 -1
  48. data/app/controllers/kaui/payment_methods_controller.rb +103 -90
  49. data/app/controllers/kaui/payments_controller.rb +95 -92
  50. data/app/controllers/kaui/queues_controller.rb +47 -14
  51. data/app/controllers/kaui/refunds_controller.rb +36 -33
  52. data/app/controllers/kaui/registrations_controller.rb +7 -7
  53. data/app/controllers/kaui/role_definitions_controller.rb +17 -14
  54. data/app/controllers/kaui/sessions_controller.rb +7 -4
  55. data/app/controllers/kaui/subscriptions_controller.rb +197 -187
  56. data/app/controllers/kaui/tag_definitions_controller.rb +28 -27
  57. data/app/controllers/kaui/tags_controller.rb +25 -22
  58. data/app/controllers/kaui/tenants_controller.rb +30 -28
  59. data/app/controllers/kaui/transactions_controller.rb +43 -38
  60. data/app/helpers/kaui/account_helper.rb +22 -12
  61. data/app/helpers/kaui/application_helper.rb +8 -3
  62. data/app/helpers/kaui/date_helper.rb +3 -2
  63. data/app/helpers/kaui/home_helper.rb +2 -0
  64. data/app/helpers/kaui/locale_helper.rb +7 -6
  65. data/app/helpers/kaui/money_helper.rb +2 -1
  66. data/app/helpers/kaui/object_helper.rb +11 -10
  67. data/app/helpers/kaui/payment_helper.rb +7 -6
  68. data/app/helpers/kaui/payment_method_helper.rb +3 -2
  69. data/app/helpers/kaui/permissions_helper.rb +9 -9
  70. data/app/helpers/kaui/plugin_helper.rb +25 -23
  71. data/app/helpers/kaui/subscription_helper.rb +27 -29
  72. data/app/helpers/kaui/us_states_helper.rb +7 -6
  73. data/app/helpers/kaui/uuid_helper.rb +8 -5
  74. data/app/models/kaui/ability.rb +19 -12
  75. data/app/models/kaui/account.rb +45 -28
  76. data/app/models/kaui/account_email.rb +23 -20
  77. data/app/models/kaui/account_timeline.rb +5 -1
  78. data/app/models/kaui/admin.rb +65 -64
  79. data/app/models/kaui/admin_tenant.rb +81 -82
  80. data/app/models/kaui/allowed_user.rb +13 -9
  81. data/app/models/kaui/allowed_user_tenant.rb +4 -2
  82. data/app/models/kaui/application_record.rb +2 -0
  83. data/app/models/kaui/audit_log.rb +6 -3
  84. data/app/models/kaui/base.rb +13 -7
  85. data/app/models/kaui/bundle.rb +41 -24
  86. data/app/models/kaui/catalog.rb +118 -113
  87. data/app/models/kaui/chargeback.rb +5 -1
  88. data/app/models/kaui/credit.rb +4 -1
  89. data/app/models/kaui/custom_field.rb +9 -6
  90. data/app/models/kaui/invoice.rb +25 -22
  91. data/app/models/kaui/invoice_item.rb +9 -6
  92. data/app/models/kaui/invoice_payment.rb +49 -54
  93. data/app/models/kaui/killbill_authenticatable.rb +14 -8
  94. data/app/models/kaui/killbill_registerable.rb +7 -0
  95. data/app/models/kaui/overdue.rb +64 -65
  96. data/app/models/kaui/payment.rb +22 -19
  97. data/app/models/kaui/payment_method.rb +48 -39
  98. data/app/models/kaui/payment_state.rb +41 -38
  99. data/app/models/kaui/rails_methods.rb +9 -9
  100. data/app/models/kaui/refund.rb +7 -1
  101. data/app/models/kaui/role_definition.rb +5 -1
  102. data/app/models/kaui/simple_plan.rb +5 -3
  103. data/app/models/kaui/subscription.rb +10 -7
  104. data/app/models/kaui/tag.rb +25 -22
  105. data/app/models/kaui/tag_definition.rb +50 -45
  106. data/app/models/kaui/tenant.rb +6 -5
  107. data/app/models/kaui/transaction.rb +43 -31
  108. data/app/models/kaui/user.rb +10 -16
  109. data/app/models/kaui/user_role.rb +8 -5
  110. data/app/views/kaui/accounts/_billing_info.html.erb +5 -1
  111. data/app/views/kaui/accounts/_form.html.erb +2 -2
  112. data/app/views/kaui/accounts/_payment_methods.html.erb +3 -0
  113. data/app/views/kaui/accounts/index.html.erb +9 -4
  114. data/app/views/kaui/admin_allowed_users/_form.html.erb +3 -3
  115. data/app/views/kaui/admin_tenants/_form_catalog_translation.erb +1 -1
  116. data/app/views/kaui/admin_tenants/_form_invoice_template.erb +1 -1
  117. data/app/views/kaui/admin_tenants/_form_invoice_translation.erb +1 -1
  118. data/app/views/kaui/admin_tenants/_form_plugin_config.erb +13 -3
  119. data/app/views/kaui/admin_tenants/_show_catalog_simple.erb +11 -5
  120. data/app/views/kaui/admin_tenants/new_catalog.html.erb +2 -2
  121. data/app/views/kaui/admin_tenants/new_overdue_config.html.erb +2 -2
  122. data/app/views/kaui/admin_tenants/new_plan_currency.html.erb +1 -1
  123. data/app/views/kaui/bundles/_bundle_details.html.erb +12 -0
  124. data/app/views/kaui/bundles/index.html.erb +3 -14
  125. data/app/views/kaui/bundles/transfer.html.erb +13 -5
  126. data/app/views/kaui/invoice_tags/_form.html.erb +33 -0
  127. data/app/views/kaui/invoice_tags/_form_bar.html.erb +21 -0
  128. data/app/views/kaui/invoice_tags/edit.html.erb +10 -0
  129. data/app/views/kaui/invoices/_invoice_table.html.erb +29 -8
  130. data/app/views/kaui/invoices/index.html.erb +6 -4
  131. data/app/views/kaui/invoices/show.html.erb +10 -1
  132. data/app/views/kaui/layouts/kaui_flash.html.erb +32 -1
  133. data/app/views/kaui/layouts/kaui_header.html.erb +19 -2
  134. data/app/views/kaui/payment_methods/_payment_methods_details_table.html.erb +13 -4
  135. data/app/views/kaui/payments/_payment_table.html.erb +21 -11
  136. data/app/views/kaui/payments/index.html.erb +12 -10
  137. data/app/views/kaui/queues/index.html.erb +1 -1
  138. data/app/views/kaui/subscriptions/_cancel_by_date_modal.html.erb +1 -4
  139. data/app/views/kaui/subscriptions/_edit_form.html.erb +1 -1
  140. data/app/views/kaui/subscriptions/_form.html.erb +1 -1
  141. data/app/views/kaui/subscriptions/_subscriptions_table.html.erb +3 -3
  142. data/app/views/kaui/subscriptions/edit_bcd.erb +1 -1
  143. data/app/views/kaui/tag_definitions/index.html.erb +2 -2
  144. data/app/views/kaui/tags/index.html.erb +1 -0
  145. data/config/initializers/bootstrap_datepicker_rails.rb +3 -0
  146. data/config/initializers/devise.rb +8 -6
  147. data/config/initializers/js_routes.rb +9 -0
  148. data/config/initializers/kilbill_client_init.rb +13 -0
  149. data/config/initializers/killbill_authenticatable.rb +71 -21
  150. data/config/initializers/killbill_registerable.rb +5 -3
  151. data/config/initializers/time_formats.rb +6 -4
  152. data/config/locales/en.yml +78 -1
  153. data/config/routes.rb +40 -32
  154. data/db/migrate/20130812155313_devise_create_kaui_users.rb +10 -8
  155. data/db/migrate/20150109214021_create_kaui_tenants.rb +10 -8
  156. data/db/migrate/20150112232813_create_kaui_allowed_users.rb +10 -8
  157. data/lib/generators/kaui/install/install_generator.rb +23 -20
  158. data/lib/generators/kaui/install/templates/config/initializers/kaui.rb +3 -1
  159. data/lib/kaui/engine.rb +17 -5
  160. data/lib/kaui/installer/installer.rb +27 -26
  161. data/lib/kaui/version.rb +3 -1
  162. data/lib/kaui.rb +74 -30
  163. data/lib/tasks/kaui_tasks.rake +1 -0
  164. metadata +145 -440
  165. data/app/assets/javascripts/application.js +0 -17
  166. data/app/assets/javascripts/kaui/bootstrap-tweaks.js +0 -172
  167. data/app/assets/stylesheets/bootstrap_and_overrides.css.less +0 -44
  168. data/app/assets/stylesheets/kaui/kaui.less +0 -21
  169. data/app/assets/stylesheets/kaui/timeline.less +0 -4
  170. data/config/initializers/asset.rb +0 -1
  171. data/config/initializers/kilbill-client-init.rb +0 -9
  172. data/db/schema.rb +0 -15
  173. data/test/dummy/README.rdoc +0 -261
  174. data/test/dummy/Rakefile +0 -7
  175. data/test/dummy/app/controllers/application_controller.rb +0 -9
  176. data/test/dummy/app/helpers/application_helper.rb +0 -2
  177. data/test/dummy/bin/bundle +0 -3
  178. data/test/dummy/bin/rails +0 -4
  179. data/test/dummy/bin/rake +0 -4
  180. data/test/dummy/bin/setup +0 -38
  181. data/test/dummy/bin/update +0 -29
  182. data/test/dummy/bin/yarn +0 -11
  183. data/test/dummy/config/application.rb +0 -18
  184. data/test/dummy/config/boot.rb +0 -3
  185. data/test/dummy/config/database.yml +0 -27
  186. data/test/dummy/config/environment.rb +0 -5
  187. data/test/dummy/config/environments/development.rb +0 -58
  188. data/test/dummy/config/environments/production.rb +0 -91
  189. data/test/dummy/config/environments/test.rb +0 -49
  190. data/test/dummy/config/initializers/application_controller_renderer.rb +0 -6
  191. data/test/dummy/config/initializers/assets.rb +0 -14
  192. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  193. data/test/dummy/config/initializers/cookies_serializer.rb +0 -5
  194. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  195. data/test/dummy/config/initializers/inflections.rb +0 -16
  196. data/test/dummy/config/initializers/killbill_client.rb +0 -1
  197. data/test/dummy/config/initializers/mime_types.rb +0 -4
  198. data/test/dummy/config/initializers/new_framework_defaults_5_1.rb +0 -14
  199. data/test/dummy/config/initializers/secret_token.rb +0 -7
  200. data/test/dummy/config/initializers/session_store.rb +0 -8
  201. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  202. data/test/dummy/config/locales/en.yml +0 -33
  203. data/test/dummy/config/routes.rb +0 -3
  204. data/test/dummy/config/secrets.yml +0 -32
  205. data/test/dummy/config/symmetric-encryption.yml +0 -135
  206. data/test/dummy/config.ru +0 -4
  207. data/test/dummy/db/schema.rb +0 -52
  208. data/test/dummy/public/404.html +0 -26
  209. data/test/dummy/public/422.html +0 -26
  210. data/test/dummy/public/500.html +0 -25
  211. data/test/dummy/public/favicon.ico +0 -0
  212. data/test/dummy/script/rails +0 -6
  213. data/test/fixtures/SpyCarAdvanced.xml +0 -824
  214. data/test/fixtures/catalog-v1.xml +0 -73
  215. data/test/fixtures/catalog_translation_fr-v1.properties +0 -1
  216. data/test/fixtures/invoice_template-v1.html +0 -100
  217. data/test/fixtures/invoice_translation_fr-v1.properties +0 -23
  218. data/test/fixtures/overdue-v1.xml +0 -49
  219. data/test/fixtures/stripe.yml +0 -2
  220. data/test/functional/kaui/account_children_controller_test.rb +0 -32
  221. data/test/functional/kaui/account_custom_fields_controller_test.rb +0 -29
  222. data/test/functional/kaui/account_emails_controller_test.rb +0 -55
  223. data/test/functional/kaui/account_tags_controller_test.rb +0 -48
  224. data/test/functional/kaui/account_timelines_controller_test.rb +0 -20
  225. data/test/functional/kaui/accounts_controller_test.rb +0 -297
  226. data/test/functional/kaui/admin_allowed_users_controller_test.rb +0 -234
  227. data/test/functional/kaui/admin_controller_test.rb +0 -45
  228. data/test/functional/kaui/admin_tenants_controller_test.rb +0 -352
  229. data/test/functional/kaui/audit_logs_controller_test.rb +0 -71
  230. data/test/functional/kaui/bundle_tags_controller_test.rb +0 -23
  231. data/test/functional/kaui/bundles_controller_test.rb +0 -130
  232. data/test/functional/kaui/chargebacks_controller_test.rb +0 -42
  233. data/test/functional/kaui/charges_controller_test.rb +0 -60
  234. data/test/functional/kaui/credits_controller_test.rb +0 -54
  235. data/test/functional/kaui/custom_fields_controller_test.rb +0 -52
  236. data/test/functional/kaui/functional_test_helper.rb +0 -13
  237. data/test/functional/kaui/functional_test_helper_nosetup.rb +0 -120
  238. data/test/functional/kaui/home_controller_test.rb +0 -407
  239. data/test/functional/kaui/invoice_items_controller_test.rb +0 -82
  240. data/test/functional/kaui/invoices_controller_test.rb +0 -88
  241. data/test/functional/kaui/login_proxy_controller_test.rb +0 -12
  242. data/test/functional/kaui/payment_methods_controller_test.rb +0 -52
  243. data/test/functional/kaui/payments_controller_test.rb +0 -59
  244. data/test/functional/kaui/queues_controller_test.rb +0 -17
  245. data/test/functional/kaui/refunds_controller_test.rb +0 -63
  246. data/test/functional/kaui/registrations_controller_test.rb +0 -49
  247. data/test/functional/kaui/role_definitions_controller_test.rb +0 -47
  248. data/test/functional/kaui/subscriptions_controller_test.rb +0 -194
  249. data/test/functional/kaui/tag_definitions_controller_test.rb +0 -29
  250. data/test/functional/kaui/tags_controller_test.rb +0 -21
  251. data/test/functional/kaui/tenants_controller_test.rb +0 -60
  252. data/test/functional/kaui/transactions_controller_test.rb +0 -90
  253. data/test/integration/kaui/date_helper_integration_test.rb +0 -16
  254. data/test/integration/kaui/integration_test_helper.rb +0 -32
  255. data/test/integration/kaui/navigation_test.rb +0 -43
  256. data/test/killbill_test_helper.rb +0 -217
  257. data/test/test_helper.rb +0 -22
  258. data/test/unit/helpers/kaui/admin_allowed_users_helper_test.rb +0 -6
  259. data/test/unit/helpers/kaui/admin_tenants_helper_test.rb +0 -6
  260. data/test/unit/helpers/kaui/payment_method_helper_test.rb +0 -17
  261. data/test/unit/helpers/kaui/tenants_helper_test.rb +0 -6
  262. data/test/unit/helpers/kaui/uuid_helper_test.rb +0 -16
  263. data/test/unit/kaui/account_email_test.rb +0 -19
  264. data/test/unit/kaui/account_test.rb +0 -14
  265. data/test/unit/kaui/admin_tenant_test.rb +0 -132
  266. data/test/unit/kaui/allowed_user_test.rb +0 -34
  267. data/test/unit/kaui/base_test.rb +0 -23
  268. data/test/unit/kaui/date_helper_test.rb +0 -26
  269. data/test/unit/kaui/invoice_item_test.rb +0 -11
  270. data/test/unit/kaui/invoice_payment_test.rb +0 -42
  271. data/test/unit/kaui/invoice_test.rb +0 -20
  272. data/test/unit/kaui/money_helper_test.rb +0 -16
  273. data/test/unit/kaui/payment_test.rb +0 -42
  274. data/test/unit/kaui/tag_definition_test.rb +0 -11
  275. data/test/unit/kaui/tenant_test.rb +0 -19
  276. /data/app/assets/stylesheets/{application.css → kaui_application.css} +0 -0
@@ -1,824 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!--
3
- ~ Copyright 2010-2013 Ning, Inc.
4
- ~
5
- ~ Ning licenses this file to you under the Apache License, version 2.0
6
- ~ (the "License"); you may not use this file except in compliance with the
7
- ~ License. You may obtain a copy of the License at:
8
- ~
9
- ~ http://www.apache.org/licenses/LICENSE-2.0
10
- ~
11
- ~ Unless required by applicable law or agreed to in writing, software
12
- ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
- ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
- ~ License for the specific language governing permissions and limitations
15
- ~ under the License.
16
- -->
17
-
18
- <catalog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19
- xsi:noNamespaceSchemaLocation="CatalogSchema.xsd ">
20
-
21
- <effectiveDate>2013-02-08T00:00:00+00:00</effectiveDate>
22
- <catalogName>SpyCarAdvanced</catalogName>
23
-
24
- <recurringBillingMode>IN_ADVANCE</recurringBillingMode>
25
-
26
- <currencies>
27
- <currency>USD</currency>
28
- <currency>GBP</currency>
29
- <currency>EUR</currency>
30
- <currency>JPY</currency>
31
- <currency>BTC</currency>
32
- </currencies>
33
-
34
- <units>
35
- <unit name="gallons"/>
36
- </units>
37
-
38
-
39
- <products>
40
- <product name="Standard">
41
- <category>BASE</category>
42
- </product>
43
- <product name="Sports">
44
- <category>BASE</category>
45
- <available>
46
- <addonProduct>OilSlick</addonProduct>
47
- <addonProduct>RemoteControl</addonProduct>
48
- <addonProduct>Gas</addonProduct>
49
- </available>
50
- </product>
51
- <product name="Super">
52
- <category>BASE</category>
53
- <included>
54
- <addonProduct>OilSlick</addonProduct>
55
- </included>
56
- <available>
57
- <addonProduct>RemoteControl</addonProduct>
58
- <addonProduct>Gas</addonProduct>
59
- </available>
60
- </product>
61
- <product name="OilSlick">
62
- <category>ADD_ON</category>
63
- </product>
64
- <product name="RemoteControl">
65
- <category>ADD_ON</category>
66
- </product>
67
- <product name="Gas">
68
- <category>ADD_ON</category>
69
- </product>
70
- </products>
71
-
72
- <rules>
73
- <changePolicy>
74
- <changePolicyCase>
75
- <phaseType>TRIAL</phaseType>
76
- <policy>IMMEDIATE</policy>
77
- </changePolicyCase>
78
- <changePolicyCase>
79
- <fromProduct>Standard</fromProduct>
80
- <toProduct>Sports</toProduct>
81
- <policy>IMMEDIATE</policy>
82
- </changePolicyCase>
83
- <changePolicyCase>
84
- <toProduct>Super</toProduct>
85
- <policy>IMMEDIATE</policy>
86
- </changePolicyCase>
87
- <changePolicyCase>
88
- <policy>END_OF_TERM</policy>
89
- </changePolicyCase>
90
- </changePolicy>
91
- <changeAlignment>
92
- <changeAlignmentCase>
93
- <toProductCategory>ADD_ON</toProductCategory>
94
- <alignment>START_OF_BUNDLE</alignment>
95
- </changeAlignmentCase>
96
- <changeAlignmentCase>
97
- <fromPriceList>SpecialDiscount</fromPriceList>
98
- <toPriceList>SpecialDiscount</toPriceList>
99
- <alignment>CHANGE_OF_PRICELIST</alignment>
100
- </changeAlignmentCase>
101
- <changeAlignmentCase>
102
- <alignment>START_OF_SUBSCRIPTION</alignment>
103
- </changeAlignmentCase>
104
- </changeAlignment>
105
- <cancelPolicy>
106
- <cancelPolicyCase>
107
- <productCategory>BASE</productCategory>
108
- <policy>END_OF_TERM</policy>
109
- </cancelPolicyCase>
110
- <cancelPolicyCase>
111
- <productCategory>ADD_ON</productCategory>
112
- <policy>IMMEDIATE</policy>
113
- </cancelPolicyCase>
114
- <cancelPolicyCase>
115
- <policy>END_OF_TERM</policy>
116
- </cancelPolicyCase>
117
- </cancelPolicy>
118
- <createAlignment>
119
- <createAlignmentCase>
120
- <product>OilSlick</product>
121
- <alignment>START_OF_BUNDLE</alignment>
122
- </createAlignmentCase>
123
- <createAlignmentCase>
124
- <product>RemoteControl</product>
125
- <alignment>START_OF_SUBSCRIPTION</alignment>
126
- </createAlignmentCase>
127
- <createAlignmentCase>
128
- <alignment>START_OF_BUNDLE</alignment>
129
- </createAlignmentCase>
130
- </createAlignment>
131
- <billingAlignment>
132
- <billingAlignmentCase>
133
- <productCategory>ADD_ON</productCategory>
134
- <alignment>BUNDLE</alignment>
135
- </billingAlignmentCase>
136
- <billingAlignmentCase>
137
- <billingPeriod>ANNUAL</billingPeriod>
138
- <alignment>SUBSCRIPTION</alignment>
139
- </billingAlignmentCase>
140
- <billingAlignmentCase>
141
- <alignment>ACCOUNT</alignment>
142
- </billingAlignmentCase>
143
- </billingAlignment>
144
- <priceList>
145
- <priceListCase>
146
- <fromPriceList>SpecialDiscount</fromPriceList>
147
- <toPriceList>DEFAULT</toPriceList>
148
- </priceListCase>
149
- <priceListCase>
150
- <fromPriceList>CIA</fromPriceList>
151
- <toPriceList>CIA</toPriceList>
152
- </priceListCase>
153
- <priceListCase>
154
- <toPriceList>DEFAULT</toPriceList>
155
- </priceListCase>
156
- </priceList>
157
- </rules>
158
-
159
- <plans>
160
- <plan name="standard-annual">
161
- <product>Standard</product>
162
- <initialPhases>
163
- <phase type="TRIAL">
164
- <duration>
165
- <unit>DAYS</unit>
166
- <number>30</number>
167
- </duration>
168
- <fixed>
169
- <fixedPrice> <!-- empty price implies $0 -->
170
- </fixedPrice>
171
- </fixed>
172
- </phase>
173
- </initialPhases>
174
- <finalPhase type="EVERGREEN">
175
- <duration>
176
- <unit>UNLIMITED</unit>
177
- </duration>
178
- <recurring>
179
- <billingPeriod>ANNUAL</billingPeriod>
180
- <recurringPrice>
181
- <price>
182
- <currency>GBP</currency>
183
- <value>750.00</value>
184
- </price>
185
- <price>
186
- <currency>EUR</currency>
187
- <value>850.00</value>
188
- </price>
189
- <price>
190
- <currency>USD</currency>
191
- <value>1000.00</value>
192
- </price>
193
- <price>
194
- <currency>JPY</currency>
195
- <value>100.00</value>
196
- </price>
197
- <price>
198
- <currency>BTC</currency>
199
- <value>1.0</value>
200
- </price>
201
- </recurringPrice>
202
- </recurring>
203
- </finalPhase>
204
- </plan>
205
- <plan name="standard-monthly">
206
- <product>Standard</product>
207
- <initialPhases>
208
- <phase type="TRIAL">
209
- <duration>
210
- <unit>DAYS</unit>
211
- <number>30</number>
212
- </duration>
213
- <fixed>
214
- <fixedPrice> <!-- empty price implies $0 -->
215
- </fixedPrice>
216
- </fixed>
217
- </phase>
218
- </initialPhases>
219
- <finalPhase type="EVERGREEN">
220
- <duration>
221
- <unit>UNLIMITED</unit>
222
- </duration>
223
- <recurring>
224
- <billingPeriod>MONTHLY</billingPeriod>
225
- <recurringPrice>
226
- <price>
227
- <currency>GBP</currency>
228
- <value>75.00</value>
229
- </price>
230
- <price>
231
- <currency>EUR</currency>
232
- <value>85.00</value>
233
- </price>
234
- <price>
235
- <currency>USD</currency>
236
- <value>100.00</value>
237
- </price>
238
- <price>
239
- <currency>JPY</currency>
240
- <value>10.00</value>
241
- </price>
242
- <price>
243
- <currency>BTC</currency>
244
- <value>0.1</value>
245
- </price>
246
- </recurringPrice>
247
- </recurring>
248
- </finalPhase>
249
- </plan>
250
- <plan name="sports-monthly">
251
- <product>Sports</product>
252
- <initialPhases>
253
- <phase type="TRIAL">
254
- <duration>
255
- <unit>DAYS</unit>
256
- <number>30</number>
257
- </duration>
258
- <fixed>
259
- <fixedPrice> <!-- empty price implies $0 -->
260
- </fixedPrice>
261
- </fixed>
262
- </phase>
263
- </initialPhases>
264
- <finalPhase type="EVERGREEN">
265
- <duration>
266
- <unit>UNLIMITED</unit>
267
- </duration>
268
- <recurring>
269
- <billingPeriod>MONTHLY</billingPeriod>
270
- <recurringPrice>
271
- <price>
272
- <currency>GBP</currency>
273
- <value>375.00</value>
274
- </price>
275
- <price>
276
- <currency>EUR</currency>
277
- <value>425.00</value>
278
- </price>
279
- <price>
280
- <currency>USD</currency>
281
- <value>500.00</value>
282
- </price>
283
- <price>
284
- <currency>JPY</currency>
285
- <value>50.00</value>
286
- </price>
287
- <price>
288
- <currency>BTC</currency>
289
- <value>0.5</value>
290
- </price>
291
- </recurringPrice>
292
- </recurring>
293
- </finalPhase>
294
- </plan>
295
- <plan name="sports-annual">
296
- <product>Sports</product>
297
- <initialPhases>
298
- <phase type="TRIAL">
299
- <duration>
300
- <unit>DAYS</unit>
301
- <number>30</number>
302
- </duration>
303
- <fixed>
304
- <fixedPrice> <!-- empty price implies $0 -->
305
- </fixedPrice>
306
- </fixed>
307
- </phase>
308
- </initialPhases>
309
- <finalPhase type="EVERGREEN">
310
- <duration>
311
- <unit>UNLIMITED</unit>
312
- </duration>
313
- <recurring>
314
- <billingPeriod>ANNUAL</billingPeriod>
315
- <recurringPrice>
316
- <price>
317
- <currency>GBP</currency>
318
- <value>3750.00</value>
319
- </price>
320
- <price>
321
- <currency>EUR</currency>
322
- <value>4250.00</value>
323
- </price>
324
- <price>
325
- <currency>USD</currency>
326
- <value>5000.00</value>
327
- </price>
328
- <price>
329
- <currency>JPY</currency>
330
- <value>500.00</value>
331
- </price>
332
- <price>
333
- <currency>BTC</currency>
334
- <value>5.0</value>
335
- </price>
336
- </recurringPrice>
337
- </recurring>
338
- </finalPhase>
339
- </plan>
340
- <plan name="super-monthly">
341
- <product>Super</product>
342
- <initialPhases>
343
- <phase type="TRIAL">
344
- <duration>
345
- <unit>DAYS</unit>
346
- <number>30</number>
347
- </duration>
348
- <fixed>
349
- <fixedPrice> <!-- empty price implies $0 -->
350
- </fixedPrice>
351
- </fixed>
352
- </phase>
353
- </initialPhases>
354
- <finalPhase type="EVERGREEN">
355
- <duration>
356
- <unit>UNLIMITED</unit>
357
- </duration>
358
- <recurring>
359
- <billingPeriod>MONTHLY</billingPeriod>
360
- <recurringPrice>
361
- <price>
362
- <currency>GBP</currency>
363
- <value>750.00</value>
364
- </price>
365
- <price>
366
- <currency>EUR</currency>
367
- <value>850.00</value>
368
- </price>
369
- <price>
370
- <currency>USD</currency>
371
- <value>1000.00</value>
372
- </price>
373
- <price>
374
- <currency>JPY</currency>
375
- <value>100.00</value>
376
- </price>
377
- <price>
378
- <currency>BTC</currency>
379
- <value>1.0</value>
380
- </price>
381
- </recurringPrice>
382
- </recurring>
383
- </finalPhase>
384
- </plan>
385
- <plan name="discount-standard-monthly">
386
- <product>Standard</product>
387
- <initialPhases>
388
- <phase type="TRIAL">
389
- <duration>
390
- <unit>DAYS</unit>
391
- <number>30</number>
392
- </duration>
393
- <fixed>
394
- <fixedPrice> <!-- empty price implies $0 -->
395
- </fixedPrice>
396
- </fixed>
397
- </phase>
398
- <phase type="DISCOUNT">
399
- <duration>
400
- <unit>MONTHS</unit>
401
- <number>3</number>
402
- </duration>
403
- <recurring>
404
- <billingPeriod>MONTHLY</billingPeriod>
405
- <recurringPrice>
406
- <price>
407
- <currency>GBP</currency>
408
- <value>50.00</value>
409
- </price>
410
- <price>
411
- <currency>EUR</currency>
412
- <value>60.00</value>
413
- </price>
414
- <price>
415
- <currency>USD</currency>
416
- <value>66.00</value>
417
- </price>
418
- <price>
419
- <currency>JPY</currency>
420
- <value>6.60</value>
421
- </price>
422
- <price>
423
- <currency>BTC</currency>
424
- <value>0.06</value>
425
- </price>
426
- </recurringPrice>
427
- </recurring>
428
- </phase>
429
- </initialPhases>
430
- <finalPhase type="EVERGREEN">
431
- <duration>
432
- <unit>UNLIMITED</unit>
433
- </duration>
434
- <recurring>
435
- <billingPeriod>MONTHLY</billingPeriod>
436
- <recurringPrice>
437
- <price>
438
- <currency>GBP</currency>
439
- <value>75.00</value>
440
- </price>
441
- <price>
442
- <currency>EUR</currency>
443
- <value>85.00</value>
444
- </price>
445
- <price>
446
- <currency>USD</currency>
447
- <value>100.00</value>
448
- </price>
449
- <price>
450
- <currency>JPY</currency>
451
- <value>10.00</value>
452
- </price>
453
- <price>
454
- <currency>BTC</currency>
455
- <value>0.1</value>
456
- </price>
457
- </recurringPrice>
458
- </recurring>
459
- </finalPhase>
460
- </plan>
461
- <plan name="discount-sports-monthly">
462
- <product>Sports</product>
463
- <initialPhases>
464
- <phase type="TRIAL">
465
- <duration>
466
- <unit>DAYS</unit>
467
- <number>30</number>
468
- </duration>
469
- <fixed>
470
- <fixedPrice> <!-- empty price implies $0 -->
471
- </fixedPrice>
472
- </fixed>
473
- </phase>
474
- <phase type="DISCOUNT">
475
- <duration>
476
- <unit>MONTHS</unit>
477
- <number>3</number>
478
- </duration>
479
- <recurring>
480
- <billingPeriod>MONTHLY</billingPeriod>
481
- <recurringPrice>
482
- <price>
483
- <currency>GBP</currency>
484
- <value>250.00</value>
485
- </price>
486
- <price>
487
- <currency>EUR</currency>
488
- <value>300.00</value>
489
- </price>
490
- <price>
491
- <currency>USD</currency>
492
- <value>333.00</value>
493
- </price>
494
- <price>
495
- <currency>JPY</currency>
496
- <value>33.30</value>
497
- </price>
498
- <price>
499
- <currency>BTC</currency>
500
- <value>0.3</value>
501
- </price>
502
- </recurringPrice>
503
- </recurring>
504
- </phase>
505
- </initialPhases>
506
- <finalPhase type="EVERGREEN">
507
- <duration>
508
- <unit>UNLIMITED</unit>
509
- </duration>
510
- <recurring>
511
- <billingPeriod>MONTHLY</billingPeriod>
512
- <recurringPrice>
513
- <price>
514
- <currency>GBP</currency>
515
- <value>375.00</value>
516
- </price>
517
- <price>
518
- <currency>EUR</currency>
519
- <value>425.00</value>
520
- </price>
521
- <price>
522
- <currency>USD</currency>
523
- <value>500.00</value>
524
- </price>
525
- <price>
526
- <currency>JPY</currency>
527
- <value>50.00</value>
528
- </price>
529
- <price>
530
- <currency>BTC</currency>
531
- <value>0.5</value>
532
- </price>
533
- </recurringPrice>
534
- </recurring>
535
- </finalPhase>
536
- </plan>
537
- <plan name="discount-super-monthly">
538
- <product>Super</product>
539
- <initialPhases>
540
- <phase type="TRIAL">
541
- <duration>
542
- <unit>DAYS</unit>
543
- <number>30</number>
544
- </duration>
545
- <fixed>
546
- <fixedPrice> <!-- empty price implies $0 -->
547
- </fixedPrice>
548
- </fixed>
549
- </phase>
550
- <phase type="DISCOUNT">
551
- <duration>
552
- <unit>MONTHS</unit>
553
- <number>3</number>
554
- </duration>
555
- <recurring>
556
- <billingPeriod>MONTHLY</billingPeriod>
557
- <recurringPrice>
558
- <price>
559
- <currency>GBP</currency>
560
- <value>500.00</value>
561
- </price>
562
- <price>
563
- <currency>EUR</currency>
564
- <value>600.00</value>
565
- </price>
566
- <price>
567
- <currency>USD</currency>
568
- <value>666.00</value>
569
- </price>
570
- <price>
571
- <currency>JPY</currency>
572
- <value>66.60</value>
573
- </price>
574
- <price>
575
- <currency>BTC</currency>
576
- <value>0.6</value>
577
- </price>
578
- </recurringPrice>
579
- </recurring>
580
- </phase>
581
- </initialPhases>
582
- <finalPhase type="EVERGREEN">
583
- <duration>
584
- <unit>UNLIMITED</unit>
585
- </duration>
586
- <recurring>
587
- <billingPeriod>MONTHLY</billingPeriod>
588
- <recurringPrice>
589
- <price>
590
- <currency>GBP</currency>
591
- <value>750.00</value>
592
- </price>
593
- <price>
594
- <currency>EUR</currency>
595
- <value>850.00</value>
596
- </price>
597
- <price>
598
- <currency>USD</currency>
599
- <value>1000.00</value>
600
- </price>
601
- <price>
602
- <currency>JPY</currency>
603
- <value>100.00</value>
604
- </price>
605
- <price>
606
- <currency>BTC</currency>
607
- <value>1.0</value>
608
- </price>
609
- </recurringPrice>
610
- </recurring>
611
- </finalPhase>
612
- </plan>
613
- <plan name="oilslick-monthly">
614
- <product>OilSlick</product>
615
- <initialPhases>
616
- <phase type="DISCOUNT">
617
- <duration>
618
- <unit>MONTHS</unit>
619
- <number>1</number>
620
- </duration>
621
- <recurring>
622
- <billingPeriod>MONTHLY</billingPeriod>
623
- <recurringPrice>
624
- <price>
625
- <currency>GBP</currency>
626
- <value>2.00</value>
627
- </price>
628
- <price>
629
- <currency>EUR</currency>
630
- <value>3.00</value>
631
- </price>
632
- <price>
633
- <currency>USD</currency>
634
- <value>4.00</value>
635
- </price>
636
- <price>
637
- <currency>JPY</currency>
638
- <value>0.40</value>
639
- </price>
640
- <price>
641
- <currency>BTC</currency>
642
- <value>0.01</value>
643
- </price>
644
- </recurringPrice>
645
- </recurring>
646
- </phase>
647
- </initialPhases>
648
- <finalPhase type="EVERGREEN">
649
- <duration>
650
- <unit>UNLIMITED</unit>
651
- </duration>
652
- <recurring>
653
- <billingPeriod>MONTHLY</billingPeriod>
654
- <recurringPrice>
655
- <price>
656
- <currency>GBP</currency>
657
- <value>5.95</value>
658
- </price>
659
- <price>
660
- <currency>EUR</currency>
661
- <value>6.95</value>
662
- </price>
663
- <price>
664
- <currency>USD</currency>
665
- <value>7.95</value>
666
- </price>
667
- <price>
668
- <currency>JPY</currency>
669
- <value>0.80</value>
670
- </price>
671
- <price>
672
- <currency>BTC</currency>
673
- <value>0.01</value>
674
- </price>
675
- </recurringPrice>
676
- </recurring>
677
- </finalPhase>
678
- </plan>
679
- <plan name="remotecontrol-monthly">
680
- <product>RemoteControl</product>
681
- <initialPhases>
682
- <phase type="DISCOUNT">
683
- <duration>
684
- <unit>MONTHS</unit>
685
- <number>1</number>
686
- </duration>
687
- <recurring>
688
- <billingPeriod>MONTHLY</billingPeriod>
689
- <recurringPrice>
690
- <price>
691
- <currency>GBP</currency>
692
- <value>5.00</value>
693
- </price>
694
- <price>
695
- <currency>EUR</currency>
696
- <value>7.00</value>
697
- </price>
698
- <price>
699
- <currency>USD</currency>
700
- <value>8.00</value>
701
- </price>
702
- <price>
703
- <currency>JPY</currency>
704
- <value>0.80</value>
705
- </price>
706
- <price>
707
- <currency>BTC</currency>
708
- <value>0.01</value>
709
- </price>
710
- </recurringPrice>
711
- </recurring>
712
- </phase>
713
- </initialPhases>
714
- <finalPhase type="EVERGREEN">
715
- <duration>
716
- <unit>UNLIMITED</unit>
717
- </duration>
718
- <recurring>
719
- <billingPeriod>MONTHLY</billingPeriod>
720
- <recurringPrice>
721
- <price>
722
- <currency>GBP</currency>
723
- <value>15.95</value>
724
- </price>
725
- <price>
726
- <currency>EUR</currency>
727
- <value>16.95</value>
728
- </price>
729
- <price>
730
- <currency>USD</currency>
731
- <value>17.95</value>
732
- </price>
733
- <price>
734
- <currency>JPY</currency>
735
- <value>1.79</value>
736
- </price>
737
- <price>
738
- <currency>BTC</currency>
739
- <value>0.01</value>
740
- </price>
741
- </recurringPrice>
742
- </recurring>
743
- </finalPhase>
744
- </plan>
745
- <plan name="gas-monthly">
746
- <product>Gas</product>
747
- <finalPhase type="EVERGREEN">
748
- <duration>
749
- <unit>UNLIMITED</unit>
750
- </duration>
751
- <usages>
752
- <usage name="gas-monthly-in-arrear" billingMode="IN_ARREAR" usageType="CONSUMABLE">
753
- <billingPeriod>MONTHLY</billingPeriod>
754
- <tiers>
755
- <tier>
756
- <blocks>
757
- <tieredBlock>
758
- <unit>gallons</unit>
759
- <size>1</size>
760
- <prices>
761
- <price>
762
- <currency>GBP</currency>
763
- <value>1.95</value>
764
- </price>
765
- <price>
766
- <currency>EUR</currency>
767
- <value>2.95</value>
768
- </price>
769
- <price>
770
- <currency>USD</currency>
771
- <value>3.95</value>
772
- </price>
773
- <price>
774
- <currency>JPY</currency>
775
- <value>0.95</value>
776
- </price>
777
- <price>
778
- <currency>BTC</currency>
779
- <value>0.001</value>
780
- </price>
781
- </prices>
782
- <max>100</max>
783
- </tieredBlock>
784
- </blocks>
785
- </tier>
786
- </tiers>
787
- </usage>
788
- </usages>
789
- </finalPhase>
790
- </plan>
791
- </plans>
792
- <priceLists>
793
- <defaultPriceList name="DEFAULT">
794
- <plans>
795
- <plan>standard-annual</plan>
796
- <plan>standard-monthly</plan>
797
- <plan>sports-annual</plan>
798
- <plan>sports-monthly</plan>
799
- <plan>super-monthly</plan>
800
- <plan>remotecontrol-monthly</plan>
801
- <plan>oilslick-monthly</plan>
802
- <plan>gas-monthly</plan>
803
- </plans>
804
- </defaultPriceList>
805
- <childPriceList name="SpecialDiscount">
806
- <plans>
807
- <plan>discount-standard-monthly</plan>
808
- <plan>discount-sports-monthly</plan>
809
- <plan>discount-super-monthly</plan>
810
- <plan>remotecontrol-monthly</plan>
811
- <plan>oilslick-monthly</plan>
812
- </plans>
813
- </childPriceList>
814
- <childPriceList name="CIA">
815
- <plans>
816
- <plan>discount-standard-monthly</plan>
817
- <plan>discount-sports-monthly</plan>
818
- <plan>discount-super-monthly</plan>
819
- <plan>remotecontrol-monthly</plan>
820
- <plan>oilslick-monthly</plan>
821
- </plans>
822
- </childPriceList>
823
- </priceLists>
824
- </catalog>