wallee-ruby-sdk 2.2.3 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/lib/wallee-ruby-sdk.rb +63 -8
  5. data/lib/wallee-ruby-sdk/api/bank_account_service_api.rb +213 -0
  6. data/lib/wallee-ruby-sdk/api/bank_transaction_service_api.rb +213 -0
  7. data/lib/wallee-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
  8. data/lib/wallee-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
  9. data/lib/wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
  10. data/lib/wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
  11. data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
  12. data/lib/wallee-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
  13. data/lib/wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
  14. data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +62 -0
  15. data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +124 -0
  16. data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
  17. data/lib/wallee-ruby-sdk/api/subscriber_service_api.rb +3 -3
  18. data/lib/wallee-ruby-sdk/api/subscription_service_api.rb +67 -0
  19. data/lib/wallee-ruby-sdk/api/token_service_api.rb +189 -0
  20. data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +21 -32
  21. data/lib/wallee-ruby-sdk/api/web_app_service_api.rb +200 -0
  22. data/lib/wallee-ruby-sdk/api_client.rb +7 -4
  23. data/lib/wallee-ruby-sdk/configuration.rb +2 -2
  24. data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +11 -1
  25. data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +15 -15
  26. data/lib/wallee-ruby-sdk/models/{abstract_shopify_subscription_product_active.rb → abstract_shopify_subscription_product_update.rb} +2 -12
  27. data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +11 -1
  28. data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +11 -1
  29. data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +59 -1
  30. data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +24 -0
  31. data/lib/wallee-ruby-sdk/models/account.rb +31 -1
  32. data/lib/wallee-ruby-sdk/models/account_create.rb +11 -1
  33. data/lib/wallee-ruby-sdk/models/account_update.rb +11 -1
  34. data/lib/wallee-ruby-sdk/models/authenticated_card_data.rb +221 -0
  35. data/lib/wallee-ruby-sdk/models/{unencrypted_card_data.rb → authenticated_card_data_create.rb} +86 -12
  36. data/lib/wallee-ruby-sdk/models/bank_account.rb +291 -0
  37. data/lib/wallee-ruby-sdk/models/bank_account_environment.rb +35 -0
  38. data/lib/wallee-ruby-sdk/models/bank_account_state.rb +37 -0
  39. data/lib/wallee-ruby-sdk/models/bank_account_type.rb +227 -0
  40. data/lib/wallee-ruby-sdk/models/bank_transaction.rb +387 -0
  41. data/lib/wallee-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
  42. data/lib/wallee-ruby-sdk/models/bank_transaction_source.rb +215 -0
  43. data/lib/wallee-ruby-sdk/models/bank_transaction_state.rb +35 -0
  44. data/lib/wallee-ruby-sdk/models/bank_transaction_type.rb +215 -0
  45. data/lib/wallee-ruby-sdk/models/card_authentication_response.rb +38 -0
  46. data/lib/wallee-ruby-sdk/models/card_authentication_version.rb +35 -0
  47. data/lib/wallee-ruby-sdk/models/card_cryptogram.rb +201 -0
  48. data/lib/wallee-ruby-sdk/models/card_cryptogram_create.rb +211 -0
  49. data/lib/wallee-ruby-sdk/models/card_cryptogram_type.rb +34 -0
  50. data/lib/wallee-ruby-sdk/models/cardholder_authentication.rb +231 -0
  51. data/lib/wallee-ruby-sdk/models/cardholder_authentication_create.rb +241 -0
  52. data/lib/wallee-ruby-sdk/models/charge_attempt.rb +11 -1
  53. data/lib/wallee-ruby-sdk/models/charge_bank_transaction.rb +291 -0
  54. data/lib/wallee-ruby-sdk/models/currency_bank_account.rb +241 -0
  55. data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +1 -1
  56. data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +1 -1
  57. data/lib/wallee-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
  58. data/lib/wallee-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
  59. data/lib/wallee-ruby-sdk/models/payment_adjustment.rb +231 -0
  60. data/lib/wallee-ruby-sdk/models/payment_adjustment_type.rb +215 -0
  61. data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +13 -1
  62. data/lib/wallee-ruby-sdk/models/payment_contract.rb +1 -25
  63. data/lib/wallee-ruby-sdk/models/payment_link.rb +16 -40
  64. data/lib/wallee-ruby-sdk/models/payment_link_active.rb +15 -15
  65. data/lib/wallee-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
  66. data/lib/wallee-ruby-sdk/models/payment_link_create.rb +16 -44
  67. data/lib/wallee-ruby-sdk/models/payment_link_update.rb +15 -15
  68. data/lib/wallee-ruby-sdk/models/payment_terminal.rb +11 -1
  69. data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +0 -60
  70. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +11 -1
  71. data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +2 -22
  72. data/lib/wallee-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
  73. data/lib/wallee-ruby-sdk/models/permission.rb +14 -4
  74. data/lib/wallee-ruby-sdk/models/recurring_indicator.rb +37 -0
  75. data/lib/wallee-ruby-sdk/models/refund_bank_transaction.rb +281 -0
  76. data/lib/wallee-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
  77. data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +26 -6
  78. data/lib/wallee-ruby-sdk/models/role.rb +1 -1
  79. data/lib/wallee-ruby-sdk/models/role_state.rb +37 -0
  80. data/lib/wallee-ruby-sdk/models/sales_channel.rb +34 -4
  81. data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
  82. data/lib/wallee-ruby-sdk/models/shopify_integration.rb +73 -31
  83. data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
  84. data/lib/wallee-ruby-sdk/models/{shopify_integration_app_version.rb → shopify_integration_subscription_app_version.rb} +3 -3
  85. data/lib/wallee-ruby-sdk/models/shopify_subscriber.rb +1 -1
  86. data/lib/wallee-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
  87. data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
  88. data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +61 -7
  89. data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +0 -60
  90. data/lib/wallee-ruby-sdk/models/{payment_terminal_contact_address.rb → shopify_subscription_address_create.rb} +152 -2
  91. data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +363 -0
  92. data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +271 -0
  93. data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_item.rb → shopify_subscription_model_item.rb} +2 -2
  94. data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_tax_line.rb → shopify_subscription_model_tax_line.rb} +1 -1
  95. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +9 -14
  96. data/lib/wallee-ruby-sdk/models/{shopify_subscription_product_active.rb → shopify_subscription_product_update.rb} +2 -12
  97. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
  98. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +11 -81
  99. data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +11 -1
  100. data/lib/wallee-ruby-sdk/models/space.rb +31 -1
  101. data/lib/wallee-ruby-sdk/models/space_create.rb +11 -1
  102. data/lib/wallee-ruby-sdk/models/space_update.rb +11 -1
  103. data/lib/wallee-ruby-sdk/models/subscriber.rb +1 -1
  104. data/lib/wallee-ruby-sdk/models/subscriber_create.rb +1 -1
  105. data/lib/wallee-ruby-sdk/models/subscription.rb +11 -1
  106. data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +1 -25
  107. data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +1 -29
  108. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +1 -25
  109. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +1 -25
  110. data/lib/wallee-ruby-sdk/models/subscription_charge.rb +49 -1
  111. data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +49 -1
  112. data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +1 -1
  113. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +12 -2
  114. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +1 -1
  115. data/lib/wallee-ruby-sdk/models/subscription_product.rb +11 -1
  116. data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +11 -1
  117. data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +1 -1
  118. data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +1 -1
  119. data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +11 -1
  120. data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +11 -1
  121. data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +14 -4
  122. data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
  123. data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
  124. data/lib/wallee-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
  125. data/lib/wallee-ruby-sdk/models/terminal_receipt_format.rb +35 -0
  126. data/lib/wallee-ruby-sdk/models/token.rb +1 -25
  127. data/lib/wallee-ruby-sdk/models/token_create.rb +1 -29
  128. data/lib/wallee-ruby-sdk/models/tokenized_card_data.rb +211 -0
  129. data/lib/wallee-ruby-sdk/models/{unencrypted_card_data_create.rb → tokenized_card_data_create.rb} +60 -5
  130. data/lib/wallee-ruby-sdk/models/transaction.rb +132 -4
  131. data/lib/wallee-ruby-sdk/models/transaction_completion.rb +26 -1
  132. data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
  133. data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +26 -1
  134. data/lib/wallee-ruby-sdk/models/transaction_create.rb +59 -1
  135. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +59 -1
  136. data/lib/wallee-ruby-sdk/models/web_app_confirmation_request.rb +206 -0
  137. data/lib/wallee-ruby-sdk/models/web_app_confirmation_response.rb +231 -0
  138. data/lib/wallee-ruby-sdk/models/webhook_url.rb +35 -1
  139. data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +24 -0
  140. data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +24 -0
  141. data/lib/wallee-ruby-sdk/version.rb +1 -1
  142. data/test/condition_type_service_test.rb +22 -0
  143. data/wallee-ruby-sdk.gemspec +3 -2
  144. metadata +93 -17
@@ -20,17 +20,25 @@ require 'date'
20
20
  module Wallee
21
21
  #
22
22
  class RenderedTerminalReceipt
23
- #
23
+ # The data property contains the binary data of the receipt document encoded as base 64 encoded string.
24
24
  attr_accessor :data
25
25
 
26
- #
26
+ # The mime type indicates the format of the receipt document. The mime type depends on the requested receipt format.
27
27
  attr_accessor :mime_type
28
28
 
29
+ # The terminal might or might not print the receipt. This property is set to true when the configuration of the terminal forces the printing and the device supports the receipt printing.
30
+ attr_accessor :printed
31
+
32
+ # Each receipt has a different usage. The receipt type indicates for what resp. for whom the document is for.
33
+ attr_accessor :receipt_type
34
+
29
35
  # Attribute mapping from ruby-style variable name to JSON key.
30
36
  def self.attribute_map
31
37
  {
32
38
  :'data' => :'data',
33
- :'mime_type' => :'mimeType'
39
+ :'mime_type' => :'mimeType',
40
+ :'printed' => :'printed',
41
+ :'receipt_type' => :'receiptType'
34
42
  }
35
43
  end
36
44
 
@@ -38,7 +46,9 @@ module Wallee
38
46
  def self.swagger_types
39
47
  {
40
48
  :'data' => :'Array<String>',
41
- :'mime_type' => :'String'
49
+ :'mime_type' => :'String',
50
+ :'printed' => :'BOOLEAN',
51
+ :'receipt_type' => :'PaymentTerminalReceiptType'
42
52
  }
43
53
  end
44
54
 
@@ -59,6 +69,14 @@ module Wallee
59
69
  if attributes.has_key?(:'mimeType')
60
70
  self.mime_type = attributes[:'mimeType']
61
71
  end
72
+
73
+ if attributes.has_key?(:'printed')
74
+ self.printed = attributes[:'printed']
75
+ end
76
+
77
+ if attributes.has_key?(:'receiptType')
78
+ self.receipt_type = attributes[:'receiptType']
79
+ end
62
80
  end
63
81
 
64
82
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -80,7 +98,9 @@ module Wallee
80
98
  return true if self.equal?(o)
81
99
  self.class == o.class &&
82
100
  data == o.data &&
83
- mime_type == o.mime_type
101
+ mime_type == o.mime_type &&
102
+ printed == o.printed &&
103
+ receipt_type == o.receipt_type
84
104
  end
85
105
 
86
106
  # @see the `==` method
@@ -92,7 +112,7 @@ module Wallee
92
112
  # Calculates hash code according to all attributes.
93
113
  # @return [Fixnum] Hash code
94
114
  def hash
95
- [data, mime_type].hash
115
+ [data, mime_type, printed, receipt_type].hash
96
116
  end
97
117
 
98
118
  # Builds the object from hash
@@ -66,7 +66,7 @@ module Wallee
66
66
  :'name' => :'DatabaseTranslatedString',
67
67
  :'permissions' => :'Array<Permission>',
68
68
  :'planned_purge_date' => :'DateTime',
69
- :'state' => :'CreationEntityState',
69
+ :'state' => :'RoleState',
70
70
  :'two_factor_required' => :'BOOLEAN',
71
71
  :'version' => :'Integer'
72
72
  }
@@ -0,0 +1,37 @@
1
+ =begin
2
+ The wallee API allows an easy interaction with the wallee web service.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ =end
17
+
18
+ require 'date'
19
+
20
+ module Wallee
21
+ class RoleState
22
+
23
+ CREATE = 'CREATE'.freeze
24
+ ACTIVE = 'ACTIVE'.freeze
25
+ DELETING = 'DELETING'.freeze
26
+ DELETED = 'DELETED'.freeze
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def build_from_hash(value)
32
+ constantValues = RoleState.constants.select { |c| RoleState::const_get(c) == value }
33
+ raise "Invalid ENUM value #{value} for class #RoleState" if constantValues.empty?
34
+ value
35
+ end
36
+ end
37
+ end
@@ -23,18 +23,30 @@ module Wallee
23
23
  #
24
24
  attr_accessor :description
25
25
 
26
+ #
27
+ attr_accessor :icon
28
+
26
29
  # The ID is the primary key of the entity. The ID identifies the entity uniquely.
27
30
  attr_accessor :id
28
31
 
29
32
  #
30
33
  attr_accessor :name
31
34
 
35
+ #
36
+ attr_accessor :parent
37
+
38
+ #
39
+ attr_accessor :sort_order
40
+
32
41
  # Attribute mapping from ruby-style variable name to JSON key.
33
42
  def self.attribute_map
34
43
  {
35
44
  :'description' => :'description',
45
+ :'icon' => :'icon',
36
46
  :'id' => :'id',
37
- :'name' => :'name'
47
+ :'name' => :'name',
48
+ :'parent' => :'parent',
49
+ :'sort_order' => :'sortOrder'
38
50
  }
39
51
  end
40
52
 
@@ -42,8 +54,11 @@ module Wallee
42
54
  def self.swagger_types
43
55
  {
44
56
  :'description' => :'Hash<String, String>',
57
+ :'icon' => :'String',
45
58
  :'id' => :'Integer',
46
- :'name' => :'Hash<String, String>'
59
+ :'name' => :'Hash<String, String>',
60
+ :'parent' => :'SalesChannel',
61
+ :'sort_order' => :'Integer'
47
62
  }
48
63
  end
49
64
 
@@ -61,6 +76,10 @@ module Wallee
61
76
  end
62
77
  end
63
78
 
79
+ if attributes.has_key?(:'icon')
80
+ self.icon = attributes[:'icon']
81
+ end
82
+
64
83
  if attributes.has_key?(:'id')
65
84
  self.id = attributes[:'id']
66
85
  end
@@ -70,6 +89,14 @@ module Wallee
70
89
  self.name = value
71
90
  end
72
91
  end
92
+
93
+ if attributes.has_key?(:'parent')
94
+ self.parent = attributes[:'parent']
95
+ end
96
+
97
+ if attributes.has_key?(:'sortOrder')
98
+ self.sort_order = attributes[:'sortOrder']
99
+ end
73
100
  end
74
101
 
75
102
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,8 +118,11 @@ module Wallee
91
118
  return true if self.equal?(o)
92
119
  self.class == o.class &&
93
120
  description == o.description &&
121
+ icon == o.icon &&
94
122
  id == o.id &&
95
- name == o.name
123
+ name == o.name &&
124
+ parent == o.parent &&
125
+ sort_order == o.sort_order
96
126
  end
97
127
 
98
128
  # @see the `==` method
@@ -104,7 +134,7 @@ module Wallee
104
134
  # Calculates hash code according to all attributes.
105
135
  # @return [Fixnum] Hash code
106
136
  def hash
107
- [description, id, name].hash
137
+ [description, icon, id, name, parent, sort_order].hash
108
138
  end
109
139
 
110
140
  # Builds the object from hash
@@ -0,0 +1,35 @@
1
+ =begin
2
+ The wallee API allows an easy interaction with the wallee web service.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ =end
17
+
18
+ require 'date'
19
+
20
+ module Wallee
21
+ class ShopifyAdditionalLineItemData
22
+
23
+ VENDOR = 'VENDOR'.freeze
24
+ WEIGHT = 'WEIGHT'.freeze
25
+
26
+ # Builds the enum from string
27
+ # @param [String] The enum value in the form of the string
28
+ # @return [String] The enum value
29
+ def build_from_hash(value)
30
+ constantValues = ShopifyAdditionalLineItemData.constants.select { |c| ShopifyAdditionalLineItemData::const_get(c) == value }
31
+ raise "Invalid ENUM value #{value} for class #ShopifyAdditionalLineItemData" if constantValues.empty?
32
+ value
33
+ end
34
+ end
35
+ end
@@ -21,13 +21,13 @@ module Wallee
21
21
  # A Shopify Integration allows to connect a Shopify shop.
22
22
  class ShopifyIntegration
23
23
  #
24
- attr_accessor :allow_invoice_download
24
+ attr_accessor :additional_line_item_data
25
25
 
26
26
  #
27
- attr_accessor :allowed_payment_method_configurations
27
+ attr_accessor :allow_invoice_download
28
28
 
29
29
  #
30
- attr_accessor :app_version
30
+ attr_accessor :allowed_payment_method_configurations
31
31
 
32
32
  #
33
33
  attr_accessor :currency
@@ -35,9 +35,6 @@ module Wallee
35
35
  # The ID is the primary key of the entity. The ID identifies the entity uniquely.
36
36
  attr_accessor :id
37
37
 
38
- #
39
- attr_accessor :installed
40
-
41
38
  # Enabling the integrated payment form will embed the payment form in the Shopify shop. The app needs to be installed for this to be possible.
42
39
  attr_accessor :integrated_payment_form_enabled
43
40
 
@@ -50,11 +47,17 @@ module Wallee
50
47
  # The integration name is used internally to identify a specific integration.For example the name is used withinsearch fields and hence it should be distinct and descriptive.
51
48
  attr_accessor :name
52
49
 
53
- # The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
54
- attr_accessor :planned_purge_date
50
+ #
51
+ attr_accessor :payment_app_version
52
+
53
+ #
54
+ attr_accessor :payment_installed
55
55
 
56
56
  # Define the path of the proxy URL. This only needs to be changed if the apps proxy URL is overwritten in the Shopify store.
57
- attr_accessor :proxy_path
57
+ attr_accessor :payment_proxy_path
58
+
59
+ # The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
60
+ attr_accessor :planned_purge_date
58
61
 
59
62
  #
60
63
  attr_accessor :replace_payment_method_image
@@ -77,24 +80,34 @@ module Wallee
77
80
  #
78
81
  attr_accessor :state
79
82
 
83
+ #
84
+ attr_accessor :subscription_app_version
85
+
86
+ #
87
+ attr_accessor :subscription_installed
88
+
89
+ # Define the path of the proxy URL. This only needs to be changed if the apps proxy URL is overwritten in the Shopify store.
90
+ attr_accessor :subscription_proxy_path
91
+
80
92
  # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
81
93
  attr_accessor :version
82
94
 
83
95
  # Attribute mapping from ruby-style variable name to JSON key.
84
96
  def self.attribute_map
85
97
  {
98
+ :'additional_line_item_data' => :'additionalLineItemData',
86
99
  :'allow_invoice_download' => :'allowInvoiceDownload',
87
100
  :'allowed_payment_method_configurations' => :'allowedPaymentMethodConfigurations',
88
- :'app_version' => :'appVersion',
89
101
  :'currency' => :'currency',
90
102
  :'id' => :'id',
91
- :'installed' => :'installed',
92
103
  :'integrated_payment_form_enabled' => :'integratedPaymentFormEnabled',
93
104
  :'language' => :'language',
94
105
  :'login_name' => :'loginName',
95
106
  :'name' => :'name',
107
+ :'payment_app_version' => :'paymentAppVersion',
108
+ :'payment_installed' => :'paymentInstalled',
109
+ :'payment_proxy_path' => :'paymentProxyPath',
96
110
  :'planned_purge_date' => :'plannedPurgeDate',
97
- :'proxy_path' => :'proxyPath',
98
111
  :'replace_payment_method_image' => :'replacePaymentMethodImage',
99
112
  :'shop_name' => :'shopName',
100
113
  :'show_payment_information' => :'showPaymentInformation',
@@ -102,6 +115,9 @@ module Wallee
102
115
  :'space_id' => :'spaceId',
103
116
  :'space_view_id' => :'spaceViewId',
104
117
  :'state' => :'state',
118
+ :'subscription_app_version' => :'subscriptionAppVersion',
119
+ :'subscription_installed' => :'subscriptionInstalled',
120
+ :'subscription_proxy_path' => :'subscriptionProxyPath',
105
121
  :'version' => :'version'
106
122
  }
107
123
  end
@@ -109,18 +125,19 @@ module Wallee
109
125
  # Attribute type mapping.
110
126
  def self.swagger_types
111
127
  {
128
+ :'additional_line_item_data' => :'Array<ShopifyAdditionalLineItemData>',
112
129
  :'allow_invoice_download' => :'BOOLEAN',
113
130
  :'allowed_payment_method_configurations' => :'Array<PaymentMethodConfiguration>',
114
- :'app_version' => :'ShopifyIntegrationAppVersion',
115
131
  :'currency' => :'String',
116
132
  :'id' => :'Integer',
117
- :'installed' => :'BOOLEAN',
118
133
  :'integrated_payment_form_enabled' => :'BOOLEAN',
119
134
  :'language' => :'String',
120
135
  :'login_name' => :'String',
121
136
  :'name' => :'String',
137
+ :'payment_app_version' => :'ShopifyIntegrationPaymentAppVersion',
138
+ :'payment_installed' => :'BOOLEAN',
139
+ :'payment_proxy_path' => :'String',
122
140
  :'planned_purge_date' => :'DateTime',
123
- :'proxy_path' => :'String',
124
141
  :'replace_payment_method_image' => :'BOOLEAN',
125
142
  :'shop_name' => :'String',
126
143
  :'show_payment_information' => :'BOOLEAN',
@@ -128,6 +145,9 @@ module Wallee
128
145
  :'space_id' => :'Integer',
129
146
  :'space_view_id' => :'Integer',
130
147
  :'state' => :'CreationEntityState',
148
+ :'subscription_app_version' => :'ShopifyIntegrationSubscriptionAppVersion',
149
+ :'subscription_installed' => :'BOOLEAN',
150
+ :'subscription_proxy_path' => :'String',
131
151
  :'version' => :'Integer'
132
152
  }
133
153
  end
@@ -140,6 +160,12 @@ module Wallee
140
160
  # convert string to symbol for hash key
141
161
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
142
162
 
163
+ if attributes.has_key?(:'additionalLineItemData')
164
+ if (value = attributes[:'additionalLineItemData']).is_a?(Array)
165
+ self.additional_line_item_data = value
166
+ end
167
+ end
168
+
143
169
  if attributes.has_key?(:'allowInvoiceDownload')
144
170
  self.allow_invoice_download = attributes[:'allowInvoiceDownload']
145
171
  end
@@ -150,10 +176,6 @@ module Wallee
150
176
  end
151
177
  end
152
178
 
153
- if attributes.has_key?(:'appVersion')
154
- self.app_version = attributes[:'appVersion']
155
- end
156
-
157
179
  if attributes.has_key?(:'currency')
158
180
  self.currency = attributes[:'currency']
159
181
  end
@@ -162,10 +184,6 @@ module Wallee
162
184
  self.id = attributes[:'id']
163
185
  end
164
186
 
165
- if attributes.has_key?(:'installed')
166
- self.installed = attributes[:'installed']
167
- end
168
-
169
187
  if attributes.has_key?(:'integratedPaymentFormEnabled')
170
188
  self.integrated_payment_form_enabled = attributes[:'integratedPaymentFormEnabled']
171
189
  end
@@ -182,12 +200,20 @@ module Wallee
182
200
  self.name = attributes[:'name']
183
201
  end
184
202
 
185
- if attributes.has_key?(:'plannedPurgeDate')
186
- self.planned_purge_date = attributes[:'plannedPurgeDate']
203
+ if attributes.has_key?(:'paymentAppVersion')
204
+ self.payment_app_version = attributes[:'paymentAppVersion']
205
+ end
206
+
207
+ if attributes.has_key?(:'paymentInstalled')
208
+ self.payment_installed = attributes[:'paymentInstalled']
187
209
  end
188
210
 
189
- if attributes.has_key?(:'proxyPath')
190
- self.proxy_path = attributes[:'proxyPath']
211
+ if attributes.has_key?(:'paymentProxyPath')
212
+ self.payment_proxy_path = attributes[:'paymentProxyPath']
213
+ end
214
+
215
+ if attributes.has_key?(:'plannedPurgeDate')
216
+ self.planned_purge_date = attributes[:'plannedPurgeDate']
191
217
  end
192
218
 
193
219
  if attributes.has_key?(:'replacePaymentMethodImage')
@@ -218,6 +244,18 @@ module Wallee
218
244
  self.state = attributes[:'state']
219
245
  end
220
246
 
247
+ if attributes.has_key?(:'subscriptionAppVersion')
248
+ self.subscription_app_version = attributes[:'subscriptionAppVersion']
249
+ end
250
+
251
+ if attributes.has_key?(:'subscriptionInstalled')
252
+ self.subscription_installed = attributes[:'subscriptionInstalled']
253
+ end
254
+
255
+ if attributes.has_key?(:'subscriptionProxyPath')
256
+ self.subscription_proxy_path = attributes[:'subscriptionProxyPath']
257
+ end
258
+
221
259
  if attributes.has_key?(:'version')
222
260
  self.version = attributes[:'version']
223
261
  end
@@ -286,18 +324,19 @@ module Wallee
286
324
  def ==(o)
287
325
  return true if self.equal?(o)
288
326
  self.class == o.class &&
327
+ additional_line_item_data == o.additional_line_item_data &&
289
328
  allow_invoice_download == o.allow_invoice_download &&
290
329
  allowed_payment_method_configurations == o.allowed_payment_method_configurations &&
291
- app_version == o.app_version &&
292
330
  currency == o.currency &&
293
331
  id == o.id &&
294
- installed == o.installed &&
295
332
  integrated_payment_form_enabled == o.integrated_payment_form_enabled &&
296
333
  language == o.language &&
297
334
  login_name == o.login_name &&
298
335
  name == o.name &&
336
+ payment_app_version == o.payment_app_version &&
337
+ payment_installed == o.payment_installed &&
338
+ payment_proxy_path == o.payment_proxy_path &&
299
339
  planned_purge_date == o.planned_purge_date &&
300
- proxy_path == o.proxy_path &&
301
340
  replace_payment_method_image == o.replace_payment_method_image &&
302
341
  shop_name == o.shop_name &&
303
342
  show_payment_information == o.show_payment_information &&
@@ -305,6 +344,9 @@ module Wallee
305
344
  space_id == o.space_id &&
306
345
  space_view_id == o.space_view_id &&
307
346
  state == o.state &&
347
+ subscription_app_version == o.subscription_app_version &&
348
+ subscription_installed == o.subscription_installed &&
349
+ subscription_proxy_path == o.subscription_proxy_path &&
308
350
  version == o.version
309
351
  end
310
352
 
@@ -317,7 +359,7 @@ module Wallee
317
359
  # Calculates hash code according to all attributes.
318
360
  # @return [Fixnum] Hash code
319
361
  def hash
320
- [allow_invoice_download, allowed_payment_method_configurations, app_version, currency, id, installed, integrated_payment_form_enabled, language, login_name, name, planned_purge_date, proxy_path, replace_payment_method_image, shop_name, show_payment_information, show_subscription_information, space_id, space_view_id, state, version].hash
362
+ [additional_line_item_data, allow_invoice_download, allowed_payment_method_configurations, currency, id, integrated_payment_form_enabled, language, login_name, name, payment_app_version, payment_installed, payment_proxy_path, planned_purge_date, replace_payment_method_image, shop_name, show_payment_information, show_subscription_information, space_id, space_view_id, state, subscription_app_version, subscription_installed, subscription_proxy_path, version].hash
321
363
  end
322
364
 
323
365
  # Builds the object from hash