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.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +189 -0
  4. data/bin/console +15 -0
  5. data/lib/stax_fatt_merchant_api/api_helper.rb +10 -0
  6. data/lib/stax_fatt_merchant_api/apis/base_api.rb +67 -0
  7. data/lib/stax_fatt_merchant_api/apis/cache_api.rb +28 -0
  8. data/lib/stax_fatt_merchant_api/apis/charge_api.rb +29 -0
  9. data/lib/stax_fatt_merchant_api/apis/credit_api.rb +29 -0
  10. data/lib/stax_fatt_merchant_api/apis/customer_api.rb +307 -0
  11. data/lib/stax_fatt_merchant_api/apis/dispute_file_api.rb +46 -0
  12. data/lib/stax_fatt_merchant_api/apis/file_api.rb +115 -0
  13. data/lib/stax_fatt_merchant_api/apis/hello_sign_api.rb +103 -0
  14. data/lib/stax_fatt_merchant_api/apis/integration_api.rb +115 -0
  15. data/lib/stax_fatt_merchant_api/apis/invoice_api.rb +270 -0
  16. data/lib/stax_fatt_merchant_api/apis/invoice_schedule_api.rb +105 -0
  17. data/lib/stax_fatt_merchant_api/apis/item_api.rb +257 -0
  18. data/lib/stax_fatt_merchant_api/apis/merchant_admin_api.rb +323 -0
  19. data/lib/stax_fatt_merchant_api/apis/payment_method_api.rb +128 -0
  20. data/lib/stax_fatt_merchant_api/apis/reporting_api.rb +42 -0
  21. data/lib/stax_fatt_merchant_api/apis/sandbox_api.rb +45 -0
  22. data/lib/stax_fatt_merchant_api/apis/self_api.rb +186 -0
  23. data/lib/stax_fatt_merchant_api/apis/team_api.rb +143 -0
  24. data/lib/stax_fatt_merchant_api/apis/team_api_keys_api.rb +141 -0
  25. data/lib/stax_fatt_merchant_api/apis/team_funding_accounts_api.rb +175 -0
  26. data/lib/stax_fatt_merchant_api/apis/team_options_api.rb +141 -0
  27. data/lib/stax_fatt_merchant_api/apis/team_registration_api.rb +156 -0
  28. data/lib/stax_fatt_merchant_api/apis/team_users_api.rb +139 -0
  29. data/lib/stax_fatt_merchant_api/apis/terminal_api.rb +73 -0
  30. data/lib/stax_fatt_merchant_api/apis/transaction_api.rb +467 -0
  31. data/lib/stax_fatt_merchant_api/apis/user_admin_api.rb +161 -0
  32. data/lib/stax_fatt_merchant_api/apis/verify_api.rb +42 -0
  33. data/lib/stax_fatt_merchant_api/apis/web_payment_api.rb +28 -0
  34. data/lib/stax_fatt_merchant_api/apis/webhook_api.rb +98 -0
  35. data/lib/stax_fatt_merchant_api/client.rb +235 -0
  36. data/lib/stax_fatt_merchant_api/configuration.rb +179 -0
  37. data/lib/stax_fatt_merchant_api/exceptions/api_exception.rb +21 -0
  38. data/lib/stax_fatt_merchant_api/http/api_response.rb +19 -0
  39. data/lib/stax_fatt_merchant_api/http/auth/oauth_2.rb +53 -0
  40. data/lib/stax_fatt_merchant_api/http/http_call_back.rb +10 -0
  41. data/lib/stax_fatt_merchant_api/http/http_method_enum.rb +10 -0
  42. data/lib/stax_fatt_merchant_api/http/http_request.rb +10 -0
  43. data/lib/stax_fatt_merchant_api/http/http_response.rb +10 -0
  44. data/lib/stax_fatt_merchant_api/http/proxy_settings.rb +22 -0
  45. data/lib/stax_fatt_merchant_api/logging/configuration/api_logging_configuration.rb +186 -0
  46. data/lib/stax_fatt_merchant_api/logging/sdk_logger.rb +17 -0
  47. data/lib/stax_fatt_merchant_api/models/base_model.rb +110 -0
  48. data/lib/stax_fatt_merchant_api/models/delete_customer_bulk_request_body_json.rb +74 -0
  49. data/lib/stax_fatt_merchant_api/models/delete_item_bulk_request_body_json.rb +74 -0
  50. data/lib/stax_fatt_merchant_api/models/get_ephemeral_token_response200_json.rb +75 -0
  51. data/lib/stax_fatt_merchant_api/models/get_ephemeral_token_root_response200_json.rb +75 -0
  52. data/lib/stax_fatt_merchant_api/models/merge_customer_request_body_json.rb +76 -0
  53. data/lib/stax_fatt_merchant_api/models/post_cache_test_request_body_json.rb +74 -0
  54. data/lib/stax_fatt_merchant_api/models/post_capture_request_body_json.rb +75 -0
  55. data/lib/stax_fatt_merchant_api/models/post_credit_request_body_json.rb +96 -0
  56. data/lib/stax_fatt_merchant_api/models/post_dispute_file_request_body.rb +74 -0
  57. data/lib/stax_fatt_merchant_api/models/post_email_receipt_request_body_json.rb +75 -0
  58. data/lib/stax_fatt_merchant_api/models/post_file_request_body.rb +85 -0
  59. data/lib/stax_fatt_merchant_api/models/post_invoice_manual_payment_method.rb +52 -0
  60. data/lib/stax_fatt_merchant_api/models/post_invoice_manual_payment_request_body_json.rb +75 -0
  61. data/lib/stax_fatt_merchant_api/models/post_invoice_payment_request_body_json.rb +87 -0
  62. data/lib/stax_fatt_merchant_api/models/post_item_thumbnail_request_body.rb +74 -0
  63. data/lib/stax_fatt_merchant_api/models/post_payment_method_token_request_body_json.rb +85 -0
  64. data/lib/stax_fatt_merchant_api/models/post_receipt_method.rb +36 -0
  65. data/lib/stax_fatt_merchant_api/models/post_refund_request_body_json.rb +75 -0
  66. data/lib/stax_fatt_merchant_api/models/post_send_later_method.rb +36 -0
  67. data/lib/stax_fatt_merchant_api/models/post_send_later_request_body_json.rb +84 -0
  68. data/lib/stax_fatt_merchant_api/models/post_sms_receipt_request_body_json.rb +75 -0
  69. data/lib/stax_fatt_merchant_api/models/post_team_branding_request_body.rb +74 -0
  70. data/lib/stax_fatt_merchant_api/models/post_team_funding_account_file_request_body.rb +74 -0
  71. data/lib/stax_fatt_merchant_api/models/post_team_registration_file_request_body.rb +74 -0
  72. data/lib/stax_fatt_merchant_api/models/post_terminal_signature_request_body_json.rb +87 -0
  73. data/lib/stax_fatt_merchant_api/models/post_verification_request_body_json.rb +77 -0
  74. data/lib/stax_fatt_merchant_api/models/post_void_or_refund_request_body_json.rb +75 -0
  75. data/lib/stax_fatt_merchant_api/models/put_email_receipt_request_body_json.rb +75 -0
  76. data/lib/stax_fatt_merchant_api/models/put_notify_email_request_body_json.rb +75 -0
  77. data/lib/stax_fatt_merchant_api/models/put_publish_bulk_request_body_json.rb +74 -0
  78. data/lib/stax_fatt_merchant_api/models/put_receipt_bulk_method_method.rb +36 -0
  79. data/lib/stax_fatt_merchant_api/models/put_receipt_bulk_method_request_body_json.rb +77 -0
  80. data/lib/stax_fatt_merchant_api/models/put_receipt_bulk_request_body_json.rb +77 -0
  81. data/lib/stax_fatt_merchant_api/models/put_receipt_method.rb +36 -0
  82. data/lib/stax_fatt_merchant_api/models/put_receipt_request_body_json.rb +85 -0
  83. data/lib/stax_fatt_merchant_api/models/put_registration_sign_request_body_json.rb +76 -0
  84. data/lib/stax_fatt_merchant_api/models/put_restore_customer_bulk_request_body_json.rb +74 -0
  85. data/lib/stax_fatt_merchant_api/models/put_send_invoice_bulk_method.rb +36 -0
  86. data/lib/stax_fatt_merchant_api/models/put_send_invoice_bulk_request_body_json.rb +76 -0
  87. data/lib/stax_fatt_merchant_api/models/put_send_invoice_method.rb +36 -0
  88. data/lib/stax_fatt_merchant_api/models/put_set_default_merchant_request_body_json.rb +76 -0
  89. data/lib/stax_fatt_merchant_api/models/put_set_plan_request_body_json.rb +74 -0
  90. data/lib/stax_fatt_merchant_api/models/put_sms_receipt_request_body_json.rb +75 -0
  91. data/lib/stax_fatt_merchant_api/models/put_team_registration_file_request_body.rb +74 -0
  92. data/lib/stax_fatt_merchant_api/models/put_terminal_signature_request_body_json.rb +76 -0
  93. data/lib/stax_fatt_merchant_api/models/put_transaction_request_body_json.rb +74 -0
  94. data/lib/stax_fatt_merchant_api/models/put_unpublish_bulk_request_body_json.rb +74 -0
  95. data/lib/stax_fatt_merchant_api/models/put_verify_integration_token_request_body_json.rb +75 -0
  96. data/lib/stax_fatt_merchant_api/utilities/date_time_helper.rb +11 -0
  97. data/lib/stax_fatt_merchant_api/utilities/file_wrapper.rb +28 -0
  98. data/lib/stax_fatt_merchant_api.rb +154 -0
  99. metadata +182 -0
@@ -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
+ # PutSmsReceiptRequestBodyJson Model.
8
+ class PutSmsReceiptRequestBodyJson < 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
+ PutSmsReceiptRequestBodyJson.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
+ # PutTeamRegistrationFileRequestBody Model.
8
+ class PutTeamRegistrationFileRequestBody < 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
+ PutTeamRegistrationFileRequestBody.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,76 @@
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
+ # PutTerminalSignatureRequestBodyJson Model.
8
+ class PutTerminalSignatureRequestBodyJson < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :signature
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['signature'] = 'signature'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ signature
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(signature: SKIP, additional_properties: nil)
36
+ # Add additional model properties to the instance
37
+ additional_properties = {} if additional_properties.nil?
38
+
39
+ @signature = signature unless signature == 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
+ signature = hash.key?('signature') ? hash['signature'] : 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
+ PutTerminalSignatureRequestBodyJson.new(signature: signature,
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} signature: #{@signature}, additional_properties:"\
66
+ " #{@additional_properties}>"
67
+ end
68
+
69
+ # Provides a debugging-friendly string with detailed object information.
70
+ def inspect
71
+ class_name = self.class.name.split('::').last
72
+ "<#{class_name} signature: #{@signature.inspect}, additional_properties:"\
73
+ " #{@additional_properties}>"
74
+ end
75
+ end
76
+ 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
+ # PutTransactionRequestBodyJson Model.
8
+ class PutTransactionRequestBodyJson < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Object]
14
+ attr_accessor :meta
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['meta'] = 'meta'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ meta
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(meta: SKIP, additional_properties: nil)
36
+ # Add additional model properties to the instance
37
+ additional_properties = {} if additional_properties.nil?
38
+
39
+ @meta = meta unless meta == 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
+ meta = hash.key?('meta') ? hash['meta'] : 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
+ PutTransactionRequestBodyJson.new(meta: meta,
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} meta: #{@meta}, 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} meta: #{@meta.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
+ # PutUnpublishBulkRequestBodyJson Model.
8
+ class PutUnpublishBulkRequestBodyJson < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Array[UUID | String]]
14
+ attr_accessor :ids
15
+
16
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['ids'] = 'ids'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ ids
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(ids: SKIP, additional_properties: nil)
36
+ # Add additional model properties to the instance
37
+ additional_properties = {} if additional_properties.nil?
38
+
39
+ @ids = ids unless ids == 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
+ ids = hash.key?('ids') ? hash['ids'] : 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
+ PutUnpublishBulkRequestBodyJson.new(ids: ids,
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} ids: #{@ids}, 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} ids: #{@ids.inspect}, additional_properties: #{@additional_properties}>"
72
+ end
73
+ end
74
+ 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
+ # PutVerifyIntegrationTokenRequestBodyJson Model.
8
+ class PutVerifyIntegrationTokenRequestBodyJson < 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
+ # A mapping from model property names to API property names.
17
+ def self.names
18
+ @_hash = {} if @_hash.nil?
19
+ @_hash['token'] = 'token'
20
+ @_hash
21
+ end
22
+
23
+ # An array for optional fields
24
+ def self.optionals
25
+ %w[
26
+ token
27
+ ]
28
+ end
29
+
30
+ # An array for nullable fields
31
+ def self.nullables
32
+ []
33
+ end
34
+
35
+ def initialize(token: SKIP, additional_properties: nil)
36
+ # Add additional model properties to the instance
37
+ additional_properties = {} if additional_properties.nil?
38
+
39
+ @token = token unless token == 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
+ token = hash.key?('token') ? hash['token'] : 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
+ PutVerifyIntegrationTokenRequestBodyJson.new(token: token,
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} token: #{@token}, 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} token: #{@token.inspect}, additional_properties:"\
72
+ " #{@additional_properties}>"
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,11 @@
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
+ # A utility that supports dateTime conversion to different formats
9
+ class DateTimeHelper < CoreLibrary::DateTimeHelper
10
+ end
11
+ end
@@ -0,0 +1,28 @@
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
+ # A utility to allow users to set the content-type for files
8
+ class FileWrapper < CoreLibrary::FileWrapper
9
+ # The constructor.
10
+ # @param [File] file The file to be sent in the request.
11
+ # @param [string] content_type The content type of the provided file.
12
+ def initialize(file, content_type: 'application/octet-stream')
13
+ super
14
+ end
15
+
16
+ # Provides a human-readable string representation of the object.
17
+ def to_s
18
+ class_name = self.class.name.split('::').last
19
+ "<#{class_name} file: #{@file}, content_type: #{@content_type}>"
20
+ end
21
+
22
+ # Provides a debugging-friendly string with detailed object information.
23
+ def to_inspect
24
+ class_name = self.class.name.split('::').last
25
+ "<#{class_name} file: #{@file.inspect}, content_type: #{@content_type.inspect}>"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,154 @@
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
+ require 'json'
8
+
9
+ require 'apimatic_core_interfaces'
10
+ require 'apimatic_core'
11
+ require 'apimatic_faraday_client_adapter'
12
+
13
+ require_relative 'stax_fatt_merchant_api/api_helper'
14
+ require_relative 'stax_fatt_merchant_api/client'
15
+
16
+ # Utilities
17
+ require_relative 'stax_fatt_merchant_api/utilities/file_wrapper'
18
+ require_relative 'stax_fatt_merchant_api/utilities/date_time_helper'
19
+
20
+ # Http
21
+ require_relative 'stax_fatt_merchant_api/http/api_response'
22
+ require_relative 'stax_fatt_merchant_api/http/http_call_back'
23
+ require_relative 'stax_fatt_merchant_api/http/http_method_enum'
24
+ require_relative 'stax_fatt_merchant_api/http/http_request'
25
+ require_relative 'stax_fatt_merchant_api/http/http_response'
26
+ require_relative 'stax_fatt_merchant_api/http/proxy_settings'
27
+
28
+
29
+ # Logger
30
+ require_relative 'stax_fatt_merchant_api/logging/configuration/' \
31
+ 'api_logging_configuration'
32
+ require_relative 'stax_fatt_merchant_api/logging/sdk_logger'
33
+ require_relative 'stax_fatt_merchant_api/http/auth/oauth_2'
34
+
35
+ # Models
36
+ require_relative 'stax_fatt_merchant_api/models/base_model'
37
+ require_relative 'stax_fatt_merchant_api/models/' \
38
+ 'put_set_default_merchant_request_body_json'
39
+ require_relative 'stax_fatt_merchant_api/models/' \
40
+ 'get_ephemeral_token_root_response200_json'
41
+ require_relative 'stax_fatt_merchant_api/models/' \
42
+ 'post_cache_test_request_body_json'
43
+ require_relative 'stax_fatt_merchant_api/models/' \
44
+ 'get_ephemeral_token_response200_json'
45
+ require_relative 'stax_fatt_merchant_api/models/post_team_branding_request_body'
46
+ require_relative 'stax_fatt_merchant_api/models/put_set_plan_request_body_json'
47
+ require_relative 'stax_fatt_merchant_api/models/' \
48
+ 'put_notify_email_request_body_json'
49
+ require_relative 'stax_fatt_merchant_api/models/' \
50
+ 'put_registration_sign_request_body_json'
51
+ require_relative 'stax_fatt_merchant_api/models/' \
52
+ 'post_team_registration_file_request_body'
53
+ require_relative 'stax_fatt_merchant_api/models/' \
54
+ 'put_team_registration_file_request_body'
55
+ require_relative 'stax_fatt_merchant_api/models/' \
56
+ 'post_team_funding_account_file_request_body'
57
+ require_relative 'stax_fatt_merchant_api/models/' \
58
+ 'put_transaction_request_body_json'
59
+ require_relative 'stax_fatt_merchant_api/models/post_refund_request_body_json'
60
+ require_relative 'stax_fatt_merchant_api/models/' \
61
+ 'post_void_or_refund_request_body_json'
62
+ require_relative 'stax_fatt_merchant_api/models/post_capture_request_body_json'
63
+ require_relative 'stax_fatt_merchant_api/models/put_receipt_request_body_json'
64
+ require_relative 'stax_fatt_merchant_api/models/' \
65
+ 'put_email_receipt_request_body_json'
66
+ require_relative 'stax_fatt_merchant_api/models/' \
67
+ 'post_email_receipt_request_body_json'
68
+ require_relative 'stax_fatt_merchant_api/models/' \
69
+ 'put_sms_receipt_request_body_json'
70
+ require_relative 'stax_fatt_merchant_api/models/' \
71
+ 'post_sms_receipt_request_body_json'
72
+ require_relative 'stax_fatt_merchant_api/models/' \
73
+ 'put_receipt_bulk_method_request_body_json'
74
+ require_relative 'stax_fatt_merchant_api/models/' \
75
+ 'put_receipt_bulk_request_body_json'
76
+ require_relative 'stax_fatt_merchant_api/models/' \
77
+ 'put_send_invoice_bulk_request_body_json'
78
+ require_relative 'stax_fatt_merchant_api/models/' \
79
+ 'post_send_later_request_body_json'
80
+ require_relative 'stax_fatt_merchant_api/models/' \
81
+ 'post_invoice_payment_request_body_json'
82
+ require_relative 'stax_fatt_merchant_api/models/' \
83
+ 'post_invoice_manual_payment_request_body_json'
84
+ require_relative 'stax_fatt_merchant_api/models/' \
85
+ 'delete_customer_bulk_request_body_json'
86
+ require_relative 'stax_fatt_merchant_api/models/' \
87
+ 'put_restore_customer_bulk_request_body_json'
88
+ require_relative 'stax_fatt_merchant_api/models/' \
89
+ 'merge_customer_request_body_json'
90
+ require_relative 'stax_fatt_merchant_api/models/' \
91
+ 'put_publish_bulk_request_body_json'
92
+ require_relative 'stax_fatt_merchant_api/models/' \
93
+ 'put_unpublish_bulk_request_body_json'
94
+ require_relative 'stax_fatt_merchant_api/models/' \
95
+ 'delete_item_bulk_request_body_json'
96
+ require_relative 'stax_fatt_merchant_api/models/' \
97
+ 'post_item_thumbnail_request_body'
98
+ require_relative 'stax_fatt_merchant_api/models/post_file_request_body'
99
+ require_relative 'stax_fatt_merchant_api/models/post_dispute_file_request_body'
100
+ require_relative 'stax_fatt_merchant_api/models/' \
101
+ 'post_payment_method_token_request_body_json'
102
+ require_relative 'stax_fatt_merchant_api/models/post_credit_request_body_json'
103
+ require_relative 'stax_fatt_merchant_api/models/' \
104
+ 'post_verification_request_body_json'
105
+ require_relative 'stax_fatt_merchant_api/models/' \
106
+ 'put_verify_integration_token_request_body_json'
107
+ require_relative 'stax_fatt_merchant_api/models/' \
108
+ 'post_terminal_signature_request_body_json'
109
+ require_relative 'stax_fatt_merchant_api/models/' \
110
+ 'put_terminal_signature_request_body_json'
111
+ require_relative 'stax_fatt_merchant_api/models/put_receipt_method'
112
+ require_relative 'stax_fatt_merchant_api/models/post_receipt_method'
113
+ require_relative 'stax_fatt_merchant_api/models/put_receipt_bulk_method_method'
114
+ require_relative 'stax_fatt_merchant_api/models/put_send_invoice_method'
115
+ require_relative 'stax_fatt_merchant_api/models/put_send_invoice_bulk_method'
116
+ require_relative 'stax_fatt_merchant_api/models/post_send_later_method'
117
+ require_relative 'stax_fatt_merchant_api/models/' \
118
+ 'post_invoice_manual_payment_method'
119
+
120
+ # Exceptions
121
+ require_relative 'stax_fatt_merchant_api/exceptions/api_exception'
122
+
123
+ require_relative 'stax_fatt_merchant_api/configuration'
124
+
125
+ # Controllers
126
+ require_relative 'stax_fatt_merchant_api/apis/base_api'
127
+ require_relative 'stax_fatt_merchant_api/apis/self_api'
128
+ require_relative 'stax_fatt_merchant_api/apis/team_api'
129
+ require_relative 'stax_fatt_merchant_api/apis/team_users_api'
130
+ require_relative 'stax_fatt_merchant_api/apis/team_api_keys_api'
131
+ require_relative 'stax_fatt_merchant_api/apis/team_options_api'
132
+ require_relative 'stax_fatt_merchant_api/apis/team_registration_api'
133
+ require_relative 'stax_fatt_merchant_api/apis/team_funding_accounts_api'
134
+ require_relative 'stax_fatt_merchant_api/apis/webhook_api'
135
+ require_relative 'stax_fatt_merchant_api/apis/transaction_api'
136
+ require_relative 'stax_fatt_merchant_api/apis/invoice_api'
137
+ require_relative 'stax_fatt_merchant_api/apis/invoice_schedule_api'
138
+ require_relative 'stax_fatt_merchant_api/apis/customer_api'
139
+ require_relative 'stax_fatt_merchant_api/apis/item_api'
140
+ require_relative 'stax_fatt_merchant_api/apis/file_api'
141
+ require_relative 'stax_fatt_merchant_api/apis/dispute_file_api'
142
+ require_relative 'stax_fatt_merchant_api/apis/payment_method_api'
143
+ require_relative 'stax_fatt_merchant_api/apis/integration_api'
144
+ require_relative 'stax_fatt_merchant_api/apis/hello_sign_api'
145
+ require_relative 'stax_fatt_merchant_api/apis/reporting_api'
146
+ require_relative 'stax_fatt_merchant_api/apis/charge_api'
147
+ require_relative 'stax_fatt_merchant_api/apis/credit_api'
148
+ require_relative 'stax_fatt_merchant_api/apis/verify_api'
149
+ require_relative 'stax_fatt_merchant_api/apis/terminal_api'
150
+ require_relative 'stax_fatt_merchant_api/apis/merchant_admin_api'
151
+ require_relative 'stax_fatt_merchant_api/apis/user_admin_api'
152
+ require_relative 'stax_fatt_merchant_api/apis/sandbox_api'
153
+ require_relative 'stax_fatt_merchant_api/apis/cache_api'
154
+ require_relative 'stax_fatt_merchant_api/apis/web_payment_api'