method-ruby 0.1.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 (125) hide show
  1. checksums.yaml +7 -0
  2. data/.ignore +2 -0
  3. data/CHANGELOG.md +11 -0
  4. data/README.md +244 -0
  5. data/SECURITY.md +27 -0
  6. data/lib/method_ruby/client.rb +114 -0
  7. data/lib/method_ruby/errors.rb +228 -0
  8. data/lib/method_ruby/file_part.rb +58 -0
  9. data/lib/method_ruby/internal/transport/base_client.rb +595 -0
  10. data/lib/method_ruby/internal/transport/pooled_net_requester.rb +210 -0
  11. data/lib/method_ruby/internal/type/array_of.rb +168 -0
  12. data/lib/method_ruby/internal/type/base_model.rb +531 -0
  13. data/lib/method_ruby/internal/type/base_page.rb +55 -0
  14. data/lib/method_ruby/internal/type/boolean.rb +77 -0
  15. data/lib/method_ruby/internal/type/converter.rb +327 -0
  16. data/lib/method_ruby/internal/type/enum.rb +131 -0
  17. data/lib/method_ruby/internal/type/file_input.rb +111 -0
  18. data/lib/method_ruby/internal/type/hash_of.rb +188 -0
  19. data/lib/method_ruby/internal/type/request_parameters.rb +42 -0
  20. data/lib/method_ruby/internal/type/union.rb +237 -0
  21. data/lib/method_ruby/internal/type/unknown.rb +81 -0
  22. data/lib/method_ruby/internal/util.rb +951 -0
  23. data/lib/method_ruby/internal.rb +20 -0
  24. data/lib/method_ruby/models/address.rb +45 -0
  25. data/lib/method_ruby/models/entity.rb +102 -0
  26. data/lib/method_ruby/models/entity_corporation.rb +33 -0
  27. data/lib/method_ruby/models/entity_corporation_owner.rb +45 -0
  28. data/lib/method_ruby/models/entity_create_params.rb +188 -0
  29. data/lib/method_ruby/models/entity_create_response.rb +32 -0
  30. data/lib/method_ruby/models/entity_individual.rb +39 -0
  31. data/lib/method_ruby/models/entity_list_params.rb +61 -0
  32. data/lib/method_ruby/models/entity_list_response.rb +32 -0
  33. data/lib/method_ruby/models/entity_retrieve_params.rb +37 -0
  34. data/lib/method_ruby/models/entity_retrieve_response.rb +32 -0
  35. data/lib/method_ruby/models/entity_update_params.rb +75 -0
  36. data/lib/method_ruby/models/entity_update_response.rb +32 -0
  37. data/lib/method_ruby/models/ping_check_params.rb +14 -0
  38. data/lib/method_ruby/models/ping_check_response.rb +49 -0
  39. data/lib/method_ruby/models/resource_error.rb +33 -0
  40. data/lib/method_ruby/models.rb +63 -0
  41. data/lib/method_ruby/request_options.rb +77 -0
  42. data/lib/method_ruby/resources/entities.rb +141 -0
  43. data/lib/method_ruby/resources/ping.rb +34 -0
  44. data/lib/method_ruby/version.rb +5 -0
  45. data/lib/method_ruby.rb +73 -0
  46. data/manifest.yaml +17 -0
  47. data/rbi/method_ruby/client.rbi +85 -0
  48. data/rbi/method_ruby/errors.rbi +205 -0
  49. data/rbi/method_ruby/file_part.rbi +37 -0
  50. data/rbi/method_ruby/internal/transport/base_client.rbi +303 -0
  51. data/rbi/method_ruby/internal/transport/pooled_net_requester.rbi +84 -0
  52. data/rbi/method_ruby/internal/type/array_of.rbi +104 -0
  53. data/rbi/method_ruby/internal/type/base_model.rbi +308 -0
  54. data/rbi/method_ruby/internal/type/base_page.rbi +42 -0
  55. data/rbi/method_ruby/internal/type/boolean.rbi +58 -0
  56. data/rbi/method_ruby/internal/type/converter.rbi +216 -0
  57. data/rbi/method_ruby/internal/type/enum.rbi +82 -0
  58. data/rbi/method_ruby/internal/type/file_input.rbi +59 -0
  59. data/rbi/method_ruby/internal/type/hash_of.rbi +104 -0
  60. data/rbi/method_ruby/internal/type/request_parameters.rbi +29 -0
  61. data/rbi/method_ruby/internal/type/union.rbi +128 -0
  62. data/rbi/method_ruby/internal/type/unknown.rbi +58 -0
  63. data/rbi/method_ruby/internal/util.rbi +507 -0
  64. data/rbi/method_ruby/internal.rbi +18 -0
  65. data/rbi/method_ruby/models/address.rbi +63 -0
  66. data/rbi/method_ruby/models/entity.rbi +151 -0
  67. data/rbi/method_ruby/models/entity_corporation.rbi +61 -0
  68. data/rbi/method_ruby/models/entity_corporation_owner.rbi +86 -0
  69. data/rbi/method_ruby/models/entity_create_params.rbi +408 -0
  70. data/rbi/method_ruby/models/entity_create_response.rbi +84 -0
  71. data/rbi/method_ruby/models/entity_individual.rbi +65 -0
  72. data/rbi/method_ruby/models/entity_list_params.rbi +132 -0
  73. data/rbi/method_ruby/models/entity_list_response.rbi +84 -0
  74. data/rbi/method_ruby/models/entity_retrieve_params.rbi +93 -0
  75. data/rbi/method_ruby/models/entity_retrieve_response.rbi +89 -0
  76. data/rbi/method_ruby/models/entity_update_params.rbi +141 -0
  77. data/rbi/method_ruby/models/entity_update_response.rbi +84 -0
  78. data/rbi/method_ruby/models/ping_check_params.rbi +27 -0
  79. data/rbi/method_ruby/models/ping_check_response.rbi +118 -0
  80. data/rbi/method_ruby/models/resource_error.rbi +55 -0
  81. data/rbi/method_ruby/models.rbi +25 -0
  82. data/rbi/method_ruby/request_options.rbi +59 -0
  83. data/rbi/method_ruby/resources/entities.rbi +119 -0
  84. data/rbi/method_ruby/resources/ping.rbi +22 -0
  85. data/rbi/method_ruby/version.rbi +5 -0
  86. data/sig/method_ruby/client.rbs +39 -0
  87. data/sig/method_ruby/errors.rbs +117 -0
  88. data/sig/method_ruby/file_part.rbs +21 -0
  89. data/sig/method_ruby/internal/transport/base_client.rbs +135 -0
  90. data/sig/method_ruby/internal/transport/pooled_net_requester.rbs +48 -0
  91. data/sig/method_ruby/internal/type/array_of.rbs +48 -0
  92. data/sig/method_ruby/internal/type/base_model.rbs +102 -0
  93. data/sig/method_ruby/internal/type/base_page.rbs +24 -0
  94. data/sig/method_ruby/internal/type/boolean.rbs +26 -0
  95. data/sig/method_ruby/internal/type/converter.rbs +79 -0
  96. data/sig/method_ruby/internal/type/enum.rbs +32 -0
  97. data/sig/method_ruby/internal/type/file_input.rbs +25 -0
  98. data/sig/method_ruby/internal/type/hash_of.rbs +48 -0
  99. data/sig/method_ruby/internal/type/request_parameters.rbs +19 -0
  100. data/sig/method_ruby/internal/type/union.rbs +52 -0
  101. data/sig/method_ruby/internal/type/unknown.rbs +26 -0
  102. data/sig/method_ruby/internal/util.rbs +195 -0
  103. data/sig/method_ruby/internal.rbs +9 -0
  104. data/sig/method_ruby/models/address.rbs +40 -0
  105. data/sig/method_ruby/models/entity.rbs +94 -0
  106. data/sig/method_ruby/models/entity_corporation.rbs +43 -0
  107. data/sig/method_ruby/models/entity_corporation_owner.rbs +57 -0
  108. data/sig/method_ruby/models/entity_create_params.rbs +215 -0
  109. data/sig/method_ruby/models/entity_create_response.rbs +41 -0
  110. data/sig/method_ruby/models/entity_individual.rbs +44 -0
  111. data/sig/method_ruby/models/entity_list_params.rbs +77 -0
  112. data/sig/method_ruby/models/entity_list_response.rbs +41 -0
  113. data/sig/method_ruby/models/entity_retrieve_params.rbs +47 -0
  114. data/sig/method_ruby/models/entity_retrieve_response.rbs +41 -0
  115. data/sig/method_ruby/models/entity_update_params.rbs +84 -0
  116. data/sig/method_ruby/models/entity_update_response.rbs +41 -0
  117. data/sig/method_ruby/models/ping_check_params.rbs +15 -0
  118. data/sig/method_ruby/models/ping_check_response.rbs +59 -0
  119. data/sig/method_ruby/models/resource_error.rbs +38 -0
  120. data/sig/method_ruby/models.rbs +23 -0
  121. data/sig/method_ruby/request_options.rbs +36 -0
  122. data/sig/method_ruby/resources/entities.rbs +41 -0
  123. data/sig/method_ruby/resources/ping.rbs +11 -0
  124. data/sig/method_ruby/version.rbs +3 -0
  125. metadata +196 -0
@@ -0,0 +1,44 @@
1
+ module MethodRuby
2
+ module Models
3
+ type entity_individual =
4
+ {
5
+ dob: Date?,
6
+ email: String?,
7
+ first_name: String,
8
+ last_name: String,
9
+ phone: String?
10
+ }
11
+
12
+ class EntityIndividual < MethodRuby::Internal::Type::BaseModel
13
+ attr_accessor dob: Date?
14
+
15
+ attr_accessor email: String?
16
+
17
+ attr_reader first_name: String?
18
+
19
+ def first_name=: (String) -> String
20
+
21
+ attr_reader last_name: String?
22
+
23
+ def last_name=: (String) -> String
24
+
25
+ attr_accessor phone: String?
26
+
27
+ def initialize: (
28
+ ?dob: Date?,
29
+ ?email: String?,
30
+ ?first_name: String,
31
+ ?last_name: String,
32
+ ?phone: String?
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ dob: Date?,
37
+ email: String?,
38
+ first_name: String,
39
+ last_name: String,
40
+ phone: String?
41
+ }
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,77 @@
1
+ module MethodRuby
2
+ module Models
3
+ type entity_list_params =
4
+ {
5
+ from_date: Date,
6
+ page: Integer,
7
+ page_cursor: String,
8
+ page_limit: Integer,
9
+ to_date: Date,
10
+ method_version: MethodRuby::Models::EntityListParams::method_version
11
+ }
12
+ & MethodRuby::Internal::Type::request_parameters
13
+
14
+ class EntityListParams < MethodRuby::Internal::Type::BaseModel
15
+ extend MethodRuby::Internal::Type::RequestParameters::Converter
16
+ include MethodRuby::Internal::Type::RequestParameters
17
+
18
+ attr_reader from_date: Date?
19
+
20
+ def from_date=: (Date) -> Date
21
+
22
+ attr_reader page: Integer?
23
+
24
+ def page=: (Integer) -> Integer
25
+
26
+ attr_reader page_cursor: String?
27
+
28
+ def page_cursor=: (String) -> String
29
+
30
+ attr_reader page_limit: Integer?
31
+
32
+ def page_limit=: (Integer) -> Integer
33
+
34
+ attr_reader to_date: Date?
35
+
36
+ def to_date=: (Date) -> Date
37
+
38
+ attr_reader method_version: MethodRuby::Models::EntityListParams::method_version?
39
+
40
+ def method_version=: (
41
+ MethodRuby::Models::EntityListParams::method_version
42
+ ) -> MethodRuby::Models::EntityListParams::method_version
43
+
44
+ def initialize: (
45
+ ?from_date: Date,
46
+ ?page: Integer,
47
+ ?page_cursor: String,
48
+ ?page_limit: Integer,
49
+ ?to_date: Date,
50
+ ?method_version: MethodRuby::Models::EntityListParams::method_version,
51
+ ?request_options: MethodRuby::request_opts
52
+ ) -> void
53
+
54
+ def to_hash: -> {
55
+ from_date: Date,
56
+ page: Integer,
57
+ page_cursor: String,
58
+ page_limit: Integer,
59
+ to_date: Date,
60
+ method_version: MethodRuby::Models::EntityListParams::method_version,
61
+ request_options: MethodRuby::RequestOptions
62
+ }
63
+
64
+ type method_version = :"2024-04-04" | :"2025-07-04" | :"2025-12-01"
65
+
66
+ module MethodVersion
67
+ extend MethodRuby::Internal::Type::Enum
68
+
69
+ METHOD_VERSION_2024_04_04: :"2024-04-04"
70
+ METHOD_VERSION_2025_07_04: :"2025-07-04"
71
+ METHOD_VERSION_2025_12_01: :"2025-12-01"
72
+
73
+ def self?.values: -> ::Array[MethodRuby::Models::EntityListParams::method_version]
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,41 @@
1
+ module MethodRuby
2
+ module Models
3
+ type entity_list_response =
4
+ {
5
+ data: ::Array[MethodRuby::Entity],
6
+ success: MethodRuby::Models::EntityListResponse::success
7
+ }
8
+
9
+ class EntityListResponse < MethodRuby::Internal::Type::BaseModel
10
+ attr_reader data: ::Array[MethodRuby::Entity]?
11
+
12
+ def data=: (::Array[MethodRuby::Entity]) -> ::Array[MethodRuby::Entity]
13
+
14
+ attr_reader success: MethodRuby::Models::EntityListResponse::success?
15
+
16
+ def success=: (
17
+ MethodRuby::Models::EntityListResponse::success
18
+ ) -> MethodRuby::Models::EntityListResponse::success
19
+
20
+ def initialize: (
21
+ ?data: ::Array[MethodRuby::Entity],
22
+ ?success: MethodRuby::Models::EntityListResponse::success
23
+ ) -> void
24
+
25
+ def to_hash: -> {
26
+ data: ::Array[MethodRuby::Entity],
27
+ success: MethodRuby::Models::EntityListResponse::success
28
+ }
29
+
30
+ type success = true
31
+
32
+ module Success
33
+ extend MethodRuby::Internal::Type::Enum
34
+
35
+ TRUE: true
36
+
37
+ def self?.values: -> ::Array[MethodRuby::Models::EntityListResponse::success]
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,47 @@
1
+ module MethodRuby
2
+ module Models
3
+ type entity_retrieve_params =
4
+ {
5
+ ent_id: String,
6
+ method_version: MethodRuby::Models::EntityRetrieveParams::method_version
7
+ }
8
+ & MethodRuby::Internal::Type::request_parameters
9
+
10
+ class EntityRetrieveParams < MethodRuby::Internal::Type::BaseModel
11
+ extend MethodRuby::Internal::Type::RequestParameters::Converter
12
+ include MethodRuby::Internal::Type::RequestParameters
13
+
14
+ attr_accessor ent_id: String
15
+
16
+ attr_reader method_version: MethodRuby::Models::EntityRetrieveParams::method_version?
17
+
18
+ def method_version=: (
19
+ MethodRuby::Models::EntityRetrieveParams::method_version
20
+ ) -> MethodRuby::Models::EntityRetrieveParams::method_version
21
+
22
+ def initialize: (
23
+ ent_id: String,
24
+ ?method_version: MethodRuby::Models::EntityRetrieveParams::method_version,
25
+ ?request_options: MethodRuby::request_opts
26
+ ) -> void
27
+
28
+ def to_hash: -> {
29
+ ent_id: String,
30
+ method_version: MethodRuby::Models::EntityRetrieveParams::method_version,
31
+ request_options: MethodRuby::RequestOptions
32
+ }
33
+
34
+ type method_version = :"2024-04-04" | :"2025-07-04" | :"2025-12-01"
35
+
36
+ module MethodVersion
37
+ extend MethodRuby::Internal::Type::Enum
38
+
39
+ METHOD_VERSION_2024_04_04: :"2024-04-04"
40
+ METHOD_VERSION_2025_07_04: :"2025-07-04"
41
+ METHOD_VERSION_2025_12_01: :"2025-12-01"
42
+
43
+ def self?.values: -> ::Array[MethodRuby::Models::EntityRetrieveParams::method_version]
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,41 @@
1
+ module MethodRuby
2
+ module Models
3
+ type entity_retrieve_response =
4
+ {
5
+ data: MethodRuby::Entity,
6
+ success: MethodRuby::Models::EntityRetrieveResponse::success
7
+ }
8
+
9
+ class EntityRetrieveResponse < MethodRuby::Internal::Type::BaseModel
10
+ attr_reader data: MethodRuby::Entity?
11
+
12
+ def data=: (MethodRuby::Entity) -> MethodRuby::Entity
13
+
14
+ attr_reader success: MethodRuby::Models::EntityRetrieveResponse::success?
15
+
16
+ def success=: (
17
+ MethodRuby::Models::EntityRetrieveResponse::success
18
+ ) -> MethodRuby::Models::EntityRetrieveResponse::success
19
+
20
+ def initialize: (
21
+ ?data: MethodRuby::Entity,
22
+ ?success: MethodRuby::Models::EntityRetrieveResponse::success
23
+ ) -> void
24
+
25
+ def to_hash: -> {
26
+ data: MethodRuby::Entity,
27
+ success: MethodRuby::Models::EntityRetrieveResponse::success
28
+ }
29
+
30
+ type success = true
31
+
32
+ module Success
33
+ extend MethodRuby::Internal::Type::Enum
34
+
35
+ TRUE: true
36
+
37
+ def self?.values: -> ::Array[MethodRuby::Models::EntityRetrieveResponse::success]
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,84 @@
1
+ module MethodRuby
2
+ module Models
3
+ type entity_update_params =
4
+ {
5
+ ent_id: String,
6
+ address: MethodRuby::Address,
7
+ corporation: MethodRuby::EntityCorporation,
8
+ individual: MethodRuby::EntityIndividual,
9
+ metadata: ::Hash[Symbol, top]?,
10
+ idempotency_key: String,
11
+ method_version: MethodRuby::Models::EntityUpdateParams::method_version
12
+ }
13
+ & MethodRuby::Internal::Type::request_parameters
14
+
15
+ class EntityUpdateParams < MethodRuby::Internal::Type::BaseModel
16
+ extend MethodRuby::Internal::Type::RequestParameters::Converter
17
+ include MethodRuby::Internal::Type::RequestParameters
18
+
19
+ attr_accessor ent_id: String
20
+
21
+ attr_reader address: MethodRuby::Address?
22
+
23
+ def address=: (MethodRuby::Address) -> MethodRuby::Address
24
+
25
+ attr_reader corporation: MethodRuby::EntityCorporation?
26
+
27
+ def corporation=: (
28
+ MethodRuby::EntityCorporation
29
+ ) -> MethodRuby::EntityCorporation
30
+
31
+ attr_reader individual: MethodRuby::EntityIndividual?
32
+
33
+ def individual=: (
34
+ MethodRuby::EntityIndividual
35
+ ) -> MethodRuby::EntityIndividual
36
+
37
+ attr_accessor metadata: ::Hash[Symbol, top]?
38
+
39
+ attr_reader idempotency_key: String?
40
+
41
+ def idempotency_key=: (String) -> String
42
+
43
+ attr_reader method_version: MethodRuby::Models::EntityUpdateParams::method_version?
44
+
45
+ def method_version=: (
46
+ MethodRuby::Models::EntityUpdateParams::method_version
47
+ ) -> MethodRuby::Models::EntityUpdateParams::method_version
48
+
49
+ def initialize: (
50
+ ent_id: String,
51
+ ?address: MethodRuby::Address,
52
+ ?corporation: MethodRuby::EntityCorporation,
53
+ ?individual: MethodRuby::EntityIndividual,
54
+ ?metadata: ::Hash[Symbol, top]?,
55
+ ?idempotency_key: String,
56
+ ?method_version: MethodRuby::Models::EntityUpdateParams::method_version,
57
+ ?request_options: MethodRuby::request_opts
58
+ ) -> void
59
+
60
+ def to_hash: -> {
61
+ ent_id: String,
62
+ address: MethodRuby::Address,
63
+ corporation: MethodRuby::EntityCorporation,
64
+ individual: MethodRuby::EntityIndividual,
65
+ metadata: ::Hash[Symbol, top]?,
66
+ idempotency_key: String,
67
+ method_version: MethodRuby::Models::EntityUpdateParams::method_version,
68
+ request_options: MethodRuby::RequestOptions
69
+ }
70
+
71
+ type method_version = :"2024-04-04" | :"2025-07-04" | :"2025-12-01"
72
+
73
+ module MethodVersion
74
+ extend MethodRuby::Internal::Type::Enum
75
+
76
+ METHOD_VERSION_2024_04_04: :"2024-04-04"
77
+ METHOD_VERSION_2025_07_04: :"2025-07-04"
78
+ METHOD_VERSION_2025_12_01: :"2025-12-01"
79
+
80
+ def self?.values: -> ::Array[MethodRuby::Models::EntityUpdateParams::method_version]
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,41 @@
1
+ module MethodRuby
2
+ module Models
3
+ type entity_update_response =
4
+ {
5
+ data: MethodRuby::Entity,
6
+ success: MethodRuby::Models::EntityUpdateResponse::success
7
+ }
8
+
9
+ class EntityUpdateResponse < MethodRuby::Internal::Type::BaseModel
10
+ attr_reader data: MethodRuby::Entity?
11
+
12
+ def data=: (MethodRuby::Entity) -> MethodRuby::Entity
13
+
14
+ attr_reader success: MethodRuby::Models::EntityUpdateResponse::success?
15
+
16
+ def success=: (
17
+ MethodRuby::Models::EntityUpdateResponse::success
18
+ ) -> MethodRuby::Models::EntityUpdateResponse::success
19
+
20
+ def initialize: (
21
+ ?data: MethodRuby::Entity,
22
+ ?success: MethodRuby::Models::EntityUpdateResponse::success
23
+ ) -> void
24
+
25
+ def to_hash: -> {
26
+ data: MethodRuby::Entity,
27
+ success: MethodRuby::Models::EntityUpdateResponse::success
28
+ }
29
+
30
+ type success = true
31
+
32
+ module Success
33
+ extend MethodRuby::Internal::Type::Enum
34
+
35
+ TRUE: true
36
+
37
+ def self?.values: -> ::Array[MethodRuby::Models::EntityUpdateResponse::success]
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,15 @@
1
+ module MethodRuby
2
+ module Models
3
+ type ping_check_params =
4
+ { } & MethodRuby::Internal::Type::request_parameters
5
+
6
+ class PingCheckParams < MethodRuby::Internal::Type::BaseModel
7
+ extend MethodRuby::Internal::Type::RequestParameters::Converter
8
+ include MethodRuby::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: MethodRuby::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: MethodRuby::RequestOptions }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,59 @@
1
+ module MethodRuby
2
+ module Models
3
+ type ping_check_response =
4
+ {
5
+ data: MethodRuby::Models::PingCheckResponse::Data,
6
+ success: MethodRuby::Models::PingCheckResponse::success
7
+ }
8
+
9
+ class PingCheckResponse < MethodRuby::Internal::Type::BaseModel
10
+ attr_reader data: MethodRuby::Models::PingCheckResponse::Data?
11
+
12
+ def data=: (
13
+ MethodRuby::Models::PingCheckResponse::Data
14
+ ) -> MethodRuby::Models::PingCheckResponse::Data
15
+
16
+ attr_reader success: MethodRuby::Models::PingCheckResponse::success?
17
+
18
+ def success=: (
19
+ MethodRuby::Models::PingCheckResponse::success
20
+ ) -> MethodRuby::Models::PingCheckResponse::success
21
+
22
+ def initialize: (
23
+ ?data: MethodRuby::Models::PingCheckResponse::Data,
24
+ ?success: MethodRuby::Models::PingCheckResponse::success
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ data: MethodRuby::Models::PingCheckResponse::Data,
29
+ success: MethodRuby::Models::PingCheckResponse::success
30
+ }
31
+
32
+ type data = { status: String, version: String }
33
+
34
+ class Data < MethodRuby::Internal::Type::BaseModel
35
+ attr_reader status: String?
36
+
37
+ def status=: (String) -> String
38
+
39
+ attr_reader version: String?
40
+
41
+ def version=: (String) -> String
42
+
43
+ def initialize: (?status: String, ?version: String) -> void
44
+
45
+ def to_hash: -> { status: String, version: String }
46
+ end
47
+
48
+ type success = true
49
+
50
+ module Success
51
+ extend MethodRuby::Internal::Type::Enum
52
+
53
+ TRUE: true
54
+
55
+ def self?.values: -> ::Array[MethodRuby::Models::PingCheckResponse::success]
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,38 @@
1
+ module MethodRuby
2
+ module Models
3
+ type resource_error =
4
+ { code: Integer, message: String, sub_type: String, type: String }
5
+
6
+ class ResourceError < MethodRuby::Internal::Type::BaseModel
7
+ attr_reader code: Integer?
8
+
9
+ def code=: (Integer) -> Integer
10
+
11
+ attr_reader message: String?
12
+
13
+ def message=: (String) -> String
14
+
15
+ attr_reader sub_type: String?
16
+
17
+ def sub_type=: (String) -> String
18
+
19
+ attr_reader type: String?
20
+
21
+ def type=: (String) -> String
22
+
23
+ def initialize: (
24
+ ?code: Integer,
25
+ ?message: String,
26
+ ?sub_type: String,
27
+ ?type: String
28
+ ) -> void
29
+
30
+ def to_hash: -> {
31
+ code: Integer,
32
+ message: String,
33
+ sub_type: String,
34
+ type: String
35
+ }
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,23 @@
1
+ module MethodRuby
2
+ class Address = MethodRuby::Models::Address
3
+
4
+ class Entity = MethodRuby::Models::Entity
5
+
6
+ class EntityCorporation = MethodRuby::Models::EntityCorporation
7
+
8
+ class EntityCorporationOwner = MethodRuby::Models::EntityCorporationOwner
9
+
10
+ class EntityCreateParams = MethodRuby::Models::EntityCreateParams
11
+
12
+ class EntityIndividual = MethodRuby::Models::EntityIndividual
13
+
14
+ class EntityListParams = MethodRuby::Models::EntityListParams
15
+
16
+ class EntityRetrieveParams = MethodRuby::Models::EntityRetrieveParams
17
+
18
+ class EntityUpdateParams = MethodRuby::Models::EntityUpdateParams
19
+
20
+ class PingCheckParams = MethodRuby::Models::PingCheckParams
21
+
22
+ class ResourceError = MethodRuby::Models::ResourceError
23
+ end
@@ -0,0 +1,36 @@
1
+ module MethodRuby
2
+ type request_opts =
3
+ MethodRuby::RequestOptions
4
+ | MethodRuby::request_options
5
+ | ::Hash[Symbol, top]
6
+
7
+ type request_options =
8
+ {
9
+ idempotency_key: String?,
10
+ extra_query: ::Hash[String, (::Array[String] | String)?]?,
11
+ extra_headers: ::Hash[String, String?]?,
12
+ extra_body: top?,
13
+ max_retries: Integer?,
14
+ timeout: Float?
15
+ }
16
+
17
+ class RequestOptions < MethodRuby::Internal::Type::BaseModel
18
+ def self.validate!: (MethodRuby::request_opts opts) -> void
19
+
20
+ attr_accessor idempotency_key: String?
21
+
22
+ attr_accessor extra_query: ::Hash[String, (::Array[String] | String)?]?
23
+
24
+ attr_accessor extra_headers: ::Hash[String, String?]?
25
+
26
+ attr_accessor extra_body: top?
27
+
28
+ attr_accessor max_retries: Integer?
29
+
30
+ attr_accessor timeout: Float?
31
+
32
+ def initialize: (
33
+ ?MethodRuby::request_options | ::Hash[Symbol, top] values
34
+ ) -> void
35
+ end
36
+ end
@@ -0,0 +1,41 @@
1
+ module MethodRuby
2
+ module Resources
3
+ class Entities
4
+ def create: (
5
+ body: MethodRuby::Models::EntityCreateParams::body,
6
+ ?idempotency_key: String,
7
+ ?method_version: MethodRuby::Models::EntityCreateParams::method_version,
8
+ ?request_options: MethodRuby::request_opts
9
+ ) -> MethodRuby::Models::EntityCreateResponse
10
+
11
+ def retrieve: (
12
+ String ent_id,
13
+ ?method_version: MethodRuby::Models::EntityRetrieveParams::method_version,
14
+ ?request_options: MethodRuby::request_opts
15
+ ) -> MethodRuby::Models::EntityRetrieveResponse
16
+
17
+ def update: (
18
+ String ent_id,
19
+ ?address: MethodRuby::Address,
20
+ ?corporation: MethodRuby::EntityCorporation,
21
+ ?individual: MethodRuby::EntityIndividual,
22
+ ?metadata: ::Hash[Symbol, top]?,
23
+ ?idempotency_key: String,
24
+ ?method_version: MethodRuby::Models::EntityUpdateParams::method_version,
25
+ ?request_options: MethodRuby::request_opts
26
+ ) -> MethodRuby::Models::EntityUpdateResponse
27
+
28
+ def list: (
29
+ ?from_date: Date,
30
+ ?page: Integer,
31
+ ?page_cursor: String,
32
+ ?page_limit: Integer,
33
+ ?to_date: Date,
34
+ ?method_version: MethodRuby::Models::EntityListParams::method_version,
35
+ ?request_options: MethodRuby::request_opts
36
+ ) -> MethodRuby::Models::EntityListResponse
37
+
38
+ def initialize: (client: MethodRuby::Client) -> void
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,11 @@
1
+ module MethodRuby
2
+ module Resources
3
+ class Ping
4
+ def check: (
5
+ ?request_options: MethodRuby::request_opts
6
+ ) -> MethodRuby::Models::PingCheckResponse
7
+
8
+ def initialize: (client: MethodRuby::Client) -> void
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ module MethodRuby
2
+ VERSION: String
3
+ end