paze-apimatic-sdk 1.0.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 (74) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +147 -0
  4. data/bin/console +15 -0
  5. data/lib/paze_checkout_api/api_helper.rb +10 -0
  6. data/lib/paze_checkout_api/client.rb +97 -0
  7. data/lib/paze_checkout_api/configuration.rb +221 -0
  8. data/lib/paze_checkout_api/controllers/base_controller.rb +60 -0
  9. data/lib/paze_checkout_api/controllers/checkout_session_controller.rb +108 -0
  10. data/lib/paze_checkout_api/controllers/identity_controller.rb +43 -0
  11. data/lib/paze_checkout_api/controllers/merchant_onboarding_controller.rb +39 -0
  12. data/lib/paze_checkout_api/controllers/o_auth_authorization_controller.rb +42 -0
  13. data/lib/paze_checkout_api/exceptions/api_error_response_exception.rb +67 -0
  14. data/lib/paze_checkout_api/exceptions/api_exception.rb +21 -0
  15. data/lib/paze_checkout_api/exceptions/base_response_exception.rb +75 -0
  16. data/lib/paze_checkout_api/exceptions/o_auth_provider_exception.rb +64 -0
  17. data/lib/paze_checkout_api/exceptions/simple_error_exception.rb +46 -0
  18. data/lib/paze_checkout_api/http/auth/o_auth2.rb +149 -0
  19. data/lib/paze_checkout_api/http/http_call_back.rb +10 -0
  20. data/lib/paze_checkout_api/http/http_method_enum.rb +10 -0
  21. data/lib/paze_checkout_api/http/http_request.rb +10 -0
  22. data/lib/paze_checkout_api/http/http_response.rb +10 -0
  23. data/lib/paze_checkout_api/http/proxy_settings.rb +22 -0
  24. data/lib/paze_checkout_api/models/api_response_metadata.rb +87 -0
  25. data/lib/paze_checkout_api/models/base_model.rb +110 -0
  26. data/lib/paze_checkout_api/models/billing_preference_enum.rb +36 -0
  27. data/lib/paze_checkout_api/models/checkout_session_complete_request.rb +70 -0
  28. data/lib/paze_checkout_api/models/checkout_session_complete_response.rb +97 -0
  29. data/lib/paze_checkout_api/models/checkout_session_create_request.rb +70 -0
  30. data/lib/paze_checkout_api/models/checkout_session_create_response.rb +97 -0
  31. data/lib/paze_checkout_api/models/checkout_session_review_request.rb +70 -0
  32. data/lib/paze_checkout_api/models/checkout_session_review_response.rb +97 -0
  33. data/lib/paze_checkout_api/models/client.rb +80 -0
  34. data/lib/paze_checkout_api/models/client_assertion_type_enum.rb +27 -0
  35. data/lib/paze_checkout_api/models/complete_session_data.rb +131 -0
  36. data/lib/paze_checkout_api/models/complete_session_response_data.rb +71 -0
  37. data/lib/paze_checkout_api/models/consumer.rb +100 -0
  38. data/lib/paze_checkout_api/models/create_session_data.rb +134 -0
  39. data/lib/paze_checkout_api/models/create_session_response_data.rb +71 -0
  40. data/lib/paze_checkout_api/models/data.rb +62 -0
  41. data/lib/paze_checkout_api/models/ecommerce_data.rb +109 -0
  42. data/lib/paze_checkout_api/models/enhanced_transaction_data.rb +71 -0
  43. data/lib/paze_checkout_api/models/error_detail.rb +81 -0
  44. data/lib/paze_checkout_api/models/error_message.rb +88 -0
  45. data/lib/paze_checkout_api/models/grant_type_enum.rb +26 -0
  46. data/lib/paze_checkout_api/models/intent_enum.rb +40 -0
  47. data/lib/paze_checkout_api/models/links.rb +74 -0
  48. data/lib/paze_checkout_api/models/masked_card.rb +107 -0
  49. data/lib/paze_checkout_api/models/merchant_address.rb +97 -0
  50. data/lib/paze_checkout_api/models/merchant_onboard_data.rb +115 -0
  51. data/lib/paze_checkout_api/models/merchant_onboard_request.rb +70 -0
  52. data/lib/paze_checkout_api/models/merchant_profile.rb +83 -0
  53. data/lib/paze_checkout_api/models/merchant_response.rb +122 -0
  54. data/lib/paze_checkout_api/models/o_auth_provider_error_enum.rb +62 -0
  55. data/lib/paze_checkout_api/models/o_auth_token.rb +96 -0
  56. data/lib/paze_checkout_api/models/o_auth_token_request.rb +75 -0
  57. data/lib/paze_checkout_api/models/o_auth_token_response.rb +78 -0
  58. data/lib/paze_checkout_api/models/onboard_merchant_key.rb +112 -0
  59. data/lib/paze_checkout_api/models/payload_type_indicator_enum.rb +36 -0
  60. data/lib/paze_checkout_api/models/payment_card_brand_enum.rb +40 -0
  61. data/lib/paze_checkout_api/models/payment_card_type_enum.rb +36 -0
  62. data/lib/paze_checkout_api/models/phone.rb +72 -0
  63. data/lib/paze_checkout_api/models/processing_network_enum.rb +40 -0
  64. data/lib/paze_checkout_api/models/review_session_data.rb +68 -0
  65. data/lib/paze_checkout_api/models/review_session_response_data.rb +100 -0
  66. data/lib/paze_checkout_api/models/shipping_address.rb +101 -0
  67. data/lib/paze_checkout_api/models/transaction_options.rb +87 -0
  68. data/lib/paze_checkout_api/models/transaction_type_enum.rb +36 -0
  69. data/lib/paze_checkout_api/models/transaction_value.rb +72 -0
  70. data/lib/paze_checkout_api/models/travel_data.rb +110 -0
  71. data/lib/paze_checkout_api/utilities/date_time_helper.rb +11 -0
  72. data/lib/paze_checkout_api/utilities/file_wrapper.rb +28 -0
  73. data/lib/paze_checkout_api.rb +93 -0
  74. metadata +157 -0
@@ -0,0 +1,100 @@
1
+ # paze_checkout_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module PazeCheckoutApi
7
+ # ReviewSessionResponseData Model.
8
+ class ReviewSessionResponseData < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Consumer]
14
+ attr_accessor :consumer
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [MaskedCard]
18
+ attr_accessor :masked_card
19
+
20
+ # TODO: Write general description for this method
21
+ # @return [ShippingAddress]
22
+ attr_accessor :shipping_address
23
+
24
+ # TODO: Write general description for this method
25
+ # @return [String]
26
+ attr_accessor :code
27
+
28
+ # TODO: Write general description for this method
29
+ # @return [Links]
30
+ attr_accessor :links
31
+
32
+ # A mapping from model property names to API property names.
33
+ def self.names
34
+ @_hash = {} if @_hash.nil?
35
+ @_hash['consumer'] = 'consumer'
36
+ @_hash['masked_card'] = 'maskedCard'
37
+ @_hash['shipping_address'] = 'shippingAddress'
38
+ @_hash['code'] = 'code'
39
+ @_hash['links'] = 'links'
40
+ @_hash
41
+ end
42
+
43
+ # An array for optional fields
44
+ def self.optionals
45
+ %w[
46
+ shipping_address
47
+ links
48
+ ]
49
+ end
50
+
51
+ # An array for nullable fields
52
+ def self.nullables
53
+ []
54
+ end
55
+
56
+ def initialize(consumer = nil, masked_card = nil, code = nil,
57
+ shipping_address = SKIP, links = SKIP)
58
+ @consumer = consumer
59
+ @masked_card = masked_card
60
+ @shipping_address = shipping_address unless shipping_address == SKIP
61
+ @code = code
62
+ @links = links unless links == SKIP
63
+ end
64
+
65
+ # Creates an instance of the object from a hash.
66
+ def self.from_hash(hash)
67
+ return nil unless hash
68
+
69
+ # Extract variables from the hash.
70
+ consumer = Consumer.from_hash(hash['consumer']) if hash['consumer']
71
+ masked_card = MaskedCard.from_hash(hash['maskedCard']) if hash['maskedCard']
72
+ code = hash.key?('code') ? hash['code'] : nil
73
+ shipping_address = ShippingAddress.from_hash(hash['shippingAddress']) if
74
+ hash['shippingAddress']
75
+ links = Links.from_hash(hash['links']) if hash['links']
76
+
77
+ # Create object from extracted values.
78
+ ReviewSessionResponseData.new(consumer,
79
+ masked_card,
80
+ code,
81
+ shipping_address,
82
+ links)
83
+ end
84
+
85
+ # Provides a human-readable string representation of the object.
86
+ def to_s
87
+ class_name = self.class.name.split('::').last
88
+ "<#{class_name} consumer: #{@consumer}, masked_card: #{@masked_card}, shipping_address:"\
89
+ " #{@shipping_address}, code: #{@code}, links: #{@links}>"
90
+ end
91
+
92
+ # Provides a debugging-friendly string with detailed object information.
93
+ def inspect
94
+ class_name = self.class.name.split('::').last
95
+ "<#{class_name} consumer: #{@consumer.inspect}, masked_card: #{@masked_card.inspect},"\
96
+ " shipping_address: #{@shipping_address.inspect}, code: #{@code.inspect}, links:"\
97
+ " #{@links.inspect}>"
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,101 @@
1
+ # paze_checkout_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module PazeCheckoutApi
7
+ # ShippingAddress Model.
8
+ class ShippingAddress < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :line1
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [String]
18
+ attr_accessor :city
19
+
20
+ # TODO: Write general description for this method
21
+ # @return [String]
22
+ attr_accessor :state
23
+
24
+ # TODO: Write general description for this method
25
+ # @return [String]
26
+ attr_accessor :zip
27
+
28
+ # TODO: Write general description for this method
29
+ # @return [String]
30
+ attr_accessor :country_code
31
+
32
+ # A mapping from model property names to API property names.
33
+ def self.names
34
+ @_hash = {} if @_hash.nil?
35
+ @_hash['line1'] = 'line1'
36
+ @_hash['city'] = 'city'
37
+ @_hash['state'] = 'state'
38
+ @_hash['zip'] = 'zip'
39
+ @_hash['country_code'] = 'countryCode'
40
+ @_hash
41
+ end
42
+
43
+ # An array for optional fields
44
+ def self.optionals
45
+ %w[
46
+ line1
47
+ city
48
+ state
49
+ zip
50
+ country_code
51
+ ]
52
+ end
53
+
54
+ # An array for nullable fields
55
+ def self.nullables
56
+ []
57
+ end
58
+
59
+ def initialize(line1 = SKIP, city = SKIP, state = SKIP, zip = SKIP,
60
+ country_code = SKIP)
61
+ @line1 = line1 unless line1 == SKIP
62
+ @city = city unless city == SKIP
63
+ @state = state unless state == SKIP
64
+ @zip = zip unless zip == SKIP
65
+ @country_code = country_code unless country_code == SKIP
66
+ end
67
+
68
+ # Creates an instance of the object from a hash.
69
+ def self.from_hash(hash)
70
+ return nil unless hash
71
+
72
+ # Extract variables from the hash.
73
+ line1 = hash.key?('line1') ? hash['line1'] : SKIP
74
+ city = hash.key?('city') ? hash['city'] : SKIP
75
+ state = hash.key?('state') ? hash['state'] : SKIP
76
+ zip = hash.key?('zip') ? hash['zip'] : SKIP
77
+ country_code = hash.key?('countryCode') ? hash['countryCode'] : SKIP
78
+
79
+ # Create object from extracted values.
80
+ ShippingAddress.new(line1,
81
+ city,
82
+ state,
83
+ zip,
84
+ country_code)
85
+ end
86
+
87
+ # Provides a human-readable string representation of the object.
88
+ def to_s
89
+ class_name = self.class.name.split('::').last
90
+ "<#{class_name} line1: #{@line1}, city: #{@city}, state: #{@state}, zip: #{@zip},"\
91
+ " country_code: #{@country_code}>"
92
+ end
93
+
94
+ # Provides a debugging-friendly string with detailed object information.
95
+ def inspect
96
+ class_name = self.class.name.split('::').last
97
+ "<#{class_name} line1: #{@line1.inspect}, city: #{@city.inspect}, state: #{@state.inspect},"\
98
+ " zip: #{@zip.inspect}, country_code: #{@country_code.inspect}>"
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,87 @@
1
+ # paze_checkout_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module PazeCheckoutApi
7
+ # TransactionOptions Model.
8
+ class TransactionOptions < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :merchant_category_code
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [BillingPreferenceEnum]
18
+ attr_accessor :billing_preference
19
+
20
+ # TODO: Write general description for this method
21
+ # @return [PayloadTypeIndicatorEnum]
22
+ attr_accessor :payload_type_indicator
23
+
24
+ # A mapping from model property names to API property names.
25
+ def self.names
26
+ @_hash = {} if @_hash.nil?
27
+ @_hash['merchant_category_code'] = 'merchantCategoryCode'
28
+ @_hash['billing_preference'] = 'billingPreference'
29
+ @_hash['payload_type_indicator'] = 'payloadTypeIndicator'
30
+ @_hash
31
+ end
32
+
33
+ # An array for optional fields
34
+ def self.optionals
35
+ %w[
36
+ merchant_category_code
37
+ billing_preference
38
+ payload_type_indicator
39
+ ]
40
+ end
41
+
42
+ # An array for nullable fields
43
+ def self.nullables
44
+ []
45
+ end
46
+
47
+ def initialize(merchant_category_code = SKIP, billing_preference = SKIP,
48
+ payload_type_indicator = SKIP)
49
+ @merchant_category_code = merchant_category_code unless merchant_category_code == SKIP
50
+ @billing_preference = billing_preference unless billing_preference == SKIP
51
+ @payload_type_indicator = payload_type_indicator unless payload_type_indicator == SKIP
52
+ end
53
+
54
+ # Creates an instance of the object from a hash.
55
+ def self.from_hash(hash)
56
+ return nil unless hash
57
+
58
+ # Extract variables from the hash.
59
+ merchant_category_code =
60
+ hash.key?('merchantCategoryCode') ? hash['merchantCategoryCode'] : SKIP
61
+ billing_preference =
62
+ hash.key?('billingPreference') ? hash['billingPreference'] : SKIP
63
+ payload_type_indicator =
64
+ hash.key?('payloadTypeIndicator') ? hash['payloadTypeIndicator'] : SKIP
65
+
66
+ # Create object from extracted values.
67
+ TransactionOptions.new(merchant_category_code,
68
+ billing_preference,
69
+ payload_type_indicator)
70
+ end
71
+
72
+ # Provides a human-readable string representation of the object.
73
+ def to_s
74
+ class_name = self.class.name.split('::').last
75
+ "<#{class_name} merchant_category_code: #{@merchant_category_code}, billing_preference:"\
76
+ " #{@billing_preference}, payload_type_indicator: #{@payload_type_indicator}>"
77
+ end
78
+
79
+ # Provides a debugging-friendly string with detailed object information.
80
+ def inspect
81
+ class_name = self.class.name.split('::').last
82
+ "<#{class_name} merchant_category_code: #{@merchant_category_code.inspect},"\
83
+ " billing_preference: #{@billing_preference.inspect}, payload_type_indicator:"\
84
+ " #{@payload_type_indicator.inspect}>"
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,36 @@
1
+ # paze_checkout_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module PazeCheckoutApi
7
+ # TransactionType.
8
+ class TransactionTypeEnum
9
+ TRANSACTION_TYPE_ENUM = [
10
+ # TODO: Write general description for CARD_ON_FILE
11
+ CARD_ON_FILE = 'CARD_ON_FILE'.freeze,
12
+
13
+ # TODO: Write general description for BOTH
14
+ BOTH = 'BOTH'.freeze
15
+ ].freeze
16
+
17
+ def self.validate(value)
18
+ return false if value.nil?
19
+
20
+ TRANSACTION_TYPE_ENUM.include?(value)
21
+ end
22
+
23
+ def self.from_value(value, default_value = CARD_ON_FILE)
24
+ return default_value if value.nil?
25
+
26
+ str = value.to_s.strip
27
+
28
+ case str.downcase
29
+ when 'card_on_file' then CARD_ON_FILE
30
+ when 'both' then BOTH
31
+ else
32
+ default_value
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,72 @@
1
+ # paze_checkout_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module PazeCheckoutApi
7
+ # TransactionValue Model.
8
+ class TransactionValue < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :transaction_currency
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [String]
18
+ attr_accessor :transaction_amount
19
+
20
+ # A mapping from model property names to API property names.
21
+ def self.names
22
+ @_hash = {} if @_hash.nil?
23
+ @_hash['transaction_currency'] = 'transactionCurrency'
24
+ @_hash['transaction_amount'] = 'transactionAmount'
25
+ @_hash
26
+ end
27
+
28
+ # An array for optional fields
29
+ def self.optionals
30
+ []
31
+ end
32
+
33
+ # An array for nullable fields
34
+ def self.nullables
35
+ []
36
+ end
37
+
38
+ def initialize(transaction_currency = nil, transaction_amount = nil)
39
+ @transaction_currency = transaction_currency
40
+ @transaction_amount = transaction_amount
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
+ transaction_currency =
49
+ hash.key?('transactionCurrency') ? hash['transactionCurrency'] : nil
50
+ transaction_amount =
51
+ hash.key?('transactionAmount') ? hash['transactionAmount'] : nil
52
+
53
+ # Create object from extracted values.
54
+ TransactionValue.new(transaction_currency,
55
+ transaction_amount)
56
+ end
57
+
58
+ # Provides a human-readable string representation of the object.
59
+ def to_s
60
+ class_name = self.class.name.split('::').last
61
+ "<#{class_name} transaction_currency: #{@transaction_currency}, transaction_amount:"\
62
+ " #{@transaction_amount}>"
63
+ end
64
+
65
+ # Provides a debugging-friendly string with detailed object information.
66
+ def inspect
67
+ class_name = self.class.name.split('::').last
68
+ "<#{class_name} transaction_currency: #{@transaction_currency.inspect}, transaction_amount:"\
69
+ " #{@transaction_amount.inspect}>"
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,110 @@
1
+ # paze_checkout_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ require 'date'
7
+ module PazeCheckoutApi
8
+ # TravelData Model.
9
+ class TravelData < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # TODO: Write general description for this method
14
+ # @return [String]
15
+ attr_accessor :passenger_name
16
+
17
+ # TODO: Write general description for this method
18
+ # @return [TrueClass | FalseClass]
19
+ attr_accessor :round_trip
20
+
21
+ # TODO: Write general description for this method
22
+ # @return [DateTime]
23
+ attr_accessor :departure_date
24
+
25
+ # TODO: Write general description for this method
26
+ # @return [DateTime]
27
+ attr_accessor :return_date
28
+
29
+ # A mapping from model property names to API property names.
30
+ def self.names
31
+ @_hash = {} if @_hash.nil?
32
+ @_hash['passenger_name'] = 'passengerName'
33
+ @_hash['round_trip'] = 'roundTrip'
34
+ @_hash['departure_date'] = 'departureDate'
35
+ @_hash['return_date'] = 'returnDate'
36
+ @_hash
37
+ end
38
+
39
+ # An array for optional fields
40
+ def self.optionals
41
+ %w[
42
+ passenger_name
43
+ round_trip
44
+ departure_date
45
+ return_date
46
+ ]
47
+ end
48
+
49
+ # An array for nullable fields
50
+ def self.nullables
51
+ []
52
+ end
53
+
54
+ def initialize(passenger_name = SKIP, round_trip = SKIP,
55
+ departure_date = SKIP, return_date = SKIP)
56
+ @passenger_name = passenger_name unless passenger_name == SKIP
57
+ @round_trip = round_trip unless round_trip == SKIP
58
+ @departure_date = departure_date unless departure_date == SKIP
59
+ @return_date = return_date unless return_date == SKIP
60
+ end
61
+
62
+ # Creates an instance of the object from a hash.
63
+ def self.from_hash(hash)
64
+ return nil unless hash
65
+
66
+ # Extract variables from the hash.
67
+ passenger_name = hash.key?('passengerName') ? hash['passengerName'] : SKIP
68
+ round_trip = hash.key?('roundTrip') ? hash['roundTrip'] : SKIP
69
+ departure_date = if hash.key?('departureDate')
70
+ (DateTimeHelper.from_rfc3339(hash['departureDate']) if hash['departureDate'])
71
+ else
72
+ SKIP
73
+ end
74
+ return_date = if hash.key?('returnDate')
75
+ (DateTimeHelper.from_rfc3339(hash['returnDate']) if hash['returnDate'])
76
+ else
77
+ SKIP
78
+ end
79
+
80
+ # Create object from extracted values.
81
+ TravelData.new(passenger_name,
82
+ round_trip,
83
+ departure_date,
84
+ return_date)
85
+ end
86
+
87
+ def to_custom_departure_date
88
+ DateTimeHelper.to_rfc3339(departure_date)
89
+ end
90
+
91
+ def to_custom_return_date
92
+ DateTimeHelper.to_rfc3339(return_date)
93
+ end
94
+
95
+ # Provides a human-readable string representation of the object.
96
+ def to_s
97
+ class_name = self.class.name.split('::').last
98
+ "<#{class_name} passenger_name: #{@passenger_name}, round_trip: #{@round_trip},"\
99
+ " departure_date: #{@departure_date}, return_date: #{@return_date}>"
100
+ end
101
+
102
+ # Provides a debugging-friendly string with detailed object information.
103
+ def inspect
104
+ class_name = self.class.name.split('::').last
105
+ "<#{class_name} passenger_name: #{@passenger_name.inspect}, round_trip:"\
106
+ " #{@round_trip.inspect}, departure_date: #{@departure_date.inspect}, return_date:"\
107
+ " #{@return_date.inspect}>"
108
+ end
109
+ end
110
+ end
@@ -0,0 +1,11 @@
1
+ # paze_checkout_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ require 'date'
7
+ module PazeCheckoutApi
8
+ # A utility that supports dateTime conversion to different formats
9
+ class DateTimeHelper < CoreLibrary::DateTimeHelper
10
+ end
11
+ end
@@ -0,0 +1,28 @@
1
+ # paze_checkout_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( https://www.apimatic.io ).
5
+
6
+ module PazeCheckoutApi
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,93 @@
1
+ # paze_checkout_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0
4
+ # ( 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 'paze_checkout_api/api_helper'
14
+ require_relative 'paze_checkout_api/client'
15
+
16
+ # Utilities
17
+ require_relative 'paze_checkout_api/utilities/file_wrapper'
18
+ require_relative 'paze_checkout_api/utilities/date_time_helper'
19
+
20
+ # Http
21
+ require_relative 'paze_checkout_api/http/http_call_back'
22
+ require_relative 'paze_checkout_api/http/http_method_enum'
23
+ require_relative 'paze_checkout_api/http/http_request'
24
+ require_relative 'paze_checkout_api/http/http_response'
25
+ require_relative 'paze_checkout_api/http/proxy_settings'
26
+
27
+
28
+ require_relative 'paze_checkout_api/http/auth/o_auth2'
29
+
30
+ # Models
31
+ require_relative 'paze_checkout_api/models/base_model'
32
+ require_relative 'paze_checkout_api/models/o_auth_token_request'
33
+ require_relative 'paze_checkout_api/models/o_auth_token_response'
34
+ require_relative 'paze_checkout_api/models/api_response_metadata'
35
+ require_relative 'paze_checkout_api/models/error_message'
36
+ require_relative 'paze_checkout_api/models/error_detail'
37
+ require_relative 'paze_checkout_api/models/checkout_session_create_request'
38
+ require_relative 'paze_checkout_api/models/create_session_data'
39
+ require_relative 'paze_checkout_api/models/checkout_session_create_response'
40
+ require_relative 'paze_checkout_api/models/create_session_response_data'
41
+ require_relative 'paze_checkout_api/models/checkout_session_review_request'
42
+ require_relative 'paze_checkout_api/models/review_session_data'
43
+ require_relative 'paze_checkout_api/models/checkout_session_review_response'
44
+ require_relative 'paze_checkout_api/models/review_session_response_data'
45
+ require_relative 'paze_checkout_api/models/client'
46
+ require_relative 'paze_checkout_api/models/transaction_value'
47
+ require_relative 'paze_checkout_api/models/consumer'
48
+ require_relative 'paze_checkout_api/models/phone'
49
+ require_relative 'paze_checkout_api/models/shipping_address'
50
+ require_relative 'paze_checkout_api/models/masked_card'
51
+ require_relative 'paze_checkout_api/models/links'
52
+ require_relative 'paze_checkout_api/models/checkout_session_complete_request'
53
+ require_relative 'paze_checkout_api/models/complete_session_data'
54
+ require_relative 'paze_checkout_api/models/checkout_session_complete_response'
55
+ require_relative 'paze_checkout_api/models/complete_session_response_data'
56
+ require_relative 'paze_checkout_api/models/transaction_options'
57
+ require_relative 'paze_checkout_api/models/enhanced_transaction_data'
58
+ require_relative 'paze_checkout_api/models/ecommerce_data'
59
+ require_relative 'paze_checkout_api/models/travel_data'
60
+ require_relative 'paze_checkout_api/models/merchant_onboard_request'
61
+ require_relative 'paze_checkout_api/models/merchant_onboard_data'
62
+ require_relative 'paze_checkout_api/models/merchant_response'
63
+ require_relative 'paze_checkout_api/models/merchant_address'
64
+ require_relative 'paze_checkout_api/models/merchant_profile'
65
+ require_relative 'paze_checkout_api/models/onboard_merchant_key'
66
+ require_relative 'paze_checkout_api/models/data'
67
+ require_relative 'paze_checkout_api/models/o_auth_token'
68
+ require_relative 'paze_checkout_api/models/grant_type_enum'
69
+ require_relative 'paze_checkout_api/models/client_assertion_type_enum'
70
+ require_relative 'paze_checkout_api/models/intent_enum'
71
+ require_relative 'paze_checkout_api/models/transaction_type_enum'
72
+ require_relative 'paze_checkout_api/models/billing_preference_enum'
73
+ require_relative 'paze_checkout_api/models/payload_type_indicator_enum'
74
+ require_relative 'paze_checkout_api/models/payment_card_brand_enum'
75
+ require_relative 'paze_checkout_api/models/payment_card_type_enum'
76
+ require_relative 'paze_checkout_api/models/processing_network_enum'
77
+ require_relative 'paze_checkout_api/models/o_auth_provider_error_enum'
78
+
79
+ # Exceptions
80
+ require_relative 'paze_checkout_api/exceptions/api_exception'
81
+ require_relative 'paze_checkout_api/exceptions/api_error_response_exception'
82
+ require_relative 'paze_checkout_api/exceptions/simple_error_exception'
83
+ require_relative 'paze_checkout_api/exceptions/base_response_exception'
84
+ require_relative 'paze_checkout_api/exceptions/o_auth_provider_exception'
85
+
86
+ require_relative 'paze_checkout_api/configuration'
87
+
88
+ # Controllers
89
+ require_relative 'paze_checkout_api/controllers/base_controller'
90
+ require_relative 'paze_checkout_api/controllers/identity_controller'
91
+ require_relative 'paze_checkout_api/controllers/checkout_session_controller'
92
+ require_relative 'paze_checkout_api/controllers/merchant_onboarding_controller'
93
+ require_relative 'paze_checkout_api/controllers/o_auth_authorization_controller'