turnkey_client 0.0.13 → 0.0.14

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 (167) hide show
  1. checksums.yaml +4 -4
  2. data/lib/turnkey_client/api/activities_api.rb +66 -8
  3. data/lib/turnkey_client/api/api_keys_api.rb +14 -14
  4. data/lib/turnkey_client/api/authenticators_api.rb +16 -16
  5. data/lib/turnkey_client/api/consensus_api.rb +8 -8
  6. data/lib/turnkey_client/api/features_api.rb +8 -8
  7. data/lib/turnkey_client/api/invitations_api.rb +8 -8
  8. data/lib/turnkey_client/api/on_ramp_api.rb +77 -0
  9. data/lib/turnkey_client/api/organizations_api.rb +18 -18
  10. data/lib/turnkey_client/api/policies_api.rb +256 -24
  11. data/lib/turnkey_client/api/private_key_tags_api.rb +12 -12
  12. data/lib/turnkey_client/api/private_keys_api.rb +28 -28
  13. data/lib/turnkey_client/api/sessions_api.rb +184 -10
  14. data/lib/turnkey_client/api/signing_api.rb +12 -12
  15. data/lib/turnkey_client/api/user_auth_api.rb +20 -20
  16. data/lib/turnkey_client/api/user_recovery_api.rb +6 -6
  17. data/lib/turnkey_client/api/user_tags_api.rb +12 -12
  18. data/lib/turnkey_client/api/user_verification_api.rb +135 -0
  19. data/lib/turnkey_client/api/users_api.rb +194 -20
  20. data/lib/turnkey_client/api/wallets_api.rb +48 -48
  21. data/lib/turnkey_client/models/activity_type.rb +14 -0
  22. data/lib/turnkey_client/models/activity_v1_policy_evaluation.rb +287 -0
  23. data/lib/turnkey_client/models/address_format.rb +1 -0
  24. data/lib/turnkey_client/models/api_key.rb +1 -0
  25. data/lib/turnkey_client/models/api_key_params.rb +1 -0
  26. data/lib/turnkey_client/models/api_key_params_v2.rb +1 -0
  27. data/lib/turnkey_client/models/api_only_user_params.rb +3 -2
  28. data/lib/turnkey_client/models/create_organization_intent.rb +1 -0
  29. data/lib/turnkey_client/models/create_organization_intent_v2.rb +1 -0
  30. data/lib/turnkey_client/models/create_policy_intent_v3.rb +2 -0
  31. data/lib/turnkey_client/models/create_read_write_session_intent.rb +3 -1
  32. data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +19 -5
  33. data/lib/turnkey_client/models/create_smart_contract_interface_intent.rb +265 -0
  34. data/lib/turnkey_client/models/create_smart_contract_interface_request.rb +288 -0
  35. data/lib/turnkey_client/models/create_smart_contract_interface_result.rb +211 -0
  36. data/lib/turnkey_client/models/create_sub_organization_intent_v4.rb +2 -0
  37. data/lib/turnkey_client/models/create_sub_organization_intent_v5.rb +2 -0
  38. data/lib/turnkey_client/models/create_sub_organization_intent_v6.rb +2 -0
  39. data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +4 -0
  40. data/lib/turnkey_client/models/create_users_intent_v3.rb +213 -0
  41. data/lib/turnkey_client/models/create_users_request.rb +2 -2
  42. data/lib/turnkey_client/models/create_wallet_intent.rb +2 -1
  43. data/lib/turnkey_client/models/credential_type.rb +3 -0
  44. data/lib/turnkey_client/models/data_v1_smart_contract_interface.rb +329 -0
  45. data/lib/turnkey_client/models/delete_payment_method_intent.rb +1 -0
  46. data/lib/turnkey_client/models/delete_private_keys_intent.rb +1 -0
  47. data/lib/turnkey_client/models/delete_smart_contract_interface_intent.rb +211 -0
  48. data/lib/turnkey_client/models/delete_smart_contract_interface_request.rb +288 -0
  49. data/lib/turnkey_client/models/delete_smart_contract_interface_result.rb +211 -0
  50. data/lib/turnkey_client/models/delete_sub_organization_intent.rb +1 -0
  51. data/lib/turnkey_client/models/delete_wallets_intent.rb +1 -0
  52. data/lib/turnkey_client/models/email_auth_intent.rb +31 -5
  53. data/lib/turnkey_client/models/email_auth_intent_v2.rb +31 -5
  54. data/lib/turnkey_client/models/email_customization_params.rb +5 -0
  55. data/lib/turnkey_client/models/feature.rb +1 -0
  56. data/lib/turnkey_client/models/fiat_on_ramp_blockchain_network.rb +29 -0
  57. data/lib/turnkey_client/models/fiat_on_ramp_crypto_currency.rb +29 -0
  58. data/lib/turnkey_client/models/fiat_on_ramp_currency.rb +59 -0
  59. data/lib/turnkey_client/models/fiat_on_ramp_payment_method.rb +38 -0
  60. data/lib/turnkey_client/models/fiat_on_ramp_provider.rb +27 -0
  61. data/lib/turnkey_client/models/get_activities_request.rb +3 -3
  62. data/lib/turnkey_client/models/get_activities_response.rb +1 -1
  63. data/lib/turnkey_client/models/get_activity_request.rb +2 -2
  64. data/lib/turnkey_client/models/get_api_key_request.rb +1 -1
  65. data/lib/turnkey_client/models/get_api_keys_request.rb +3 -2
  66. data/lib/turnkey_client/models/get_authenticator_request.rb +2 -2
  67. data/lib/turnkey_client/models/get_authenticators_request.rb +2 -2
  68. data/lib/turnkey_client/models/get_oauth_providers_request.rb +3 -2
  69. data/lib/turnkey_client/models/get_oauth_providers_response.rb +1 -1
  70. data/lib/turnkey_client/models/get_organization_configs_request.rb +1 -1
  71. data/lib/turnkey_client/models/get_policies_request.rb +1 -1
  72. data/lib/turnkey_client/models/get_policies_response.rb +1 -1
  73. data/lib/turnkey_client/models/get_policy_evaluations_request.rb +226 -0
  74. data/lib/turnkey_client/models/get_policy_evaluations_response.rb +212 -0
  75. data/lib/turnkey_client/models/get_policy_request.rb +2 -2
  76. data/lib/turnkey_client/models/get_private_key_request.rb +2 -2
  77. data/lib/turnkey_client/models/get_private_keys_request.rb +1 -1
  78. data/lib/turnkey_client/models/get_private_keys_response.rb +1 -1
  79. data/lib/turnkey_client/models/get_smart_contract_interface_request.rb +226 -0
  80. data/lib/turnkey_client/models/get_smart_contract_interface_response.rb +210 -0
  81. data/lib/turnkey_client/models/get_smart_contract_interfaces_request.rb +211 -0
  82. data/lib/turnkey_client/models/get_smart_contract_interfaces_response.rb +213 -0
  83. data/lib/turnkey_client/models/get_sub_org_ids_request.rb +2 -2
  84. data/lib/turnkey_client/models/get_user_request.rb +2 -2
  85. data/lib/turnkey_client/models/get_users_request.rb +1 -1
  86. data/lib/turnkey_client/models/get_users_response.rb +1 -1
  87. data/lib/turnkey_client/models/get_verified_sub_org_ids_request.rb +2 -2
  88. data/lib/turnkey_client/models/get_wallet_account_request.rb +6 -4
  89. data/lib/turnkey_client/models/get_wallet_accounts_request.rb +3 -7
  90. data/lib/turnkey_client/models/get_wallet_accounts_response.rb +1 -1
  91. data/lib/turnkey_client/models/get_wallet_request.rb +2 -2
  92. data/lib/turnkey_client/models/get_wallets_request.rb +1 -1
  93. data/lib/turnkey_client/models/get_wallets_response.rb +1 -1
  94. data/lib/turnkey_client/models/get_whoami_request.rb +1 -1
  95. data/lib/turnkey_client/models/get_whoami_response.rb +4 -4
  96. data/lib/turnkey_client/models/init_fiat_on_ramp_intent.rb +315 -0
  97. data/lib/turnkey_client/models/init_fiat_on_ramp_request.rb +288 -0
  98. data/lib/turnkey_client/models/init_fiat_on_ramp_result.rb +226 -0
  99. data/lib/turnkey_client/models/init_otp_auth_intent.rb +28 -4
  100. data/lib/turnkey_client/models/init_otp_auth_intent_v2.rb +310 -0
  101. data/lib/turnkey_client/models/init_otp_auth_request.rb +2 -2
  102. data/lib/turnkey_client/models/init_otp_auth_result_v2.rb +211 -0
  103. data/lib/turnkey_client/models/init_otp_intent.rb +321 -0
  104. data/lib/turnkey_client/models/init_otp_request.rb +288 -0
  105. data/lib/turnkey_client/models/init_otp_result.rb +211 -0
  106. data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +2 -1
  107. data/lib/turnkey_client/models/intent.rb +130 -4
  108. data/lib/turnkey_client/models/invitation_params.rb +1 -1
  109. data/lib/turnkey_client/models/list_private_key_tags_request.rb +1 -1
  110. data/lib/turnkey_client/models/list_private_key_tags_response.rb +1 -1
  111. data/lib/turnkey_client/models/list_user_tags_request.rb +1 -1
  112. data/lib/turnkey_client/models/list_user_tags_response.rb +1 -1
  113. data/lib/turnkey_client/models/oauth_intent.rb +18 -5
  114. data/lib/turnkey_client/models/oauth_login_intent.rb +248 -0
  115. data/lib/turnkey_client/models/oauth_login_request.rb +288 -0
  116. data/lib/turnkey_client/models/oauth_login_result.rb +211 -0
  117. data/lib/turnkey_client/models/otp_auth_intent.rb +10 -2
  118. data/lib/turnkey_client/models/otp_login_intent.rb +248 -0
  119. data/lib/turnkey_client/models/otp_login_request.rb +288 -0
  120. data/lib/turnkey_client/models/otp_login_result.rb +211 -0
  121. data/lib/turnkey_client/models/outcome.rb +31 -0
  122. data/lib/turnkey_client/models/payload_encoding.rb +1 -0
  123. data/lib/turnkey_client/models/policy.rb +2 -0
  124. data/lib/turnkey_client/models/private_key_params.rb +1 -1
  125. data/lib/turnkey_client/models/result.rb +121 -4
  126. data/lib/turnkey_client/models/root_user_params.rb +3 -2
  127. data/lib/turnkey_client/models/root_user_params_v2.rb +4 -3
  128. data/lib/turnkey_client/models/root_user_params_v3.rb +4 -3
  129. data/lib/turnkey_client/models/root_user_params_v4.rb +5 -3
  130. data/lib/turnkey_client/models/set_organization_feature_intent.rb +1 -0
  131. data/lib/turnkey_client/models/simple_client_extension_results.rb +2 -0
  132. data/lib/turnkey_client/models/smart_contract_interface_type.rb +27 -0
  133. data/lib/turnkey_client/models/sms_customization_params.rb +1 -0
  134. data/lib/turnkey_client/models/stamp_login_intent.rb +233 -0
  135. data/lib/turnkey_client/models/stamp_login_request.rb +288 -0
  136. data/lib/turnkey_client/models/stamp_login_result.rb +211 -0
  137. data/lib/turnkey_client/models/transaction_type.rb +1 -0
  138. data/lib/turnkey_client/models/ump_v1_policy_evaluation.rb +214 -0
  139. data/lib/turnkey_client/models/update_policy_intent.rb +4 -0
  140. data/lib/turnkey_client/models/update_policy_intent_v2.rb +264 -0
  141. data/lib/turnkey_client/models/update_policy_request.rb +2 -2
  142. data/lib/turnkey_client/models/update_policy_result_v2.rb +211 -0
  143. data/lib/turnkey_client/models/update_private_key_tag_intent.rb +1 -0
  144. data/lib/turnkey_client/models/update_user_email_intent.rb +237 -0
  145. data/lib/turnkey_client/models/update_user_email_request.rb +288 -0
  146. data/lib/turnkey_client/models/update_user_email_result.rb +211 -0
  147. data/lib/turnkey_client/models/update_user_intent.rb +4 -1
  148. data/lib/turnkey_client/models/update_user_name_intent.rb +226 -0
  149. data/lib/turnkey_client/models/update_user_name_request.rb +288 -0
  150. data/lib/turnkey_client/models/update_user_name_result.rb +211 -0
  151. data/lib/turnkey_client/models/update_user_phone_number_intent.rb +237 -0
  152. data/lib/turnkey_client/models/update_user_phone_number_request.rb +288 -0
  153. data/lib/turnkey_client/models/update_user_phone_number_result.rb +211 -0
  154. data/lib/turnkey_client/models/update_user_tag_intent.rb +1 -0
  155. data/lib/turnkey_client/models/user.rb +3 -1
  156. data/lib/turnkey_client/models/user_params.rb +4 -3
  157. data/lib/turnkey_client/models/user_params_v2.rb +4 -3
  158. data/lib/turnkey_client/models/user_params_v3.rb +301 -0
  159. data/lib/turnkey_client/models/verify_otp_intent.rb +237 -0
  160. data/lib/turnkey_client/models/verify_otp_request.rb +288 -0
  161. data/lib/turnkey_client/models/verify_otp_result.rb +211 -0
  162. data/lib/turnkey_client/models/wallet_account.rb +15 -4
  163. data/lib/turnkey_client/models/wallet_params.rb +2 -1
  164. data/lib/turnkey_client/version.rb +1 -1
  165. data/lib/turnkey_client.rb +57 -0
  166. data/turnkey_client-0.0.13.gem +0 -0
  167. metadata +60 -2
@@ -52,6 +52,11 @@ module TurnkeyClient
52
52
  # List of attributes with nullable: true
53
53
  def self.openapi_nullable
54
54
  Set.new([
55
+ :'app_name',
56
+ :'logo_url',
57
+ :'magic_link_template',
58
+ :'template_variables',
59
+ :'template_id'
55
60
  ])
56
61
  end
57
62
 
@@ -35,6 +35,7 @@ module TurnkeyClient
35
35
  # List of attributes with nullable: true
36
36
  def self.openapi_nullable
37
37
  Set.new([
38
+ :'value'
38
39
  ])
39
40
  end
40
41
 
@@ -0,0 +1,29 @@
1
+ =begin
2
+ #API Reference
3
+
4
+ #Review our [API Introduction](../api-introduction) to get started.
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ =end
10
+
11
+ require 'date'
12
+
13
+ module TurnkeyClient
14
+ class FiatOnRampBlockchainNetwork
15
+ BITCOIN = 'FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BITCOIN'.freeze
16
+ ETHEREUM = 'FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_ETHEREUM'.freeze
17
+ SOLANA = 'FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_SOLANA'.freeze
18
+ BASE = 'FIAT_ON_RAMP_BLOCKCHAIN_NETWORK_BASE'.freeze
19
+
20
+ # Builds the enum from string
21
+ # @param [String] The enum value in the form of the string
22
+ # @return [String] The enum value
23
+ def build_from_hash(value)
24
+ constantValues = FiatOnRampBlockchainNetwork.constants.select { |c| FiatOnRampBlockchainNetwork::const_get(c) == value }
25
+ raise "Invalid ENUM value #{value} for class #FiatOnRampBlockchainNetwork" if constantValues.empty?
26
+ value
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,29 @@
1
+ =begin
2
+ #API Reference
3
+
4
+ #Review our [API Introduction](../api-introduction) to get started.
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ =end
10
+
11
+ require 'date'
12
+
13
+ module TurnkeyClient
14
+ class FiatOnRampCryptoCurrency
15
+ BTC = 'FIAT_ON_RAMP_CRYPTO_CURRENCY_BTC'.freeze
16
+ ETH = 'FIAT_ON_RAMP_CRYPTO_CURRENCY_ETH'.freeze
17
+ SOL = 'FIAT_ON_RAMP_CRYPTO_CURRENCY_SOL'.freeze
18
+ USDC = 'FIAT_ON_RAMP_CRYPTO_CURRENCY_USDC'.freeze
19
+
20
+ # Builds the enum from string
21
+ # @param [String] The enum value in the form of the string
22
+ # @return [String] The enum value
23
+ def build_from_hash(value)
24
+ constantValues = FiatOnRampCryptoCurrency.constants.select { |c| FiatOnRampCryptoCurrency::const_get(c) == value }
25
+ raise "Invalid ENUM value #{value} for class #FiatOnRampCryptoCurrency" if constantValues.empty?
26
+ value
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,59 @@
1
+ =begin
2
+ #API Reference
3
+
4
+ #Review our [API Introduction](../api-introduction) to get started.
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ =end
10
+
11
+ require 'date'
12
+
13
+ module TurnkeyClient
14
+ class FiatOnRampCurrency
15
+ AUD = 'FIAT_ON_RAMP_CURRENCY_AUD'.freeze
16
+ BGN = 'FIAT_ON_RAMP_CURRENCY_BGN'.freeze
17
+ BRL = 'FIAT_ON_RAMP_CURRENCY_BRL'.freeze
18
+ CAD = 'FIAT_ON_RAMP_CURRENCY_CAD'.freeze
19
+ CHF = 'FIAT_ON_RAMP_CURRENCY_CHF'.freeze
20
+ COP = 'FIAT_ON_RAMP_CURRENCY_COP'.freeze
21
+ CZK = 'FIAT_ON_RAMP_CURRENCY_CZK'.freeze
22
+ DKK = 'FIAT_ON_RAMP_CURRENCY_DKK'.freeze
23
+ DOP = 'FIAT_ON_RAMP_CURRENCY_DOP'.freeze
24
+ EGP = 'FIAT_ON_RAMP_CURRENCY_EGP'.freeze
25
+ EUR = 'FIAT_ON_RAMP_CURRENCY_EUR'.freeze
26
+ GBP = 'FIAT_ON_RAMP_CURRENCY_GBP'.freeze
27
+ HKD = 'FIAT_ON_RAMP_CURRENCY_HKD'.freeze
28
+ IDR = 'FIAT_ON_RAMP_CURRENCY_IDR'.freeze
29
+ ILS = 'FIAT_ON_RAMP_CURRENCY_ILS'.freeze
30
+ JOD = 'FIAT_ON_RAMP_CURRENCY_JOD'.freeze
31
+ KES = 'FIAT_ON_RAMP_CURRENCY_KES'.freeze
32
+ KWD = 'FIAT_ON_RAMP_CURRENCY_KWD'.freeze
33
+ LKR = 'FIAT_ON_RAMP_CURRENCY_LKR'.freeze
34
+ MXN = 'FIAT_ON_RAMP_CURRENCY_MXN'.freeze
35
+ NGN = 'FIAT_ON_RAMP_CURRENCY_NGN'.freeze
36
+ NOK = 'FIAT_ON_RAMP_CURRENCY_NOK'.freeze
37
+ NZD = 'FIAT_ON_RAMP_CURRENCY_NZD'.freeze
38
+ OMR = 'FIAT_ON_RAMP_CURRENCY_OMR'.freeze
39
+ PEN = 'FIAT_ON_RAMP_CURRENCY_PEN'.freeze
40
+ PLN = 'FIAT_ON_RAMP_CURRENCY_PLN'.freeze
41
+ RON = 'FIAT_ON_RAMP_CURRENCY_RON'.freeze
42
+ SEK = 'FIAT_ON_RAMP_CURRENCY_SEK'.freeze
43
+ THB = 'FIAT_ON_RAMP_CURRENCY_THB'.freeze
44
+ TRY = 'FIAT_ON_RAMP_CURRENCY_TRY'.freeze
45
+ TWD = 'FIAT_ON_RAMP_CURRENCY_TWD'.freeze
46
+ USD = 'FIAT_ON_RAMP_CURRENCY_USD'.freeze
47
+ VND = 'FIAT_ON_RAMP_CURRENCY_VND'.freeze
48
+ ZAR = 'FIAT_ON_RAMP_CURRENCY_ZAR'.freeze
49
+
50
+ # Builds the enum from string
51
+ # @param [String] The enum value in the form of the string
52
+ # @return [String] The enum value
53
+ def build_from_hash(value)
54
+ constantValues = FiatOnRampCurrency.constants.select { |c| FiatOnRampCurrency::const_get(c) == value }
55
+ raise "Invalid ENUM value #{value} for class #FiatOnRampCurrency" if constantValues.empty?
56
+ value
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,38 @@
1
+ =begin
2
+ #API Reference
3
+
4
+ #Review our [API Introduction](../api-introduction) to get started.
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ =end
10
+
11
+ require 'date'
12
+
13
+ module TurnkeyClient
14
+ class FiatOnRampPaymentMethod
15
+ CREDIT_DEBIT_CARD = 'FIAT_ON_RAMP_PAYMENT_METHOD_CREDIT_DEBIT_CARD'.freeze
16
+ APPLE_PAY = 'FIAT_ON_RAMP_PAYMENT_METHOD_APPLE_PAY'.freeze
17
+ GBP_BANK_TRANSFER = 'FIAT_ON_RAMP_PAYMENT_METHOD_GBP_BANK_TRANSFER'.freeze
18
+ GBP_OPEN_BANKING_PAYMENT = 'FIAT_ON_RAMP_PAYMENT_METHOD_GBP_OPEN_BANKING_PAYMENT'.freeze
19
+ GOOGLE_PAY = 'FIAT_ON_RAMP_PAYMENT_METHOD_GOOGLE_PAY'.freeze
20
+ SEPA_BANK_TRANSFER = 'FIAT_ON_RAMP_PAYMENT_METHOD_SEPA_BANK_TRANSFER'.freeze
21
+ PIX_INSTANT_PAYMENT = 'FIAT_ON_RAMP_PAYMENT_METHOD_PIX_INSTANT_PAYMENT'.freeze
22
+ PAYPAL = 'FIAT_ON_RAMP_PAYMENT_METHOD_PAYPAL'.freeze
23
+ VENMO = 'FIAT_ON_RAMP_PAYMENT_METHOD_VENMO'.freeze
24
+ MOONPAY_BALANCE = 'FIAT_ON_RAMP_PAYMENT_METHOD_MOONPAY_BALANCE'.freeze
25
+ CRYPTO_ACCOUNT = 'FIAT_ON_RAMP_PAYMENT_METHOD_CRYPTO_ACCOUNT'.freeze
26
+ FIAT_WALLET = 'FIAT_ON_RAMP_PAYMENT_METHOD_FIAT_WALLET'.freeze
27
+ ACH_BANK_ACCOUNT = 'FIAT_ON_RAMP_PAYMENT_METHOD_ACH_BANK_ACCOUNT'.freeze
28
+
29
+ # Builds the enum from string
30
+ # @param [String] The enum value in the form of the string
31
+ # @return [String] The enum value
32
+ def build_from_hash(value)
33
+ constantValues = FiatOnRampPaymentMethod.constants.select { |c| FiatOnRampPaymentMethod::const_get(c) == value }
34
+ raise "Invalid ENUM value #{value} for class #FiatOnRampPaymentMethod" if constantValues.empty?
35
+ value
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,27 @@
1
+ =begin
2
+ #API Reference
3
+
4
+ #Review our [API Introduction](../api-introduction) to get started.
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ =end
10
+
11
+ require 'date'
12
+
13
+ module TurnkeyClient
14
+ class FiatOnRampProvider
15
+ COINBASE = 'FIAT_ON_RAMP_PROVIDER_COINBASE'.freeze
16
+ MOONPAY = 'FIAT_ON_RAMP_PROVIDER_MOONPAY'.freeze
17
+
18
+ # Builds the enum from string
19
+ # @param [String] The enum value in the form of the string
20
+ # @return [String] The enum value
21
+ def build_from_hash(value)
22
+ constantValues = FiatOnRampProvider.constants.select { |c| FiatOnRampProvider::const_get(c) == value }
23
+ raise "Invalid ENUM value #{value} for class #FiatOnRampProvider" if constantValues.empty?
24
+ value
25
+ end
26
+ end
27
+ end
@@ -12,15 +12,15 @@ require 'date'
12
12
 
13
13
  module TurnkeyClient
14
14
  class GetActivitiesRequest
15
- # Unique identifier for a given Organization.
15
+ # Unique identifier for a given organization.
16
16
  attr_accessor :organization_id
17
17
 
18
- # Array of Activity Statuses filtering which Activities will be listed in the response.
18
+ # Array of activity statuses filtering which activities will be listed in the response.
19
19
  attr_accessor :filter_by_status
20
20
 
21
21
  attr_accessor :pagination_options
22
22
 
23
- # Array of Activity Types filtering which Activities will be listed in the response.
23
+ # Array of activity types filtering which activities will be listed in the response.
24
24
  attr_accessor :filter_by_type
25
25
 
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -12,7 +12,7 @@ require 'date'
12
12
 
13
13
  module TurnkeyClient
14
14
  class GetActivitiesResponse
15
- # A list of Activities.
15
+ # A list of activities.
16
16
  attr_accessor :activities
17
17
 
18
18
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -12,10 +12,10 @@ require 'date'
12
12
 
13
13
  module TurnkeyClient
14
14
  class GetActivityRequest
15
- # Unique identifier for a given Organization.
15
+ # Unique identifier for a given organization.
16
16
  attr_accessor :organization_id
17
17
 
18
- # Unique identifier for a given Activity object.
18
+ # Unique identifier for a given activity object.
19
19
  attr_accessor :activity_id
20
20
 
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -12,7 +12,7 @@ require 'date'
12
12
 
13
13
  module TurnkeyClient
14
14
  class GetApiKeyRequest
15
- # Unique identifier for a given Organization.
15
+ # Unique identifier for a given organization.
16
16
  attr_accessor :organization_id
17
17
 
18
18
  # Unique identifier for a given API key.
@@ -12,10 +12,10 @@ require 'date'
12
12
 
13
13
  module TurnkeyClient
14
14
  class GetApiKeysRequest
15
- # Unique identifier for a given Organization.
15
+ # Unique identifier for a given organization.
16
16
  attr_accessor :organization_id
17
17
 
18
- # Unique identifier for a given User.
18
+ # Unique identifier for a given user.
19
19
  attr_accessor :user_id
20
20
 
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -37,6 +37,7 @@ module TurnkeyClient
37
37
  # List of attributes with nullable: true
38
38
  def self.openapi_nullable
39
39
  Set.new([
40
+ :'user_id'
40
41
  ])
41
42
  end
42
43
 
@@ -12,10 +12,10 @@ require 'date'
12
12
 
13
13
  module TurnkeyClient
14
14
  class GetAuthenticatorRequest
15
- # Unique identifier for a given Organization.
15
+ # Unique identifier for a given organization.
16
16
  attr_accessor :organization_id
17
17
 
18
- # Unique identifier for a given Authenticator.
18
+ # Unique identifier for a given authenticator.
19
19
  attr_accessor :authenticator_id
20
20
 
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -12,10 +12,10 @@ require 'date'
12
12
 
13
13
  module TurnkeyClient
14
14
  class GetAuthenticatorsRequest
15
- # Unique identifier for a given Organization.
15
+ # Unique identifier for a given organization.
16
16
  attr_accessor :organization_id
17
17
 
18
- # Unique identifier for a given User.
18
+ # Unique identifier for a given user.
19
19
  attr_accessor :user_id
20
20
 
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -12,10 +12,10 @@ require 'date'
12
12
 
13
13
  module TurnkeyClient
14
14
  class GetOauthProvidersRequest
15
- # Unique identifier for a given Organization.
15
+ # Unique identifier for a given organization.
16
16
  attr_accessor :organization_id
17
17
 
18
- # Unique identifier for a given User.
18
+ # Unique identifier for a given user.
19
19
  attr_accessor :user_id
20
20
 
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -37,6 +37,7 @@ module TurnkeyClient
37
37
  # List of attributes with nullable: true
38
38
  def self.openapi_nullable
39
39
  Set.new([
40
+ :'user_id'
40
41
  ])
41
42
  end
42
43
 
@@ -12,7 +12,7 @@ require 'date'
12
12
 
13
13
  module TurnkeyClient
14
14
  class GetOauthProvidersResponse
15
- # A list of Oauth Providers
15
+ # A list of Oauth providers.
16
16
  attr_accessor :oauth_providers
17
17
 
18
18
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -12,7 +12,7 @@ require 'date'
12
12
 
13
13
  module TurnkeyClient
14
14
  class GetOrganizationConfigsRequest
15
- # Unique identifier for a given Organization.
15
+ # Unique identifier for a given organization.
16
16
  attr_accessor :organization_id
17
17
 
18
18
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -12,7 +12,7 @@ require 'date'
12
12
 
13
13
  module TurnkeyClient
14
14
  class GetPoliciesRequest
15
- # Unique identifier for a given Organization.
15
+ # Unique identifier for a given organization.
16
16
  attr_accessor :organization_id
17
17
 
18
18
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -12,7 +12,7 @@ require 'date'
12
12
 
13
13
  module TurnkeyClient
14
14
  class GetPoliciesResponse
15
- # A list of Policies.
15
+ # A list of policies.
16
16
  attr_accessor :policies
17
17
 
18
18
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -0,0 +1,226 @@
1
+ =begin
2
+ #API Reference
3
+
4
+ #Review our [API Introduction](../api-introduction) to get started.
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ =end
10
+
11
+ require 'date'
12
+
13
+ module TurnkeyClient
14
+ class GetPolicyEvaluationsRequest
15
+ # Unique identifier for a given organization.
16
+ attr_accessor :organization_id
17
+
18
+ # Unique identifier for a given activity.
19
+ attr_accessor :activity_id
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'organization_id' => :'organizationId',
25
+ :'activity_id' => :'activityId'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'organization_id' => :'Object',
33
+ :'activity_id' => :'Object'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ ])
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::GetPolicyEvaluationsRequest` initialize method"
48
+ end
49
+
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::GetPolicyEvaluationsRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
57
+
58
+ if attributes.key?(:'organization_id')
59
+ self.organization_id = attributes[:'organization_id']
60
+ end
61
+
62
+ if attributes.key?(:'activity_id')
63
+ self.activity_id = attributes[:'activity_id']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ if @organization_id.nil?
72
+ invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
73
+ end
74
+
75
+ if @activity_id.nil?
76
+ invalid_properties.push('invalid value for "activity_id", activity_id cannot be nil.')
77
+ end
78
+
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ return false if @organization_id.nil?
86
+ return false if @activity_id.nil?
87
+ true
88
+ end
89
+
90
+ # Checks equality by comparing each attribute.
91
+ # @param [Object] Object to be compared
92
+ def ==(o)
93
+ return true if self.equal?(o)
94
+ self.class == o.class &&
95
+ organization_id == o.organization_id &&
96
+ activity_id == o.activity_id
97
+ end
98
+
99
+ # @see the `==` method
100
+ # @param [Object] Object to be compared
101
+ def eql?(o)
102
+ self == o
103
+ end
104
+
105
+ # Calculates hash code according to all attributes.
106
+ # @return [Integer] Hash code
107
+ def hash
108
+ [organization_id, activity_id].hash
109
+ end
110
+
111
+ # Builds the object from hash
112
+ # @param [Hash] attributes Model attributes in the form of hash
113
+ # @return [Object] Returns the model itself
114
+ def self.build_from_hash(attributes)
115
+ new.build_from_hash(attributes)
116
+ end
117
+
118
+ # Builds the object from hash
119
+ # @param [Hash] attributes Model attributes in the form of hash
120
+ # @return [Object] Returns the model itself
121
+ def build_from_hash(attributes)
122
+ return nil unless attributes.is_a?(Hash)
123
+ self.class.openapi_types.each_pair do |key, type|
124
+ if type =~ /\AArray<(.*)>/i
125
+ # check to ensure the input is an array given that the attribute
126
+ # is documented as an array but the input is not
127
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
133
+ self.send("#{key}=", nil)
134
+ end
135
+ end
136
+
137
+ self
138
+ end
139
+
140
+ # Deserializes the data based on type
141
+ # @param string type Data type
142
+ # @param string value Value to be deserialized
143
+ # @return [Object] Deserialized data
144
+ def _deserialize(type, value)
145
+ case type.to_sym
146
+ when :DateTime
147
+ DateTime.parse(value)
148
+ when :Date
149
+ Date.parse(value)
150
+ when :String
151
+ value.to_s
152
+ when :Integer
153
+ value.to_i
154
+ when :Float
155
+ value.to_f
156
+ when :Boolean
157
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
158
+ true
159
+ else
160
+ false
161
+ end
162
+ when :Object
163
+ # generic object (usually a Hash), return directly
164
+ value
165
+ when /\AArray<(?<inner_type>.+)>\z/
166
+ inner_type = Regexp.last_match[:inner_type]
167
+ value.map { |v| _deserialize(inner_type, v) }
168
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
169
+ k_type = Regexp.last_match[:k_type]
170
+ v_type = Regexp.last_match[:v_type]
171
+ {}.tap do |hash|
172
+ value.each do |k, v|
173
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
174
+ end
175
+ end
176
+ else # model
177
+ TurnkeyClient.const_get(type).build_from_hash(value)
178
+ end
179
+ end
180
+
181
+ # Returns the string representation of the object
182
+ # @return [String] String presentation of the object
183
+ def to_s
184
+ to_hash.to_s
185
+ end
186
+
187
+ # to_body is an alias to to_hash (backward compatibility)
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_body
190
+ to_hash
191
+ end
192
+
193
+ # Returns the object in the form of hash
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_hash
196
+ hash = {}
197
+ self.class.attribute_map.each_pair do |attr, param|
198
+ value = self.send(attr)
199
+ if value.nil?
200
+ is_nullable = self.class.openapi_nullable.include?(attr)
201
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
202
+ end
203
+
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Outputs non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ # @param [Object] value Any valid value
212
+ # @return [Hash] Returns the value in the form of hash
213
+ def _to_hash(value)
214
+ if value.is_a?(Array)
215
+ value.compact.map { |v| _to_hash(v) }
216
+ elsif value.is_a?(Hash)
217
+ {}.tap do |hash|
218
+ value.each { |k, v| hash[k] = _to_hash(v) }
219
+ end
220
+ elsif value.respond_to? :to_hash
221
+ value.to_hash
222
+ else
223
+ value
224
+ end
225
+ end end
226
+ end