apimatic-stax-sdk 0.0.1
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.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +189 -0
- data/bin/console +15 -0
- data/lib/stax_fatt_merchant_api/api_helper.rb +10 -0
- data/lib/stax_fatt_merchant_api/apis/base_api.rb +67 -0
- data/lib/stax_fatt_merchant_api/apis/cache_api.rb +28 -0
- data/lib/stax_fatt_merchant_api/apis/charge_api.rb +29 -0
- data/lib/stax_fatt_merchant_api/apis/credit_api.rb +29 -0
- data/lib/stax_fatt_merchant_api/apis/customer_api.rb +307 -0
- data/lib/stax_fatt_merchant_api/apis/dispute_file_api.rb +46 -0
- data/lib/stax_fatt_merchant_api/apis/file_api.rb +115 -0
- data/lib/stax_fatt_merchant_api/apis/hello_sign_api.rb +103 -0
- data/lib/stax_fatt_merchant_api/apis/integration_api.rb +115 -0
- data/lib/stax_fatt_merchant_api/apis/invoice_api.rb +270 -0
- data/lib/stax_fatt_merchant_api/apis/invoice_schedule_api.rb +105 -0
- data/lib/stax_fatt_merchant_api/apis/item_api.rb +257 -0
- data/lib/stax_fatt_merchant_api/apis/merchant_admin_api.rb +323 -0
- data/lib/stax_fatt_merchant_api/apis/payment_method_api.rb +128 -0
- data/lib/stax_fatt_merchant_api/apis/reporting_api.rb +42 -0
- data/lib/stax_fatt_merchant_api/apis/sandbox_api.rb +45 -0
- data/lib/stax_fatt_merchant_api/apis/self_api.rb +186 -0
- data/lib/stax_fatt_merchant_api/apis/team_api.rb +143 -0
- data/lib/stax_fatt_merchant_api/apis/team_api_keys_api.rb +141 -0
- data/lib/stax_fatt_merchant_api/apis/team_funding_accounts_api.rb +175 -0
- data/lib/stax_fatt_merchant_api/apis/team_options_api.rb +141 -0
- data/lib/stax_fatt_merchant_api/apis/team_registration_api.rb +156 -0
- data/lib/stax_fatt_merchant_api/apis/team_users_api.rb +139 -0
- data/lib/stax_fatt_merchant_api/apis/terminal_api.rb +73 -0
- data/lib/stax_fatt_merchant_api/apis/transaction_api.rb +467 -0
- data/lib/stax_fatt_merchant_api/apis/user_admin_api.rb +161 -0
- data/lib/stax_fatt_merchant_api/apis/verify_api.rb +42 -0
- data/lib/stax_fatt_merchant_api/apis/web_payment_api.rb +28 -0
- data/lib/stax_fatt_merchant_api/apis/webhook_api.rb +98 -0
- data/lib/stax_fatt_merchant_api/client.rb +235 -0
- data/lib/stax_fatt_merchant_api/configuration.rb +179 -0
- data/lib/stax_fatt_merchant_api/exceptions/api_exception.rb +21 -0
- data/lib/stax_fatt_merchant_api/http/api_response.rb +19 -0
- data/lib/stax_fatt_merchant_api/http/auth/oauth_2.rb +53 -0
- data/lib/stax_fatt_merchant_api/http/http_call_back.rb +10 -0
- data/lib/stax_fatt_merchant_api/http/http_method_enum.rb +10 -0
- data/lib/stax_fatt_merchant_api/http/http_request.rb +10 -0
- data/lib/stax_fatt_merchant_api/http/http_response.rb +10 -0
- data/lib/stax_fatt_merchant_api/http/proxy_settings.rb +22 -0
- data/lib/stax_fatt_merchant_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/stax_fatt_merchant_api/logging/sdk_logger.rb +17 -0
- data/lib/stax_fatt_merchant_api/models/base_model.rb +110 -0
- data/lib/stax_fatt_merchant_api/models/delete_customer_bulk_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/delete_item_bulk_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/get_ephemeral_token_response200_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/get_ephemeral_token_root_response200_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/merge_customer_request_body_json.rb +76 -0
- data/lib/stax_fatt_merchant_api/models/post_cache_test_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/post_capture_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/post_credit_request_body_json.rb +96 -0
- data/lib/stax_fatt_merchant_api/models/post_dispute_file_request_body.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/post_email_receipt_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/post_file_request_body.rb +85 -0
- data/lib/stax_fatt_merchant_api/models/post_invoice_manual_payment_method.rb +52 -0
- data/lib/stax_fatt_merchant_api/models/post_invoice_manual_payment_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/post_invoice_payment_request_body_json.rb +87 -0
- data/lib/stax_fatt_merchant_api/models/post_item_thumbnail_request_body.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/post_payment_method_token_request_body_json.rb +85 -0
- data/lib/stax_fatt_merchant_api/models/post_receipt_method.rb +36 -0
- data/lib/stax_fatt_merchant_api/models/post_refund_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/post_send_later_method.rb +36 -0
- data/lib/stax_fatt_merchant_api/models/post_send_later_request_body_json.rb +84 -0
- data/lib/stax_fatt_merchant_api/models/post_sms_receipt_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/post_team_branding_request_body.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/post_team_funding_account_file_request_body.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/post_team_registration_file_request_body.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/post_terminal_signature_request_body_json.rb +87 -0
- data/lib/stax_fatt_merchant_api/models/post_verification_request_body_json.rb +77 -0
- data/lib/stax_fatt_merchant_api/models/post_void_or_refund_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/put_email_receipt_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/put_notify_email_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/put_publish_bulk_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/put_receipt_bulk_method_method.rb +36 -0
- data/lib/stax_fatt_merchant_api/models/put_receipt_bulk_method_request_body_json.rb +77 -0
- data/lib/stax_fatt_merchant_api/models/put_receipt_bulk_request_body_json.rb +77 -0
- data/lib/stax_fatt_merchant_api/models/put_receipt_method.rb +36 -0
- data/lib/stax_fatt_merchant_api/models/put_receipt_request_body_json.rb +85 -0
- data/lib/stax_fatt_merchant_api/models/put_registration_sign_request_body_json.rb +76 -0
- data/lib/stax_fatt_merchant_api/models/put_restore_customer_bulk_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/put_send_invoice_bulk_method.rb +36 -0
- data/lib/stax_fatt_merchant_api/models/put_send_invoice_bulk_request_body_json.rb +76 -0
- data/lib/stax_fatt_merchant_api/models/put_send_invoice_method.rb +36 -0
- data/lib/stax_fatt_merchant_api/models/put_set_default_merchant_request_body_json.rb +76 -0
- data/lib/stax_fatt_merchant_api/models/put_set_plan_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/put_sms_receipt_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/models/put_team_registration_file_request_body.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/put_terminal_signature_request_body_json.rb +76 -0
- data/lib/stax_fatt_merchant_api/models/put_transaction_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/put_unpublish_bulk_request_body_json.rb +74 -0
- data/lib/stax_fatt_merchant_api/models/put_verify_integration_token_request_body_json.rb +75 -0
- data/lib/stax_fatt_merchant_api/utilities/date_time_helper.rb +11 -0
- data/lib/stax_fatt_merchant_api/utilities/file_wrapper.rb +28 -0
- data/lib/stax_fatt_merchant_api.rb +154 -0
- metadata +182 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module StaxFattMerchantApi
|
|
7
|
+
# PostInvoicePaymentRequestBodyJson Model.
|
|
8
|
+
class PostInvoicePaymentRequestBodyJson < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [UUID | String]
|
|
14
|
+
attr_accessor :payment_method_id
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [TrueClass | FalseClass]
|
|
18
|
+
attr_accessor :apply_balance
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['payment_method_id'] = 'payment_method_id'
|
|
24
|
+
@_hash['apply_balance'] = 'apply_balance'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
payment_method_id
|
|
32
|
+
apply_balance
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(payment_method_id: SKIP, apply_balance: SKIP,
|
|
42
|
+
additional_properties: nil)
|
|
43
|
+
# Add additional model properties to the instance
|
|
44
|
+
additional_properties = {} if additional_properties.nil?
|
|
45
|
+
|
|
46
|
+
@payment_method_id = payment_method_id unless payment_method_id == SKIP
|
|
47
|
+
@apply_balance = apply_balance unless apply_balance == SKIP
|
|
48
|
+
@additional_properties = additional_properties
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Creates an instance of the object from a hash.
|
|
52
|
+
def self.from_hash(hash)
|
|
53
|
+
return nil unless hash
|
|
54
|
+
|
|
55
|
+
# Extract variables from the hash.
|
|
56
|
+
payment_method_id =
|
|
57
|
+
hash.key?('payment_method_id') ? hash['payment_method_id'] : SKIP
|
|
58
|
+
apply_balance = hash.key?('apply_balance') ? hash['apply_balance'] : SKIP
|
|
59
|
+
|
|
60
|
+
# Create a new hash for additional properties, removing known properties.
|
|
61
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
62
|
+
|
|
63
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
64
|
+
new_hash, proc { |value| value }
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
# Create object from extracted values.
|
|
68
|
+
PostInvoicePaymentRequestBodyJson.new(payment_method_id: payment_method_id,
|
|
69
|
+
apply_balance: apply_balance,
|
|
70
|
+
additional_properties: additional_properties)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Provides a human-readable string representation of the object.
|
|
74
|
+
def to_s
|
|
75
|
+
class_name = self.class.name.split('::').last
|
|
76
|
+
"<#{class_name} payment_method_id: #{@payment_method_id}, apply_balance: #{@apply_balance},"\
|
|
77
|
+
" additional_properties: #{@additional_properties}>"
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
81
|
+
def inspect
|
|
82
|
+
class_name = self.class.name.split('::').last
|
|
83
|
+
"<#{class_name} payment_method_id: #{@payment_method_id.inspect}, apply_balance:"\
|
|
84
|
+
" #{@apply_balance.inspect}, additional_properties: #{@additional_properties}>"
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module StaxFattMerchantApi
|
|
7
|
+
# PostItemThumbnailRequestBody Model.
|
|
8
|
+
class PostItemThumbnailRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Binary]
|
|
14
|
+
attr_accessor :file
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['file'] = 'file'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
file
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(file: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@file = file unless file == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
file = hash.key?('file') ? hash['file'] : SKIP
|
|
49
|
+
|
|
50
|
+
# Create a new hash for additional properties, removing known properties.
|
|
51
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
52
|
+
|
|
53
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
54
|
+
new_hash, proc { |value| value }
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# Create object from extracted values.
|
|
58
|
+
PostItemThumbnailRequestBody.new(file: file,
|
|
59
|
+
additional_properties: additional_properties)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Provides a human-readable string representation of the object.
|
|
63
|
+
def to_s
|
|
64
|
+
class_name = self.class.name.split('::').last
|
|
65
|
+
"<#{class_name} file: #{@file}, additional_properties: #{@additional_properties}>"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
69
|
+
def inspect
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} file: #{@file.inspect}, additional_properties: #{@additional_properties}>"
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module StaxFattMerchantApi
|
|
7
|
+
# PostPaymentMethodTokenRequestBodyJson Model.
|
|
8
|
+
class PostPaymentMethodTokenRequestBodyJson < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :token
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [UUID | String]
|
|
18
|
+
attr_accessor :customer_id
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['token'] = 'token'
|
|
24
|
+
@_hash['customer_id'] = 'customer_id'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
token
|
|
32
|
+
customer_id
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(token: SKIP, customer_id: SKIP, additional_properties: nil)
|
|
42
|
+
# Add additional model properties to the instance
|
|
43
|
+
additional_properties = {} if additional_properties.nil?
|
|
44
|
+
|
|
45
|
+
@token = token unless token == SKIP
|
|
46
|
+
@customer_id = customer_id unless customer_id == SKIP
|
|
47
|
+
@additional_properties = additional_properties
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Creates an instance of the object from a hash.
|
|
51
|
+
def self.from_hash(hash)
|
|
52
|
+
return nil unless hash
|
|
53
|
+
|
|
54
|
+
# Extract variables from the hash.
|
|
55
|
+
token = hash.key?('token') ? hash['token'] : SKIP
|
|
56
|
+
customer_id = hash.key?('customer_id') ? hash['customer_id'] : SKIP
|
|
57
|
+
|
|
58
|
+
# Create a new hash for additional properties, removing known properties.
|
|
59
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
60
|
+
|
|
61
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
62
|
+
new_hash, proc { |value| value }
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
# Create object from extracted values.
|
|
66
|
+
PostPaymentMethodTokenRequestBodyJson.new(token: token,
|
|
67
|
+
customer_id: customer_id,
|
|
68
|
+
additional_properties: additional_properties)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Provides a human-readable string representation of the object.
|
|
72
|
+
def to_s
|
|
73
|
+
class_name = self.class.name.split('::').last
|
|
74
|
+
"<#{class_name} token: #{@token}, customer_id: #{@customer_id}, additional_properties:"\
|
|
75
|
+
" #{@additional_properties}>"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
79
|
+
def inspect
|
|
80
|
+
class_name = self.class.name.split('::').last
|
|
81
|
+
"<#{class_name} token: #{@token.inspect}, customer_id: #{@customer_id.inspect},"\
|
|
82
|
+
" additional_properties: #{@additional_properties}>"
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module StaxFattMerchantApi
|
|
7
|
+
# PostReceiptMethod.
|
|
8
|
+
class PostReceiptMethod
|
|
9
|
+
POST_RECEIPT_METHOD = [
|
|
10
|
+
# TODO: Write general description for EMAIL
|
|
11
|
+
EMAIL = 'email'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for SMS
|
|
14
|
+
SMS = 'sms'.freeze
|
|
15
|
+
].freeze
|
|
16
|
+
|
|
17
|
+
def self.validate(value)
|
|
18
|
+
return false if value.nil?
|
|
19
|
+
|
|
20
|
+
POST_RECEIPT_METHOD.include?(value)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from_value(value, default_value = EMAIL)
|
|
24
|
+
return default_value if value.nil?
|
|
25
|
+
|
|
26
|
+
str = value.to_s.strip
|
|
27
|
+
|
|
28
|
+
case str.downcase
|
|
29
|
+
when 'email' then EMAIL
|
|
30
|
+
when 'sms' then SMS
|
|
31
|
+
else
|
|
32
|
+
default_value
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module StaxFattMerchantApi
|
|
7
|
+
# PostRefundRequestBodyJson Model.
|
|
8
|
+
class PostRefundRequestBodyJson < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# Partial refund amount (omit for full refund)
|
|
13
|
+
# @return [Float]
|
|
14
|
+
attr_accessor :total
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['total'] = 'total'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
total
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(total: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@total = total unless total == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
total = hash.key?('total') ? hash['total'] : SKIP
|
|
49
|
+
|
|
50
|
+
# Create a new hash for additional properties, removing known properties.
|
|
51
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
52
|
+
|
|
53
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
54
|
+
new_hash, proc { |value| value }
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# Create object from extracted values.
|
|
58
|
+
PostRefundRequestBodyJson.new(total: total,
|
|
59
|
+
additional_properties: additional_properties)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Provides a human-readable string representation of the object.
|
|
63
|
+
def to_s
|
|
64
|
+
class_name = self.class.name.split('::').last
|
|
65
|
+
"<#{class_name} total: #{@total}, additional_properties: #{@additional_properties}>"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
69
|
+
def inspect
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} total: #{@total.inspect}, additional_properties:"\
|
|
72
|
+
" #{@additional_properties}>"
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module StaxFattMerchantApi
|
|
7
|
+
# PostSendLaterMethod.
|
|
8
|
+
class PostSendLaterMethod
|
|
9
|
+
POST_SEND_LATER_METHOD = [
|
|
10
|
+
# TODO: Write general description for EMAIL
|
|
11
|
+
EMAIL = 'email'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for SMS
|
|
14
|
+
SMS = 'sms'.freeze
|
|
15
|
+
].freeze
|
|
16
|
+
|
|
17
|
+
def self.validate(value)
|
|
18
|
+
return false if value.nil?
|
|
19
|
+
|
|
20
|
+
POST_SEND_LATER_METHOD.include?(value)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.from_value(value, default_value = EMAIL)
|
|
24
|
+
return default_value if value.nil?
|
|
25
|
+
|
|
26
|
+
str = value.to_s.strip
|
|
27
|
+
|
|
28
|
+
case str.downcase
|
|
29
|
+
when 'email' then EMAIL
|
|
30
|
+
when 'sms' then SMS
|
|
31
|
+
else
|
|
32
|
+
default_value
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
require 'date'
|
|
7
|
+
module StaxFattMerchantApi
|
|
8
|
+
# PostSendLaterRequestBodyJson Model.
|
|
9
|
+
class PostSendLaterRequestBodyJson < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for this method
|
|
14
|
+
# @return [DateTime]
|
|
15
|
+
attr_accessor :send_at
|
|
16
|
+
|
|
17
|
+
# A mapping from model property names to API property names.
|
|
18
|
+
def self.names
|
|
19
|
+
@_hash = {} if @_hash.nil?
|
|
20
|
+
@_hash['send_at'] = 'send_at'
|
|
21
|
+
@_hash
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# An array for optional fields
|
|
25
|
+
def self.optionals
|
|
26
|
+
%w[
|
|
27
|
+
send_at
|
|
28
|
+
]
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# An array for nullable fields
|
|
32
|
+
def self.nullables
|
|
33
|
+
[]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def initialize(send_at: SKIP, additional_properties: nil)
|
|
37
|
+
# Add additional model properties to the instance
|
|
38
|
+
additional_properties = {} if additional_properties.nil?
|
|
39
|
+
|
|
40
|
+
@send_at = send_at unless send_at == SKIP
|
|
41
|
+
@additional_properties = additional_properties
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Creates an instance of the object from a hash.
|
|
45
|
+
def self.from_hash(hash)
|
|
46
|
+
return nil unless hash
|
|
47
|
+
|
|
48
|
+
# Extract variables from the hash.
|
|
49
|
+
send_at = if hash.key?('send_at')
|
|
50
|
+
(DateTimeHelper.from_rfc3339(hash['send_at']) if hash['send_at'])
|
|
51
|
+
else
|
|
52
|
+
SKIP
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Create a new hash for additional properties, removing known properties.
|
|
56
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
57
|
+
|
|
58
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
59
|
+
new_hash, proc { |value| value }
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
# Create object from extracted values.
|
|
63
|
+
PostSendLaterRequestBodyJson.new(send_at: send_at,
|
|
64
|
+
additional_properties: additional_properties)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def to_custom_send_at
|
|
68
|
+
DateTimeHelper.to_rfc3339(send_at)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Provides a human-readable string representation of the object.
|
|
72
|
+
def to_s
|
|
73
|
+
class_name = self.class.name.split('::').last
|
|
74
|
+
"<#{class_name} send_at: #{@send_at}, additional_properties: #{@additional_properties}>"
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
78
|
+
def inspect
|
|
79
|
+
class_name = self.class.name.split('::').last
|
|
80
|
+
"<#{class_name} send_at: #{@send_at.inspect}, additional_properties:"\
|
|
81
|
+
" #{@additional_properties}>"
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module StaxFattMerchantApi
|
|
7
|
+
# PostSmsReceiptRequestBodyJson Model.
|
|
8
|
+
class PostSmsReceiptRequestBodyJson < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :phone
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['phone'] = 'phone'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
phone
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(phone: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@phone = phone unless phone == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
phone = hash.key?('phone') ? hash['phone'] : SKIP
|
|
49
|
+
|
|
50
|
+
# Create a new hash for additional properties, removing known properties.
|
|
51
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
52
|
+
|
|
53
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
54
|
+
new_hash, proc { |value| value }
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# Create object from extracted values.
|
|
58
|
+
PostSmsReceiptRequestBodyJson.new(phone: phone,
|
|
59
|
+
additional_properties: additional_properties)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Provides a human-readable string representation of the object.
|
|
63
|
+
def to_s
|
|
64
|
+
class_name = self.class.name.split('::').last
|
|
65
|
+
"<#{class_name} phone: #{@phone}, additional_properties: #{@additional_properties}>"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
69
|
+
def inspect
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} phone: #{@phone.inspect}, additional_properties:"\
|
|
72
|
+
" #{@additional_properties}>"
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module StaxFattMerchantApi
|
|
7
|
+
# PostTeamBrandingRequestBody Model.
|
|
8
|
+
class PostTeamBrandingRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Binary]
|
|
14
|
+
attr_accessor :file
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['file'] = 'file'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
file
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(file: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@file = file unless file == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
file = hash.key?('file') ? hash['file'] : SKIP
|
|
49
|
+
|
|
50
|
+
# Create a new hash for additional properties, removing known properties.
|
|
51
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
52
|
+
|
|
53
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
54
|
+
new_hash, proc { |value| value }
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# Create object from extracted values.
|
|
58
|
+
PostTeamBrandingRequestBody.new(file: file,
|
|
59
|
+
additional_properties: additional_properties)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Provides a human-readable string representation of the object.
|
|
63
|
+
def to_s
|
|
64
|
+
class_name = self.class.name.split('::').last
|
|
65
|
+
"<#{class_name} file: #{@file}, additional_properties: #{@additional_properties}>"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
69
|
+
def inspect
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} file: #{@file.inspect}, additional_properties: #{@additional_properties}>"
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# stax_fatt_merchant_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC
|
|
4
|
+
# v3.0 ( https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module StaxFattMerchantApi
|
|
7
|
+
# PostTeamFundingAccountFileRequestBody Model.
|
|
8
|
+
class PostTeamFundingAccountFileRequestBody < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Binary]
|
|
14
|
+
attr_accessor :file
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['file'] = 'file'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
file
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
[]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def initialize(file: SKIP, additional_properties: nil)
|
|
36
|
+
# Add additional model properties to the instance
|
|
37
|
+
additional_properties = {} if additional_properties.nil?
|
|
38
|
+
|
|
39
|
+
@file = file unless file == SKIP
|
|
40
|
+
@additional_properties = additional_properties
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Creates an instance of the object from a hash.
|
|
44
|
+
def self.from_hash(hash)
|
|
45
|
+
return nil unless hash
|
|
46
|
+
|
|
47
|
+
# Extract variables from the hash.
|
|
48
|
+
file = hash.key?('file') ? hash['file'] : SKIP
|
|
49
|
+
|
|
50
|
+
# Create a new hash for additional properties, removing known properties.
|
|
51
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
52
|
+
|
|
53
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
54
|
+
new_hash, proc { |value| value }
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# Create object from extracted values.
|
|
58
|
+
PostTeamFundingAccountFileRequestBody.new(file: file,
|
|
59
|
+
additional_properties: additional_properties)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Provides a human-readable string representation of the object.
|
|
63
|
+
def to_s
|
|
64
|
+
class_name = self.class.name.split('::').last
|
|
65
|
+
"<#{class_name} file: #{@file}, additional_properties: #{@additional_properties}>"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
69
|
+
def inspect
|
|
70
|
+
class_name = self.class.name.split('::').last
|
|
71
|
+
"<#{class_name} file: #{@file.inspect}, additional_properties: #{@additional_properties}>"
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|