stigg 0.1.0.pre.alpha.17 → 0.1.0.pre.alpha.18
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/customer_import_params.rb +26 -2
- data/lib/stigg/resources/v1/customers.rb +3 -1
- data/lib/stigg/version.rb +1 -1
- data/rbi/stigg/models/v1/customer_import_params.rbi +33 -0
- data/rbi/stigg/resources/v1/customers.rbi +3 -0
- data/sig/stigg/models/v1/customer_import_params.rbs +24 -1
- data/sig/stigg/resources/v1/customers.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84949d1fd198009e8d1aea70933b0565341a087a17d7593276c8dc1cdb188397
|
|
4
|
+
data.tar.gz: 7f6583b8f175172809e907195eea24fb51bf2bdd5706edf0be957ce7cf9be360
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1cbf221017bdd78e1af8652f95e6ba5886b759ab6b5439947e553a5caf4b261ce31b2f53f2a166d016902858c1b702608b1b8ca761a0ad03280e168f2b887103
|
|
7
|
+
data.tar.gz: 50e763647294712b946b83cf9b554b77a0718e9de2a9b3fa15d80b39dc559b79bf41f8abde67fd2fa66b350555c1331020cf194b3e29a52decbaf7d6c23ca94a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.18 (2026-03-12)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.17...v0.1.0-alpha.18](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.17...v0.1.0-alpha.18)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([32ec563](https://github.com/stiggio/stigg-ruby/commit/32ec5633137d80d48140023a1485d65f8704f289))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.17 (2026-03-09)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.16...v0.1.0-alpha.17](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.16...v0.1.0-alpha.17)
|
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.
|
|
27
|
+
gem "stigg", "~> 0.1.0.pre.alpha.18"
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
<!-- x-release-please-end -->
|
|
@@ -14,9 +14,17 @@ module Stigg
|
|
|
14
14
|
# @return [Array<Stigg::Models::V1::CustomerImportParams::Customer>]
|
|
15
15
|
required :customers, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::CustomerImportParams::Customer] }
|
|
16
16
|
|
|
17
|
-
# @!
|
|
17
|
+
# @!attribute integration_id
|
|
18
|
+
# Integration details
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :integration_id, String, api_name: :integrationId
|
|
22
|
+
|
|
23
|
+
# @!method initialize(customers:, integration_id: nil, request_options: {})
|
|
18
24
|
# @param customers [Array<Stigg::Models::V1::CustomerImportParams::Customer>] List of customer objects to import
|
|
19
25
|
#
|
|
26
|
+
# @param integration_id [String] Integration details
|
|
27
|
+
#
|
|
20
28
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
21
29
|
|
|
22
30
|
class Customer < Stigg::Internal::Type::BaseModel
|
|
@@ -38,6 +46,12 @@ module Stigg
|
|
|
38
46
|
# @return [String, nil]
|
|
39
47
|
required :name, String, nil?: true
|
|
40
48
|
|
|
49
|
+
# @!attribute billing_id
|
|
50
|
+
# Id in the billing provider
|
|
51
|
+
#
|
|
52
|
+
# @return [String, nil]
|
|
53
|
+
optional :billing_id, String, api_name: :billingId
|
|
54
|
+
|
|
41
55
|
# @!attribute metadata
|
|
42
56
|
# Additional metadata
|
|
43
57
|
#
|
|
@@ -50,23 +64,33 @@ module Stigg
|
|
|
50
64
|
# @return [String, nil]
|
|
51
65
|
optional :payment_method_id, String, api_name: :paymentMethodId
|
|
52
66
|
|
|
67
|
+
# @!attribute salesforce_id
|
|
68
|
+
# The unique identifier for the customer in Salesforce integration
|
|
69
|
+
#
|
|
70
|
+
# @return [String, nil]
|
|
71
|
+
optional :salesforce_id, String, api_name: :salesforceId
|
|
72
|
+
|
|
53
73
|
# @!attribute updated_at
|
|
54
74
|
# Timestamp of when the record was last updated
|
|
55
75
|
#
|
|
56
76
|
# @return [Time, nil]
|
|
57
77
|
optional :updated_at, Time, api_name: :updatedAt
|
|
58
78
|
|
|
59
|
-
# @!method initialize(id:, email:, name:, metadata: nil, payment_method_id: nil, updated_at: nil)
|
|
79
|
+
# @!method initialize(id:, email:, name:, billing_id: nil, metadata: nil, payment_method_id: nil, salesforce_id: nil, updated_at: nil)
|
|
60
80
|
# @param id [String] Customer slug
|
|
61
81
|
#
|
|
62
82
|
# @param email [String, nil] The email of the customer
|
|
63
83
|
#
|
|
64
84
|
# @param name [String, nil] The name of the customer
|
|
65
85
|
#
|
|
86
|
+
# @param billing_id [String] Id in the billing provider
|
|
87
|
+
#
|
|
66
88
|
# @param metadata [Hash{Symbol=>String}] Additional metadata
|
|
67
89
|
#
|
|
68
90
|
# @param payment_method_id [String] Billing provider payment method id
|
|
69
91
|
#
|
|
92
|
+
# @param salesforce_id [String] The unique identifier for the customer in Salesforce integration
|
|
93
|
+
#
|
|
70
94
|
# @param updated_at [Time] Timestamp of when the record was last updated
|
|
71
95
|
end
|
|
72
96
|
end
|
|
@@ -126,10 +126,12 @@ module Stigg
|
|
|
126
126
|
# Imports multiple customers in bulk. Used for migrating customer data from
|
|
127
127
|
# external systems.
|
|
128
128
|
#
|
|
129
|
-
# @overload import(customers:, request_options: {})
|
|
129
|
+
# @overload import(customers:, integration_id: nil, request_options: {})
|
|
130
130
|
#
|
|
131
131
|
# @param customers [Array<Stigg::Models::V1::CustomerImportParams::Customer>] List of customer objects to import
|
|
132
132
|
#
|
|
133
|
+
# @param integration_id [String] Integration details
|
|
134
|
+
#
|
|
133
135
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
134
136
|
#
|
|
135
137
|
# @return [Stigg::Models::V1::CustomerImportResponse]
|
data/lib/stigg/version.rb
CHANGED
|
@@ -16,16 +16,26 @@ module Stigg
|
|
|
16
16
|
sig { returns(T::Array[Stigg::V1::CustomerImportParams::Customer]) }
|
|
17
17
|
attr_accessor :customers
|
|
18
18
|
|
|
19
|
+
# Integration details
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_reader :integration_id
|
|
22
|
+
|
|
23
|
+
sig { params(integration_id: String).void }
|
|
24
|
+
attr_writer :integration_id
|
|
25
|
+
|
|
19
26
|
sig do
|
|
20
27
|
params(
|
|
21
28
|
customers:
|
|
22
29
|
T::Array[Stigg::V1::CustomerImportParams::Customer::OrHash],
|
|
30
|
+
integration_id: String,
|
|
23
31
|
request_options: Stigg::RequestOptions::OrHash
|
|
24
32
|
).returns(T.attached_class)
|
|
25
33
|
end
|
|
26
34
|
def self.new(
|
|
27
35
|
# List of customer objects to import
|
|
28
36
|
customers:,
|
|
37
|
+
# Integration details
|
|
38
|
+
integration_id: nil,
|
|
29
39
|
request_options: {}
|
|
30
40
|
)
|
|
31
41
|
end
|
|
@@ -34,6 +44,7 @@ module Stigg
|
|
|
34
44
|
override.returns(
|
|
35
45
|
{
|
|
36
46
|
customers: T::Array[Stigg::V1::CustomerImportParams::Customer],
|
|
47
|
+
integration_id: String,
|
|
37
48
|
request_options: Stigg::RequestOptions
|
|
38
49
|
}
|
|
39
50
|
)
|
|
@@ -62,6 +73,13 @@ module Stigg
|
|
|
62
73
|
sig { returns(T.nilable(String)) }
|
|
63
74
|
attr_accessor :name
|
|
64
75
|
|
|
76
|
+
# Id in the billing provider
|
|
77
|
+
sig { returns(T.nilable(String)) }
|
|
78
|
+
attr_reader :billing_id
|
|
79
|
+
|
|
80
|
+
sig { params(billing_id: String).void }
|
|
81
|
+
attr_writer :billing_id
|
|
82
|
+
|
|
65
83
|
# Additional metadata
|
|
66
84
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
67
85
|
attr_reader :metadata
|
|
@@ -76,6 +94,13 @@ module Stigg
|
|
|
76
94
|
sig { params(payment_method_id: String).void }
|
|
77
95
|
attr_writer :payment_method_id
|
|
78
96
|
|
|
97
|
+
# The unique identifier for the customer in Salesforce integration
|
|
98
|
+
sig { returns(T.nilable(String)) }
|
|
99
|
+
attr_reader :salesforce_id
|
|
100
|
+
|
|
101
|
+
sig { params(salesforce_id: String).void }
|
|
102
|
+
attr_writer :salesforce_id
|
|
103
|
+
|
|
79
104
|
# Timestamp of when the record was last updated
|
|
80
105
|
sig { returns(T.nilable(Time)) }
|
|
81
106
|
attr_reader :updated_at
|
|
@@ -88,8 +113,10 @@ module Stigg
|
|
|
88
113
|
id: String,
|
|
89
114
|
email: T.nilable(String),
|
|
90
115
|
name: T.nilable(String),
|
|
116
|
+
billing_id: String,
|
|
91
117
|
metadata: T::Hash[Symbol, String],
|
|
92
118
|
payment_method_id: String,
|
|
119
|
+
salesforce_id: String,
|
|
93
120
|
updated_at: Time
|
|
94
121
|
).returns(T.attached_class)
|
|
95
122
|
end
|
|
@@ -100,10 +127,14 @@ module Stigg
|
|
|
100
127
|
email:,
|
|
101
128
|
# The name of the customer
|
|
102
129
|
name:,
|
|
130
|
+
# Id in the billing provider
|
|
131
|
+
billing_id: nil,
|
|
103
132
|
# Additional metadata
|
|
104
133
|
metadata: nil,
|
|
105
134
|
# Billing provider payment method id
|
|
106
135
|
payment_method_id: nil,
|
|
136
|
+
# The unique identifier for the customer in Salesforce integration
|
|
137
|
+
salesforce_id: nil,
|
|
107
138
|
# Timestamp of when the record was last updated
|
|
108
139
|
updated_at: nil
|
|
109
140
|
)
|
|
@@ -115,8 +146,10 @@ module Stigg
|
|
|
115
146
|
id: String,
|
|
116
147
|
email: T.nilable(String),
|
|
117
148
|
name: T.nilable(String),
|
|
149
|
+
billing_id: String,
|
|
118
150
|
metadata: T::Hash[Symbol, String],
|
|
119
151
|
payment_method_id: String,
|
|
152
|
+
salesforce_id: String,
|
|
120
153
|
updated_at: Time
|
|
121
154
|
}
|
|
122
155
|
)
|
|
@@ -117,12 +117,15 @@ module Stigg
|
|
|
117
117
|
params(
|
|
118
118
|
customers:
|
|
119
119
|
T::Array[Stigg::V1::CustomerImportParams::Customer::OrHash],
|
|
120
|
+
integration_id: String,
|
|
120
121
|
request_options: Stigg::RequestOptions::OrHash
|
|
121
122
|
).returns(Stigg::Models::V1::CustomerImportResponse)
|
|
122
123
|
end
|
|
123
124
|
def import(
|
|
124
125
|
# List of customer objects to import
|
|
125
126
|
customers:,
|
|
127
|
+
# Integration details
|
|
128
|
+
integration_id: nil,
|
|
126
129
|
request_options: {}
|
|
127
130
|
)
|
|
128
131
|
end
|
|
@@ -2,7 +2,10 @@ module Stigg
|
|
|
2
2
|
module Models
|
|
3
3
|
module V1
|
|
4
4
|
type customer_import_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
customers: ::Array[Stigg::V1::CustomerImportParams::Customer],
|
|
7
|
+
integration_id: String
|
|
8
|
+
}
|
|
6
9
|
& Stigg::Internal::Type::request_parameters
|
|
7
10
|
|
|
8
11
|
class CustomerImportParams < Stigg::Internal::Type::BaseModel
|
|
@@ -11,13 +14,19 @@ module Stigg
|
|
|
11
14
|
|
|
12
15
|
attr_accessor customers: ::Array[Stigg::V1::CustomerImportParams::Customer]
|
|
13
16
|
|
|
17
|
+
attr_reader integration_id: String?
|
|
18
|
+
|
|
19
|
+
def integration_id=: (String) -> String
|
|
20
|
+
|
|
14
21
|
def initialize: (
|
|
15
22
|
customers: ::Array[Stigg::V1::CustomerImportParams::Customer],
|
|
23
|
+
?integration_id: String,
|
|
16
24
|
?request_options: Stigg::request_opts
|
|
17
25
|
) -> void
|
|
18
26
|
|
|
19
27
|
def to_hash: -> {
|
|
20
28
|
customers: ::Array[Stigg::V1::CustomerImportParams::Customer],
|
|
29
|
+
integration_id: String,
|
|
21
30
|
request_options: Stigg::RequestOptions
|
|
22
31
|
}
|
|
23
32
|
|
|
@@ -26,8 +35,10 @@ module Stigg
|
|
|
26
35
|
id: String,
|
|
27
36
|
email: String?,
|
|
28
37
|
name: String?,
|
|
38
|
+
billing_id: String,
|
|
29
39
|
metadata: ::Hash[Symbol, String],
|
|
30
40
|
payment_method_id: String,
|
|
41
|
+
salesforce_id: String,
|
|
31
42
|
updated_at: Time
|
|
32
43
|
}
|
|
33
44
|
|
|
@@ -38,6 +49,10 @@ module Stigg
|
|
|
38
49
|
|
|
39
50
|
attr_accessor name: String?
|
|
40
51
|
|
|
52
|
+
attr_reader billing_id: String?
|
|
53
|
+
|
|
54
|
+
def billing_id=: (String) -> String
|
|
55
|
+
|
|
41
56
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
42
57
|
|
|
43
58
|
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
@@ -46,6 +61,10 @@ module Stigg
|
|
|
46
61
|
|
|
47
62
|
def payment_method_id=: (String) -> String
|
|
48
63
|
|
|
64
|
+
attr_reader salesforce_id: String?
|
|
65
|
+
|
|
66
|
+
def salesforce_id=: (String) -> String
|
|
67
|
+
|
|
49
68
|
attr_reader updated_at: Time?
|
|
50
69
|
|
|
51
70
|
def updated_at=: (Time) -> Time
|
|
@@ -54,8 +73,10 @@ module Stigg
|
|
|
54
73
|
id: String,
|
|
55
74
|
email: String?,
|
|
56
75
|
name: String?,
|
|
76
|
+
?billing_id: String,
|
|
57
77
|
?metadata: ::Hash[Symbol, String],
|
|
58
78
|
?payment_method_id: String,
|
|
79
|
+
?salesforce_id: String,
|
|
59
80
|
?updated_at: Time
|
|
60
81
|
) -> void
|
|
61
82
|
|
|
@@ -63,8 +84,10 @@ module Stigg
|
|
|
63
84
|
id: String,
|
|
64
85
|
email: String?,
|
|
65
86
|
name: String?,
|
|
87
|
+
billing_id: String,
|
|
66
88
|
metadata: ::Hash[Symbol, String],
|
|
67
89
|
payment_method_id: String,
|
|
90
|
+
salesforce_id: String,
|
|
68
91
|
updated_at: Time
|
|
69
92
|
}
|
|
70
93
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stigg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0.pre.alpha.
|
|
4
|
+
version: 0.1.0.pre.alpha.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stigg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|