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
@@ -0,0 +1,111 @@
1
+ ###################################################################################
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
+
19
+
20
+ #
21
+ # DO NOT EDIT!!!
22
+ # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
23
+ #
24
+
25
+
26
+ module Killbill
27
+ module Plugin
28
+ module Model
29
+
30
+ java_package 'org.killbill.billing.catalog.api'
31
+ class Usage
32
+
33
+ include org.killbill.billing.catalog.api.Usage
34
+
35
+ attr_accessor :name, :billing_mode, :usage_type, :billing_period, :limits, :tiers, :blocks, :fixed_price, :recurring_price
36
+
37
+ def initialize()
38
+ end
39
+
40
+ def to_java()
41
+ # conversion for name [type = java.lang.String]
42
+ @name = @name.to_s unless @name.nil?
43
+
44
+ # conversion for billing_mode [type = org.killbill.billing.catalog.api.BillingMode]
45
+ @billing_mode = Java::org.killbill.billing.catalog.api.BillingMode.value_of("#{@billing_mode.to_s}") unless @billing_mode.nil?
46
+
47
+ # conversion for usage_type [type = org.killbill.billing.catalog.api.UsageType]
48
+ @usage_type = Java::org.killbill.billing.catalog.api.UsageType.value_of("#{@usage_type.to_s}") unless @usage_type.nil?
49
+
50
+ # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
51
+ @billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of("#{@billing_period.to_s}") unless @billing_period.nil?
52
+
53
+ # conversion for limits [type = org.killbill.billing.catalog.api.Limit]
54
+ @limits = @limits.to_java unless @limits.nil?
55
+
56
+ # conversion for tiers [type = org.killbill.billing.catalog.api.Tier]
57
+ @tiers = @tiers.to_java unless @tiers.nil?
58
+
59
+ # conversion for blocks [type = org.killbill.billing.catalog.api.Block]
60
+ @blocks = @blocks.to_java unless @blocks.nil?
61
+
62
+ # conversion for fixed_price [type = org.killbill.billing.catalog.api.InternationalPrice]
63
+ @fixed_price = @fixed_price.to_java unless @fixed_price.nil?
64
+
65
+ # conversion for recurring_price [type = org.killbill.billing.catalog.api.InternationalPrice]
66
+ @recurring_price = @recurring_price.to_java unless @recurring_price.nil?
67
+ self
68
+ end
69
+
70
+ def to_ruby(j_obj)
71
+ # conversion for name [type = java.lang.String]
72
+ @name = j_obj.name
73
+
74
+ # conversion for billing_mode [type = org.killbill.billing.catalog.api.BillingMode]
75
+ @billing_mode = j_obj.billing_mode
76
+ @billing_mode = @billing_mode.to_s.to_sym unless @billing_mode.nil?
77
+
78
+ # conversion for usage_type [type = org.killbill.billing.catalog.api.UsageType]
79
+ @usage_type = j_obj.usage_type
80
+ @usage_type = @usage_type.to_s.to_sym unless @usage_type.nil?
81
+
82
+ # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
83
+ @billing_period = j_obj.billing_period
84
+ @billing_period = @billing_period.to_s.to_sym unless @billing_period.nil?
85
+
86
+ # conversion for limits [type = org.killbill.billing.catalog.api.Limit]
87
+ @limits = j_obj.limits
88
+ @limits = Killbill::Plugin::Model::Limit.new.to_ruby(@limits) unless @limits.nil?
89
+
90
+ # conversion for tiers [type = org.killbill.billing.catalog.api.Tier]
91
+ @tiers = j_obj.tiers
92
+ @tiers = Killbill::Plugin::Model::Tier.new.to_ruby(@tiers) unless @tiers.nil?
93
+
94
+ # conversion for blocks [type = org.killbill.billing.catalog.api.Block]
95
+ @blocks = j_obj.blocks
96
+ @blocks = Killbill::Plugin::Model::Block.new.to_ruby(@blocks) unless @blocks.nil?
97
+
98
+ # conversion for fixed_price [type = org.killbill.billing.catalog.api.InternationalPrice]
99
+ @fixed_price = j_obj.fixed_price
100
+ @fixed_price = Killbill::Plugin::Model::InternationalPrice.new.to_ruby(@fixed_price) unless @fixed_price.nil?
101
+
102
+ # conversion for recurring_price [type = org.killbill.billing.catalog.api.InternationalPrice]
103
+ @recurring_price = j_obj.recurring_price
104
+ @recurring_price = Killbill::Plugin::Model::InternationalPrice.new.to_ruby(@recurring_price) unless @recurring_price.nil?
105
+ self
106
+ end
107
+
108
+ end
109
+ end
110
+ end
111
+ end
@@ -70,19 +70,75 @@ module Killbill
70
70
  @real_java_api.record_rolled_up_usage(subscriptionId, unitType, startTime, endTime, amount, context)
71
71
  end
72
72
 
73
- java_signature 'Java::org.killbill.billing.usage.api.RolledUpUsage getUsageForSubscription(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
74
- def get_usage_for_subscription(subscriptionId, context)
73
+ java_signature 'Java::org.killbill.billing.usage.api.RolledUpUsage getUsageForSubscription(Java::java.util.UUID, Java::java.lang.String, Java::org.joda.time.DateTime, Java::org.joda.time.DateTime, Java::org.killbill.billing.util.callcontext.TenantContext)'
74
+ def get_usage_for_subscription(subscriptionId, unitType, startTime, endTime, context)
75
75
 
76
76
  # conversion for subscriptionId [type = java.util.UUID]
77
77
  subscriptionId = java.util.UUID.fromString(subscriptionId.to_s) unless subscriptionId.nil?
78
78
 
79
+ # conversion for unitType [type = java.lang.String]
80
+ unitType = unitType.to_s unless unitType.nil?
81
+
82
+ # conversion for startTime [type = org.joda.time.DateTime]
83
+ if !startTime.nil?
84
+ startTime = (startTime.kind_of? Time) ? DateTime.parse(startTime.to_s) : startTime
85
+ startTime = Java::org.joda.time.DateTime.new(startTime.to_s, Java::org.joda.time.DateTimeZone::UTC)
86
+ end
87
+
88
+ # conversion for endTime [type = org.joda.time.DateTime]
89
+ if !endTime.nil?
90
+ endTime = (endTime.kind_of? Time) ? DateTime.parse(endTime.to_s) : endTime
91
+ endTime = Java::org.joda.time.DateTime.new(endTime.to_s, Java::org.joda.time.DateTimeZone::UTC)
92
+ end
93
+
79
94
  # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
80
95
  context = context.to_java unless context.nil?
81
- res = @real_java_api.get_usage_for_subscription(subscriptionId, context)
96
+ res = @real_java_api.get_usage_for_subscription(subscriptionId, unitType, startTime, endTime, context)
82
97
  # conversion for res [type = org.killbill.billing.usage.api.RolledUpUsage]
83
98
  res = Killbill::Plugin::Model::RolledUpUsage.new.to_ruby(res) unless res.nil?
84
99
  return res
85
100
  end
101
+
102
+ java_signature 'Java::java.util.List getAllUsageForSubscription(Java::java.util.UUID, Java::java.util.Set, Java::java.util.List, Java::org.killbill.billing.util.callcontext.TenantContext)'
103
+ def get_all_usage_for_subscription(subscriptionId, unitType, transitionTimes, context)
104
+
105
+ # conversion for subscriptionId [type = java.util.UUID]
106
+ subscriptionId = java.util.UUID.fromString(subscriptionId.to_s) unless subscriptionId.nil?
107
+
108
+ # conversion for unitType [type = java.util.Set]
109
+ tmp = java.util.TreeSet.new
110
+ (unitType || []).each do |m|
111
+ # conversion for m [type = java.lang.String]
112
+ m = m.to_s unless m.nil?
113
+ tmp.add(m)
114
+ end
115
+ unitType = tmp
116
+
117
+ # conversion for transitionTimes [type = java.util.List]
118
+ tmp = java.util.ArrayList.new
119
+ (transitionTimes || []).each do |m|
120
+ # conversion for m [type = org.joda.time.DateTime]
121
+ if !m.nil?
122
+ m = (m.kind_of? Time) ? DateTime.parse(m.to_s) : m
123
+ m = Java::org.joda.time.DateTime.new(m.to_s, Java::org.joda.time.DateTimeZone::UTC)
124
+ end
125
+ tmp.add(m)
126
+ end
127
+ transitionTimes = tmp
128
+
129
+ # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
130
+ context = context.to_java unless context.nil?
131
+ res = @real_java_api.get_all_usage_for_subscription(subscriptionId, unitType, transitionTimes, context)
132
+ # conversion for res [type = java.util.List]
133
+ tmp = []
134
+ (res || []).each do |m|
135
+ # conversion for m [type = org.killbill.billing.usage.api.RolledUpUsage]
136
+ m = Killbill::Plugin::Model::RolledUpUsage.new.to_ruby(m) unless m.nil?
137
+ tmp << m
138
+ end
139
+ res = tmp
140
+ return res
141
+ end
86
142
  end
87
143
  end
88
144
  end
@@ -0,0 +1,85 @@
1
+ ###################################################################################
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
+
19
+
20
+ #
21
+ # DO NOT EDIT!!!
22
+ # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
23
+ #
24
+
25
+
26
+ module Killbill
27
+ module Plugin
28
+ module Model
29
+
30
+ java_package 'org.killbill.billing.payment.plugin.api'
31
+ class BillingAddress
32
+
33
+ include org.killbill.billing.payment.plugin.api.BillingAddress
34
+
35
+ attr_accessor :city, :address1, :address2, :state, :zip, :country
36
+
37
+ def initialize()
38
+ end
39
+
40
+ def to_java()
41
+ # conversion for city [type = java.lang.String]
42
+ @city = @city.to_s unless @city.nil?
43
+
44
+ # conversion for address1 [type = java.lang.String]
45
+ @address1 = @address1.to_s unless @address1.nil?
46
+
47
+ # conversion for address2 [type = java.lang.String]
48
+ @address2 = @address2.to_s unless @address2.nil?
49
+
50
+ # conversion for state [type = java.lang.String]
51
+ @state = @state.to_s unless @state.nil?
52
+
53
+ # conversion for zip [type = java.lang.String]
54
+ @zip = @zip.to_s unless @zip.nil?
55
+
56
+ # conversion for country [type = java.lang.String]
57
+ @country = @country.to_s unless @country.nil?
58
+ self
59
+ end
60
+
61
+ def to_ruby(j_obj)
62
+ # conversion for city [type = java.lang.String]
63
+ @city = j_obj.city
64
+
65
+ # conversion for address1 [type = java.lang.String]
66
+ @address1 = j_obj.address1
67
+
68
+ # conversion for address2 [type = java.lang.String]
69
+ @address2 = j_obj.address2
70
+
71
+ # conversion for state [type = java.lang.String]
72
+ @state = j_obj.state
73
+
74
+ # conversion for zip [type = java.lang.String]
75
+ @zip = j_obj.zip
76
+
77
+ # conversion for country [type = java.lang.String]
78
+ @country = j_obj.country
79
+ self
80
+ end
81
+
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,73 @@
1
+ ###################################################################################
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
+
19
+
20
+ #
21
+ # DO NOT EDIT!!!
22
+ # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
23
+ #
24
+
25
+
26
+ module Killbill
27
+ module Plugin
28
+ module Model
29
+
30
+ java_package 'org.killbill.billing.payment.plugin.api'
31
+ class Customer
32
+
33
+ include org.killbill.billing.payment.plugin.api.Customer
34
+
35
+ attr_accessor :first_name, :last_name, :email, :phone
36
+
37
+ def initialize()
38
+ end
39
+
40
+ def to_java()
41
+ # conversion for first_name [type = java.lang.String]
42
+ @first_name = @first_name.to_s unless @first_name.nil?
43
+
44
+ # conversion for last_name [type = java.lang.String]
45
+ @last_name = @last_name.to_s unless @last_name.nil?
46
+
47
+ # conversion for email [type = java.lang.String]
48
+ @email = @email.to_s unless @email.nil?
49
+
50
+ # conversion for phone [type = java.lang.String]
51
+ @phone = @phone.to_s unless @phone.nil?
52
+ self
53
+ end
54
+
55
+ def to_ruby(j_obj)
56
+ # conversion for first_name [type = java.lang.String]
57
+ @first_name = j_obj.first_name
58
+
59
+ # conversion for last_name [type = java.lang.String]
60
+ @last_name = j_obj.last_name
61
+
62
+ # conversion for email [type = java.lang.String]
63
+ @email = j_obj.email
64
+
65
+ # conversion for phone [type = java.lang.String]
66
+ @phone = j_obj.phone
67
+ self
68
+ end
69
+
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,145 @@
1
+ ###################################################################################
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
+
19
+
20
+ #
21
+ # DO NOT EDIT!!!
22
+ # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
23
+ #
24
+
25
+
26
+ module Killbill
27
+ module Plugin
28
+ module Model
29
+
30
+ java_package 'org.killbill.billing.payment.plugin.api'
31
+ class HostedPaymentPageDescriptorFields
32
+
33
+ include org.killbill.billing.payment.plugin.api.HostedPaymentPageDescriptorFields
34
+
35
+ attr_accessor :amount, :order, :credential2, :credential3, :credential4, :transaction_type, :auth_code, :account_name, :notify_url, :return_url, :forward_url, :cancel_return_url, :redirect_param, :description, :tax, :shipping
36
+
37
+ def initialize()
38
+ end
39
+
40
+ def to_java()
41
+ # conversion for amount [type = java.lang.String]
42
+ @amount = @amount.to_s unless @amount.nil?
43
+
44
+ # conversion for order [type = java.lang.String]
45
+ @order = @order.to_s unless @order.nil?
46
+
47
+ # conversion for credential2 [type = java.lang.String]
48
+ @credential2 = @credential2.to_s unless @credential2.nil?
49
+
50
+ # conversion for credential3 [type = java.lang.String]
51
+ @credential3 = @credential3.to_s unless @credential3.nil?
52
+
53
+ # conversion for credential4 [type = java.lang.String]
54
+ @credential4 = @credential4.to_s unless @credential4.nil?
55
+
56
+ # conversion for transaction_type [type = java.lang.String]
57
+ @transaction_type = @transaction_type.to_s unless @transaction_type.nil?
58
+
59
+ # conversion for auth_code [type = java.lang.String]
60
+ @auth_code = @auth_code.to_s unless @auth_code.nil?
61
+
62
+ # conversion for account_name [type = java.lang.String]
63
+ @account_name = @account_name.to_s unless @account_name.nil?
64
+
65
+ # conversion for notify_url [type = java.lang.String]
66
+ @notify_url = @notify_url.to_s unless @notify_url.nil?
67
+
68
+ # conversion for return_url [type = java.lang.String]
69
+ @return_url = @return_url.to_s unless @return_url.nil?
70
+
71
+ # conversion for forward_url [type = java.lang.String]
72
+ @forward_url = @forward_url.to_s unless @forward_url.nil?
73
+
74
+ # conversion for cancel_return_url [type = java.lang.String]
75
+ @cancel_return_url = @cancel_return_url.to_s unless @cancel_return_url.nil?
76
+
77
+ # conversion for redirect_param [type = java.lang.String]
78
+ @redirect_param = @redirect_param.to_s unless @redirect_param.nil?
79
+
80
+ # conversion for description [type = java.lang.String]
81
+ @description = @description.to_s unless @description.nil?
82
+
83
+ # conversion for tax [type = java.lang.String]
84
+ @tax = @tax.to_s unless @tax.nil?
85
+
86
+ # conversion for shipping [type = java.lang.String]
87
+ @shipping = @shipping.to_s unless @shipping.nil?
88
+ self
89
+ end
90
+
91
+ def to_ruby(j_obj)
92
+ # conversion for amount [type = java.lang.String]
93
+ @amount = j_obj.amount
94
+
95
+ # conversion for order [type = java.lang.String]
96
+ @order = j_obj.order
97
+
98
+ # conversion for credential2 [type = java.lang.String]
99
+ @credential2 = j_obj.credential2
100
+
101
+ # conversion for credential3 [type = java.lang.String]
102
+ @credential3 = j_obj.credential3
103
+
104
+ # conversion for credential4 [type = java.lang.String]
105
+ @credential4 = j_obj.credential4
106
+
107
+ # conversion for transaction_type [type = java.lang.String]
108
+ @transaction_type = j_obj.transaction_type
109
+
110
+ # conversion for auth_code [type = java.lang.String]
111
+ @auth_code = j_obj.auth_code
112
+
113
+ # conversion for account_name [type = java.lang.String]
114
+ @account_name = j_obj.account_name
115
+
116
+ # conversion for notify_url [type = java.lang.String]
117
+ @notify_url = j_obj.notify_url
118
+
119
+ # conversion for return_url [type = java.lang.String]
120
+ @return_url = j_obj.return_url
121
+
122
+ # conversion for forward_url [type = java.lang.String]
123
+ @forward_url = j_obj.forward_url
124
+
125
+ # conversion for cancel_return_url [type = java.lang.String]
126
+ @cancel_return_url = j_obj.cancel_return_url
127
+
128
+ # conversion for redirect_param [type = java.lang.String]
129
+ @redirect_param = j_obj.redirect_param
130
+
131
+ # conversion for description [type = java.lang.String]
132
+ @description = j_obj.description
133
+
134
+ # conversion for tax [type = java.lang.String]
135
+ @tax = j_obj.tax
136
+
137
+ # conversion for shipping [type = java.lang.String]
138
+ @shipping = j_obj.shipping
139
+ self
140
+ end
141
+
142
+ end
143
+ end
144
+ end
145
+ end