killbill 8.3.6 → 9.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +51 -0
  3. data/Gemfile.lock +4 -4
  4. data/Jarfile +11 -11
  5. data/Jarfile.lock +63 -57
  6. data/NEWS +2 -8
  7. data/README.md +1 -0
  8. data/gen_config/api.conf +2 -0
  9. data/lib/killbill/gen/api/account.rb +20 -20
  10. data/lib/killbill/gen/api/account_data.rb +15 -1
  11. data/lib/killbill/gen/api/block_price_override.rb +81 -0
  12. data/lib/killbill/gen/api/call_context.rb +8 -1
  13. data/lib/killbill/gen/api/catalog_entity.rb +7 -1
  14. data/lib/killbill/gen/api/catalog_user_api.rb +8 -0
  15. data/lib/killbill/gen/api/custom_field_user_api.rb +17 -0
  16. data/lib/killbill/gen/api/email_notification.rb +75 -0
  17. data/lib/killbill/gen/api/entitlement_api.rb +12 -6
  18. data/lib/killbill/gen/api/immutable_account_data.rb +1 -20
  19. data/lib/killbill/gen/api/invoice.rb +15 -1
  20. data/lib/killbill/gen/api/invoice_formatter.rb +15 -1
  21. data/lib/killbill/gen/api/invoice_item.rb +19 -1
  22. data/lib/killbill/gen/api/invoice_item_formatter.rb +19 -1
  23. data/lib/killbill/gen/api/migration_plan.rb +14 -1
  24. data/lib/killbill/gen/api/mutable_account_data.rb +15 -1
  25. data/lib/killbill/gen/api/mutable_static_catalog.rb +1 -8
  26. data/lib/killbill/gen/api/osgi_killbill.rb +8 -1
  27. data/lib/killbill/gen/api/overdue_api.rb +88 -0
  28. data/lib/killbill/gen/api/overdue_api_exception.rb +68 -0
  29. data/lib/killbill/gen/api/overdue_condition.rb +108 -0
  30. data/lib/killbill/gen/api/overdue_config.rb +58 -0
  31. data/lib/killbill/gen/api/overdue_state.rb +120 -0
  32. data/lib/killbill/gen/api/overdue_states_account.rb +72 -0
  33. data/lib/killbill/gen/api/payment_api.rb +192 -51
  34. data/lib/killbill/gen/api/plan.rb +14 -1
  35. data/lib/killbill/gen/api/plan_phase.rb +7 -1
  36. data/lib/killbill/gen/api/plan_phase_price_override.rb +20 -1
  37. data/lib/killbill/gen/api/price_list.rb +7 -1
  38. data/lib/killbill/gen/api/product.rb +7 -1
  39. data/lib/killbill/gen/api/require_gen.rb +131 -121
  40. data/lib/killbill/gen/api/security_api.rb +20 -0
  41. data/lib/killbill/gen/api/static_catalog.rb +1 -8
  42. data/lib/killbill/gen/api/tag_user_api.rb +12 -3
  43. data/lib/killbill/gen/api/tenant_context.rb +8 -1
  44. data/lib/killbill/gen/api/tier_price_override.rb +70 -0
  45. data/lib/killbill/gen/api/tiered_block_price_override.rb +87 -0
  46. data/lib/killbill/gen/api/unit.rb +7 -1
  47. data/lib/killbill/gen/api/usage.rb +14 -1
  48. data/lib/killbill/gen/api/usage_price_override.rb +83 -0
  49. data/lib/killbill/gen/plugin-api/catalog_plugin_api.rb +34 -0
  50. data/lib/killbill/gen/plugin-api/entitlement_context.rb +8 -8
  51. data/lib/killbill/gen/plugin-api/ext_bus_event.rb +8 -1
  52. data/lib/killbill/gen/plugin-api/invoice_payment_metadata.rb +115 -0
  53. data/lib/killbill/gen/plugin-api/invoice_plugin_api_retry_exception.rb +64 -0
  54. data/lib/killbill/gen/plugin-api/notification_plugin_api_retry_exception.rb +64 -0
  55. data/lib/killbill/gen/plugin-api/payment_control_context.rb +14 -8
  56. data/lib/killbill/gen/plugin-api/prior_payment_control_result.rb +7 -1
  57. data/lib/killbill/gen/plugin-api/require_gen.rb +15 -12
  58. data/lib/killbill/gen/plugin-api/subscription_metadata.rb +8 -2
  59. data/lib/killbill/gen/plugin-api/versioned_plugin_catalog.rb +1 -8
  60. data/lib/killbill/helpers/active_merchant/active_record/models/response.rb +6 -21
  61. data/lib/killbill/helpers/active_merchant/killbill_spec_helper.rb +1 -1
  62. data/lib/killbill/helpers/active_merchant/payment_plugin.rb +12 -12
  63. data/lib/killbill/version.rb +1 -1
  64. data/spec/killbill/helpers/response_spec.rb +0 -7
  65. data/spec/killbill/helpers/test_response.rb +0 -4
  66. data/spec/killbill/killbillapi_spec.rb +1 -0
  67. metadata +17 -4
  68. data/.circleci/config.yml +0 -138
  69. data/lib/killbill/gen/api/refund.rb +0 -151
@@ -1,151 +0,0 @@
1
- #############################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # Copyright 2014 Groupon, Inc. #
5
- # Copyright 2014 The Billing Project, LLC #
6
- # #
7
- # The Billing Project licenses this file to you under the Apache License, version 2.0 #
8
- # (the "License"); you may not use this file except in compliance with the #
9
- # License. You may obtain a copy of the License at: #
10
- # #
11
- # http://www.apache.org/licenses/LICENSE-2.0 #
12
- # #
13
- # Unless required by applicable law or agreed to in writing, software #
14
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
15
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
16
- # License for the specific language governing permissions and limitations #
17
- # under the License. #
18
- # #
19
- #############################################################################################
20
-
21
-
22
- #
23
- # DO NOT EDIT!!!
24
- # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
25
- #
26
-
27
-
28
- module Killbill
29
- module Plugin
30
- module Model
31
-
32
- java_package 'org.killbill.billing.payment.api'
33
- class Refund
34
-
35
- include org.killbill.billing.payment.api.Refund
36
-
37
- attr_accessor :id, :created_date, :updated_date, :payment_id, :is_adjusted, :refund_amount, :currency, :effective_date, :refund_status, :refund_info_plugin
38
-
39
- def initialize()
40
- end
41
-
42
- def to_java()
43
- # conversion for id [type = java.util.UUID]
44
- @id = java.util.UUID.fromString(@id.to_s) unless @id.nil?
45
-
46
- # conversion for created_date [type = org.joda.time.DateTime]
47
- if !@created_date.nil?
48
- @created_date = (@created_date.kind_of? Time) ? DateTime.parse(@created_date.to_s) : @created_date
49
- @created_date = Java::org.joda.time.DateTime.new(@created_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
50
- end
51
-
52
- # conversion for updated_date [type = org.joda.time.DateTime]
53
- if !@updated_date.nil?
54
- @updated_date = (@updated_date.kind_of? Time) ? DateTime.parse(@updated_date.to_s) : @updated_date
55
- @updated_date = Java::org.joda.time.DateTime.new(@updated_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
56
- end
57
-
58
- # conversion for payment_id [type = java.util.UUID]
59
- @payment_id = java.util.UUID.fromString(@payment_id.to_s) unless @payment_id.nil?
60
-
61
- # conversion for is_adjusted [type = boolean]
62
- @is_adjusted = @is_adjusted.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_adjusted)
63
-
64
- # conversion for refund_amount [type = java.math.BigDecimal]
65
- if @refund_amount.nil?
66
- @refund_amount = java.math.BigDecimal::ZERO
67
- else
68
- @refund_amount = java.math.BigDecimal.new(@refund_amount.to_s)
69
- end
70
-
71
- # conversion for currency [type = org.killbill.billing.catalog.api.Currency]
72
- @currency = Java::org.killbill.billing.catalog.api.Currency.value_of( @currency.to_s ) unless @currency.nil?
73
-
74
- # conversion for effective_date [type = org.joda.time.DateTime]
75
- if !@effective_date.nil?
76
- @effective_date = (@effective_date.kind_of? Time) ? DateTime.parse(@effective_date.to_s) : @effective_date
77
- @effective_date = Java::org.joda.time.DateTime.new(@effective_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
78
- end
79
-
80
- # conversion for refund_status [type = org.killbill.billing.payment.api.RefundStatus]
81
- @refund_status = Java::org.killbill.billing.payment.api.RefundStatus.value_of( @refund_status.to_s ) unless @refund_status.nil?
82
-
83
- # conversion for refund_info_plugin [type = org.killbill.billing.payment.plugin.api.PaymentTransactionInfoPlugin]
84
- @refund_info_plugin = @refund_info_plugin.to_java unless @refund_info_plugin.nil?
85
- self
86
- end
87
-
88
- def to_ruby(j_obj)
89
- # conversion for id [type = java.util.UUID]
90
- @id = j_obj.id
91
- @id = @id.nil? ? nil : @id.to_s
92
-
93
- # conversion for created_date [type = org.joda.time.DateTime]
94
- @created_date = j_obj.created_date
95
- if !@created_date.nil?
96
- fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
97
- str = fmt.print(@created_date)
98
- @created_date = DateTime.iso8601(str)
99
- end
100
-
101
- # conversion for updated_date [type = org.joda.time.DateTime]
102
- @updated_date = j_obj.updated_date
103
- if !@updated_date.nil?
104
- fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
105
- str = fmt.print(@updated_date)
106
- @updated_date = DateTime.iso8601(str)
107
- end
108
-
109
- # conversion for payment_id [type = java.util.UUID]
110
- @payment_id = j_obj.payment_id
111
- @payment_id = @payment_id.nil? ? nil : @payment_id.to_s
112
-
113
- # conversion for is_adjusted [type = boolean]
114
- @is_adjusted = j_obj.is_adjusted
115
- if @is_adjusted.nil?
116
- @is_adjusted = false
117
- else
118
- tmp_bool = (@is_adjusted.java_kind_of? java.lang.Boolean) ? @is_adjusted.boolean_value : @is_adjusted
119
- @is_adjusted = tmp_bool ? true : false
120
- end
121
-
122
- # conversion for refund_amount [type = java.math.BigDecimal]
123
- @refund_amount = j_obj.refund_amount
124
- @refund_amount = @refund_amount.nil? ? 0 : BigDecimal.new(@refund_amount.to_s)
125
-
126
- # conversion for currency [type = org.killbill.billing.catalog.api.Currency]
127
- @currency = j_obj.currency
128
- @currency = @currency.to_s.to_sym unless @currency.nil?
129
-
130
- # conversion for effective_date [type = org.joda.time.DateTime]
131
- @effective_date = j_obj.effective_date
132
- if !@effective_date.nil?
133
- fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
134
- str = fmt.print(@effective_date)
135
- @effective_date = DateTime.iso8601(str)
136
- end
137
-
138
- # conversion for refund_status [type = org.killbill.billing.payment.api.RefundStatus]
139
- @refund_status = j_obj.refund_status
140
- @refund_status = @refund_status.to_s.to_sym unless @refund_status.nil?
141
-
142
- # conversion for refund_info_plugin [type = org.killbill.billing.payment.plugin.api.PaymentTransactionInfoPlugin]
143
- @refund_info_plugin = j_obj.refund_info_plugin
144
- @refund_info_plugin = Killbill::Plugin::Model::PaymentTransactionInfoPlugin.new.to_ruby(@refund_info_plugin) unless @refund_info_plugin.nil?
145
- self
146
- end
147
-
148
- end
149
- end
150
- end
151
- end