transferzero-sdk 1.7.0 → 1.8.0

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 (130) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -7
  3. data/docs/AccountMeta.md +1 -1
  4. data/docs/Currency.md +1 -1
  5. data/docs/CurrencyExchange.md +1 -1
  6. data/docs/CurrencyOpposite.md +1 -1
  7. data/docs/Document.md +3 -3
  8. data/docs/DocumentsApi.md +74 -2
  9. data/docs/FieldSelectValidation.md +1 -1
  10. data/docs/FieldValidation.md +1 -1
  11. data/docs/PayinMethodDetails.md +1 -3
  12. data/docs/PayinMethodDetailsMobile.md +1 -1
  13. data/docs/PaymentMethod.md +2 -2
  14. data/docs/PaymentMethodOpposite.md +2 -2
  15. data/docs/PayoutMethodDetails.md +1 -7
  16. data/docs/PayoutMethodDetailsIBAN.md +1 -1
  17. data/docs/Recipient.md +4 -4
  18. data/docs/RecipientsApi.md +1 -1
  19. data/docs/Sender.md +33 -63
  20. data/lib/transferzero-sdk.rb +0 -3
  21. data/lib/transferzero-sdk/api/documents_api.rb +63 -0
  22. data/lib/transferzero-sdk/api/recipients_api.rb +2 -2
  23. data/lib/transferzero-sdk/api_client.rb +3 -5
  24. data/lib/transferzero-sdk/models/account.rb +69 -70
  25. data/lib/transferzero-sdk/models/account_list_response.rb +66 -67
  26. data/lib/transferzero-sdk/models/account_meta.rb +60 -61
  27. data/lib/transferzero-sdk/models/account_response.rb +65 -66
  28. data/lib/transferzero-sdk/models/account_validation_error.rb +60 -61
  29. data/lib/transferzero-sdk/models/account_validation_request.rb +163 -164
  30. data/lib/transferzero-sdk/models/account_validation_response.rb +65 -66
  31. data/lib/transferzero-sdk/models/account_validation_result.rb +60 -61
  32. data/lib/transferzero-sdk/models/api_log.rb +135 -136
  33. data/lib/transferzero-sdk/models/api_log_list_response.rb +69 -70
  34. data/lib/transferzero-sdk/models/api_log_response.rb +59 -60
  35. data/lib/transferzero-sdk/models/currency.rb +141 -142
  36. data/lib/transferzero-sdk/models/currency_exchange.rb +157 -158
  37. data/lib/transferzero-sdk/models/currency_exchange_list_response.rb +61 -62
  38. data/lib/transferzero-sdk/models/currency_list_response.rb +61 -62
  39. data/lib/transferzero-sdk/models/currency_opposite.rb +165 -166
  40. data/lib/transferzero-sdk/models/debit.rb +150 -151
  41. data/lib/transferzero-sdk/models/debit_list_request.rb +60 -61
  42. data/lib/transferzero-sdk/models/debit_list_response.rb +66 -67
  43. data/lib/transferzero-sdk/models/debit_request.rb +59 -60
  44. data/lib/transferzero-sdk/models/debit_request_wrapper.rb +79 -80
  45. data/lib/transferzero-sdk/models/debit_response.rb +59 -60
  46. data/lib/transferzero-sdk/models/document.rb +177 -179
  47. data/lib/transferzero-sdk/models/document_list_response.rb +66 -67
  48. data/lib/transferzero-sdk/models/document_request.rb +59 -60
  49. data/lib/transferzero-sdk/models/document_response.rb +59 -60
  50. data/lib/transferzero-sdk/models/document_webhook.rb +95 -96
  51. data/lib/transferzero-sdk/models/error_status.rb +65 -66
  52. data/lib/transferzero-sdk/models/field_description.rb +94 -95
  53. data/lib/transferzero-sdk/models/field_select_validation.rb +69 -70
  54. data/lib/transferzero-sdk/models/field_validation.rb +77 -78
  55. data/lib/transferzero-sdk/models/pagination.rb +96 -97
  56. data/lib/transferzero-sdk/models/pagination_meta.rb +59 -60
  57. data/lib/transferzero-sdk/models/payin_method.rb +96 -97
  58. data/lib/transferzero-sdk/models/payin_method_details.rb +110 -122
  59. data/lib/transferzero-sdk/models/payin_method_details_mobile.rb +74 -75
  60. data/lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb +70 -71
  61. data/lib/transferzero-sdk/models/payin_method_request.rb +59 -60
  62. data/lib/transferzero-sdk/models/payment_method.rb +108 -109
  63. data/lib/transferzero-sdk/models/payment_method_list_response.rb +60 -61
  64. data/lib/transferzero-sdk/models/payment_method_opposite.rb +123 -124
  65. data/lib/transferzero-sdk/models/payout_method.rb +106 -107
  66. data/lib/transferzero-sdk/models/payout_method_bank_account_type_enum.rb +19 -14
  67. data/lib/transferzero-sdk/models/payout_method_details.rb +297 -337
  68. data/lib/transferzero-sdk/models/payout_method_details_balance.rb +60 -61
  69. data/lib/transferzero-sdk/models/payout_method_details_ghs_bank.rb +96 -97
  70. data/lib/transferzero-sdk/models/payout_method_details_iban.rb +104 -100
  71. data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +161 -162
  72. data/lib/transferzero-sdk/models/payout_method_details_mobile.rb +85 -86
  73. data/lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb +103 -104
  74. data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +107 -108
  75. data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +96 -97
  76. data/lib/transferzero-sdk/models/payout_method_gender_enum.rb +19 -14
  77. data/lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb +20 -15
  78. data/lib/transferzero-sdk/models/payout_method_list_response.rb +66 -67
  79. data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +19 -14
  80. data/lib/transferzero-sdk/models/payout_method_request.rb +59 -60
  81. data/lib/transferzero-sdk/models/payout_method_response.rb +59 -60
  82. data/lib/transferzero-sdk/models/payout_method_webhook.rb +95 -96
  83. data/lib/transferzero-sdk/models/politically_exposed_person.rb +123 -123
  84. data/lib/transferzero-sdk/models/recipient.rb +229 -230
  85. data/lib/transferzero-sdk/models/recipient_list_response.rb +66 -67
  86. data/lib/transferzero-sdk/models/recipient_request.rb +59 -60
  87. data/lib/transferzero-sdk/models/recipient_response.rb +59 -60
  88. data/lib/transferzero-sdk/models/recipient_state.rb +27 -22
  89. data/lib/transferzero-sdk/models/recipient_webhook.rb +95 -96
  90. data/lib/transferzero-sdk/models/sender.rb +358 -521
  91. data/lib/transferzero-sdk/models/sender_list_response.rb +66 -67
  92. data/lib/transferzero-sdk/models/sender_request.rb +59 -60
  93. data/lib/transferzero-sdk/models/sender_response.rb +65 -66
  94. data/lib/transferzero-sdk/models/sender_response_existing.rb +59 -60
  95. data/lib/transferzero-sdk/models/sender_response_meta.rb +59 -60
  96. data/lib/transferzero-sdk/models/sender_state.rb +24 -19
  97. data/lib/transferzero-sdk/models/sender_webhook.rb +95 -96
  98. data/lib/transferzero-sdk/models/transaction.rb +191 -192
  99. data/lib/transferzero-sdk/models/transaction_list_response.rb +66 -67
  100. data/lib/transferzero-sdk/models/transaction_request.rb +59 -60
  101. data/lib/transferzero-sdk/models/transaction_response.rb +65 -66
  102. data/lib/transferzero-sdk/models/transaction_response_existing.rb +65 -66
  103. data/lib/transferzero-sdk/models/transaction_response_meta.rb +59 -60
  104. data/lib/transferzero-sdk/models/transaction_state.rb +28 -23
  105. data/lib/transferzero-sdk/models/transaction_traits.rb +70 -71
  106. data/lib/transferzero-sdk/models/transaction_webhook.rb +95 -96
  107. data/lib/transferzero-sdk/models/validation_error_description.rb +61 -62
  108. data/lib/transferzero-sdk/models/webhook.rb +91 -92
  109. data/lib/transferzero-sdk/models/webhook_definition.rb +106 -107
  110. data/lib/transferzero-sdk/models/webhook_definition_event_list_response.rb +60 -61
  111. data/lib/transferzero-sdk/models/webhook_definition_list_response.rb +66 -67
  112. data/lib/transferzero-sdk/models/webhook_definition_request.rb +59 -60
  113. data/lib/transferzero-sdk/models/webhook_definition_response.rb +59 -60
  114. data/lib/transferzero-sdk/models/webhook_log.rb +96 -97
  115. data/lib/transferzero-sdk/models/webhook_log_list_response.rb +69 -70
  116. data/lib/transferzero-sdk/models/webhook_log_metadata.rb +128 -129
  117. data/lib/transferzero-sdk/models/webhook_log_metadata_request.rb +79 -80
  118. data/lib/transferzero-sdk/models/webhook_log_metadata_response.rb +80 -81
  119. data/lib/transferzero-sdk/models/webhook_log_response.rb +59 -60
  120. data/lib/transferzero-sdk/version.rb +1 -1
  121. metadata +3 -15
  122. data/docs/PayinMethodDetailsBTC.md +0 -17
  123. data/docs/PayoutMethodDetailsBTC.md +0 -23
  124. data/docs/PayoutMethodDetailsGBPBank.md +0 -29
  125. data/lib/transferzero-sdk/models/payin_method_details_btc.rb +0 -204
  126. data/lib/transferzero-sdk/models/payout_method_details_btc.rb +0 -250
  127. data/lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb +0 -267
  128. data/spec/models/payin_method_details_btc_spec.rb +0 -41
  129. data/spec/models/payout_method_details_btc_spec.rb +0 -59
  130. data/spec/models/payout_method_details_gbp_bank_spec.rb +0 -77
@@ -13,123 +13,123 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- class WebhookLog
17
- # ID of the webhook log
18
- attr_accessor :id
16
+ class WebhookLog
17
+ # ID of the webhook log
18
+ attr_accessor :id
19
19
 
20
- # Message detailing webhook event
21
- attr_accessor :message
20
+ # Message detailing webhook event
21
+ attr_accessor :message
22
22
 
23
- attr_accessor :metadata
23
+ attr_accessor :metadata
24
24
 
25
- # Date and time of response
26
- attr_accessor :created_at
25
+ # Date and time of response
26
+ attr_accessor :created_at
27
27
 
28
- attr_accessor :parent_id
28
+ attr_accessor :parent_id
29
29
 
30
- attr_accessor :parent_type
30
+ attr_accessor :parent_type
31
31
 
32
- # Attribute mapping from ruby-style variable name to JSON key.
33
- def self.attribute_map
34
- {
35
- :'id' => :'id',
36
- :'message' => :'message',
37
- :'metadata' => :'metadata',
38
- :'created_at' => :'created_at',
39
- :'parent_id' => :'parent_id',
40
- :'parent_type' => :'parent_type'
41
- }
42
- end
43
-
44
- # Attribute type mapping.
45
- def self.openapi_types
46
- {
47
- :'id' => :'String',
48
- :'message' => :'String',
49
- :'metadata' => :'WebhookLogMetadata',
50
- :'created_at' => :'String',
51
- :'parent_id' => :'String',
52
- :'parent_type' => :'String'
53
- }
54
- end
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'id' => :'id',
36
+ :'message' => :'message',
37
+ :'metadata' => :'metadata',
38
+ :'created_at' => :'created_at',
39
+ :'parent_id' => :'parent_id',
40
+ :'parent_type' => :'parent_type'
41
+ }
42
+ end
55
43
 
56
- # Initializes the object
57
- # @param [Hash] attributes Model attributes in the form of hash
58
- def initialize(attributes = {})
59
- if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::WebhookLog` initialize method"
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'id' => :'String',
48
+ :'message' => :'String',
49
+ :'metadata' => :'WebhookLogMetadata',
50
+ :'created_at' => :'String',
51
+ :'parent_id' => :'String',
52
+ :'parent_type' => :'String'
53
+ }
61
54
  end
62
55
 
63
- # check to see if the attribute exists and convert string to symbol for hash key
64
- attributes = attributes.each_with_object({}) { |(k, v), h|
65
- if (!self.class.attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::WebhookLog`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::WebhookLog` initialize method"
67
61
  end
68
- h[k.to_sym] = v
69
- }
70
62
 
71
- if attributes.key?(:'id')
72
- self.id = attributes[:'id']
73
- end
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!self.class.attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::WebhookLog`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
74
70
 
75
- if attributes.key?(:'message')
76
- self.message = attributes[:'message']
77
- end
71
+ if attributes.key?(:'id')
72
+ self.id = attributes[:'id']
73
+ end
78
74
 
79
- if attributes.key?(:'metadata')
80
- self.metadata = attributes[:'metadata']
81
- end
75
+ if attributes.key?(:'message')
76
+ self.message = attributes[:'message']
77
+ end
82
78
 
83
- if attributes.key?(:'created_at')
84
- self.created_at = attributes[:'created_at']
85
- end
79
+ if attributes.key?(:'metadata')
80
+ self.metadata = attributes[:'metadata']
81
+ end
86
82
 
87
- if attributes.key?(:'parent_id')
88
- self.parent_id = attributes[:'parent_id']
89
- end
83
+ if attributes.key?(:'created_at')
84
+ self.created_at = attributes[:'created_at']
85
+ end
86
+
87
+ if attributes.key?(:'parent_id')
88
+ self.parent_id = attributes[:'parent_id']
89
+ end
90
90
 
91
- if attributes.key?(:'parent_type')
92
- self.parent_type = attributes[:'parent_type']
91
+ if attributes.key?(:'parent_type')
92
+ self.parent_type = attributes[:'parent_type']
93
+ end
93
94
  end
94
- end
95
95
 
96
- # Show invalid properties with the reasons. Usually used together with valid?
97
- # @return Array for valid properties with the reasons
98
- def list_invalid_properties
99
- invalid_properties = Array.new
100
- invalid_properties
101
- end
96
+ # Show invalid properties with the reasons. Usually used together with valid?
97
+ # @return Array for valid properties with the reasons
98
+ def list_invalid_properties
99
+ invalid_properties = Array.new
100
+ invalid_properties
101
+ end
102
102
 
103
- # Check to see if the all the properties in the model are valid
104
- # @return true if the model is valid
105
- def valid?
106
- true
107
- end
103
+ # Check to see if the all the properties in the model are valid
104
+ # @return true if the model is valid
105
+ def valid?
106
+ true
107
+ end
108
108
 
109
- # Checks equality by comparing each attribute.
110
- # @param [Object] Object to be compared
111
- def ==(o)
112
- return true if self.equal?(o)
113
- self.class == o.class &&
114
- id == o.id &&
115
- message == o.message &&
116
- metadata == o.metadata &&
117
- created_at == o.created_at &&
118
- parent_id == o.parent_id &&
119
- parent_type == o.parent_type
120
- end
109
+ # Checks equality by comparing each attribute.
110
+ # @param [Object] Object to be compared
111
+ def ==(o)
112
+ return true if self.equal?(o)
113
+ self.class == o.class &&
114
+ id == o.id &&
115
+ message == o.message &&
116
+ metadata == o.metadata &&
117
+ created_at == o.created_at &&
118
+ parent_id == o.parent_id &&
119
+ parent_type == o.parent_type
120
+ end
121
121
 
122
- # @see the `==` method
123
- # @param [Object] Object to be compared
124
- def eql?(o)
125
- self == o
126
- end
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(o)
125
+ self == o
126
+ end
127
127
 
128
- # Calculates hash code according to all attributes.
129
- # @return [Integer] Hash code
130
- def hash
131
- [id, message, metadata, created_at, parent_id, parent_type].hash
132
- end
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ def hash
131
+ [id, message, metadata, created_at, parent_id, parent_type].hash
132
+ end
133
133
 
134
134
  require 'active_support/core_ext/hash'
135
135
  require 'active_support/hash_with_indifferent_access.rb'
@@ -245,6 +245,5 @@ def _to_hash(value)
245
245
  end
246
246
  end
247
247
 
248
- end
249
-
248
+ end
250
249
  end
@@ -13,87 +13,87 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- class WebhookLogListResponse
17
- # Array of webhook log objects
18
- attr_accessor :object
19
-
20
- attr_accessor :meta
21
-
22
- # Attribute mapping from ruby-style variable name to JSON key.
23
- def self.attribute_map
24
- {
25
- :'object' => :'object',
26
- :'meta' => :'meta'
27
- }
28
- end
29
-
30
- # Attribute type mapping.
31
- def self.openapi_types
32
- {
33
- :'object' => :'Array<WebhookLog>',
34
- :'meta' => :'PaginationMeta'
35
- }
36
- end
16
+ class WebhookLogListResponse
17
+ # Array of webhook log objects
18
+ attr_accessor :object
19
+
20
+ attr_accessor :meta
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'object' => :'object',
26
+ :'meta' => :'meta'
27
+ }
28
+ end
37
29
 
38
- # Initializes the object
39
- # @param [Hash] attributes Model attributes in the form of hash
40
- def initialize(attributes = {})
41
- if (!attributes.is_a?(Hash))
42
- fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::WebhookLogListResponse` initialize method"
30
+ # Attribute type mapping.
31
+ def self.openapi_types
32
+ {
33
+ :'object' => :'Array<WebhookLog>',
34
+ :'meta' => :'PaginationMeta'
35
+ }
43
36
  end
44
37
 
45
- # check to see if the attribute exists and convert string to symbol for hash key
46
- attributes = attributes.each_with_object({}) { |(k, v), h|
47
- if (!self.class.attribute_map.key?(k.to_sym))
48
- fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::WebhookLogListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
38
+ # Initializes the object
39
+ # @param [Hash] attributes Model attributes in the form of hash
40
+ def initialize(attributes = {})
41
+ if (!attributes.is_a?(Hash))
42
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::WebhookLogListResponse` initialize method"
49
43
  end
50
- h[k.to_sym] = v
51
- }
52
44
 
53
- if attributes.key?(:'object')
54
- if (value = attributes[:'object']).is_a?(Array)
55
- self.object = value
45
+ # check to see if the attribute exists and convert string to symbol for hash key
46
+ attributes = attributes.each_with_object({}) { |(k, v), h|
47
+ if (!self.class.attribute_map.key?(k.to_sym))
48
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::WebhookLogListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
49
+ end
50
+ h[k.to_sym] = v
51
+ }
52
+
53
+ if attributes.key?(:'object')
54
+ if (value = attributes[:'object']).is_a?(Array)
55
+ self.object = value
56
+ end
56
57
  end
57
- end
58
58
 
59
- if attributes.key?(:'meta')
60
- self.meta = attributes[:'meta']
59
+ if attributes.key?(:'meta')
60
+ self.meta = attributes[:'meta']
61
+ end
61
62
  end
62
- end
63
63
 
64
- # Show invalid properties with the reasons. Usually used together with valid?
65
- # @return Array for valid properties with the reasons
66
- def list_invalid_properties
67
- invalid_properties = Array.new
68
- invalid_properties
69
- end
64
+ # Show invalid properties with the reasons. Usually used together with valid?
65
+ # @return Array for valid properties with the reasons
66
+ def list_invalid_properties
67
+ invalid_properties = Array.new
68
+ invalid_properties
69
+ end
70
70
 
71
- # Check to see if the all the properties in the model are valid
72
- # @return true if the model is valid
73
- def valid?
74
- true
75
- end
71
+ # Check to see if the all the properties in the model are valid
72
+ # @return true if the model is valid
73
+ def valid?
74
+ true
75
+ end
76
76
 
77
- # Checks equality by comparing each attribute.
78
- # @param [Object] Object to be compared
79
- def ==(o)
80
- return true if self.equal?(o)
81
- self.class == o.class &&
82
- object == o.object &&
83
- meta == o.meta
84
- end
77
+ # Checks equality by comparing each attribute.
78
+ # @param [Object] Object to be compared
79
+ def ==(o)
80
+ return true if self.equal?(o)
81
+ self.class == o.class &&
82
+ object == o.object &&
83
+ meta == o.meta
84
+ end
85
85
 
86
- # @see the `==` method
87
- # @param [Object] Object to be compared
88
- def eql?(o)
89
- self == o
90
- end
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
91
 
92
- # Calculates hash code according to all attributes.
93
- # @return [Integer] Hash code
94
- def hash
95
- [object, meta].hash
96
- end
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [object, meta].hash
96
+ end
97
97
 
98
98
  require 'active_support/core_ext/hash'
99
99
  require 'active_support/hash_with_indifferent_access.rb'
@@ -209,6 +209,5 @@ def _to_hash(value)
209
209
  end
210
210
  end
211
211
 
212
- end
213
-
212
+ end
214
213
  end
@@ -13,163 +13,163 @@ OpenAPI Generator version: 4.0.0-beta3
13
13
  require 'date'
14
14
 
15
15
  module TransferZero
16
- class WebhookLogMetadata
17
- attr_accessor :params
16
+ class WebhookLogMetadata
17
+ attr_accessor :params
18
18
 
19
- # Specific event that triggered the webhook
20
- attr_accessor :event
19
+ # Specific event that triggered the webhook
20
+ attr_accessor :event
21
21
 
22
- # Instance ID of the webhook event
23
- attr_accessor :instance_id
22
+ # Instance ID of the webhook event
23
+ attr_accessor :instance_id
24
24
 
25
- # Type of instance event
26
- attr_accessor :instance_type
25
+ # Type of instance event
26
+ attr_accessor :instance_type
27
27
 
28
- # Attempt ID
29
- attr_accessor :attempt_id
28
+ # Attempt ID
29
+ attr_accessor :attempt_id
30
30
 
31
- # Number of tries at the point webhook was triggered
32
- attr_accessor :tries
31
+ # Number of tries at the point webhook was triggered
32
+ attr_accessor :tries
33
33
 
34
- attr_accessor :request
34
+ attr_accessor :request
35
35
 
36
- attr_accessor :response
36
+ attr_accessor :response
37
37
 
38
- # ID of app on which webhook event was triggered
39
- attr_accessor :app_id
38
+ # ID of app on which webhook event was triggered
39
+ attr_accessor :app_id
40
40
 
41
- # ID of API key in use at point of webhook event
42
- attr_accessor :api_key_id
41
+ # ID of API key in use at point of webhook event
42
+ attr_accessor :api_key_id
43
43
 
44
- # Attribute mapping from ruby-style variable name to JSON key.
45
- def self.attribute_map
46
- {
47
- :'params' => :'params',
48
- :'event' => :'event',
49
- :'instance_id' => :'instance_id',
50
- :'instance_type' => :'instance_type',
51
- :'attempt_id' => :'attempt_id',
52
- :'tries' => :'tries',
53
- :'request' => :'request',
54
- :'response' => :'response',
55
- :'app_id' => :'app_id',
56
- :'api_key_id' => :'api_key_id'
57
- }
58
- end
59
-
60
- # Attribute type mapping.
61
- def self.openapi_types
62
- {
63
- :'params' => :'WebhookDefinition',
64
- :'event' => :'String',
65
- :'instance_id' => :'String',
66
- :'instance_type' => :'String',
67
- :'attempt_id' => :'String',
68
- :'tries' => :'Integer',
69
- :'request' => :'WebhookLogMetadataRequest',
70
- :'response' => :'WebhookLogMetadataResponse',
71
- :'app_id' => :'String',
72
- :'api_key_id' => :'String'
73
- }
74
- end
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'params' => :'params',
48
+ :'event' => :'event',
49
+ :'instance_id' => :'instance_id',
50
+ :'instance_type' => :'instance_type',
51
+ :'attempt_id' => :'attempt_id',
52
+ :'tries' => :'tries',
53
+ :'request' => :'request',
54
+ :'response' => :'response',
55
+ :'app_id' => :'app_id',
56
+ :'api_key_id' => :'api_key_id'
57
+ }
58
+ end
75
59
 
76
- # Initializes the object
77
- # @param [Hash] attributes Model attributes in the form of hash
78
- def initialize(attributes = {})
79
- if (!attributes.is_a?(Hash))
80
- fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::WebhookLogMetadata` initialize method"
60
+ # Attribute type mapping.
61
+ def self.openapi_types
62
+ {
63
+ :'params' => :'WebhookDefinition',
64
+ :'event' => :'String',
65
+ :'instance_id' => :'String',
66
+ :'instance_type' => :'String',
67
+ :'attempt_id' => :'String',
68
+ :'tries' => :'Integer',
69
+ :'request' => :'WebhookLogMetadataRequest',
70
+ :'response' => :'WebhookLogMetadataResponse',
71
+ :'app_id' => :'String',
72
+ :'api_key_id' => :'String'
73
+ }
81
74
  end
82
75
 
83
- # check to see if the attribute exists and convert string to symbol for hash key
84
- attributes = attributes.each_with_object({}) { |(k, v), h|
85
- if (!self.class.attribute_map.key?(k.to_sym))
86
- fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::WebhookLogMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::WebhookLogMetadata` initialize method"
87
81
  end
88
- h[k.to_sym] = v
89
- }
90
82
 
91
- if attributes.key?(:'params')
92
- self.params = attributes[:'params']
93
- end
83
+ # check to see if the attribute exists and convert string to symbol for hash key
84
+ attributes = attributes.each_with_object({}) { |(k, v), h|
85
+ if (!self.class.attribute_map.key?(k.to_sym))
86
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::WebhookLogMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
87
+ end
88
+ h[k.to_sym] = v
89
+ }
94
90
 
95
- if attributes.key?(:'event')
96
- self.event = attributes[:'event']
97
- end
91
+ if attributes.key?(:'params')
92
+ self.params = attributes[:'params']
93
+ end
98
94
 
99
- if attributes.key?(:'instance_id')
100
- self.instance_id = attributes[:'instance_id']
101
- end
95
+ if attributes.key?(:'event')
96
+ self.event = attributes[:'event']
97
+ end
102
98
 
103
- if attributes.key?(:'instance_type')
104
- self.instance_type = attributes[:'instance_type']
105
- end
99
+ if attributes.key?(:'instance_id')
100
+ self.instance_id = attributes[:'instance_id']
101
+ end
106
102
 
107
- if attributes.key?(:'attempt_id')
108
- self.attempt_id = attributes[:'attempt_id']
109
- end
103
+ if attributes.key?(:'instance_type')
104
+ self.instance_type = attributes[:'instance_type']
105
+ end
110
106
 
111
- if attributes.key?(:'tries')
112
- self.tries = attributes[:'tries']
113
- end
107
+ if attributes.key?(:'attempt_id')
108
+ self.attempt_id = attributes[:'attempt_id']
109
+ end
114
110
 
115
- if attributes.key?(:'request')
116
- self.request = attributes[:'request']
117
- end
111
+ if attributes.key?(:'tries')
112
+ self.tries = attributes[:'tries']
113
+ end
118
114
 
119
- if attributes.key?(:'response')
120
- self.response = attributes[:'response']
121
- end
115
+ if attributes.key?(:'request')
116
+ self.request = attributes[:'request']
117
+ end
122
118
 
123
- if attributes.key?(:'app_id')
124
- self.app_id = attributes[:'app_id']
125
- end
119
+ if attributes.key?(:'response')
120
+ self.response = attributes[:'response']
121
+ end
122
+
123
+ if attributes.key?(:'app_id')
124
+ self.app_id = attributes[:'app_id']
125
+ end
126
126
 
127
- if attributes.key?(:'api_key_id')
128
- self.api_key_id = attributes[:'api_key_id']
127
+ if attributes.key?(:'api_key_id')
128
+ self.api_key_id = attributes[:'api_key_id']
129
+ end
129
130
  end
130
- end
131
131
 
132
- # Show invalid properties with the reasons. Usually used together with valid?
133
- # @return Array for valid properties with the reasons
134
- def list_invalid_properties
135
- invalid_properties = Array.new
136
- invalid_properties
137
- end
132
+ # Show invalid properties with the reasons. Usually used together with valid?
133
+ # @return Array for valid properties with the reasons
134
+ def list_invalid_properties
135
+ invalid_properties = Array.new
136
+ invalid_properties
137
+ end
138
138
 
139
- # Check to see if the all the properties in the model are valid
140
- # @return true if the model is valid
141
- def valid?
142
- true
143
- end
139
+ # Check to see if the all the properties in the model are valid
140
+ # @return true if the model is valid
141
+ def valid?
142
+ true
143
+ end
144
144
 
145
- # Checks equality by comparing each attribute.
146
- # @param [Object] Object to be compared
147
- def ==(o)
148
- return true if self.equal?(o)
149
- self.class == o.class &&
150
- params == o.params &&
151
- event == o.event &&
152
- instance_id == o.instance_id &&
153
- instance_type == o.instance_type &&
154
- attempt_id == o.attempt_id &&
155
- tries == o.tries &&
156
- request == o.request &&
157
- response == o.response &&
158
- app_id == o.app_id &&
159
- api_key_id == o.api_key_id
160
- end
145
+ # Checks equality by comparing each attribute.
146
+ # @param [Object] Object to be compared
147
+ def ==(o)
148
+ return true if self.equal?(o)
149
+ self.class == o.class &&
150
+ params == o.params &&
151
+ event == o.event &&
152
+ instance_id == o.instance_id &&
153
+ instance_type == o.instance_type &&
154
+ attempt_id == o.attempt_id &&
155
+ tries == o.tries &&
156
+ request == o.request &&
157
+ response == o.response &&
158
+ app_id == o.app_id &&
159
+ api_key_id == o.api_key_id
160
+ end
161
161
 
162
- # @see the `==` method
163
- # @param [Object] Object to be compared
164
- def eql?(o)
165
- self == o
166
- end
162
+ # @see the `==` method
163
+ # @param [Object] Object to be compared
164
+ def eql?(o)
165
+ self == o
166
+ end
167
167
 
168
- # Calculates hash code according to all attributes.
169
- # @return [Integer] Hash code
170
- def hash
171
- [params, event, instance_id, instance_type, attempt_id, tries, request, response, app_id, api_key_id].hash
172
- end
168
+ # Calculates hash code according to all attributes.
169
+ # @return [Integer] Hash code
170
+ def hash
171
+ [params, event, instance_id, instance_type, attempt_id, tries, request, response, app_id, api_key_id].hash
172
+ end
173
173
 
174
174
  require 'active_support/core_ext/hash'
175
175
  require 'active_support/hash_with_indifferent_access.rb'
@@ -285,6 +285,5 @@ def _to_hash(value)
285
285
  end
286
286
  end
287
287
 
288
- end
289
-
288
+ end
290
289
  end