stackone_client 0.37.2 → 0.37.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56dc384e0d97831b22adccd0e88094e130bf46569e18891e0afc51c7b3d8521b
4
- data.tar.gz: d722444c111ab7e097aacefa3ab85035e471303fac6a2ef797f90c6df1aab006
3
+ metadata.gz: b4c7c5f88cf6ca776f61041a02e3941088b66299648f0d592c6dad61c41bc0a6
4
+ data.tar.gz: 7855e0375e9019d4758456827885127cd8a7fc54ded260e07ff646e40ffdf753
5
5
  SHA512:
6
- metadata.gz: 91f6127667593ad77d7e05089836ddd493ae5287d0c7d35f5f82e2d82720fbad0ead2457111f18103e105f611228e8dec1854eb18885d717587041b221eede42
7
- data.tar.gz: aa54166f4ab384e4143f16a641f96e8a7898f4383439da4cbbfed09cd2966aea8dc258f6ef72121b4307535c2eb304d66e18f18da59fb0203ca3a776ad9239f9
6
+ metadata.gz: b5d001a97a204203414bbadb1d08b378cf9d8381ade0eb0a890cb062739d9d65d13a116d540e8440f91f3af54db57ee259f1e3f56f33a3e86975b9d884dfa0bf
7
+ data.tar.gz: 422255ec81d0c05d0e5b06b11c9298cfb38983e27925540f0783f0744b0961ebfa875fd319f904693cec21515a07647fe95cb85ed8c0a50f3656e083d65ec729
@@ -51,6 +51,10 @@ module Crystalline
51
51
  data.transform_values { |v| Crystalline.unmarshal_json(v, Crystalline::Utils.hash_of(type)) }
52
52
  elsif Crystalline::Utils.nilable?(type) && data == 'null'
53
53
  nil
54
+ elsif Crystalline::Utils.boolean? type
55
+ Crystalline::Utils.to_boolean(data)
56
+ elsif type.is_a?(Class) && type < T::Enum
57
+ type.deserialize(data)
54
58
  else
55
59
  data
56
60
  end
@@ -52,5 +52,18 @@ module Crystalline
52
52
  def self.get_union_types(t)
53
53
  t.types
54
54
  end
55
+
56
+ def self.boolean?(t)
57
+ t.instance_of? Crystalline::Boolean
58
+ end
59
+
60
+ def self.to_boolean(value)
61
+ case value
62
+ when true, false
63
+ value
64
+ else
65
+ raise TypeError, "Cannot convert #{value.inspect} to boolean. The value is of type #{value.class}"
66
+ end
67
+ end
55
68
  end
56
69
  end
@@ -97,7 +97,7 @@ module StackOne
97
97
  hook_ctx = SDKHooks::HookContext.new(
98
98
  config: @sdk_configuration,
99
99
  base_url: base_url,
100
- oauth2_scopes: [],
100
+ oauth2_scopes: nil,
101
101
  operation_id: 'accounting_batch_create_company_journals',
102
102
  security_source: @sdk_configuration.security_source
103
103
  )
@@ -405,7 +405,7 @@ module StackOne
405
405
  hook_ctx = SDKHooks::HookContext.new(
406
406
  config: @sdk_configuration,
407
407
  base_url: base_url,
408
- oauth2_scopes: [],
408
+ oauth2_scopes: nil,
409
409
  operation_id: 'accounting_create_company_journal',
410
410
  security_source: @sdk_configuration.security_source
411
411
  )
@@ -698,7 +698,7 @@ module StackOne
698
698
  hook_ctx = SDKHooks::HookContext.new(
699
699
  config: @sdk_configuration,
700
700
  base_url: base_url,
701
- oauth2_scopes: [],
701
+ oauth2_scopes: nil,
702
702
  operation_id: 'accounting_get_company',
703
703
  security_source: @sdk_configuration.security_source
704
704
  )
@@ -991,7 +991,7 @@ module StackOne
991
991
  hook_ctx = SDKHooks::HookContext.new(
992
992
  config: @sdk_configuration,
993
993
  base_url: base_url,
994
- oauth2_scopes: [],
994
+ oauth2_scopes: nil,
995
995
  operation_id: 'accounting_get_company_account',
996
996
  security_source: @sdk_configuration.security_source
997
997
  )
@@ -1284,7 +1284,7 @@ module StackOne
1284
1284
  hook_ctx = SDKHooks::HookContext.new(
1285
1285
  config: @sdk_configuration,
1286
1286
  base_url: base_url,
1287
- oauth2_scopes: [],
1287
+ oauth2_scopes: nil,
1288
1288
  operation_id: 'accounting_get_company_journal',
1289
1289
  security_source: @sdk_configuration.security_source
1290
1290
  )
@@ -1577,7 +1577,7 @@ module StackOne
1577
1577
  hook_ctx = SDKHooks::HookContext.new(
1578
1578
  config: @sdk_configuration,
1579
1579
  base_url: base_url,
1580
- oauth2_scopes: [],
1580
+ oauth2_scopes: nil,
1581
1581
  operation_id: 'accounting_get_company_tax_rate',
1582
1582
  security_source: @sdk_configuration.security_source
1583
1583
  )
@@ -1865,7 +1865,7 @@ module StackOne
1865
1865
  hook_ctx = SDKHooks::HookContext.new(
1866
1866
  config: @sdk_configuration,
1867
1867
  base_url: base_url,
1868
- oauth2_scopes: [],
1868
+ oauth2_scopes: nil,
1869
1869
  operation_id: 'accounting_list_companies',
1870
1870
  security_source: @sdk_configuration.security_source
1871
1871
  )
@@ -2186,7 +2186,7 @@ module StackOne
2186
2186
  hook_ctx = SDKHooks::HookContext.new(
2187
2187
  config: @sdk_configuration,
2188
2188
  base_url: base_url,
2189
- oauth2_scopes: [],
2189
+ oauth2_scopes: nil,
2190
2190
  operation_id: 'accounting_list_company_accounts',
2191
2191
  security_source: @sdk_configuration.security_source
2192
2192
  )
@@ -2508,7 +2508,7 @@ module StackOne
2508
2508
  hook_ctx = SDKHooks::HookContext.new(
2509
2509
  config: @sdk_configuration,
2510
2510
  base_url: base_url,
2511
- oauth2_scopes: [],
2511
+ oauth2_scopes: nil,
2512
2512
  operation_id: 'accounting_list_company_journals',
2513
2513
  security_source: @sdk_configuration.security_source
2514
2514
  )
@@ -2830,7 +2830,7 @@ module StackOne
2830
2830
  hook_ctx = SDKHooks::HookContext.new(
2831
2831
  config: @sdk_configuration,
2832
2832
  base_url: base_url,
2833
- oauth2_scopes: [],
2833
+ oauth2_scopes: nil,
2834
2834
  operation_id: 'accounting_list_company_tax_rates',
2835
2835
  security_source: @sdk_configuration.security_source
2836
2836
  )
@@ -83,7 +83,7 @@ module StackOne
83
83
  hook_ctx = SDKHooks::HookContext.new(
84
84
  config: @sdk_configuration,
85
85
  base_url: base_url,
86
- oauth2_scopes: [],
86
+ oauth2_scopes: nil,
87
87
  operation_id: 'stackone_delete_account',
88
88
  security_source: @sdk_configuration.security_source
89
89
  )
@@ -363,7 +363,7 @@ module StackOne
363
363
  hook_ctx = SDKHooks::HookContext.new(
364
364
  config: @sdk_configuration,
365
365
  base_url: base_url,
366
- oauth2_scopes: [],
366
+ oauth2_scopes: nil,
367
367
  operation_id: 'stackone_get_account',
368
368
  security_source: @sdk_configuration.security_source
369
369
  )
@@ -643,7 +643,7 @@ module StackOne
643
643
  hook_ctx = SDKHooks::HookContext.new(
644
644
  config: @sdk_configuration,
645
645
  base_url: base_url,
646
- oauth2_scopes: [],
646
+ oauth2_scopes: nil,
647
647
  operation_id: 'stackone_get_account_meta_info',
648
648
  security_source: @sdk_configuration.security_source
649
649
  )
@@ -916,7 +916,7 @@ module StackOne
916
916
  hook_ctx = SDKHooks::HookContext.new(
917
917
  config: @sdk_configuration,
918
918
  base_url: base_url,
919
- oauth2_scopes: [],
919
+ oauth2_scopes: nil,
920
920
  operation_id: 'stackone_list_linked_accounts',
921
921
  security_source: @sdk_configuration.security_source
922
922
  )
@@ -1209,7 +1209,7 @@ module StackOne
1209
1209
  hook_ctx = SDKHooks::HookContext.new(
1210
1210
  config: @sdk_configuration,
1211
1211
  base_url: base_url,
1212
- oauth2_scopes: [],
1212
+ oauth2_scopes: nil,
1213
1213
  operation_id: 'stackone_update_account',
1214
1214
  security_source: @sdk_configuration.security_source
1215
1215
  )
@@ -78,7 +78,7 @@ module StackOne
78
78
  hook_ctx = SDKHooks::HookContext.new(
79
79
  config: @sdk_configuration,
80
80
  base_url: base_url,
81
- oauth2_scopes: [],
81
+ oauth2_scopes: nil,
82
82
  operation_id: 'stackone_list_actions_meta',
83
83
  security_source: @sdk_configuration.security_source
84
84
  )
@@ -388,7 +388,7 @@ module StackOne
388
388
  hook_ctx = SDKHooks::HookContext.new(
389
389
  config: @sdk_configuration,
390
390
  base_url: base_url,
391
- oauth2_scopes: [],
391
+ oauth2_scopes: nil,
392
392
  operation_id: 'stackone_rpc_action',
393
393
  security_source: @sdk_configuration.security_source
394
394
  )