stigg 0.1.0.pre.beta.43 → 0.1.0.pre.beta.44
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/stigg/models/v1/credits/credit_grant_response.rb +85 -1
- data/lib/stigg/models/v1/credits/grant_list_response.rb +81 -1
- data/lib/stigg/version.rb +1 -1
- data/rbi/stigg/models/v1/credits/credit_grant_response.rbi +229 -0
- data/rbi/stigg/models/v1/credits/grant_list_response.rbi +229 -0
- data/sig/stigg/models/v1/credits/credit_grant_response.rbs +82 -0
- data/sig/stigg/models/v1/credits/grant_list_response.rbs +82 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6db024a60e1adbdbe122e0450c04c41609a556179669277b4812c9d816490c39
|
|
4
|
+
data.tar.gz: 07655e06beeebad975ed6c4d6634d913924d26b08ccbaf8d4226f39ec587b4cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97ea9bb87dca0bcb1e991316027c0edd46c54d152c5c9b20c6cc6671b93414702599b227a9d987141bfff206c6e025feaa5db60f5604047cf1aa2472d214c1d3
|
|
7
|
+
data.tar.gz: 7df8ede3bf17a5a0c662e48efdf4f2ae1dca7b682397db11721b9eaa09b69f6cb367e1f8ec5799cd77c58361f185f59a449134b630a0f3c0bd5d529860f5d823
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.44 (2026-07-21)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-beta.43...v0.1.0-beta.44](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.43...v0.1.0-beta.44)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add sync_states field to credit grant responses ([3ed28af](https://github.com/stiggio/stigg-ruby/commit/3ed28af9bec2bc1b47e37ea312fef789d7f9abe0))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-beta.43 (2026-07-21)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-beta.42...v0.1.0-beta.43](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.42...v0.1.0-beta.43)
|
data/README.md
CHANGED
|
@@ -149,6 +149,17 @@ module Stigg
|
|
|
149
149
|
# @return [Symbol, Stigg::Models::V1::Credits::CreditGrantResponse::Data::Status]
|
|
150
150
|
required :status, enum: -> { Stigg::V1::Credits::CreditGrantResponse::Data::Status }
|
|
151
151
|
|
|
152
|
+
# @!attribute sync_states
|
|
153
|
+
# The synchronization states of the entity with external systems
|
|
154
|
+
#
|
|
155
|
+
# @return [Array<Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState>, nil]
|
|
156
|
+
required :sync_states,
|
|
157
|
+
-> {
|
|
158
|
+
Stigg::Internal::Type::ArrayOf[Stigg::V1::Credits::CreditGrantResponse::Data::SyncState]
|
|
159
|
+
},
|
|
160
|
+
api_name: :syncStates,
|
|
161
|
+
nil?: true
|
|
162
|
+
|
|
152
163
|
# @!attribute updated_at
|
|
153
164
|
# Timestamp of when the record was last updated
|
|
154
165
|
#
|
|
@@ -161,7 +172,7 @@ module Stigg
|
|
|
161
172
|
# @return [Time, nil]
|
|
162
173
|
required :voided_at, Time, api_name: :voidedAt, nil?: true
|
|
163
174
|
|
|
164
|
-
# @!method initialize(id:, amount:, comment:, consumed_amount:, cost:, created_at:, currency_id:, customer_id:, display_name:, effective_at:, expire_at:, grant_type:, invoice_id:, latest_invoice:, metadata:, payment_collection:, priority:, resource_id:, source_type:, status:, updated_at:, voided_at:)
|
|
175
|
+
# @!method initialize(id:, amount:, comment:, consumed_amount:, cost:, created_at:, currency_id:, customer_id:, display_name:, effective_at:, expire_at:, grant_type:, invoice_id:, latest_invoice:, metadata:, payment_collection:, priority:, resource_id:, source_type:, status:, sync_states:, updated_at:, voided_at:)
|
|
165
176
|
# Credit grant object representing allocated credits for a customer
|
|
166
177
|
#
|
|
167
178
|
# @param id [String] The unique readable identifier of the credit grant
|
|
@@ -204,6 +215,8 @@ module Stigg
|
|
|
204
215
|
#
|
|
205
216
|
# @param status [Symbol, Stigg::Models::V1::Credits::CreditGrantResponse::Data::Status] The effective status of the credit grant
|
|
206
217
|
#
|
|
218
|
+
# @param sync_states [Array<Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState>, nil] The synchronization states of the entity with external systems
|
|
219
|
+
#
|
|
207
220
|
# @param updated_at [Time] Timestamp of when the record was last updated
|
|
208
221
|
#
|
|
209
222
|
# @param voided_at [Time, nil] The date when the credit grant was voided
|
|
@@ -439,6 +452,77 @@ module Stigg
|
|
|
439
452
|
# @!method self.values
|
|
440
453
|
# @return [Array<Symbol>]
|
|
441
454
|
end
|
|
455
|
+
|
|
456
|
+
class SyncState < Stigg::Internal::Type::BaseModel
|
|
457
|
+
# @!attribute status
|
|
458
|
+
# Status of the integration sync
|
|
459
|
+
#
|
|
460
|
+
# @return [Symbol, Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::Status]
|
|
461
|
+
required :status, enum: -> { Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::Status }
|
|
462
|
+
|
|
463
|
+
# @!attribute synced_entity_id
|
|
464
|
+
# Synced entity id
|
|
465
|
+
#
|
|
466
|
+
# @return [String, nil]
|
|
467
|
+
required :synced_entity_id, String, api_name: :syncedEntityId, nil?: true
|
|
468
|
+
|
|
469
|
+
# @!attribute vendor_identifier
|
|
470
|
+
# The vendor identifier of integration
|
|
471
|
+
#
|
|
472
|
+
# @return [Symbol, Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier]
|
|
473
|
+
required :vendor_identifier,
|
|
474
|
+
enum: -> {
|
|
475
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier
|
|
476
|
+
},
|
|
477
|
+
api_name: :vendorIdentifier
|
|
478
|
+
|
|
479
|
+
# @!method initialize(status:, synced_entity_id:, vendor_identifier:)
|
|
480
|
+
# @param status [Symbol, Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::Status] Status of the integration sync
|
|
481
|
+
#
|
|
482
|
+
# @param synced_entity_id [String, nil] Synced entity id
|
|
483
|
+
#
|
|
484
|
+
# @param vendor_identifier [Symbol, Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier] The vendor identifier of integration
|
|
485
|
+
|
|
486
|
+
# Status of the integration sync
|
|
487
|
+
#
|
|
488
|
+
# @see Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState#status
|
|
489
|
+
module Status
|
|
490
|
+
extend Stigg::Internal::Type::Enum
|
|
491
|
+
|
|
492
|
+
PENDING = :PENDING
|
|
493
|
+
ERROR = :ERROR
|
|
494
|
+
SUCCESS = :SUCCESS
|
|
495
|
+
NO_SYNC_REQUIRED = :NO_SYNC_REQUIRED
|
|
496
|
+
|
|
497
|
+
# @!method self.values
|
|
498
|
+
# @return [Array<Symbol>]
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
# The vendor identifier of integration
|
|
502
|
+
#
|
|
503
|
+
# @see Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState#vendor_identifier
|
|
504
|
+
module VendorIdentifier
|
|
505
|
+
extend Stigg::Internal::Type::Enum
|
|
506
|
+
|
|
507
|
+
AUTH0 = :AUTH0
|
|
508
|
+
ZUORA = :ZUORA
|
|
509
|
+
STRIPE = :STRIPE
|
|
510
|
+
HUBSPOT = :HUBSPOT
|
|
511
|
+
AWS_MARKETPLACE = :AWS_MARKETPLACE
|
|
512
|
+
SNOWFLAKE = :SNOWFLAKE
|
|
513
|
+
SALESFORCE = :SALESFORCE
|
|
514
|
+
BIG_QUERY = :BIG_QUERY
|
|
515
|
+
OPEN_FGA = :OPEN_FGA
|
|
516
|
+
APP_STORE = :APP_STORE
|
|
517
|
+
RECEIVED = :RECEIVED
|
|
518
|
+
PREQUEL = :PREQUEL
|
|
519
|
+
AIRWALLEX = :AIRWALLEX
|
|
520
|
+
STRIPE_INVOICING = :STRIPE_INVOICING
|
|
521
|
+
|
|
522
|
+
# @!method self.values
|
|
523
|
+
# @return [Array<Symbol>]
|
|
524
|
+
end
|
|
525
|
+
end
|
|
442
526
|
end
|
|
443
527
|
end
|
|
444
528
|
end
|
|
@@ -136,6 +136,15 @@ module Stigg
|
|
|
136
136
|
# @return [Symbol, Stigg::Models::V1::Credits::GrantListResponse::Status]
|
|
137
137
|
required :status, enum: -> { Stigg::Models::V1::Credits::GrantListResponse::Status }
|
|
138
138
|
|
|
139
|
+
# @!attribute sync_states
|
|
140
|
+
# The synchronization states of the entity with external systems
|
|
141
|
+
#
|
|
142
|
+
# @return [Array<Stigg::Models::V1::Credits::GrantListResponse::SyncState>, nil]
|
|
143
|
+
required :sync_states,
|
|
144
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::Credits::GrantListResponse::SyncState] },
|
|
145
|
+
api_name: :syncStates,
|
|
146
|
+
nil?: true
|
|
147
|
+
|
|
139
148
|
# @!attribute updated_at
|
|
140
149
|
# Timestamp of when the record was last updated
|
|
141
150
|
#
|
|
@@ -148,7 +157,7 @@ module Stigg
|
|
|
148
157
|
# @return [Time, nil]
|
|
149
158
|
required :voided_at, Time, api_name: :voidedAt, nil?: true
|
|
150
159
|
|
|
151
|
-
# @!method initialize(id:, amount:, comment:, consumed_amount:, cost:, created_at:, currency_id:, customer_id:, display_name:, effective_at:, expire_at:, grant_type:, invoice_id:, latest_invoice:, metadata:, payment_collection:, priority:, resource_id:, source_type:, status:, updated_at:, voided_at:)
|
|
160
|
+
# @!method initialize(id:, amount:, comment:, consumed_amount:, cost:, created_at:, currency_id:, customer_id:, display_name:, effective_at:, expire_at:, grant_type:, invoice_id:, latest_invoice:, metadata:, payment_collection:, priority:, resource_id:, source_type:, status:, sync_states:, updated_at:, voided_at:)
|
|
152
161
|
# Credit grant object representing allocated credits for a customer
|
|
153
162
|
#
|
|
154
163
|
# @param id [String] The unique readable identifier of the credit grant
|
|
@@ -191,6 +200,8 @@ module Stigg
|
|
|
191
200
|
#
|
|
192
201
|
# @param status [Symbol, Stigg::Models::V1::Credits::GrantListResponse::Status] The effective status of the credit grant
|
|
193
202
|
#
|
|
203
|
+
# @param sync_states [Array<Stigg::Models::V1::Credits::GrantListResponse::SyncState>, nil] The synchronization states of the entity with external systems
|
|
204
|
+
#
|
|
194
205
|
# @param updated_at [Time] Timestamp of when the record was last updated
|
|
195
206
|
#
|
|
196
207
|
# @param voided_at [Time, nil] The date when the credit grant was voided
|
|
@@ -424,6 +435,75 @@ module Stigg
|
|
|
424
435
|
# @!method self.values
|
|
425
436
|
# @return [Array<Symbol>]
|
|
426
437
|
end
|
|
438
|
+
|
|
439
|
+
class SyncState < Stigg::Internal::Type::BaseModel
|
|
440
|
+
# @!attribute status
|
|
441
|
+
# Status of the integration sync
|
|
442
|
+
#
|
|
443
|
+
# @return [Symbol, Stigg::Models::V1::Credits::GrantListResponse::SyncState::Status]
|
|
444
|
+
required :status, enum: -> { Stigg::Models::V1::Credits::GrantListResponse::SyncState::Status }
|
|
445
|
+
|
|
446
|
+
# @!attribute synced_entity_id
|
|
447
|
+
# Synced entity id
|
|
448
|
+
#
|
|
449
|
+
# @return [String, nil]
|
|
450
|
+
required :synced_entity_id, String, api_name: :syncedEntityId, nil?: true
|
|
451
|
+
|
|
452
|
+
# @!attribute vendor_identifier
|
|
453
|
+
# The vendor identifier of integration
|
|
454
|
+
#
|
|
455
|
+
# @return [Symbol, Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier]
|
|
456
|
+
required :vendor_identifier,
|
|
457
|
+
enum: -> { Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier },
|
|
458
|
+
api_name: :vendorIdentifier
|
|
459
|
+
|
|
460
|
+
# @!method initialize(status:, synced_entity_id:, vendor_identifier:)
|
|
461
|
+
# @param status [Symbol, Stigg::Models::V1::Credits::GrantListResponse::SyncState::Status] Status of the integration sync
|
|
462
|
+
#
|
|
463
|
+
# @param synced_entity_id [String, nil] Synced entity id
|
|
464
|
+
#
|
|
465
|
+
# @param vendor_identifier [Symbol, Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier] The vendor identifier of integration
|
|
466
|
+
|
|
467
|
+
# Status of the integration sync
|
|
468
|
+
#
|
|
469
|
+
# @see Stigg::Models::V1::Credits::GrantListResponse::SyncState#status
|
|
470
|
+
module Status
|
|
471
|
+
extend Stigg::Internal::Type::Enum
|
|
472
|
+
|
|
473
|
+
PENDING = :PENDING
|
|
474
|
+
ERROR = :ERROR
|
|
475
|
+
SUCCESS = :SUCCESS
|
|
476
|
+
NO_SYNC_REQUIRED = :NO_SYNC_REQUIRED
|
|
477
|
+
|
|
478
|
+
# @!method self.values
|
|
479
|
+
# @return [Array<Symbol>]
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
# The vendor identifier of integration
|
|
483
|
+
#
|
|
484
|
+
# @see Stigg::Models::V1::Credits::GrantListResponse::SyncState#vendor_identifier
|
|
485
|
+
module VendorIdentifier
|
|
486
|
+
extend Stigg::Internal::Type::Enum
|
|
487
|
+
|
|
488
|
+
AUTH0 = :AUTH0
|
|
489
|
+
ZUORA = :ZUORA
|
|
490
|
+
STRIPE = :STRIPE
|
|
491
|
+
HUBSPOT = :HUBSPOT
|
|
492
|
+
AWS_MARKETPLACE = :AWS_MARKETPLACE
|
|
493
|
+
SNOWFLAKE = :SNOWFLAKE
|
|
494
|
+
SALESFORCE = :SALESFORCE
|
|
495
|
+
BIG_QUERY = :BIG_QUERY
|
|
496
|
+
OPEN_FGA = :OPEN_FGA
|
|
497
|
+
APP_STORE = :APP_STORE
|
|
498
|
+
RECEIVED = :RECEIVED
|
|
499
|
+
PREQUEL = :PREQUEL
|
|
500
|
+
AIRWALLEX = :AIRWALLEX
|
|
501
|
+
STRIPE_INVOICING = :STRIPE_INVOICING
|
|
502
|
+
|
|
503
|
+
# @!method self.values
|
|
504
|
+
# @return [Array<Symbol>]
|
|
505
|
+
end
|
|
506
|
+
end
|
|
427
507
|
end
|
|
428
508
|
end
|
|
429
509
|
end
|
data/lib/stigg/version.rb
CHANGED
|
@@ -177,6 +177,18 @@ module Stigg
|
|
|
177
177
|
end
|
|
178
178
|
attr_accessor :status
|
|
179
179
|
|
|
180
|
+
# The synchronization states of the entity with external systems
|
|
181
|
+
sig do
|
|
182
|
+
returns(
|
|
183
|
+
T.nilable(
|
|
184
|
+
T::Array[
|
|
185
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState
|
|
186
|
+
]
|
|
187
|
+
)
|
|
188
|
+
)
|
|
189
|
+
end
|
|
190
|
+
attr_accessor :sync_states
|
|
191
|
+
|
|
180
192
|
# Timestamp of when the record was last updated
|
|
181
193
|
sig { returns(Time) }
|
|
182
194
|
attr_accessor :updated_at
|
|
@@ -218,6 +230,12 @@ module Stigg
|
|
|
218
230
|
),
|
|
219
231
|
status:
|
|
220
232
|
Stigg::V1::Credits::CreditGrantResponse::Data::Status::OrSymbol,
|
|
233
|
+
sync_states:
|
|
234
|
+
T.nilable(
|
|
235
|
+
T::Array[
|
|
236
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::OrHash
|
|
237
|
+
]
|
|
238
|
+
),
|
|
221
239
|
updated_at: Time,
|
|
222
240
|
voided_at: T.nilable(Time)
|
|
223
241
|
).returns(T.attached_class)
|
|
@@ -263,6 +281,8 @@ module Stigg
|
|
|
263
281
|
source_type:,
|
|
264
282
|
# The effective status of the credit grant
|
|
265
283
|
status:,
|
|
284
|
+
# The synchronization states of the entity with external systems
|
|
285
|
+
sync_states:,
|
|
266
286
|
# Timestamp of when the record was last updated
|
|
267
287
|
updated_at:,
|
|
268
288
|
# The date when the credit grant was voided
|
|
@@ -302,6 +322,12 @@ module Stigg
|
|
|
302
322
|
),
|
|
303
323
|
status:
|
|
304
324
|
Stigg::V1::Credits::CreditGrantResponse::Data::Status::TaggedSymbol,
|
|
325
|
+
sync_states:
|
|
326
|
+
T.nilable(
|
|
327
|
+
T::Array[
|
|
328
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState
|
|
329
|
+
]
|
|
330
|
+
),
|
|
305
331
|
updated_at: Time,
|
|
306
332
|
voided_at: T.nilable(Time)
|
|
307
333
|
}
|
|
@@ -758,6 +784,209 @@ module Stigg
|
|
|
758
784
|
def self.values
|
|
759
785
|
end
|
|
760
786
|
end
|
|
787
|
+
|
|
788
|
+
class SyncState < Stigg::Internal::Type::BaseModel
|
|
789
|
+
OrHash =
|
|
790
|
+
T.type_alias do
|
|
791
|
+
T.any(
|
|
792
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState,
|
|
793
|
+
Stigg::Internal::AnyHash
|
|
794
|
+
)
|
|
795
|
+
end
|
|
796
|
+
|
|
797
|
+
# Status of the integration sync
|
|
798
|
+
sig do
|
|
799
|
+
returns(
|
|
800
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::Status::TaggedSymbol
|
|
801
|
+
)
|
|
802
|
+
end
|
|
803
|
+
attr_accessor :status
|
|
804
|
+
|
|
805
|
+
# Synced entity id
|
|
806
|
+
sig { returns(T.nilable(String)) }
|
|
807
|
+
attr_accessor :synced_entity_id
|
|
808
|
+
|
|
809
|
+
# The vendor identifier of integration
|
|
810
|
+
sig do
|
|
811
|
+
returns(
|
|
812
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
813
|
+
)
|
|
814
|
+
end
|
|
815
|
+
attr_accessor :vendor_identifier
|
|
816
|
+
|
|
817
|
+
sig do
|
|
818
|
+
params(
|
|
819
|
+
status:
|
|
820
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::Status::OrSymbol,
|
|
821
|
+
synced_entity_id: T.nilable(String),
|
|
822
|
+
vendor_identifier:
|
|
823
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::OrSymbol
|
|
824
|
+
).returns(T.attached_class)
|
|
825
|
+
end
|
|
826
|
+
def self.new(
|
|
827
|
+
# Status of the integration sync
|
|
828
|
+
status:,
|
|
829
|
+
# Synced entity id
|
|
830
|
+
synced_entity_id:,
|
|
831
|
+
# The vendor identifier of integration
|
|
832
|
+
vendor_identifier:
|
|
833
|
+
)
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
sig do
|
|
837
|
+
override.returns(
|
|
838
|
+
{
|
|
839
|
+
status:
|
|
840
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::Status::TaggedSymbol,
|
|
841
|
+
synced_entity_id: T.nilable(String),
|
|
842
|
+
vendor_identifier:
|
|
843
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
844
|
+
}
|
|
845
|
+
)
|
|
846
|
+
end
|
|
847
|
+
def to_hash
|
|
848
|
+
end
|
|
849
|
+
|
|
850
|
+
# Status of the integration sync
|
|
851
|
+
module Status
|
|
852
|
+
extend Stigg::Internal::Type::Enum
|
|
853
|
+
|
|
854
|
+
TaggedSymbol =
|
|
855
|
+
T.type_alias do
|
|
856
|
+
T.all(
|
|
857
|
+
Symbol,
|
|
858
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::Status
|
|
859
|
+
)
|
|
860
|
+
end
|
|
861
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
862
|
+
|
|
863
|
+
PENDING =
|
|
864
|
+
T.let(
|
|
865
|
+
:PENDING,
|
|
866
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::Status::TaggedSymbol
|
|
867
|
+
)
|
|
868
|
+
ERROR =
|
|
869
|
+
T.let(
|
|
870
|
+
:ERROR,
|
|
871
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::Status::TaggedSymbol
|
|
872
|
+
)
|
|
873
|
+
SUCCESS =
|
|
874
|
+
T.let(
|
|
875
|
+
:SUCCESS,
|
|
876
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::Status::TaggedSymbol
|
|
877
|
+
)
|
|
878
|
+
NO_SYNC_REQUIRED =
|
|
879
|
+
T.let(
|
|
880
|
+
:NO_SYNC_REQUIRED,
|
|
881
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::Status::TaggedSymbol
|
|
882
|
+
)
|
|
883
|
+
|
|
884
|
+
sig do
|
|
885
|
+
override.returns(
|
|
886
|
+
T::Array[
|
|
887
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::Status::TaggedSymbol
|
|
888
|
+
]
|
|
889
|
+
)
|
|
890
|
+
end
|
|
891
|
+
def self.values
|
|
892
|
+
end
|
|
893
|
+
end
|
|
894
|
+
|
|
895
|
+
# The vendor identifier of integration
|
|
896
|
+
module VendorIdentifier
|
|
897
|
+
extend Stigg::Internal::Type::Enum
|
|
898
|
+
|
|
899
|
+
TaggedSymbol =
|
|
900
|
+
T.type_alias do
|
|
901
|
+
T.all(
|
|
902
|
+
Symbol,
|
|
903
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier
|
|
904
|
+
)
|
|
905
|
+
end
|
|
906
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
907
|
+
|
|
908
|
+
AUTH0 =
|
|
909
|
+
T.let(
|
|
910
|
+
:AUTH0,
|
|
911
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
912
|
+
)
|
|
913
|
+
ZUORA =
|
|
914
|
+
T.let(
|
|
915
|
+
:ZUORA,
|
|
916
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
917
|
+
)
|
|
918
|
+
STRIPE =
|
|
919
|
+
T.let(
|
|
920
|
+
:STRIPE,
|
|
921
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
922
|
+
)
|
|
923
|
+
HUBSPOT =
|
|
924
|
+
T.let(
|
|
925
|
+
:HUBSPOT,
|
|
926
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
927
|
+
)
|
|
928
|
+
AWS_MARKETPLACE =
|
|
929
|
+
T.let(
|
|
930
|
+
:AWS_MARKETPLACE,
|
|
931
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
932
|
+
)
|
|
933
|
+
SNOWFLAKE =
|
|
934
|
+
T.let(
|
|
935
|
+
:SNOWFLAKE,
|
|
936
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
937
|
+
)
|
|
938
|
+
SALESFORCE =
|
|
939
|
+
T.let(
|
|
940
|
+
:SALESFORCE,
|
|
941
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
942
|
+
)
|
|
943
|
+
BIG_QUERY =
|
|
944
|
+
T.let(
|
|
945
|
+
:BIG_QUERY,
|
|
946
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
947
|
+
)
|
|
948
|
+
OPEN_FGA =
|
|
949
|
+
T.let(
|
|
950
|
+
:OPEN_FGA,
|
|
951
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
952
|
+
)
|
|
953
|
+
APP_STORE =
|
|
954
|
+
T.let(
|
|
955
|
+
:APP_STORE,
|
|
956
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
957
|
+
)
|
|
958
|
+
RECEIVED =
|
|
959
|
+
T.let(
|
|
960
|
+
:RECEIVED,
|
|
961
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
962
|
+
)
|
|
963
|
+
PREQUEL =
|
|
964
|
+
T.let(
|
|
965
|
+
:PREQUEL,
|
|
966
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
967
|
+
)
|
|
968
|
+
AIRWALLEX =
|
|
969
|
+
T.let(
|
|
970
|
+
:AIRWALLEX,
|
|
971
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
972
|
+
)
|
|
973
|
+
STRIPE_INVOICING =
|
|
974
|
+
T.let(
|
|
975
|
+
:STRIPE_INVOICING,
|
|
976
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
977
|
+
)
|
|
978
|
+
|
|
979
|
+
sig do
|
|
980
|
+
override.returns(
|
|
981
|
+
T::Array[
|
|
982
|
+
Stigg::V1::Credits::CreditGrantResponse::Data::SyncState::VendorIdentifier::TaggedSymbol
|
|
983
|
+
]
|
|
984
|
+
)
|
|
985
|
+
end
|
|
986
|
+
def self.values
|
|
987
|
+
end
|
|
988
|
+
end
|
|
989
|
+
end
|
|
761
990
|
end
|
|
762
991
|
end
|
|
763
992
|
end
|
|
@@ -134,6 +134,18 @@ module Stigg
|
|
|
134
134
|
end
|
|
135
135
|
attr_accessor :status
|
|
136
136
|
|
|
137
|
+
# The synchronization states of the entity with external systems
|
|
138
|
+
sig do
|
|
139
|
+
returns(
|
|
140
|
+
T.nilable(
|
|
141
|
+
T::Array[
|
|
142
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState
|
|
143
|
+
]
|
|
144
|
+
)
|
|
145
|
+
)
|
|
146
|
+
end
|
|
147
|
+
attr_accessor :sync_states
|
|
148
|
+
|
|
137
149
|
# Timestamp of when the record was last updated
|
|
138
150
|
sig { returns(Time) }
|
|
139
151
|
attr_accessor :updated_at
|
|
@@ -174,6 +186,12 @@ module Stigg
|
|
|
174
186
|
),
|
|
175
187
|
status:
|
|
176
188
|
Stigg::Models::V1::Credits::GrantListResponse::Status::OrSymbol,
|
|
189
|
+
sync_states:
|
|
190
|
+
T.nilable(
|
|
191
|
+
T::Array[
|
|
192
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::OrHash
|
|
193
|
+
]
|
|
194
|
+
),
|
|
177
195
|
updated_at: Time,
|
|
178
196
|
voided_at: T.nilable(Time)
|
|
179
197
|
).returns(T.attached_class)
|
|
@@ -219,6 +237,8 @@ module Stigg
|
|
|
219
237
|
source_type:,
|
|
220
238
|
# The effective status of the credit grant
|
|
221
239
|
status:,
|
|
240
|
+
# The synchronization states of the entity with external systems
|
|
241
|
+
sync_states:,
|
|
222
242
|
# Timestamp of when the record was last updated
|
|
223
243
|
updated_at:,
|
|
224
244
|
# The date when the credit grant was voided
|
|
@@ -258,6 +278,12 @@ module Stigg
|
|
|
258
278
|
),
|
|
259
279
|
status:
|
|
260
280
|
Stigg::Models::V1::Credits::GrantListResponse::Status::TaggedSymbol,
|
|
281
|
+
sync_states:
|
|
282
|
+
T.nilable(
|
|
283
|
+
T::Array[
|
|
284
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState
|
|
285
|
+
]
|
|
286
|
+
),
|
|
261
287
|
updated_at: Time,
|
|
262
288
|
voided_at: T.nilable(Time)
|
|
263
289
|
}
|
|
@@ -712,6 +738,209 @@ module Stigg
|
|
|
712
738
|
def self.values
|
|
713
739
|
end
|
|
714
740
|
end
|
|
741
|
+
|
|
742
|
+
class SyncState < Stigg::Internal::Type::BaseModel
|
|
743
|
+
OrHash =
|
|
744
|
+
T.type_alias do
|
|
745
|
+
T.any(
|
|
746
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState,
|
|
747
|
+
Stigg::Internal::AnyHash
|
|
748
|
+
)
|
|
749
|
+
end
|
|
750
|
+
|
|
751
|
+
# Status of the integration sync
|
|
752
|
+
sig do
|
|
753
|
+
returns(
|
|
754
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::Status::TaggedSymbol
|
|
755
|
+
)
|
|
756
|
+
end
|
|
757
|
+
attr_accessor :status
|
|
758
|
+
|
|
759
|
+
# Synced entity id
|
|
760
|
+
sig { returns(T.nilable(String)) }
|
|
761
|
+
attr_accessor :synced_entity_id
|
|
762
|
+
|
|
763
|
+
# The vendor identifier of integration
|
|
764
|
+
sig do
|
|
765
|
+
returns(
|
|
766
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
767
|
+
)
|
|
768
|
+
end
|
|
769
|
+
attr_accessor :vendor_identifier
|
|
770
|
+
|
|
771
|
+
sig do
|
|
772
|
+
params(
|
|
773
|
+
status:
|
|
774
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::Status::OrSymbol,
|
|
775
|
+
synced_entity_id: T.nilable(String),
|
|
776
|
+
vendor_identifier:
|
|
777
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::OrSymbol
|
|
778
|
+
).returns(T.attached_class)
|
|
779
|
+
end
|
|
780
|
+
def self.new(
|
|
781
|
+
# Status of the integration sync
|
|
782
|
+
status:,
|
|
783
|
+
# Synced entity id
|
|
784
|
+
synced_entity_id:,
|
|
785
|
+
# The vendor identifier of integration
|
|
786
|
+
vendor_identifier:
|
|
787
|
+
)
|
|
788
|
+
end
|
|
789
|
+
|
|
790
|
+
sig do
|
|
791
|
+
override.returns(
|
|
792
|
+
{
|
|
793
|
+
status:
|
|
794
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::Status::TaggedSymbol,
|
|
795
|
+
synced_entity_id: T.nilable(String),
|
|
796
|
+
vendor_identifier:
|
|
797
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
798
|
+
}
|
|
799
|
+
)
|
|
800
|
+
end
|
|
801
|
+
def to_hash
|
|
802
|
+
end
|
|
803
|
+
|
|
804
|
+
# Status of the integration sync
|
|
805
|
+
module Status
|
|
806
|
+
extend Stigg::Internal::Type::Enum
|
|
807
|
+
|
|
808
|
+
TaggedSymbol =
|
|
809
|
+
T.type_alias do
|
|
810
|
+
T.all(
|
|
811
|
+
Symbol,
|
|
812
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::Status
|
|
813
|
+
)
|
|
814
|
+
end
|
|
815
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
816
|
+
|
|
817
|
+
PENDING =
|
|
818
|
+
T.let(
|
|
819
|
+
:PENDING,
|
|
820
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::Status::TaggedSymbol
|
|
821
|
+
)
|
|
822
|
+
ERROR =
|
|
823
|
+
T.let(
|
|
824
|
+
:ERROR,
|
|
825
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::Status::TaggedSymbol
|
|
826
|
+
)
|
|
827
|
+
SUCCESS =
|
|
828
|
+
T.let(
|
|
829
|
+
:SUCCESS,
|
|
830
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::Status::TaggedSymbol
|
|
831
|
+
)
|
|
832
|
+
NO_SYNC_REQUIRED =
|
|
833
|
+
T.let(
|
|
834
|
+
:NO_SYNC_REQUIRED,
|
|
835
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::Status::TaggedSymbol
|
|
836
|
+
)
|
|
837
|
+
|
|
838
|
+
sig do
|
|
839
|
+
override.returns(
|
|
840
|
+
T::Array[
|
|
841
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::Status::TaggedSymbol
|
|
842
|
+
]
|
|
843
|
+
)
|
|
844
|
+
end
|
|
845
|
+
def self.values
|
|
846
|
+
end
|
|
847
|
+
end
|
|
848
|
+
|
|
849
|
+
# The vendor identifier of integration
|
|
850
|
+
module VendorIdentifier
|
|
851
|
+
extend Stigg::Internal::Type::Enum
|
|
852
|
+
|
|
853
|
+
TaggedSymbol =
|
|
854
|
+
T.type_alias do
|
|
855
|
+
T.all(
|
|
856
|
+
Symbol,
|
|
857
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier
|
|
858
|
+
)
|
|
859
|
+
end
|
|
860
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
861
|
+
|
|
862
|
+
AUTH0 =
|
|
863
|
+
T.let(
|
|
864
|
+
:AUTH0,
|
|
865
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
866
|
+
)
|
|
867
|
+
ZUORA =
|
|
868
|
+
T.let(
|
|
869
|
+
:ZUORA,
|
|
870
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
871
|
+
)
|
|
872
|
+
STRIPE =
|
|
873
|
+
T.let(
|
|
874
|
+
:STRIPE,
|
|
875
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
876
|
+
)
|
|
877
|
+
HUBSPOT =
|
|
878
|
+
T.let(
|
|
879
|
+
:HUBSPOT,
|
|
880
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
881
|
+
)
|
|
882
|
+
AWS_MARKETPLACE =
|
|
883
|
+
T.let(
|
|
884
|
+
:AWS_MARKETPLACE,
|
|
885
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
886
|
+
)
|
|
887
|
+
SNOWFLAKE =
|
|
888
|
+
T.let(
|
|
889
|
+
:SNOWFLAKE,
|
|
890
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
891
|
+
)
|
|
892
|
+
SALESFORCE =
|
|
893
|
+
T.let(
|
|
894
|
+
:SALESFORCE,
|
|
895
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
896
|
+
)
|
|
897
|
+
BIG_QUERY =
|
|
898
|
+
T.let(
|
|
899
|
+
:BIG_QUERY,
|
|
900
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
901
|
+
)
|
|
902
|
+
OPEN_FGA =
|
|
903
|
+
T.let(
|
|
904
|
+
:OPEN_FGA,
|
|
905
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
906
|
+
)
|
|
907
|
+
APP_STORE =
|
|
908
|
+
T.let(
|
|
909
|
+
:APP_STORE,
|
|
910
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
911
|
+
)
|
|
912
|
+
RECEIVED =
|
|
913
|
+
T.let(
|
|
914
|
+
:RECEIVED,
|
|
915
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
916
|
+
)
|
|
917
|
+
PREQUEL =
|
|
918
|
+
T.let(
|
|
919
|
+
:PREQUEL,
|
|
920
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
921
|
+
)
|
|
922
|
+
AIRWALLEX =
|
|
923
|
+
T.let(
|
|
924
|
+
:AIRWALLEX,
|
|
925
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
926
|
+
)
|
|
927
|
+
STRIPE_INVOICING =
|
|
928
|
+
T.let(
|
|
929
|
+
:STRIPE_INVOICING,
|
|
930
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
931
|
+
)
|
|
932
|
+
|
|
933
|
+
sig do
|
|
934
|
+
override.returns(
|
|
935
|
+
T::Array[
|
|
936
|
+
Stigg::Models::V1::Credits::GrantListResponse::SyncState::VendorIdentifier::TaggedSymbol
|
|
937
|
+
]
|
|
938
|
+
)
|
|
939
|
+
end
|
|
940
|
+
def self.values
|
|
941
|
+
end
|
|
942
|
+
end
|
|
943
|
+
end
|
|
715
944
|
end
|
|
716
945
|
end
|
|
717
946
|
end
|
|
@@ -40,6 +40,7 @@ module Stigg
|
|
|
40
40
|
resource_id: String?,
|
|
41
41
|
source_type: Stigg::Models::V1::Credits::CreditGrantResponse::Data::source_type?,
|
|
42
42
|
status: Stigg::Models::V1::Credits::CreditGrantResponse::Data::status,
|
|
43
|
+
sync_states: ::Array[Stigg::V1::Credits::CreditGrantResponse::Data::SyncState]?,
|
|
43
44
|
updated_at: Time,
|
|
44
45
|
voided_at: Time?
|
|
45
46
|
}
|
|
@@ -85,6 +86,8 @@ module Stigg
|
|
|
85
86
|
|
|
86
87
|
attr_accessor status: Stigg::Models::V1::Credits::CreditGrantResponse::Data::status
|
|
87
88
|
|
|
89
|
+
attr_accessor sync_states: ::Array[Stigg::V1::Credits::CreditGrantResponse::Data::SyncState]?
|
|
90
|
+
|
|
88
91
|
attr_accessor updated_at: Time
|
|
89
92
|
|
|
90
93
|
attr_accessor voided_at: Time?
|
|
@@ -110,6 +113,7 @@ module Stigg
|
|
|
110
113
|
resource_id: String?,
|
|
111
114
|
source_type: Stigg::Models::V1::Credits::CreditGrantResponse::Data::source_type?,
|
|
112
115
|
status: Stigg::Models::V1::Credits::CreditGrantResponse::Data::status,
|
|
116
|
+
sync_states: ::Array[Stigg::V1::Credits::CreditGrantResponse::Data::SyncState]?,
|
|
113
117
|
updated_at: Time,
|
|
114
118
|
voided_at: Time?
|
|
115
119
|
) -> void
|
|
@@ -135,6 +139,7 @@ module Stigg
|
|
|
135
139
|
resource_id: String?,
|
|
136
140
|
source_type: Stigg::Models::V1::Credits::CreditGrantResponse::Data::source_type?,
|
|
137
141
|
status: Stigg::Models::V1::Credits::CreditGrantResponse::Data::status,
|
|
142
|
+
sync_states: ::Array[Stigg::V1::Credits::CreditGrantResponse::Data::SyncState]?,
|
|
138
143
|
updated_at: Time,
|
|
139
144
|
voided_at: Time?
|
|
140
145
|
}
|
|
@@ -309,6 +314,83 @@ module Stigg
|
|
|
309
314
|
|
|
310
315
|
def self?.values: -> ::Array[Stigg::Models::V1::Credits::CreditGrantResponse::Data::status]
|
|
311
316
|
end
|
|
317
|
+
|
|
318
|
+
type sync_state =
|
|
319
|
+
{
|
|
320
|
+
status: Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::status,
|
|
321
|
+
synced_entity_id: String?,
|
|
322
|
+
vendor_identifier: Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::vendor_identifier
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
class SyncState < Stigg::Internal::Type::BaseModel
|
|
326
|
+
attr_accessor status: Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::status
|
|
327
|
+
|
|
328
|
+
attr_accessor synced_entity_id: String?
|
|
329
|
+
|
|
330
|
+
attr_accessor vendor_identifier: Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::vendor_identifier
|
|
331
|
+
|
|
332
|
+
def initialize: (
|
|
333
|
+
status: Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::status,
|
|
334
|
+
synced_entity_id: String?,
|
|
335
|
+
vendor_identifier: Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::vendor_identifier
|
|
336
|
+
) -> void
|
|
337
|
+
|
|
338
|
+
def to_hash: -> {
|
|
339
|
+
status: Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::status,
|
|
340
|
+
synced_entity_id: String?,
|
|
341
|
+
vendor_identifier: Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::vendor_identifier
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
type status = :PENDING | :ERROR | :SUCCESS | :NO_SYNC_REQUIRED
|
|
345
|
+
|
|
346
|
+
module Status
|
|
347
|
+
extend Stigg::Internal::Type::Enum
|
|
348
|
+
|
|
349
|
+
PENDING: :PENDING
|
|
350
|
+
ERROR: :ERROR
|
|
351
|
+
SUCCESS: :SUCCESS
|
|
352
|
+
NO_SYNC_REQUIRED: :NO_SYNC_REQUIRED
|
|
353
|
+
|
|
354
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::status]
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
type vendor_identifier =
|
|
358
|
+
:AUTH0
|
|
359
|
+
| :ZUORA
|
|
360
|
+
| :STRIPE
|
|
361
|
+
| :HUBSPOT
|
|
362
|
+
| :AWS_MARKETPLACE
|
|
363
|
+
| :SNOWFLAKE
|
|
364
|
+
| :SALESFORCE
|
|
365
|
+
| :BIG_QUERY
|
|
366
|
+
| :OPEN_FGA
|
|
367
|
+
| :APP_STORE
|
|
368
|
+
| :RECEIVED
|
|
369
|
+
| :PREQUEL
|
|
370
|
+
| :AIRWALLEX
|
|
371
|
+
| :STRIPE_INVOICING
|
|
372
|
+
|
|
373
|
+
module VendorIdentifier
|
|
374
|
+
extend Stigg::Internal::Type::Enum
|
|
375
|
+
|
|
376
|
+
AUTH0: :AUTH0
|
|
377
|
+
ZUORA: :ZUORA
|
|
378
|
+
STRIPE: :STRIPE
|
|
379
|
+
HUBSPOT: :HUBSPOT
|
|
380
|
+
AWS_MARKETPLACE: :AWS_MARKETPLACE
|
|
381
|
+
SNOWFLAKE: :SNOWFLAKE
|
|
382
|
+
SALESFORCE: :SALESFORCE
|
|
383
|
+
BIG_QUERY: :BIG_QUERY
|
|
384
|
+
OPEN_FGA: :OPEN_FGA
|
|
385
|
+
APP_STORE: :APP_STORE
|
|
386
|
+
RECEIVED: :RECEIVED
|
|
387
|
+
PREQUEL: :PREQUEL
|
|
388
|
+
AIRWALLEX: :AIRWALLEX
|
|
389
|
+
STRIPE_INVOICING: :STRIPE_INVOICING
|
|
390
|
+
|
|
391
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Credits::CreditGrantResponse::Data::SyncState::vendor_identifier]
|
|
392
|
+
end
|
|
393
|
+
end
|
|
312
394
|
end
|
|
313
395
|
end
|
|
314
396
|
end
|
|
@@ -24,6 +24,7 @@ module Stigg
|
|
|
24
24
|
resource_id: String?,
|
|
25
25
|
source_type: Stigg::Models::V1::Credits::GrantListResponse::source_type?,
|
|
26
26
|
status: Stigg::Models::V1::Credits::GrantListResponse::status,
|
|
27
|
+
sync_states: ::Array[Stigg::Models::V1::Credits::GrantListResponse::SyncState]?,
|
|
27
28
|
updated_at: Time,
|
|
28
29
|
voided_at: Time?
|
|
29
30
|
}
|
|
@@ -69,6 +70,8 @@ module Stigg
|
|
|
69
70
|
|
|
70
71
|
attr_accessor status: Stigg::Models::V1::Credits::GrantListResponse::status
|
|
71
72
|
|
|
73
|
+
attr_accessor sync_states: ::Array[Stigg::Models::V1::Credits::GrantListResponse::SyncState]?
|
|
74
|
+
|
|
72
75
|
attr_accessor updated_at: Time
|
|
73
76
|
|
|
74
77
|
attr_accessor voided_at: Time?
|
|
@@ -94,6 +97,7 @@ module Stigg
|
|
|
94
97
|
resource_id: String?,
|
|
95
98
|
source_type: Stigg::Models::V1::Credits::GrantListResponse::source_type?,
|
|
96
99
|
status: Stigg::Models::V1::Credits::GrantListResponse::status,
|
|
100
|
+
sync_states: ::Array[Stigg::Models::V1::Credits::GrantListResponse::SyncState]?,
|
|
97
101
|
updated_at: Time,
|
|
98
102
|
voided_at: Time?
|
|
99
103
|
) -> void
|
|
@@ -119,6 +123,7 @@ module Stigg
|
|
|
119
123
|
resource_id: String?,
|
|
120
124
|
source_type: Stigg::Models::V1::Credits::GrantListResponse::source_type?,
|
|
121
125
|
status: Stigg::Models::V1::Credits::GrantListResponse::status,
|
|
126
|
+
sync_states: ::Array[Stigg::Models::V1::Credits::GrantListResponse::SyncState]?,
|
|
122
127
|
updated_at: Time,
|
|
123
128
|
voided_at: Time?
|
|
124
129
|
}
|
|
@@ -293,6 +298,83 @@ module Stigg
|
|
|
293
298
|
|
|
294
299
|
def self?.values: -> ::Array[Stigg::Models::V1::Credits::GrantListResponse::status]
|
|
295
300
|
end
|
|
301
|
+
|
|
302
|
+
type sync_state =
|
|
303
|
+
{
|
|
304
|
+
status: Stigg::Models::V1::Credits::GrantListResponse::SyncState::status,
|
|
305
|
+
synced_entity_id: String?,
|
|
306
|
+
vendor_identifier: Stigg::Models::V1::Credits::GrantListResponse::SyncState::vendor_identifier
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
class SyncState < Stigg::Internal::Type::BaseModel
|
|
310
|
+
attr_accessor status: Stigg::Models::V1::Credits::GrantListResponse::SyncState::status
|
|
311
|
+
|
|
312
|
+
attr_accessor synced_entity_id: String?
|
|
313
|
+
|
|
314
|
+
attr_accessor vendor_identifier: Stigg::Models::V1::Credits::GrantListResponse::SyncState::vendor_identifier
|
|
315
|
+
|
|
316
|
+
def initialize: (
|
|
317
|
+
status: Stigg::Models::V1::Credits::GrantListResponse::SyncState::status,
|
|
318
|
+
synced_entity_id: String?,
|
|
319
|
+
vendor_identifier: Stigg::Models::V1::Credits::GrantListResponse::SyncState::vendor_identifier
|
|
320
|
+
) -> void
|
|
321
|
+
|
|
322
|
+
def to_hash: -> {
|
|
323
|
+
status: Stigg::Models::V1::Credits::GrantListResponse::SyncState::status,
|
|
324
|
+
synced_entity_id: String?,
|
|
325
|
+
vendor_identifier: Stigg::Models::V1::Credits::GrantListResponse::SyncState::vendor_identifier
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
type status = :PENDING | :ERROR | :SUCCESS | :NO_SYNC_REQUIRED
|
|
329
|
+
|
|
330
|
+
module Status
|
|
331
|
+
extend Stigg::Internal::Type::Enum
|
|
332
|
+
|
|
333
|
+
PENDING: :PENDING
|
|
334
|
+
ERROR: :ERROR
|
|
335
|
+
SUCCESS: :SUCCESS
|
|
336
|
+
NO_SYNC_REQUIRED: :NO_SYNC_REQUIRED
|
|
337
|
+
|
|
338
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Credits::GrantListResponse::SyncState::status]
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
type vendor_identifier =
|
|
342
|
+
:AUTH0
|
|
343
|
+
| :ZUORA
|
|
344
|
+
| :STRIPE
|
|
345
|
+
| :HUBSPOT
|
|
346
|
+
| :AWS_MARKETPLACE
|
|
347
|
+
| :SNOWFLAKE
|
|
348
|
+
| :SALESFORCE
|
|
349
|
+
| :BIG_QUERY
|
|
350
|
+
| :OPEN_FGA
|
|
351
|
+
| :APP_STORE
|
|
352
|
+
| :RECEIVED
|
|
353
|
+
| :PREQUEL
|
|
354
|
+
| :AIRWALLEX
|
|
355
|
+
| :STRIPE_INVOICING
|
|
356
|
+
|
|
357
|
+
module VendorIdentifier
|
|
358
|
+
extend Stigg::Internal::Type::Enum
|
|
359
|
+
|
|
360
|
+
AUTH0: :AUTH0
|
|
361
|
+
ZUORA: :ZUORA
|
|
362
|
+
STRIPE: :STRIPE
|
|
363
|
+
HUBSPOT: :HUBSPOT
|
|
364
|
+
AWS_MARKETPLACE: :AWS_MARKETPLACE
|
|
365
|
+
SNOWFLAKE: :SNOWFLAKE
|
|
366
|
+
SALESFORCE: :SALESFORCE
|
|
367
|
+
BIG_QUERY: :BIG_QUERY
|
|
368
|
+
OPEN_FGA: :OPEN_FGA
|
|
369
|
+
APP_STORE: :APP_STORE
|
|
370
|
+
RECEIVED: :RECEIVED
|
|
371
|
+
PREQUEL: :PREQUEL
|
|
372
|
+
AIRWALLEX: :AIRWALLEX
|
|
373
|
+
STRIPE_INVOICING: :STRIPE_INVOICING
|
|
374
|
+
|
|
375
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Credits::GrantListResponse::SyncState::vendor_identifier]
|
|
376
|
+
end
|
|
377
|
+
end
|
|
296
378
|
end
|
|
297
379
|
end
|
|
298
380
|
end
|