transferzero-sdk 1.5.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/docs/Currency.md +0 -2
- data/docs/CurrencyExchange.md +0 -2
- data/docs/CurrencyOpposite.md +3 -3
- data/docs/Document.md +3 -3
- data/docs/DocumentsApi.md +2 -74
- data/docs/PayinMethodDetails.md +3 -1
- data/docs/PayinMethodDetailsBTC.md +17 -0
- data/docs/PayoutMethod.md +1 -1
- data/docs/PayoutMethodDetails.md +17 -1
- data/docs/PayoutMethodDetailsBTC.md +23 -0
- data/docs/PayoutMethodDetailsGBPBank.md +29 -0
- data/docs/PayoutMethodDetailsIBAN.md +1 -1
- data/docs/PayoutMethodDetailsMobile.md +3 -1
- data/docs/PayoutMethodDetailsZARBank.md +35 -0
- data/docs/PoliticallyExposedPerson.md +31 -0
- data/docs/Recipient.md +1 -1
- data/docs/RecipientsApi.md +1 -1
- data/docs/Sender.md +72 -32
- data/docs/Transaction.md +3 -3
- data/lib/transferzero-sdk.rb +5 -0
- data/lib/transferzero-sdk/api/documents_api.rb +0 -63
- data/lib/transferzero-sdk/api/recipients_api.rb +2 -2
- data/lib/transferzero-sdk/api_client.rb +5 -3
- data/lib/transferzero-sdk/models/account.rb +70 -69
- data/lib/transferzero-sdk/models/account_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/account_meta.rb +61 -60
- data/lib/transferzero-sdk/models/account_response.rb +66 -65
- data/lib/transferzero-sdk/models/account_validation_error.rb +61 -60
- data/lib/transferzero-sdk/models/account_validation_request.rb +164 -163
- data/lib/transferzero-sdk/models/account_validation_response.rb +66 -65
- data/lib/transferzero-sdk/models/account_validation_result.rb +61 -60
- data/lib/transferzero-sdk/models/api_log.rb +136 -135
- data/lib/transferzero-sdk/models/api_log_list_response.rb +70 -69
- data/lib/transferzero-sdk/models/api_log_response.rb +60 -59
- data/lib/transferzero-sdk/models/currency.rb +133 -142
- data/lib/transferzero-sdk/models/currency_exchange.rb +149 -158
- data/lib/transferzero-sdk/models/currency_exchange_list_response.rb +62 -61
- data/lib/transferzero-sdk/models/currency_list_response.rb +62 -61
- data/lib/transferzero-sdk/models/currency_opposite.rb +166 -165
- data/lib/transferzero-sdk/models/debit.rb +151 -150
- data/lib/transferzero-sdk/models/debit_list_request.rb +61 -60
- data/lib/transferzero-sdk/models/debit_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/debit_request.rb +60 -59
- data/lib/transferzero-sdk/models/debit_request_wrapper.rb +80 -79
- data/lib/transferzero-sdk/models/debit_response.rb +60 -59
- data/lib/transferzero-sdk/models/document.rb +179 -177
- data/lib/transferzero-sdk/models/document_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/document_request.rb +60 -59
- data/lib/transferzero-sdk/models/document_response.rb +60 -59
- data/lib/transferzero-sdk/models/document_webhook.rb +96 -95
- data/lib/transferzero-sdk/models/error_status.rb +66 -65
- data/lib/transferzero-sdk/models/field_description.rb +95 -94
- data/lib/transferzero-sdk/models/field_select_validation.rb +70 -69
- data/lib/transferzero-sdk/models/field_validation.rb +78 -77
- data/lib/transferzero-sdk/models/pagination.rb +97 -96
- data/lib/transferzero-sdk/models/pagination_meta.rb +60 -59
- data/lib/transferzero-sdk/models/payin_method.rb +97 -96
- data/lib/transferzero-sdk/models/payin_method_details.rb +122 -110
- data/lib/transferzero-sdk/models/payin_method_details_btc.rb +204 -0
- data/lib/transferzero-sdk/models/payin_method_details_mobile.rb +75 -74
- data/lib/transferzero-sdk/models/payin_method_details_ngn_bank.rb +71 -70
- data/lib/transferzero-sdk/models/payin_method_request.rb +60 -59
- data/lib/transferzero-sdk/models/payment_method.rb +109 -108
- data/lib/transferzero-sdk/models/payment_method_list_response.rb +61 -60
- data/lib/transferzero-sdk/models/payment_method_opposite.rb +124 -123
- data/lib/transferzero-sdk/models/payout_method.rb +107 -106
- data/lib/transferzero-sdk/models/payout_method_bank_account_type_enum.rb +14 -19
- data/lib/transferzero-sdk/models/payout_method_details.rb +398 -297
- data/lib/transferzero-sdk/models/payout_method_details_balance.rb +61 -60
- data/lib/transferzero-sdk/models/payout_method_details_btc.rb +250 -0
- data/lib/transferzero-sdk/models/payout_method_details_gbp_bank.rb +267 -0
- data/lib/transferzero-sdk/models/payout_method_details_ghs_bank.rb +97 -96
- data/lib/transferzero-sdk/models/payout_method_details_iban.rb +100 -104
- data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +162 -161
- data/lib/transferzero-sdk/models/payout_method_details_mobile.rb +93 -83
- data/lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb +104 -103
- data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +108 -107
- data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +97 -96
- data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +324 -0
- data/lib/transferzero-sdk/models/payout_method_gender_enum.rb +14 -19
- data/lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb +15 -20
- data/lib/transferzero-sdk/models/payout_method_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +17 -19
- data/lib/transferzero-sdk/models/payout_method_request.rb +60 -59
- data/lib/transferzero-sdk/models/payout_method_response.rb +60 -59
- data/lib/transferzero-sdk/models/payout_method_webhook.rb +96 -95
- data/lib/transferzero-sdk/models/politically_exposed_person.rb +272 -0
- data/lib/transferzero-sdk/models/recipient.rb +230 -229
- data/lib/transferzero-sdk/models/recipient_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/recipient_request.rb +60 -59
- data/lib/transferzero-sdk/models/recipient_response.rb +60 -59
- data/lib/transferzero-sdk/models/recipient_state.rb +22 -27
- data/lib/transferzero-sdk/models/recipient_webhook.rb +96 -95
- data/lib/transferzero-sdk/models/sender.rb +587 -348
- data/lib/transferzero-sdk/models/sender_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/sender_request.rb +60 -59
- data/lib/transferzero-sdk/models/sender_response.rb +66 -65
- data/lib/transferzero-sdk/models/sender_response_existing.rb +60 -59
- data/lib/transferzero-sdk/models/sender_response_meta.rb +60 -59
- data/lib/transferzero-sdk/models/sender_state.rb +19 -24
- data/lib/transferzero-sdk/models/sender_webhook.rb +96 -95
- data/lib/transferzero-sdk/models/transaction.rb +192 -191
- data/lib/transferzero-sdk/models/transaction_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/transaction_request.rb +60 -59
- data/lib/transferzero-sdk/models/transaction_response.rb +66 -65
- data/lib/transferzero-sdk/models/transaction_response_existing.rb +66 -65
- data/lib/transferzero-sdk/models/transaction_response_meta.rb +60 -59
- data/lib/transferzero-sdk/models/transaction_state.rb +23 -28
- data/lib/transferzero-sdk/models/transaction_traits.rb +71 -70
- data/lib/transferzero-sdk/models/transaction_webhook.rb +96 -95
- data/lib/transferzero-sdk/models/validation_error_description.rb +62 -61
- data/lib/transferzero-sdk/models/webhook.rb +92 -91
- data/lib/transferzero-sdk/models/webhook_definition.rb +107 -106
- data/lib/transferzero-sdk/models/webhook_definition_event_list_response.rb +61 -60
- data/lib/transferzero-sdk/models/webhook_definition_list_response.rb +67 -66
- data/lib/transferzero-sdk/models/webhook_definition_request.rb +60 -59
- data/lib/transferzero-sdk/models/webhook_definition_response.rb +60 -59
- data/lib/transferzero-sdk/models/webhook_log.rb +97 -96
- data/lib/transferzero-sdk/models/webhook_log_list_response.rb +70 -69
- data/lib/transferzero-sdk/models/webhook_log_metadata.rb +129 -128
- data/lib/transferzero-sdk/models/webhook_log_metadata_request.rb +80 -79
- data/lib/transferzero-sdk/models/webhook_log_metadata_response.rb +81 -80
- data/lib/transferzero-sdk/models/webhook_log_response.rb +60 -59
- data/lib/transferzero-sdk/version.rb +1 -1
- data/spec/models/payin_method_details_btc_spec.rb +41 -0
- data/spec/models/payout_method_details_btc_spec.rb +59 -0
- data/spec/models/payout_method_details_gbp_bank_spec.rb +77 -0
- data/spec/models/payout_method_details_zar_bank_spec.rb +89 -0
- data/spec/models/politically_exposed_person_spec.rb +83 -0
- metadata +32 -13
- data/transferzero-sdk-1.4.0.gem +0 -0
@@ -13,123 +13,123 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TransferZero
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
class WebhookLog
|
17
|
+
# ID of the webhook log
|
18
|
+
attr_accessor :id
|
19
19
|
|
20
|
-
|
21
|
-
|
20
|
+
# Message detailing webhook event
|
21
|
+
attr_accessor :message
|
22
22
|
|
23
|
-
|
23
|
+
attr_accessor :metadata
|
24
24
|
|
25
|
-
|
26
|
-
|
25
|
+
# Date and time of response
|
26
|
+
attr_accessor :created_at
|
27
27
|
|
28
|
-
|
28
|
+
attr_accessor :parent_id
|
29
29
|
|
30
|
-
|
30
|
+
attr_accessor :parent_type
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
55
|
-
|
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"
|
61
|
-
end
|
62
|
-
|
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
|
-
}
|
70
|
-
|
71
|
-
if attributes.key?(:'id')
|
72
|
-
self.id = attributes[:'id']
|
73
|
-
end
|
74
|
-
|
75
|
-
if attributes.key?(:'message')
|
76
|
-
self.message = attributes[:'message']
|
77
|
-
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
|
78
43
|
|
79
|
-
|
80
|
-
|
81
|
-
|
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
|
82
55
|
|
83
|
-
|
84
|
-
|
85
|
-
|
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"
|
61
|
+
end
|
86
62
|
|
87
|
-
|
88
|
-
|
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
|
89
67
|
end
|
68
|
+
h[k.to_sym] = v
|
69
|
+
}
|
90
70
|
|
91
|
-
|
92
|
-
|
93
|
-
end
|
71
|
+
if attributes.key?(:'id')
|
72
|
+
self.id = attributes[:'id']
|
94
73
|
end
|
95
74
|
|
96
|
-
|
97
|
-
|
98
|
-
def list_invalid_properties
|
99
|
-
invalid_properties = Array.new
|
100
|
-
invalid_properties
|
75
|
+
if attributes.key?(:'message')
|
76
|
+
self.message = attributes[:'message']
|
101
77
|
end
|
102
78
|
|
103
|
-
|
104
|
-
|
105
|
-
def valid?
|
106
|
-
true
|
79
|
+
if attributes.key?(:'metadata')
|
80
|
+
self.metadata = attributes[:'metadata']
|
107
81
|
end
|
108
82
|
|
109
|
-
|
110
|
-
|
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
|
83
|
+
if attributes.key?(:'created_at')
|
84
|
+
self.created_at = attributes[:'created_at']
|
120
85
|
end
|
121
86
|
|
122
|
-
|
123
|
-
|
124
|
-
def eql?(o)
|
125
|
-
self == o
|
87
|
+
if attributes.key?(:'parent_id')
|
88
|
+
self.parent_id = attributes[:'parent_id']
|
126
89
|
end
|
127
90
|
|
128
|
-
|
129
|
-
|
130
|
-
def hash
|
131
|
-
[id, message, metadata, created_at, parent_id, parent_type].hash
|
91
|
+
if attributes.key?(:'parent_type')
|
92
|
+
self.parent_type = attributes[:'parent_type']
|
132
93
|
end
|
94
|
+
end
|
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
|
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
|
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
|
121
|
+
|
122
|
+
# @see the `==` method
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def eql?(o)
|
125
|
+
self == o
|
126
|
+
end
|
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
|
133
133
|
|
134
134
|
require 'active_support/core_ext/hash'
|
135
135
|
require 'active_support/hash_with_indifferent_access.rb'
|
@@ -245,5 +245,6 @@ def _to_hash(value)
|
|
245
245
|
end
|
246
246
|
end
|
247
247
|
|
248
|
-
|
248
|
+
end
|
249
|
+
|
249
250
|
end
|
@@ -13,87 +13,87 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TransferZero
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
30
|
+
# Attribute type mapping.
|
31
|
+
def self.openapi_types
|
32
|
+
{
|
33
|
+
:'object' => :'Array<WebhookLog>',
|
34
|
+
:'meta' => :'PaginationMeta'
|
35
|
+
}
|
36
|
+
end
|
37
37
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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"
|
43
|
+
end
|
44
44
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
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
|
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
|
57
49
|
end
|
50
|
+
h[k.to_sym] = v
|
51
|
+
}
|
58
52
|
|
59
|
-
|
60
|
-
|
53
|
+
if attributes.key?(:'object')
|
54
|
+
if (value = attributes[:'object']).is_a?(Array)
|
55
|
+
self.object = value
|
61
56
|
end
|
62
57
|
end
|
63
58
|
|
64
|
-
|
65
|
-
|
66
|
-
def list_invalid_properties
|
67
|
-
invalid_properties = Array.new
|
68
|
-
invalid_properties
|
59
|
+
if attributes.key?(:'meta')
|
60
|
+
self.meta = attributes[:'meta']
|
69
61
|
end
|
62
|
+
end
|
70
63
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
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
|
76
70
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
object == o.object &&
|
83
|
-
meta == o.meta
|
84
|
-
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
|
85
76
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
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
|
91
85
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
86
|
+
# @see the `==` method
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def eql?(o)
|
89
|
+
self == o
|
90
|
+
end
|
91
|
+
|
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,5 +209,6 @@ def _to_hash(value)
|
|
209
209
|
end
|
210
210
|
end
|
211
211
|
|
212
|
-
|
212
|
+
end
|
213
|
+
|
213
214
|
end
|
@@ -13,163 +13,163 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TransferZero
|
16
|
-
|
17
|
-
|
16
|
+
class WebhookLogMetadata
|
17
|
+
attr_accessor :params
|
18
18
|
|
19
|
-
|
20
|
-
|
19
|
+
# Specific event that triggered the webhook
|
20
|
+
attr_accessor :event
|
21
21
|
|
22
|
-
|
23
|
-
|
22
|
+
# Instance ID of the webhook event
|
23
|
+
attr_accessor :instance_id
|
24
24
|
|
25
|
-
|
26
|
-
|
25
|
+
# Type of instance event
|
26
|
+
attr_accessor :instance_type
|
27
27
|
|
28
|
-
|
29
|
-
|
28
|
+
# Attempt ID
|
29
|
+
attr_accessor :attempt_id
|
30
30
|
|
31
|
-
|
32
|
-
|
31
|
+
# Number of tries at the point webhook was triggered
|
32
|
+
attr_accessor :tries
|
33
33
|
|
34
|
-
|
34
|
+
attr_accessor :request
|
35
35
|
|
36
|
-
|
36
|
+
attr_accessor :response
|
37
37
|
|
38
|
-
|
39
|
-
|
38
|
+
# ID of app on which webhook event was triggered
|
39
|
+
attr_accessor :app_id
|
40
40
|
|
41
|
-
|
42
|
-
|
41
|
+
# ID of API key in use at point of webhook event
|
42
|
+
attr_accessor :api_key_id
|
43
43
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
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
|
75
|
-
|
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"
|
81
|
-
end
|
82
|
-
|
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
|
-
}
|
90
|
-
|
91
|
-
if attributes.key?(:'params')
|
92
|
-
self.params = attributes[:'params']
|
93
|
-
end
|
94
|
-
|
95
|
-
if attributes.key?(:'event')
|
96
|
-
self.event = attributes[:'event']
|
97
|
-
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
|
98
59
|
|
99
|
-
|
100
|
-
|
101
|
-
|
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
|
102
75
|
|
103
|
-
|
104
|
-
|
105
|
-
|
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"
|
81
|
+
end
|
106
82
|
|
107
|
-
|
108
|
-
|
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
|
109
87
|
end
|
88
|
+
h[k.to_sym] = v
|
89
|
+
}
|
110
90
|
|
111
|
-
|
112
|
-
|
113
|
-
|
91
|
+
if attributes.key?(:'params')
|
92
|
+
self.params = attributes[:'params']
|
93
|
+
end
|
114
94
|
|
115
|
-
|
116
|
-
|
117
|
-
|
95
|
+
if attributes.key?(:'event')
|
96
|
+
self.event = attributes[:'event']
|
97
|
+
end
|
118
98
|
|
119
|
-
|
120
|
-
|
121
|
-
|
99
|
+
if attributes.key?(:'instance_id')
|
100
|
+
self.instance_id = attributes[:'instance_id']
|
101
|
+
end
|
122
102
|
|
123
|
-
|
124
|
-
|
125
|
-
|
103
|
+
if attributes.key?(:'instance_type')
|
104
|
+
self.instance_type = attributes[:'instance_type']
|
105
|
+
end
|
126
106
|
|
127
|
-
|
128
|
-
|
129
|
-
end
|
107
|
+
if attributes.key?(:'attempt_id')
|
108
|
+
self.attempt_id = attributes[:'attempt_id']
|
130
109
|
end
|
131
110
|
|
132
|
-
|
133
|
-
|
134
|
-
def list_invalid_properties
|
135
|
-
invalid_properties = Array.new
|
136
|
-
invalid_properties
|
111
|
+
if attributes.key?(:'tries')
|
112
|
+
self.tries = attributes[:'tries']
|
137
113
|
end
|
138
114
|
|
139
|
-
|
140
|
-
|
141
|
-
def valid?
|
142
|
-
true
|
115
|
+
if attributes.key?(:'request')
|
116
|
+
self.request = attributes[:'request']
|
143
117
|
end
|
144
118
|
|
145
|
-
|
146
|
-
|
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
|
119
|
+
if attributes.key?(:'response')
|
120
|
+
self.response = attributes[:'response']
|
160
121
|
end
|
161
122
|
|
162
|
-
|
163
|
-
|
164
|
-
def eql?(o)
|
165
|
-
self == o
|
123
|
+
if attributes.key?(:'app_id')
|
124
|
+
self.app_id = attributes[:'app_id']
|
166
125
|
end
|
167
126
|
|
168
|
-
|
169
|
-
|
170
|
-
def hash
|
171
|
-
[params, event, instance_id, instance_type, attempt_id, tries, request, response, app_id, api_key_id].hash
|
127
|
+
if attributes.key?(:'api_key_id')
|
128
|
+
self.api_key_id = attributes[:'api_key_id']
|
172
129
|
end
|
130
|
+
end
|
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
|
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
|
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
|
161
|
+
|
162
|
+
# @see the `==` method
|
163
|
+
# @param [Object] Object to be compared
|
164
|
+
def eql?(o)
|
165
|
+
self == o
|
166
|
+
end
|
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
|
173
173
|
|
174
174
|
require 'active_support/core_ext/hash'
|
175
175
|
require 'active_support/hash_with_indifferent_access.rb'
|
@@ -285,5 +285,6 @@ def _to_hash(value)
|
|
285
285
|
end
|
286
286
|
end
|
287
287
|
|
288
|
-
|
288
|
+
end
|
289
|
+
|
289
290
|
end
|