stigg 0.1.0.pre.alpha.25 → 0.1.0.pre.alpha.26

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +1 -1
  4. data/lib/stigg/internal/type/base_model.rb +2 -2
  5. data/lib/stigg/internal/util.rb +3 -1
  6. data/lib/stigg/models/internal/beta/{event_queue_retrieve_response.rb → event_queue_response.rb} +13 -13
  7. data/lib/stigg/models/v1/customer_integration_response.rb +172 -0
  8. data/lib/stigg/resources/internal/beta/event_queues.rb +8 -8
  9. data/lib/stigg/resources/v1/customers/integrations.rb +8 -8
  10. data/lib/stigg/version.rb +1 -1
  11. data/lib/stigg.rb +2 -8
  12. data/rbi/stigg/models/internal/beta/{event_queue_delete_response.rbi → event_queue_response.rbi} +48 -53
  13. data/rbi/stigg/models/v1/customer_integration_response.rbi +351 -0
  14. data/rbi/stigg/resources/internal/beta/event_queues.rbi +4 -6
  15. data/rbi/stigg/resources/v1/customers/integrations.rbi +4 -4
  16. data/sig/stigg/models/internal/beta/{event_queue_retrieve_response.rbs → event_queue_response.rbs} +16 -18
  17. data/sig/stigg/models/v1/customer_integration_response.rbs +143 -0
  18. data/sig/stigg/resources/internal/beta/event_queues.rbs +4 -4
  19. data/sig/stigg/resources/v1/customers/integrations.rbs +4 -4
  20. metadata +8 -26
  21. data/lib/stigg/models/internal/beta/event_queue_delete_response.rb +0 -146
  22. data/lib/stigg/models/internal/beta/event_queue_provision_response.rb +0 -146
  23. data/lib/stigg/models/internal/beta/event_queue_update_response.rb +0 -146
  24. data/lib/stigg/models/v1/customers/integration_link_response.rb +0 -175
  25. data/lib/stigg/models/v1/customers/integration_retrieve_response.rb +0 -176
  26. data/lib/stigg/models/v1/customers/integration_unlink_response.rb +0 -176
  27. data/lib/stigg/models/v1/customers/integration_update_response.rb +0 -176
  28. data/rbi/stigg/models/internal/beta/event_queue_provision_response.rbi +0 -368
  29. data/rbi/stigg/models/internal/beta/event_queue_retrieve_response.rbi +0 -368
  30. data/rbi/stigg/models/internal/beta/event_queue_update_response.rbi +0 -368
  31. data/rbi/stigg/models/v1/customers/integration_link_response.rbi +0 -360
  32. data/rbi/stigg/models/v1/customers/integration_retrieve_response.rbi +0 -362
  33. data/rbi/stigg/models/v1/customers/integration_unlink_response.rbi +0 -362
  34. data/rbi/stigg/models/v1/customers/integration_update_response.rbi +0 -362
  35. data/sig/stigg/models/internal/beta/event_queue_delete_response.rbs +0 -152
  36. data/sig/stigg/models/internal/beta/event_queue_provision_response.rbs +0 -152
  37. data/sig/stigg/models/internal/beta/event_queue_update_response.rbs +0 -152
  38. data/sig/stigg/models/v1/customers/integration_link_response.rbs +0 -147
  39. data/sig/stigg/models/v1/customers/integration_retrieve_response.rbs +0 -149
  40. data/sig/stigg/models/v1/customers/integration_unlink_response.rbs +0 -149
  41. data/sig/stigg/models/v1/customers/integration_update_response.rbs +0 -149
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3319ccda0665487f6cd0386c0e634f29d722709093575b98d5a5ce98253afe67
4
- data.tar.gz: 3dfa11221236127e1cc7b3903e799af529ea767945d467bab2f3262d53bfc9c0
3
+ metadata.gz: a0fcd6428a02d16c884c898114cdb90329e299771fe30517d7c20793a75e5e88
4
+ data.tar.gz: 06213144e41e393f0b79226cf58eec1825f7da62618c9d0296de3b78c358d379
5
5
  SHA512:
6
- metadata.gz: 53d13b5367322254263a2dec3a2ed7a43f1cfa24bdd4d34f6481538d9f1c63e25b01c947ba9f42446e560b828da973b48894709c5da90c429120b369deef0994
7
- data.tar.gz: dff402e74097b3764ad51e1a5c342bea3dc8dcd5e5b1aa8fa53b00cb79235ccdb176802b27468b66eaa631bf9d26845f1230a242fa623760d9c26ad55e9a2fe7
6
+ metadata.gz: 3e599fba1ce0abd4299b0d157aca0de5d82da675cb7073940c817933341cba8ae5fd1d9e02ce0f87d12d907d49999b74432cba5f09d1bb360c0e62dc51119d98
7
+ data.tar.gz: 71ba57ceb4879df3ada7e2a86217de2d0f20a3a1acbaa5143c97f2c41dede2de69bc3e495f6c78c98690c314308b8f971ff9a47534f95a0958cf030595313f9b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.26 (2026-04-09)
4
+
5
+ Full Changelog: [v0.1.0-alpha.25...v0.1.0-alpha.26](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.25...v0.1.0-alpha.26)
6
+
7
+ ### Features
8
+
9
+ * **api:** add include_inactive_subscriptions parameter to usage history method ([efced83](https://github.com/stiggio/stigg-ruby/commit/efced83160364c549ecf61ea25e8dfb657232b4c))
10
+ * **api:** stainless.yml ([d4c1cca](https://github.com/stiggio/stigg-ruby/commit/d4c1cca413f143cc9d3926c6f8f279dee9e29ea3))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * multipart encoding for file arrays ([d14bf8d](https://github.com/stiggio/stigg-ruby/commit/d14bf8d38ee9f1127f9fc37246ae1e3deec95581))
16
+ * **STIGG-7500:** stripe account not deauthorized when connected to multiple environments ([32a5de7](https://github.com/stiggio/stigg-ruby/commit/32a5de727a002863d9f69130722325036c0e3144))
17
+
3
18
  ## 0.1.0-alpha.25 (2026-04-06)
4
19
 
5
20
  Full Changelog: [v0.1.0-alpha.24...v0.1.0-alpha.25](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.24...v0.1.0-alpha.25)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "stigg", "~> 0.1.0.pre.alpha.25"
27
+ gem "stigg", "~> 0.1.0.pre.alpha.26"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -438,8 +438,8 @@ module Stigg
438
438
  # @return [Hash{Symbol=>Object}]
439
439
  #
440
440
  # @example
441
- # # `customer_response` is a `Stigg::V1::CustomerResponse`
442
- # customer_response => {
441
+ # # `customer_integration_response` is a `Stigg::V1::CustomerIntegrationResponse`
442
+ # customer_integration_response => {
443
443
  # data: data
444
444
  # }
445
445
  def deconstruct_keys(keys)
@@ -610,6 +610,7 @@ module Stigg
610
610
  #
611
611
  # @return [Array(String, Enumerable<String>)]
612
612
  private def encode_multipart_streaming(body)
613
+ # rubocop:disable Style/CaseEquality
613
614
  # RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
614
615
  boundary = SecureRandom.urlsafe_base64(46)
615
616
 
@@ -619,7 +620,7 @@ module Stigg
619
620
  in Hash
620
621
  body.each do |key, val|
621
622
  case val
622
- in Array if val.all? { primitive?(_1) }
623
+ in Array if val.all? { primitive?(_1) || Stigg::Internal::Type::FileInput === _1 }
623
624
  val.each do |v|
624
625
  write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
625
626
  end
@@ -635,6 +636,7 @@ module Stigg
635
636
 
636
637
  fused_io = fused_enum(strio) { closing.each(&:call) }
637
638
  [boundary, fused_io]
639
+ # rubocop:enable Style/CaseEquality
638
640
  end
639
641
 
640
642
  # @api private
@@ -5,19 +5,19 @@ module Stigg
5
5
  module Internal
6
6
  module Beta
7
7
  # @see Stigg::Resources::Internal::Beta::EventQueues#retrieve
8
- class EventQueueRetrieveResponse < Stigg::Internal::Type::BaseModel
8
+ class EventQueueResponse < Stigg::Internal::Type::BaseModel
9
9
  # @!attribute data
10
10
  # Event queue provisioning status and details
11
11
  #
12
- # @return [Stigg::Models::Internal::Beta::EventQueueRetrieveResponse::Data]
13
- required :data, -> { Stigg::Models::Internal::Beta::EventQueueRetrieveResponse::Data }
12
+ # @return [Stigg::Models::Internal::Beta::EventQueueResponse::Data]
13
+ required :data, -> { Stigg::Models::Internal::Beta::EventQueueResponse::Data }
14
14
 
15
15
  # @!method initialize(data:)
16
16
  # Response object
17
17
  #
18
- # @param data [Stigg::Models::Internal::Beta::EventQueueRetrieveResponse::Data] Event queue provisioning status and details
18
+ # @param data [Stigg::Models::Internal::Beta::EventQueueResponse::Data] Event queue provisioning status and details
19
19
 
20
- # @see Stigg::Models::Internal::Beta::EventQueueRetrieveResponse#data
20
+ # @see Stigg::Models::Internal::Beta::EventQueueResponse#data
21
21
  class Data < Stigg::Internal::Type::BaseModel
22
22
  # @!attribute created_at
23
23
  # Timestamp of when the record was created
@@ -34,14 +34,14 @@ module Stigg
34
34
  # @!attribute region
35
35
  # AWS region where the queue is deployed
36
36
  #
37
- # @return [Symbol, Stigg::Models::Internal::Beta::EventQueueRetrieveResponse::Data::Region]
38
- required :region, enum: -> { Stigg::Models::Internal::Beta::EventQueueRetrieveResponse::Data::Region }
37
+ # @return [Symbol, Stigg::Models::Internal::Beta::EventQueueResponse::Data::Region]
38
+ required :region, enum: -> { Stigg::Models::Internal::Beta::EventQueueResponse::Data::Region }
39
39
 
40
40
  # @!attribute status
41
41
  # Current provisioning status
42
42
  #
43
- # @return [Symbol, Stigg::Models::Internal::Beta::EventQueueRetrieveResponse::Data::Status]
44
- required :status, enum: -> { Stigg::Models::Internal::Beta::EventQueueRetrieveResponse::Data::Status }
43
+ # @return [Symbol, Stigg::Models::Internal::Beta::EventQueueResponse::Data::Status]
44
+ required :status, enum: -> { Stigg::Models::Internal::Beta::EventQueueResponse::Data::Status }
45
45
 
46
46
  # @!attribute updated_at
47
47
  # Timestamp of when the record was last updated
@@ -74,9 +74,9 @@ module Stigg
74
74
  #
75
75
  # @param queue_name [String] Unique queue identifier
76
76
  #
77
- # @param region [Symbol, Stigg::Models::Internal::Beta::EventQueueRetrieveResponse::Data::Region] AWS region where the queue is deployed
77
+ # @param region [Symbol, Stigg::Models::Internal::Beta::EventQueueResponse::Data::Region] AWS region where the queue is deployed
78
78
  #
79
- # @param status [Symbol, Stigg::Models::Internal::Beta::EventQueueRetrieveResponse::Data::Status] Current provisioning status
79
+ # @param status [Symbol, Stigg::Models::Internal::Beta::EventQueueResponse::Data::Status] Current provisioning status
80
80
  #
81
81
  # @param updated_at [Time] Timestamp of when the record was last updated
82
82
  #
@@ -88,7 +88,7 @@ module Stigg
88
88
 
89
89
  # AWS region where the queue is deployed
90
90
  #
91
- # @see Stigg::Models::Internal::Beta::EventQueueRetrieveResponse::Data#region
91
+ # @see Stigg::Models::Internal::Beta::EventQueueResponse::Data#region
92
92
  module Region
93
93
  extend Stigg::Internal::Type::Enum
94
94
 
@@ -126,7 +126,7 @@ module Stigg
126
126
 
127
127
  # Current provisioning status
128
128
  #
129
- # @see Stigg::Models::Internal::Beta::EventQueueRetrieveResponse::Data#status
129
+ # @see Stigg::Models::Internal::Beta::EventQueueResponse::Data#status
130
130
  module Status
131
131
  extend Stigg::Internal::Type::Enum
132
132
 
@@ -0,0 +1,172 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stigg
4
+ module Models
5
+ module V1
6
+ class CustomerIntegrationResponse < Stigg::Internal::Type::BaseModel
7
+ # @!attribute data
8
+ # External billing or CRM integration link
9
+ #
10
+ # @return [Stigg::Models::V1::CustomerIntegrationResponse::Data]
11
+ required :data, -> { Stigg::V1::CustomerIntegrationResponse::Data }
12
+
13
+ # @!method initialize(data:)
14
+ # Response object
15
+ #
16
+ # @param data [Stigg::Models::V1::CustomerIntegrationResponse::Data] External billing or CRM integration link
17
+
18
+ # @see Stigg::Models::V1::CustomerIntegrationResponse#data
19
+ class Data < Stigg::Internal::Type::BaseModel
20
+ # @!attribute id
21
+ # Integration details
22
+ #
23
+ # @return [String]
24
+ required :id, String
25
+
26
+ # @!attribute synced_entity_id
27
+ # Synced entity id
28
+ #
29
+ # @return [String, nil]
30
+ required :synced_entity_id, String, api_name: :syncedEntityId, nil?: true
31
+
32
+ # @!attribute vendor_identifier
33
+ # The vendor identifier of integration
34
+ #
35
+ # @return [Symbol, Stigg::Models::V1::CustomerIntegrationResponse::Data::VendorIdentifier]
36
+ required :vendor_identifier,
37
+ enum: -> { Stigg::V1::CustomerIntegrationResponse::Data::VendorIdentifier },
38
+ api_name: :vendorIdentifier
39
+
40
+ # @!attribute sync_data
41
+ # Price billing sync revision data containing billing ID, link URL, and price
42
+ # group package billing ID
43
+ #
44
+ # @return [Stigg::Models::V1::CustomerIntegrationResponse::Data::SyncData::SyncRevisionPriceBillingData, Stigg::Models::V1::CustomerIntegrationResponse::Data::SyncData::SyncRevisionBillingData, Stigg::Models::V1::CustomerIntegrationResponse::Data::SyncData::SyncRevisionMarketplaceData, nil]
45
+ optional :sync_data,
46
+ union: -> { Stigg::V1::CustomerIntegrationResponse::Data::SyncData },
47
+ api_name: :syncData,
48
+ nil?: true
49
+
50
+ # @!method initialize(id:, synced_entity_id:, vendor_identifier:, sync_data: nil)
51
+ # Some parameter documentations has been truncated, see
52
+ # {Stigg::Models::V1::CustomerIntegrationResponse::Data} for more details.
53
+ #
54
+ # External billing or CRM integration link
55
+ #
56
+ # @param id [String] Integration details
57
+ #
58
+ # @param synced_entity_id [String, nil] Synced entity id
59
+ #
60
+ # @param vendor_identifier [Symbol, Stigg::Models::V1::CustomerIntegrationResponse::Data::VendorIdentifier] The vendor identifier of integration
61
+ #
62
+ # @param sync_data [Stigg::Models::V1::CustomerIntegrationResponse::Data::SyncData::SyncRevisionPriceBillingData, Stigg::Models::V1::CustomerIntegrationResponse::Data::SyncData::SyncRevisionBillingData, Stigg::Models::V1::CustomerIntegrationResponse::Data::SyncData::SyncRevisionMarketplaceData, nil] Price billing sync revision data containing billing ID, link URL, and price grou
63
+
64
+ # The vendor identifier of integration
65
+ #
66
+ # @see Stigg::Models::V1::CustomerIntegrationResponse::Data#vendor_identifier
67
+ module VendorIdentifier
68
+ extend Stigg::Internal::Type::Enum
69
+
70
+ AUTH0 = :AUTH0
71
+ ZUORA = :ZUORA
72
+ STRIPE = :STRIPE
73
+ HUBSPOT = :HUBSPOT
74
+ AWS_MARKETPLACE = :AWS_MARKETPLACE
75
+ SNOWFLAKE = :SNOWFLAKE
76
+ SALESFORCE = :SALESFORCE
77
+ BIG_QUERY = :BIG_QUERY
78
+ OPEN_FGA = :OPEN_FGA
79
+ APP_STORE = :APP_STORE
80
+
81
+ # @!method self.values
82
+ # @return [Array<Symbol>]
83
+ end
84
+
85
+ # Price billing sync revision data containing billing ID, link URL, and price
86
+ # group package billing ID
87
+ #
88
+ # @see Stigg::Models::V1::CustomerIntegrationResponse::Data#sync_data
89
+ module SyncData
90
+ extend Stigg::Internal::Type::Union
91
+
92
+ # Price billing sync revision data containing billing ID, link URL, and price group package billing ID
93
+ variant -> { Stigg::V1::CustomerIntegrationResponse::Data::SyncData::SyncRevisionPriceBillingData }
94
+
95
+ # Billing sync revision data containing billing ID and link URL
96
+ variant -> { Stigg::V1::CustomerIntegrationResponse::Data::SyncData::SyncRevisionBillingData }
97
+
98
+ # Marketplace sync revision data containing dimensions
99
+ variant -> { Stigg::V1::CustomerIntegrationResponse::Data::SyncData::SyncRevisionMarketplaceData }
100
+
101
+ class SyncRevisionPriceBillingData < Stigg::Internal::Type::BaseModel
102
+ # @!attribute billing_id
103
+ # Billing integration id
104
+ #
105
+ # @return [String]
106
+ required :billing_id, String, api_name: :billingId
107
+
108
+ # @!attribute billing_link_url
109
+ # Billing integration url
110
+ #
111
+ # @return [String]
112
+ required :billing_link_url, String, api_name: :billingLinkUrl
113
+
114
+ # @!attribute price_group_package_billing_id
115
+ # Price group package billing id
116
+ #
117
+ # @return [String]
118
+ required :price_group_package_billing_id, String, api_name: :priceGroupPackageBillingId
119
+
120
+ # @!method initialize(billing_id:, billing_link_url:, price_group_package_billing_id:)
121
+ # Price billing sync revision data containing billing ID, link URL, and price
122
+ # group package billing ID
123
+ #
124
+ # @param billing_id [String] Billing integration id
125
+ #
126
+ # @param billing_link_url [String] Billing integration url
127
+ #
128
+ # @param price_group_package_billing_id [String] Price group package billing id
129
+ end
130
+
131
+ class SyncRevisionBillingData < Stigg::Internal::Type::BaseModel
132
+ # @!attribute billing_id
133
+ # Billing integration id
134
+ #
135
+ # @return [String]
136
+ required :billing_id, String, api_name: :billingId
137
+
138
+ # @!attribute billing_link_url
139
+ # Billing integration url
140
+ #
141
+ # @return [String]
142
+ required :billing_link_url, String, api_name: :billingLinkUrl
143
+
144
+ # @!method initialize(billing_id:, billing_link_url:)
145
+ # Billing sync revision data containing billing ID and link URL
146
+ #
147
+ # @param billing_id [String] Billing integration id
148
+ #
149
+ # @param billing_link_url [String] Billing integration url
150
+ end
151
+
152
+ class SyncRevisionMarketplaceData < Stigg::Internal::Type::BaseModel
153
+ # @!attribute dimensions
154
+ # Dimensions of the marketplace sync revision
155
+ #
156
+ # @return [String]
157
+ required :dimensions, String
158
+
159
+ # @!method initialize(dimensions:)
160
+ # Marketplace sync revision data containing dimensions
161
+ #
162
+ # @param dimensions [String] Dimensions of the marketplace sync revision
163
+ end
164
+
165
+ # @!method self.variants
166
+ # @return [Array(Stigg::Models::V1::CustomerIntegrationResponse::Data::SyncData::SyncRevisionPriceBillingData, Stigg::Models::V1::CustomerIntegrationResponse::Data::SyncData::SyncRevisionBillingData, Stigg::Models::V1::CustomerIntegrationResponse::Data::SyncData::SyncRevisionMarketplaceData)]
167
+ end
168
+ end
169
+ end
170
+ end
171
+ end
172
+ end
@@ -13,14 +13,14 @@ module Stigg
13
13
  #
14
14
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
15
15
  #
16
- # @return [Stigg::Models::Internal::Beta::EventQueueRetrieveResponse]
16
+ # @return [Stigg::Models::Internal::Beta::EventQueueResponse]
17
17
  #
18
18
  # @see Stigg::Models::Internal::Beta::EventQueueRetrieveParams
19
19
  def retrieve(queue_name, params = {})
20
20
  @client.request(
21
21
  method: :get,
22
22
  path: ["internal/beta/event-queues/%1$s", queue_name],
23
- model: Stigg::Models::Internal::Beta::EventQueueRetrieveResponse,
23
+ model: Stigg::Models::Internal::Beta::EventQueueResponse,
24
24
  options: params[:request_options]
25
25
  )
26
26
  end
@@ -39,7 +39,7 @@ module Stigg
39
39
  #
40
40
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
41
41
  #
42
- # @return [Stigg::Models::Internal::Beta::EventQueueUpdateResponse]
42
+ # @return [Stigg::Models::Internal::Beta::EventQueueResponse]
43
43
  #
44
44
  # @see Stigg::Models::Internal::Beta::EventQueueUpdateParams
45
45
  def update(queue_name, params = {})
@@ -48,7 +48,7 @@ module Stigg
48
48
  method: :patch,
49
49
  path: ["internal/beta/event-queues/%1$s", queue_name],
50
50
  body: parsed,
51
- model: Stigg::Models::Internal::Beta::EventQueueUpdateResponse,
51
+ model: Stigg::Models::Internal::Beta::EventQueueResponse,
52
52
  options: options
53
53
  )
54
54
  end
@@ -79,14 +79,14 @@ module Stigg
79
79
  #
80
80
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
81
81
  #
82
- # @return [Stigg::Models::Internal::Beta::EventQueueDeleteResponse]
82
+ # @return [Stigg::Models::Internal::Beta::EventQueueResponse]
83
83
  #
84
84
  # @see Stigg::Models::Internal::Beta::EventQueueDeleteParams
85
85
  def delete(queue_name, params = {})
86
86
  @client.request(
87
87
  method: :delete,
88
88
  path: ["internal/beta/event-queues/%1$s", queue_name],
89
- model: Stigg::Models::Internal::Beta::EventQueueDeleteResponse,
89
+ model: Stigg::Models::Internal::Beta::EventQueueResponse,
90
90
  options: params[:request_options]
91
91
  )
92
92
  end
@@ -110,7 +110,7 @@ module Stigg
110
110
  #
111
111
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
112
112
  #
113
- # @return [Stigg::Models::Internal::Beta::EventQueueProvisionResponse]
113
+ # @return [Stigg::Models::Internal::Beta::EventQueueResponse]
114
114
  #
115
115
  # @see Stigg::Models::Internal::Beta::EventQueueProvisionParams
116
116
  def provision(params)
@@ -119,7 +119,7 @@ module Stigg
119
119
  method: :post,
120
120
  path: "internal/beta/event-queues/provision",
121
121
  body: parsed,
122
- model: Stigg::Models::Internal::Beta::EventQueueProvisionResponse,
122
+ model: Stigg::Models::Internal::Beta::EventQueueResponse,
123
123
  options: options
124
124
  )
125
125
  end
@@ -15,7 +15,7 @@ module Stigg
15
15
  #
16
16
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
17
17
  #
18
- # @return [Stigg::Models::V1::Customers::IntegrationRetrieveResponse]
18
+ # @return [Stigg::Models::V1::CustomerIntegrationResponse]
19
19
  #
20
20
  # @see Stigg::Models::V1::Customers::IntegrationRetrieveParams
21
21
  def retrieve(integration_id, params)
@@ -27,7 +27,7 @@ module Stigg
27
27
  @client.request(
28
28
  method: :get,
29
29
  path: ["api/v1/customers/%1$s/integrations/%2$s", id, integration_id],
30
- model: Stigg::Models::V1::Customers::IntegrationRetrieveResponse,
30
+ model: Stigg::V1::CustomerIntegrationResponse,
31
31
  options: options
32
32
  )
33
33
  end
@@ -45,7 +45,7 @@ module Stigg
45
45
  #
46
46
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
47
47
  #
48
- # @return [Stigg::Models::V1::Customers::IntegrationUpdateResponse]
48
+ # @return [Stigg::Models::V1::CustomerIntegrationResponse]
49
49
  #
50
50
  # @see Stigg::Models::V1::Customers::IntegrationUpdateParams
51
51
  def update(integration_id, params)
@@ -58,7 +58,7 @@ module Stigg
58
58
  method: :patch,
59
59
  path: ["api/v1/customers/%1$s/integrations/%2$s", id, integration_id],
60
60
  body: parsed,
61
- model: Stigg::Models::V1::Customers::IntegrationUpdateResponse,
61
+ model: Stigg::V1::CustomerIntegrationResponse,
62
62
  options: options
63
63
  )
64
64
  end
@@ -114,7 +114,7 @@ module Stigg
114
114
  #
115
115
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
116
116
  #
117
- # @return [Stigg::Models::V1::Customers::IntegrationLinkResponse]
117
+ # @return [Stigg::Models::V1::CustomerIntegrationResponse]
118
118
  #
119
119
  # @see Stigg::Models::V1::Customers::IntegrationLinkParams
120
120
  def link(path_id, params)
@@ -123,7 +123,7 @@ module Stigg
123
123
  method: :post,
124
124
  path: ["api/v1/customers/%1$s/integrations", path_id],
125
125
  body: parsed,
126
- model: Stigg::Models::V1::Customers::IntegrationLinkResponse,
126
+ model: Stigg::V1::CustomerIntegrationResponse,
127
127
  options: options
128
128
  )
129
129
  end
@@ -138,7 +138,7 @@ module Stigg
138
138
  #
139
139
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
140
140
  #
141
- # @return [Stigg::Models::V1::Customers::IntegrationUnlinkResponse]
141
+ # @return [Stigg::Models::V1::CustomerIntegrationResponse]
142
142
  #
143
143
  # @see Stigg::Models::V1::Customers::IntegrationUnlinkParams
144
144
  def unlink(integration_id, params)
@@ -150,7 +150,7 @@ module Stigg
150
150
  @client.request(
151
151
  method: :delete,
152
152
  path: ["api/v1/customers/%1$s/integrations/%2$s", id, integration_id],
153
- model: Stigg::Models::V1::Customers::IntegrationUnlinkResponse,
153
+ model: Stigg::V1::CustomerIntegrationResponse,
154
154
  options: options
155
155
  )
156
156
  end
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "0.1.0.pre.alpha.25"
4
+ VERSION = "0.1.0.pre.alpha.26"
5
5
  end
data/lib/stigg.rb CHANGED
@@ -54,15 +54,12 @@ require_relative "stigg/internal/transport/pooled_net_requester"
54
54
  require_relative "stigg/client"
55
55
  require_relative "stigg/internal/my_cursor_id_page"
56
56
  require_relative "stigg/models/internal/beta/event_queue_delete_params"
57
- require_relative "stigg/models/internal/beta/event_queue_delete_response"
58
57
  require_relative "stigg/models/internal/beta/event_queue_list_params"
59
58
  require_relative "stigg/models/internal/beta/event_queue_list_response"
60
59
  require_relative "stigg/models/internal/beta/event_queue_provision_params"
61
- require_relative "stigg/models/internal/beta/event_queue_provision_response"
60
+ require_relative "stigg/models/internal/beta/event_queue_response"
62
61
  require_relative "stigg/models/internal/beta/event_queue_retrieve_params"
63
- require_relative "stigg/models/internal/beta/event_queue_retrieve_response"
64
62
  require_relative "stigg/models/internal/beta/event_queue_update_params"
65
- require_relative "stigg/models/internal/beta/event_queue_update_response"
66
63
  require_relative "stigg/models/v1/addon"
67
64
  require_relative "stigg/models/v1/addon_archive_params"
68
65
  require_relative "stigg/models/v1/addon_create_draft_params"
@@ -92,6 +89,7 @@ require_relative "stigg/models/v1/coupon_update_coupon_params"
92
89
  require_relative "stigg/models/v1/customer_archive_params"
93
90
  require_relative "stigg/models/v1/customer_import_params"
94
91
  require_relative "stigg/models/v1/customer_import_response"
92
+ require_relative "stigg/models/v1/customer_integration_response"
95
93
  require_relative "stigg/models/v1/customer_list_params"
96
94
  require_relative "stigg/models/v1/customer_list_resources_params"
97
95
  require_relative "stigg/models/v1/customer_list_resources_response"
@@ -102,15 +100,11 @@ require_relative "stigg/models/v1/customer_retrieve_entitlements_params"
102
100
  require_relative "stigg/models/v1/customer_retrieve_entitlements_response"
103
101
  require_relative "stigg/models/v1/customer_retrieve_params"
104
102
  require_relative "stigg/models/v1/customers/integration_link_params"
105
- require_relative "stigg/models/v1/customers/integration_link_response"
106
103
  require_relative "stigg/models/v1/customers/integration_list_params"
107
104
  require_relative "stigg/models/v1/customers/integration_list_response"
108
105
  require_relative "stigg/models/v1/customers/integration_retrieve_params"
109
- require_relative "stigg/models/v1/customers/integration_retrieve_response"
110
106
  require_relative "stigg/models/v1/customers/integration_unlink_params"
111
- require_relative "stigg/models/v1/customers/integration_unlink_response"
112
107
  require_relative "stigg/models/v1/customers/integration_update_params"
113
- require_relative "stigg/models/v1/customers/integration_update_response"
114
108
  require_relative "stigg/models/v1/customers/payment_method_attach_params"
115
109
  require_relative "stigg/models/v1/customers/payment_method_detach_params"
116
110
  require_relative "stigg/models/v1/customers/promotional_entitlement_create_params"