killbill-client 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +5 -13
  2. data/lib/killbill_client/api/api.rb +2 -2
  3. data/lib/killbill_client/api/errors.rb +1 -1
  4. data/lib/killbill_client/api/net_http_adapter.rb +21 -1
  5. data/lib/killbill_client/models/account.rb +60 -112
  6. data/lib/killbill_client/models/account_timeline.rb +1 -1
  7. data/lib/killbill_client/models/bundle.rb +35 -34
  8. data/lib/killbill_client/models/catalog.rb +34 -0
  9. data/lib/killbill_client/models/custom_field.rb +3 -11
  10. data/lib/killbill_client/models/gen/account_attributes.rb +3 -3
  11. data/lib/killbill_client/models/gen/account_email_attributes.rb +3 -3
  12. data/lib/killbill_client/models/gen/account_timeline_attributes.rb +3 -3
  13. data/lib/killbill_client/models/gen/audit_log_attributes.rb +3 -3
  14. data/lib/killbill_client/models/gen/billing_exception_attributes.rb +3 -3
  15. data/lib/killbill_client/models/gen/bundle_attributes.rb +3 -3
  16. data/lib/killbill_client/models/gen/bundle_timeline_attributes.rb +3 -3
  17. data/lib/killbill_client/models/gen/catalog_attributes_simple.rb +3 -3
  18. data/lib/killbill_client/models/gen/credit_attributes.rb +3 -3
  19. data/lib/killbill_client/models/gen/custom_field_attributes.rb +3 -3
  20. data/lib/killbill_client/models/gen/deleted_event_subscription_attributes.rb +3 -3
  21. data/lib/killbill_client/models/gen/direct_payment_attributes.rb +45 -0
  22. data/lib/killbill_client/models/gen/direct_transaction_attributes.rb +47 -0
  23. data/lib/killbill_client/models/gen/event_subscription_attributes.rb +3 -3
  24. data/lib/killbill_client/models/gen/{chargeback_attributes.rb → gateway_notification_attributes.rb} +9 -12
  25. data/lib/killbill_client/models/gen/{refund_attributes.rb → hosted_payment_page_billing_address_attributes.rb} +10 -14
  26. data/lib/killbill_client/models/gen/hosted_payment_page_customer_attributes.rb +36 -0
  27. data/lib/killbill_client/models/gen/hosted_payment_page_fields_attributes.rb +33 -0
  28. data/lib/killbill_client/models/gen/hosted_payment_page_form_descriptor_attributes.rb +37 -0
  29. data/lib/killbill_client/models/gen/invoice_attributes.rb +3 -3
  30. data/lib/killbill_client/models/gen/invoice_email_attributes.rb +3 -3
  31. data/lib/killbill_client/models/gen/invoice_item_attributes.rb +3 -3
  32. data/lib/killbill_client/models/gen/invoice_payment_attributes.rb +46 -0
  33. data/lib/killbill_client/models/gen/invoice_payment_transaction_attributes.rb +49 -0
  34. data/lib/killbill_client/models/gen/new_event_subscription_attributes.rb +3 -3
  35. data/lib/killbill_client/models/gen/notification_attributes.rb +3 -3
  36. data/lib/killbill_client/models/gen/overdue_state_attributes.rb +3 -3
  37. data/lib/killbill_client/models/gen/payment_attributes.rb +11 -16
  38. data/lib/killbill_client/models/gen/payment_method_attributes.rb +4 -3
  39. data/lib/killbill_client/models/gen/payment_method_plugin_detail_attributes.rb +3 -15
  40. data/lib/killbill_client/models/gen/payment_transaction_attributes.rb +47 -0
  41. data/lib/killbill_client/models/gen/phase_attributes.rb +3 -3
  42. data/lib/killbill_client/models/gen/plan_attributes.rb +3 -3
  43. data/lib/killbill_client/models/gen/plan_detail_attributes.rb +3 -3
  44. data/lib/killbill_client/models/gen/{payment_method_properties.rb → plugin_property_attributes.rb} +4 -4
  45. data/lib/killbill_client/models/gen/price_attributes.rb +3 -3
  46. data/lib/killbill_client/models/gen/product_attributes.rb +3 -3
  47. data/lib/killbill_client/models/gen/require_gen.rb +12 -6
  48. data/lib/killbill_client/models/gen/session_attributes.rb +3 -3
  49. data/lib/killbill_client/models/gen/stack_trace_element_attributes.rb +3 -3
  50. data/lib/killbill_client/models/gen/subject_attributes.rb +3 -3
  51. data/lib/killbill_client/models/gen/subscription_attributes.rb +3 -3
  52. data/lib/killbill_client/models/gen/tag_attributes.rb +3 -3
  53. data/lib/killbill_client/models/gen/tag_definition_attributes.rb +3 -3
  54. data/lib/killbill_client/models/gen/tenant_attributes.rb +3 -3
  55. data/lib/killbill_client/models/gen/tenant_key_attributes.rb +3 -3
  56. data/lib/killbill_client/models/gen/usage_attributes.rb +3 -3
  57. data/lib/killbill_client/models/helpers/custom_field_helper.rb +51 -0
  58. data/lib/killbill_client/models/helpers/tag_helper.rb +112 -0
  59. data/lib/killbill_client/models/invoice.rb +30 -13
  60. data/lib/killbill_client/models/invoice_item.rb +37 -5
  61. data/lib/killbill_client/models/invoice_payment.rb +67 -0
  62. data/lib/killbill_client/models/models.rb +10 -2
  63. data/lib/killbill_client/models/payment.rb +5 -32
  64. data/lib/killbill_client/models/payment_method.rb +5 -6
  65. data/lib/killbill_client/models/phase.rb +9 -0
  66. data/lib/killbill_client/models/plan.rb +9 -0
  67. data/lib/killbill_client/models/plan_detail.rb +9 -0
  68. data/lib/killbill_client/models/product.rb +9 -0
  69. data/lib/killbill_client/models/resource.rb +22 -5
  70. data/lib/killbill_client/models/subscription.rb +28 -30
  71. data/lib/killbill_client/models/tag.rb +7 -11
  72. data/lib/killbill_client/models/tag_definition.rb +27 -6
  73. data/lib/killbill_client/models/transaction.rb +104 -0
  74. data/lib/killbill_client/version.rb +1 -1
  75. data/spec/killbill_client/remote/api_spec.rb +1 -1
  76. data/spec/killbill_client/remote/model_spec.rb +38 -23
  77. data/spec/killbill_client/resource_spec.rb +18 -0
  78. data/spec/spec_helper.rb +12 -0
  79. metadata +36 -19
  80. data/lib/killbill_client/models/chargeback.rb +0 -36
  81. data/lib/killbill_client/models/refund.rb +0 -55
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -0,0 +1,45 @@
1
+ ###################################################################################
2
+ # #
3
+ # Copyright 2010-2013 Ning, Inc. #
4
+ # Copyright 2014 The Billing Project, LLC #
5
+ # #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
+ # #
10
+ # http://www.apache.org/licenses/LICENSE-2.0 #
11
+ # #
12
+ # Unless required by applicable law or agreed to in writing, software #
13
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
+ # License for the specific language governing permissions and limitations #
16
+ # under the License. #
17
+ # #
18
+ ###################################################################################
19
+
20
+
21
+ #
22
+ # DO NOT EDIT!!!
23
+ # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
24
+ #
25
+
26
+
27
+ module KillBillClient
28
+ module Model
29
+ class DirectPaymentAttributes < Resource
30
+ attribute :account_id
31
+ attribute :payment_id
32
+ attribute :payment_number
33
+ attribute :payment_external_key
34
+ attribute :auth_amount
35
+ attribute :captured_amount
36
+ attribute :purchased_amount
37
+ attribute :refunded_amount
38
+ attribute :credited_amount
39
+ attribute :currency
40
+ attribute :payment_method_id
41
+ attribute :transactions
42
+ attribute :audit_logs
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,47 @@
1
+ ###################################################################################
2
+ # #
3
+ # Copyright 2010-2013 Ning, Inc. #
4
+ # Copyright 2014 The Billing Project, LLC #
5
+ # #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
+ # #
10
+ # http://www.apache.org/licenses/LICENSE-2.0 #
11
+ # #
12
+ # Unless required by applicable law or agreed to in writing, software #
13
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
+ # License for the specific language governing permissions and limitations #
16
+ # under the License. #
17
+ # #
18
+ ###################################################################################
19
+
20
+
21
+ #
22
+ # DO NOT EDIT!!!
23
+ # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
24
+ #
25
+
26
+
27
+ module KillBillClient
28
+ module Model
29
+ class DirectTransactionAttributes < Resource
30
+ attribute :transaction_id
31
+ attribute :transaction_external_key
32
+ attribute :payment_id
33
+ attribute :payment_external_key
34
+ attribute :transaction_type
35
+ attribute :amount
36
+ attribute :currency
37
+ attribute :effective_date
38
+ attribute :status
39
+ attribute :gateway_error_code
40
+ attribute :gateway_error_msg
41
+ attribute :first_payment_reference_id
42
+ attribute :second_payment_reference_id
43
+ attribute :properties
44
+ attribute :audit_logs
45
+ end
46
+ end
47
+ end
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -26,15 +26,12 @@
26
26
 
27
27
  module KillBillClient
28
28
  module Model
29
- class ChargebackAttributes < Resource
30
- attribute :chargeback_id
31
- attribute :account_id
32
- attribute :requested_date
33
- attribute :effective_date
34
- attribute :amount
35
- attribute :payment_id
36
- attribute :currency
37
- attribute :audit_logs
29
+ class GatewayNotificationAttributes < Resource
30
+ attribute :kb_payment_id
31
+ attribute :status
32
+ attribute :entity
33
+ attribute :headers
34
+ attribute :properties
38
35
  end
39
36
  end
40
37
  end
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -26,17 +26,13 @@
26
26
 
27
27
  module KillBillClient
28
28
  module Model
29
- class RefundAttributes < Resource
30
- attribute :refund_id
31
- attribute :payment_id
32
- attribute :amount
33
- attribute :currency
34
- attribute :status
35
- attribute :adjusted
36
- attribute :requested_date
37
- attribute :effective_date
38
- attribute :adjustments
39
- attribute :audit_logs
29
+ class HostedPaymentPageBillingAddressAttributes < Resource
30
+ attribute :city
31
+ attribute :address1
32
+ attribute :address2
33
+ attribute :state
34
+ attribute :zip
35
+ attribute :country
40
36
  end
41
37
  end
42
38
  end
@@ -0,0 +1,36 @@
1
+ ###################################################################################
2
+ # #
3
+ # Copyright 2010-2013 Ning, Inc. #
4
+ # Copyright 2014 The Billing Project, LLC #
5
+ # #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
+ # #
10
+ # http://www.apache.org/licenses/LICENSE-2.0 #
11
+ # #
12
+ # Unless required by applicable law or agreed to in writing, software #
13
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
+ # License for the specific language governing permissions and limitations #
16
+ # under the License. #
17
+ # #
18
+ ###################################################################################
19
+
20
+
21
+ #
22
+ # DO NOT EDIT!!!
23
+ # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
24
+ #
25
+
26
+
27
+ module KillBillClient
28
+ module Model
29
+ class HostedPaymentPageCustomerAttributes < Resource
30
+ attribute :first_name
31
+ attribute :last_name
32
+ attribute :email
33
+ attribute :phone
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,33 @@
1
+ ###################################################################################
2
+ # #
3
+ # Copyright 2010-2013 Ning, Inc. #
4
+ # Copyright 2014 The Billing Project, LLC #
5
+ # #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
+ # #
10
+ # http://www.apache.org/licenses/LICENSE-2.0 #
11
+ # #
12
+ # Unless required by applicable law or agreed to in writing, software #
13
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
+ # License for the specific language governing permissions and limitations #
16
+ # under the License. #
17
+ # #
18
+ ###################################################################################
19
+
20
+
21
+ #
22
+ # DO NOT EDIT!!!
23
+ # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
24
+ #
25
+
26
+
27
+ module KillBillClient
28
+ module Model
29
+ class HostedPaymentPageFieldsAttributes < Resource
30
+ attribute :form_fields
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,37 @@
1
+ ###################################################################################
2
+ # #
3
+ # Copyright 2010-2013 Ning, Inc. #
4
+ # Copyright 2014 The Billing Project, LLC #
5
+ # #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
+ # #
10
+ # http://www.apache.org/licenses/LICENSE-2.0 #
11
+ # #
12
+ # Unless required by applicable law or agreed to in writing, software #
13
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
+ # License for the specific language governing permissions and limitations #
16
+ # under the License. #
17
+ # #
18
+ ###################################################################################
19
+
20
+
21
+ #
22
+ # DO NOT EDIT!!!
23
+ # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
24
+ #
25
+
26
+
27
+ module KillBillClient
28
+ module Model
29
+ class HostedPaymentPageFormDescriptorAttributes < Resource
30
+ attribute :kb_account_id
31
+ attribute :form_method
32
+ attribute :form_url
33
+ attribute :form_fields
34
+ attribute :properties
35
+ end
36
+ end
37
+ end
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -0,0 +1,46 @@
1
+ ###################################################################################
2
+ # #
3
+ # Copyright 2010-2013 Ning, Inc. #
4
+ # Copyright 2014 The Billing Project, LLC #
5
+ # #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
+ # #
10
+ # http://www.apache.org/licenses/LICENSE-2.0 #
11
+ # #
12
+ # Unless required by applicable law or agreed to in writing, software #
13
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
+ # License for the specific language governing permissions and limitations #
16
+ # under the License. #
17
+ # #
18
+ ###################################################################################
19
+
20
+
21
+ #
22
+ # DO NOT EDIT!!!
23
+ # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
24
+ #
25
+
26
+
27
+ module KillBillClient
28
+ module Model
29
+ class InvoicePaymentAttributes < Resource
30
+ attribute :target_invoice_id
31
+ attribute :account_id
32
+ attribute :payment_id
33
+ attribute :payment_number
34
+ attribute :payment_external_key
35
+ attribute :auth_amount
36
+ attribute :captured_amount
37
+ attribute :purchased_amount
38
+ attribute :refunded_amount
39
+ attribute :credited_amount
40
+ attribute :currency
41
+ attribute :payment_method_id
42
+ attribute :transactions
43
+ attribute :audit_logs
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,49 @@
1
+ ###################################################################################
2
+ # #
3
+ # Copyright 2010-2013 Ning, Inc. #
4
+ # Copyright 2014 The Billing Project, LLC #
5
+ # #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
+ # #
10
+ # http://www.apache.org/licenses/LICENSE-2.0 #
11
+ # #
12
+ # Unless required by applicable law or agreed to in writing, software #
13
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
+ # License for the specific language governing permissions and limitations #
16
+ # under the License. #
17
+ # #
18
+ ###################################################################################
19
+
20
+
21
+ #
22
+ # DO NOT EDIT!!!
23
+ # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
24
+ #
25
+
26
+
27
+ module KillBillClient
28
+ module Model
29
+ class InvoicePaymentTransactionAttributes < Resource
30
+ attribute :transaction_id
31
+ attribute :transaction_external_key
32
+ attribute :payment_id
33
+ attribute :payment_external_key
34
+ attribute :transaction_type
35
+ attribute :amount
36
+ attribute :currency
37
+ attribute :effective_date
38
+ attribute :status
39
+ attribute :gateway_error_code
40
+ attribute :gateway_error_msg
41
+ attribute :first_payment_reference_id
42
+ attribute :second_payment_reference_id
43
+ attribute :properties
44
+ attribute :is_adjusted
45
+ attribute :adjustments
46
+ attribute :audit_logs
47
+ end
48
+ end
49
+ end
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -27,23 +27,18 @@
27
27
  module KillBillClient
28
28
  module Model
29
29
  class PaymentAttributes < Resource
30
- attribute :amount
31
- attribute :paid_amount
32
30
  attribute :account_id
33
- attribute :invoice_id
34
31
  attribute :payment_id
35
32
  attribute :payment_number
36
- attribute :payment_method_id
37
- attribute :requested_date
38
- attribute :effective_date
39
- attribute :retry_count
33
+ attribute :payment_external_key
34
+ attribute :auth_amount
35
+ attribute :captured_amount
36
+ attribute :purchased_amount
37
+ attribute :refunded_amount
38
+ attribute :credited_amount
40
39
  attribute :currency
41
- attribute :status
42
- attribute :gateway_error_code
43
- attribute :gateway_error_msg
44
- attribute :external_bundle_keys
45
- attribute :refunds
46
- attribute :chargebacks
40
+ attribute :payment_method_id
41
+ attribute :transactions
47
42
  attribute :audit_logs
48
43
  end
49
44
  end
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -28,6 +28,7 @@ module KillBillClient
28
28
  module Model
29
29
  class PaymentMethodAttributes < Resource
30
30
  attribute :payment_method_id
31
+ attribute :external_key
31
32
  attribute :account_id
32
33
  attribute :is_default
33
34
  attribute :plugin_name
@@ -3,9 +3,9 @@
3
3
  # Copyright 2010-2013 Ning, Inc. #
4
4
  # Copyright 2014 The Billing Project, LLC #
5
5
  # #
6
- # Ning licenses this file to you under the Apache License, version 2.0 #
7
- # (the "License"); you may not use this file except in compliance with the #
8
- # License. You may obtain a copy of the License at: #
6
+ # The Billing Project licenses this file to you under the Apache License, #
7
+ # version 2.0 (the "License"); you may not use this file except in #
8
+ # compliance with the License. You may obtain a copy of the License at: #
9
9
  # #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0 #
11
11
  # #
@@ -29,18 +29,6 @@ module KillBillClient
29
29
  class PaymentMethodPluginDetailAttributes < Resource
30
30
  attribute :external_payment_id
31
31
  attribute :is_default_payment_method
32
- attribute :type
33
- attribute :cc_name
34
- attribute :cc_type
35
- attribute :cc_expiration_month
36
- attribute :cc_expiration_year
37
- attribute :cc_last4
38
- attribute :address1
39
- attribute :address2
40
- attribute :city
41
- attribute :state
42
- attribute :zip
43
- attribute :country
44
32
  attribute :properties
45
33
  end
46
34
  end