stigg 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.2

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 (124) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +29 -1
  4. data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
  5. data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
  6. data/lib/stigg/models/v1/coupon_create_response.rb +11 -6
  7. data/lib/stigg/models/v1/coupon_list_params.rb +14 -14
  8. data/lib/stigg/models/v1/coupon_list_response.rb +262 -278
  9. data/lib/stigg/models/v1/coupon_retrieve_response.rb +11 -6
  10. data/lib/stigg/models/v1/customer_create_params.rb +2 -0
  11. data/lib/stigg/models/v1/customer_list_params.rb +14 -14
  12. data/lib/stigg/models/v1/customer_list_response.rb +160 -174
  13. data/lib/stigg/models/v1/customer_response.rb +8 -1
  14. data/lib/stigg/models/v1/customer_update_params.rb +2 -0
  15. data/lib/stigg/models/v1/customers/payment_method_attach_params.rb +3 -1
  16. data/lib/stigg/models/v1/subscription_create_params.rb +1485 -6
  17. data/lib/stigg/models/v1/subscription_create_response.rb +703 -4
  18. data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
  19. data/lib/stigg/models/v1/subscription_delegate_response.rb +42 -2
  20. data/lib/stigg/models/v1/subscription_list_params.rb +20 -24
  21. data/lib/stigg/models/v1/subscription_list_response.rb +255 -236
  22. data/lib/stigg/models/v1/subscription_migrate_params.rb +3 -3
  23. data/lib/stigg/models/v1/subscription_migrate_response.rb +42 -2
  24. data/lib/stigg/models/v1/subscription_preview_params.rb +139 -46
  25. data/lib/stigg/models/v1/subscription_preview_response.rb +164 -49
  26. data/lib/stigg/models/v1/subscription_retrieve_response.rb +42 -2
  27. data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
  28. data/lib/stigg/models/v1/subscription_transfer_response.rb +42 -2
  29. data/lib/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rb +2 -0
  30. data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +2 -0
  31. data/lib/stigg/models/v1_create_event_params.rb +2 -0
  32. data/lib/stigg/models/v1_create_event_response.rb +8 -1
  33. data/lib/stigg/models/v1_create_usage_params.rb +19 -3
  34. data/lib/stigg/models/v1_create_usage_response.rb +7 -1
  35. data/lib/stigg/resources/v1/coupons.rb +12 -10
  36. data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
  37. data/lib/stigg/resources/v1/customers/usage.rb +0 -41
  38. data/lib/stigg/resources/v1/customers.rb +20 -20
  39. data/lib/stigg/resources/v1/subscriptions/future_update.rb +6 -4
  40. data/lib/stigg/resources/v1/subscriptions.rb +74 -49
  41. data/lib/stigg/resources/v1.rb +2 -2
  42. data/lib/stigg/version.rb +1 -1
  43. data/lib/stigg.rb +0 -7
  44. data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
  45. data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
  46. data/rbi/stigg/models/v1/coupon_create_response.rbi +11 -10
  47. data/rbi/stigg/models/v1/coupon_list_params.rbi +21 -21
  48. data/rbi/stigg/models/v1/coupon_list_response.rbi +812 -869
  49. data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +11 -10
  50. data/rbi/stigg/models/v1/customer_create_params.rbi +1 -0
  51. data/rbi/stigg/models/v1/customer_list_params.rbi +21 -21
  52. data/rbi/stigg/models/v1/customer_list_response.rbi +307 -347
  53. data/rbi/stigg/models/v1/customer_response.rbi +8 -1
  54. data/rbi/stigg/models/v1/customer_update_params.rbi +1 -0
  55. data/rbi/stigg/models/v1/customers/payment_method_attach_params.rbi +3 -0
  56. data/rbi/stigg/models/v1/subscription_create_params.rbi +4975 -84
  57. data/rbi/stigg/models/v1/subscription_create_response.rbi +2508 -1
  58. data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
  59. data/rbi/stigg/models/v1/subscription_delegate_response.rbi +84 -1
  60. data/rbi/stigg/models/v1/subscription_list_params.rbi +26 -28
  61. data/rbi/stigg/models/v1/subscription_list_response.rbi +460 -435
  62. data/rbi/stigg/models/v1/subscription_migrate_params.rbi +3 -3
  63. data/rbi/stigg/models/v1/subscription_migrate_response.rbi +84 -1
  64. data/rbi/stigg/models/v1/subscription_preview_params.rbi +112 -14
  65. data/rbi/stigg/models/v1/subscription_preview_response.rbi +139 -6
  66. data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +84 -1
  67. data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
  68. data/rbi/stigg/models/v1/subscription_transfer_response.rbi +84 -1
  69. data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +1 -0
  70. data/rbi/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbi +1 -0
  71. data/rbi/stigg/models/v1_create_event_params.rbi +1 -0
  72. data/rbi/stigg/models/v1_create_event_response.rbi +8 -1
  73. data/rbi/stigg/models/v1_create_usage_params.rbi +44 -4
  74. data/rbi/stigg/models/v1_create_usage_response.rbi +8 -1
  75. data/rbi/stigg/resources/v1/coupons.rbi +20 -12
  76. data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
  77. data/rbi/stigg/resources/v1/customers/usage.rbi +0 -29
  78. data/rbi/stigg/resources/v1/customers.rbi +34 -20
  79. data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +12 -4
  80. data/rbi/stigg/resources/v1/subscriptions.rbi +102 -23
  81. data/rbi/stigg/resources/v1.rbi +2 -2
  82. data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
  83. data/sig/stigg/models/v1/coupon_create_response.rbs +4 -4
  84. data/sig/stigg/models/v1/coupon_list_params.rbs +11 -11
  85. data/sig/stigg/models/v1/coupon_list_response.rbs +331 -351
  86. data/sig/stigg/models/v1/coupon_retrieve_response.rbs +4 -4
  87. data/sig/stigg/models/v1/customer_list_params.rbs +11 -11
  88. data/sig/stigg/models/v1/customer_list_response.rbs +133 -153
  89. data/sig/stigg/models/v1/subscription_create_params.rbs +2029 -5
  90. data/sig/stigg/models/v1/subscription_create_response.rbs +1022 -0
  91. data/sig/stigg/models/v1/subscription_delegate_response.rbs +31 -0
  92. data/sig/stigg/models/v1/subscription_list_params.rbs +14 -14
  93. data/sig/stigg/models/v1/subscription_list_response.rbs +196 -189
  94. data/sig/stigg/models/v1/subscription_migrate_response.rbs +31 -0
  95. data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
  96. data/sig/stigg/models/v1/subscription_retrieve_response.rbs +31 -0
  97. data/sig/stigg/models/v1/subscription_transfer_response.rbs +31 -0
  98. data/sig/stigg/models/v1_create_usage_params.rbs +15 -5
  99. data/sig/stigg/resources/v1/coupons.rbs +3 -3
  100. data/sig/stigg/resources/v1/customers/usage.rbs +0 -10
  101. data/sig/stigg/resources/v1/customers.rbs +3 -5
  102. data/sig/stigg/resources/v1/subscriptions.rbs +19 -4
  103. metadata +2 -23
  104. data/lib/stigg/models/v1/customers/promotional_create_params.rb +0 -294
  105. data/lib/stigg/models/v1/customers/promotional_create_response.rb +0 -268
  106. data/lib/stigg/models/v1/customers/promotional_revoke_params.rb +0 -24
  107. data/lib/stigg/models/v1/customers/promotional_revoke_response.rb +0 -268
  108. data/lib/stigg/models/v1/customers/usage_retrieve_params.rb +0 -56
  109. data/lib/stigg/models/v1/customers/usage_retrieve_response.rb +0 -145
  110. data/lib/stigg/resources/v1/customers/promotional.rb +0 -69
  111. data/rbi/stigg/models/v1/customers/promotional_create_params.rbi +0 -639
  112. data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
  113. data/rbi/stigg/models/v1/customers/promotional_revoke_params.rbi +0 -42
  114. data/rbi/stigg/models/v1/customers/promotional_revoke_response.rbi +0 -497
  115. data/rbi/stigg/models/v1/customers/usage_retrieve_params.rbi +0 -84
  116. data/rbi/stigg/models/v1/customers/usage_retrieve_response.rbi +0 -353
  117. data/rbi/stigg/resources/v1/customers/promotional.rbi +0 -53
  118. data/sig/stigg/models/v1/customers/promotional_create_params.rbs +0 -234
  119. data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
  120. data/sig/stigg/models/v1/customers/promotional_revoke_params.rbs +0 -27
  121. data/sig/stigg/models/v1/customers/promotional_revoke_response.rbs +0 -209
  122. data/sig/stigg/models/v1/customers/usage_retrieve_params.rbs +0 -54
  123. data/sig/stigg/models/v1/customers/usage_retrieve_response.rbs +0 -134
  124. data/sig/stigg/resources/v1/customers/promotional.rbs +0 -23
@@ -8,30 +8,30 @@ module Stigg
8
8
  extend Stigg::Internal::Type::RequestParameters::Converter
9
9
  include Stigg::Internal::Type::RequestParameters
10
10
 
11
- # @!attribute ending_before
12
- # Ending before this UUID for pagination
11
+ # @!attribute after
12
+ # Return items that come after this cursor
13
13
  #
14
14
  # @return [String, nil]
15
- optional :ending_before, String
15
+ optional :after, String
16
+
17
+ # @!attribute before
18
+ # Return items that come before this cursor
19
+ #
20
+ # @return [String, nil]
21
+ optional :before, String
16
22
 
17
23
  # @!attribute limit
18
- # Items per page
24
+ # Maximum number of items to return
19
25
  #
20
26
  # @return [Integer, nil]
21
27
  optional :limit, Integer
22
28
 
23
- # @!attribute starting_after
24
- # Starting after this UUID for pagination
25
- #
26
- # @return [String, nil]
27
- optional :starting_after, String
28
-
29
- # @!method initialize(ending_before: nil, limit: nil, starting_after: nil, request_options: {})
30
- # @param ending_before [String] Ending before this UUID for pagination
29
+ # @!method initialize(after: nil, before: nil, limit: nil, request_options: {})
30
+ # @param after [String] Return items that come after this cursor
31
31
  #
32
- # @param limit [Integer] Items per page
32
+ # @param before [String] Return items that come before this cursor
33
33
  #
34
- # @param starting_after [String] Starting after this UUID for pagination
34
+ # @param limit [Integer] Maximum number of items to return
35
35
  #
36
36
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
37
37
  end
@@ -5,216 +5,202 @@ module Stigg
5
5
  module V1
6
6
  # @see Stigg::Resources::V1::Customers#list
7
7
  class CustomerListResponse < Stigg::Internal::Type::BaseModel
8
- # @!attribute data
8
+ # @!attribute id
9
+ # Customer slug
9
10
  #
10
- # @return [Array<Stigg::Models::V1::CustomerListResponse::Data>]
11
- required :data, -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CustomerListResponse::Data] }
11
+ # @return [String]
12
+ required :id, String
12
13
 
13
- # @!method initialize(data:)
14
- # @param data [Array<Stigg::Models::V1::CustomerListResponse::Data>]
14
+ # @!attribute archived_at
15
+ # Timestamp of when the record was deleted
16
+ #
17
+ # @return [Time, nil]
18
+ required :archived_at, Time, api_name: :archivedAt, nil?: true
15
19
 
16
- class Data < Stigg::Internal::Type::BaseModel
17
- # @!attribute id
18
- # Customer slug
19
- #
20
- # @return [String]
21
- required :id, String
20
+ # @!attribute created_at
21
+ # Timestamp of when the record was created
22
+ #
23
+ # @return [Time]
24
+ required :created_at, Time, api_name: :createdAt
22
25
 
23
- # @!attribute archived_at
24
- # Timestamp of when the record was deleted
25
- #
26
- # @return [Time, nil]
27
- required :archived_at, Time, api_name: :archivedAt, nil?: true
26
+ # @!attribute updated_at
27
+ # Timestamp of when the record was last updated
28
+ #
29
+ # @return [Time]
30
+ required :updated_at, Time, api_name: :updatedAt
28
31
 
29
- # @!attribute created_at
30
- # Timestamp of when the record was created
31
- #
32
- # @return [Time]
33
- required :created_at, Time, api_name: :createdAt
32
+ # @!attribute coupon_id
33
+ # Customer level coupon
34
+ #
35
+ # @return [String, nil]
36
+ optional :coupon_id, String, api_name: :couponId, nil?: true
34
37
 
35
- # @!attribute cursor_id
36
- # Cursor ID for query pagination
37
- #
38
- # @return [String]
39
- required :cursor_id, String, api_name: :cursorId
38
+ # @!attribute default_payment_method
39
+ # The default payment method details
40
+ #
41
+ # @return [Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod, nil]
42
+ optional :default_payment_method,
43
+ -> { Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod },
44
+ api_name: :defaultPaymentMethod,
45
+ nil?: true
46
+
47
+ # @!attribute email
48
+ # The email of the customer
49
+ #
50
+ # @return [String, nil]
51
+ optional :email, String, nil?: true
40
52
 
41
- # @!attribute updated_at
42
- # Timestamp of when the record was last updated
43
- #
44
- # @return [Time]
45
- required :updated_at, Time, api_name: :updatedAt
53
+ # @!attribute integrations
54
+ # List of integrations
55
+ #
56
+ # @return [Array<Stigg::Models::V1::CustomerListResponse::Integration>, nil]
57
+ optional :integrations,
58
+ -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CustomerListResponse::Integration] }
46
59
 
47
- # @!attribute coupon_id
48
- # Customer level coupon
49
- #
50
- # @return [String, nil]
51
- optional :coupon_id, String, api_name: :couponId, nil?: true
60
+ # @!attribute metadata
61
+ # Additional metadata
62
+ #
63
+ # @return [Hash{Symbol=>String}, nil]
64
+ optional :metadata, Stigg::Internal::Type::HashOf[String]
52
65
 
53
- # @!attribute default_payment_method
54
- # The default payment method details
55
- #
56
- # @return [Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod, nil]
57
- optional :default_payment_method,
58
- -> { Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod },
59
- api_name: :defaultPaymentMethod,
60
- nil?: true
66
+ # @!attribute name
67
+ # The name of the customer
68
+ #
69
+ # @return [String, nil]
70
+ optional :name, String, nil?: true
71
+
72
+ # @!method initialize(id:, archived_at:, created_at:, updated_at:, coupon_id: nil, default_payment_method: nil, email: nil, integrations: nil, metadata: nil, name: nil)
73
+ # A customer can be either an organization or an individual
74
+ #
75
+ # @param id [String] Customer slug
76
+ #
77
+ # @param archived_at [Time, nil] Timestamp of when the record was deleted
78
+ #
79
+ # @param created_at [Time] Timestamp of when the record was created
80
+ #
81
+ # @param updated_at [Time] Timestamp of when the record was last updated
82
+ #
83
+ # @param coupon_id [String, nil] Customer level coupon
84
+ #
85
+ # @param default_payment_method [Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod, nil] The default payment method details
86
+ #
87
+ # @param email [String, nil] The email of the customer
88
+ #
89
+ # @param integrations [Array<Stigg::Models::V1::CustomerListResponse::Integration>] List of integrations
90
+ #
91
+ # @param metadata [Hash{Symbol=>String}] Additional metadata
92
+ #
93
+ # @param name [String, nil] The name of the customer
61
94
 
62
- # @!attribute email
63
- # The email of the customer
95
+ # @see Stigg::Models::V1::CustomerListResponse#default_payment_method
96
+ class DefaultPaymentMethod < Stigg::Internal::Type::BaseModel
97
+ # @!attribute billing_id
98
+ # The default payment method id
64
99
  #
65
100
  # @return [String, nil]
66
- optional :email, String, nil?: true
101
+ required :billing_id, String, api_name: :billingId, nil?: true
67
102
 
68
- # @!attribute integrations
69
- # List of integrations
103
+ # @!attribute card_expiry_month
104
+ # The expiration month of the default payment method
70
105
  #
71
- # @return [Array<Stigg::Models::V1::CustomerListResponse::Data::Integration>, nil]
72
- optional :integrations,
73
- -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CustomerListResponse::Data::Integration] }
106
+ # @return [Float, nil]
107
+ required :card_expiry_month, Float, api_name: :cardExpiryMonth, nil?: true
74
108
 
75
- # @!attribute metadata
76
- # Additional metadata
109
+ # @!attribute card_expiry_year
110
+ # The expiration year of the default payment method
77
111
  #
78
- # @return [Hash{Symbol=>String}, nil]
79
- optional :metadata, Stigg::Internal::Type::HashOf[String]
112
+ # @return [Float, nil]
113
+ required :card_expiry_year, Float, api_name: :cardExpiryYear, nil?: true
80
114
 
81
- # @!attribute name
82
- # The name of the customer
115
+ # @!attribute card_last4_digits
116
+ # The last 4 digits of the default payment method
83
117
  #
84
118
  # @return [String, nil]
85
- optional :name, String, nil?: true
119
+ required :card_last4_digits, String, api_name: :cardLast4Digits, nil?: true
86
120
 
87
- # @!method initialize(id:, archived_at:, created_at:, cursor_id:, updated_at:, coupon_id: nil, default_payment_method: nil, email: nil, integrations: nil, metadata: nil, name: nil)
88
- # @param id [String] Customer slug
89
- #
90
- # @param archived_at [Time, nil] Timestamp of when the record was deleted
121
+ # @!attribute type
122
+ # The default payment method type
91
123
  #
92
- # @param created_at [Time] Timestamp of when the record was created
93
- #
94
- # @param cursor_id [String] Cursor ID for query pagination
95
- #
96
- # @param updated_at [Time] Timestamp of when the record was last updated
97
- #
98
- # @param coupon_id [String, nil] Customer level coupon
124
+ # @return [Symbol, Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::Type]
125
+ required :type, enum: -> { Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::Type }
126
+
127
+ # @!method initialize(billing_id:, card_expiry_month:, card_expiry_year:, card_last4_digits:, type:)
128
+ # The default payment method details
99
129
  #
100
- # @param default_payment_method [Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod, nil] The default payment method details
130
+ # @param billing_id [String, nil] The default payment method id
101
131
  #
102
- # @param email [String, nil] The email of the customer
132
+ # @param card_expiry_month [Float, nil] The expiration month of the default payment method
103
133
  #
104
- # @param integrations [Array<Stigg::Models::V1::CustomerListResponse::Data::Integration>] List of integrations
134
+ # @param card_expiry_year [Float, nil] The expiration year of the default payment method
105
135
  #
106
- # @param metadata [Hash{Symbol=>String}] Additional metadata
136
+ # @param card_last4_digits [String, nil] The last 4 digits of the default payment method
107
137
  #
108
- # @param name [String, nil] The name of the customer
138
+ # @param type [Symbol, Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::Type] The default payment method type
109
139
 
110
- # @see Stigg::Models::V1::CustomerListResponse::Data#default_payment_method
111
- class DefaultPaymentMethod < Stigg::Internal::Type::BaseModel
112
- # @!attribute billing_id
113
- # The default payment method id
114
- #
115
- # @return [String, nil]
116
- required :billing_id, String, api_name: :billingId, nil?: true
140
+ # The default payment method type
141
+ #
142
+ # @see Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod#type
143
+ module Type
144
+ extend Stigg::Internal::Type::Enum
117
145
 
118
- # @!attribute card_expiry_month
119
- # The expiration month of the default payment method
120
- #
121
- # @return [Float, nil]
122
- required :card_expiry_month, Float, api_name: :cardExpiryMonth, nil?: true
146
+ CARD = :CARD
147
+ BANK = :BANK
148
+ CASH_APP = :CASH_APP
123
149
 
124
- # @!attribute card_expiry_year
125
- # The expiration year of the default payment method
126
- #
127
- # @return [Float, nil]
128
- required :card_expiry_year, Float, api_name: :cardExpiryYear, nil?: true
150
+ # @!method self.values
151
+ # @return [Array<Symbol>]
152
+ end
153
+ end
129
154
 
130
- # @!attribute card_last4_digits
131
- # The last 4 digits of the default payment method
132
- #
133
- # @return [String, nil]
134
- required :card_last4_digits, String, api_name: :cardLast4Digits, nil?: true
155
+ class Integration < Stigg::Internal::Type::BaseModel
156
+ # @!attribute id
157
+ # Integration details
158
+ #
159
+ # @return [String]
160
+ required :id, String
135
161
 
136
- # @!attribute type
137
- # The default payment method type
138
- #
139
- # @return [Symbol, Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::Type]
140
- required :type, enum: -> { Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::Type }
162
+ # @!attribute synced_entity_id
163
+ # Synced entity id
164
+ #
165
+ # @return [String, nil]
166
+ required :synced_entity_id, String, api_name: :syncedEntityId, nil?: true
141
167
 
142
- # @!method initialize(billing_id:, card_expiry_month:, card_expiry_year:, card_last4_digits:, type:)
143
- # The default payment method details
144
- #
145
- # @param billing_id [String, nil] The default payment method id
146
- #
147
- # @param card_expiry_month [Float, nil] The expiration month of the default payment method
148
- #
149
- # @param card_expiry_year [Float, nil] The expiration year of the default payment method
150
- #
151
- # @param card_last4_digits [String, nil] The last 4 digits of the default payment method
152
- #
153
- # @param type [Symbol, Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::Type] The default payment method type
168
+ # @!attribute vendor_identifier
169
+ # The vendor identifier of integration
170
+ #
171
+ # @return [Symbol, Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier]
172
+ required :vendor_identifier,
173
+ enum: -> { Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier },
174
+ api_name: :vendorIdentifier
154
175
 
155
- # The default payment method type
156
- #
157
- # @see Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod#type
158
- module Type
159
- extend Stigg::Internal::Type::Enum
176
+ # @!method initialize(id:, synced_entity_id:, vendor_identifier:)
177
+ # External billing or CRM integration link
178
+ #
179
+ # @param id [String] Integration details
180
+ #
181
+ # @param synced_entity_id [String, nil] Synced entity id
182
+ #
183
+ # @param vendor_identifier [Symbol, Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier] The vendor identifier of integration
160
184
 
161
- CARD = :CARD
162
- BANK = :BANK
163
- CASH_APP = :CASH_APP
185
+ # The vendor identifier of integration
186
+ #
187
+ # @see Stigg::Models::V1::CustomerListResponse::Integration#vendor_identifier
188
+ module VendorIdentifier
189
+ extend Stigg::Internal::Type::Enum
164
190
 
165
- # @!method self.values
166
- # @return [Array<Symbol>]
167
- end
168
- end
191
+ AUTH0 = :AUTH0
192
+ ZUORA = :ZUORA
193
+ STRIPE = :STRIPE
194
+ HUBSPOT = :HUBSPOT
195
+ AWS_MARKETPLACE = :AWS_MARKETPLACE
196
+ SNOWFLAKE = :SNOWFLAKE
197
+ SALESFORCE = :SALESFORCE
198
+ BIG_QUERY = :BIG_QUERY
199
+ OPEN_FGA = :OPEN_FGA
200
+ APP_STORE = :APP_STORE
169
201
 
170
- class Integration < Stigg::Internal::Type::BaseModel
171
- # @!attribute id
172
- # Integration details
173
- #
174
- # @return [String]
175
- required :id, String
176
-
177
- # @!attribute synced_entity_id
178
- # Synced entity id
179
- #
180
- # @return [String, nil]
181
- required :synced_entity_id, String, api_name: :syncedEntityId, nil?: true
182
-
183
- # @!attribute vendor_identifier
184
- # The vendor identifier of integration
185
- #
186
- # @return [Symbol, Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier]
187
- required :vendor_identifier,
188
- enum: -> { Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier },
189
- api_name: :vendorIdentifier
190
-
191
- # @!method initialize(id:, synced_entity_id:, vendor_identifier:)
192
- # @param id [String] Integration details
193
- #
194
- # @param synced_entity_id [String, nil] Synced entity id
195
- #
196
- # @param vendor_identifier [Symbol, Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier] The vendor identifier of integration
197
-
198
- # The vendor identifier of integration
199
- #
200
- # @see Stigg::Models::V1::CustomerListResponse::Data::Integration#vendor_identifier
201
- module VendorIdentifier
202
- extend Stigg::Internal::Type::Enum
203
-
204
- AUTH0 = :AUTH0
205
- ZUORA = :ZUORA
206
- STRIPE = :STRIPE
207
- HUBSPOT = :HUBSPOT
208
- AWS_MARKETPLACE = :AWS_MARKETPLACE
209
- SNOWFLAKE = :SNOWFLAKE
210
- SALESFORCE = :SALESFORCE
211
- BIG_QUERY = :BIG_QUERY
212
- OPEN_FGA = :OPEN_FGA
213
- APP_STORE = :APP_STORE
214
-
215
- # @!method self.values
216
- # @return [Array<Symbol>]
217
- end
202
+ # @!method self.values
203
+ # @return [Array<Symbol>]
218
204
  end
219
205
  end
220
206
  end
@@ -6,12 +6,15 @@ module Stigg
6
6
  # @see Stigg::Resources::V1::Customers#create
7
7
  class CustomerResponse < Stigg::Internal::Type::BaseModel
8
8
  # @!attribute data
9
+ # A customer can be either an organization or an individual
9
10
  #
10
11
  # @return [Stigg::Models::V1::CustomerResponse::Data]
11
12
  required :data, -> { Stigg::V1::CustomerResponse::Data }
12
13
 
13
14
  # @!method initialize(data:)
14
- # @param data [Stigg::Models::V1::CustomerResponse::Data]
15
+ # Response object
16
+ #
17
+ # @param data [Stigg::Models::V1::CustomerResponse::Data] A customer can be either an organization or an individual
15
18
 
16
19
  # @see Stigg::Models::V1::CustomerResponse#data
17
20
  class Data < Stigg::Internal::Type::BaseModel
@@ -80,6 +83,8 @@ module Stigg
80
83
  optional :name, String, nil?: true
81
84
 
82
85
  # @!method initialize(id:, archived_at:, created_at:, updated_at:, coupon_id: nil, default_payment_method: nil, email: nil, integrations: nil, metadata: nil, name: nil)
86
+ # A customer can be either an organization or an individual
87
+ #
83
88
  # @param id [String] Customer slug
84
89
  #
85
90
  # @param archived_at [Time, nil] Timestamp of when the record was deleted
@@ -182,6 +187,8 @@ module Stigg
182
187
  api_name: :vendorIdentifier
183
188
 
184
189
  # @!method initialize(id:, synced_entity_id:, vendor_identifier:)
190
+ # External billing or CRM integration link
191
+ #
185
192
  # @param id [String] Integration details
186
193
  #
187
194
  # @param synced_entity_id [String, nil] Synced entity id
@@ -74,6 +74,8 @@ module Stigg
74
74
  api_name: :vendorIdentifier
75
75
 
76
76
  # @!method initialize(id:, synced_entity_id:, vendor_identifier:)
77
+ # External billing or CRM integration link
78
+ #
77
79
  # @param id [String] Integration details
78
80
  #
79
81
  # @param synced_entity_id [String, nil] Synced entity id
@@ -30,6 +30,7 @@ module Stigg
30
30
  api_name: :vendorIdentifier
31
31
 
32
32
  # @!attribute billing_currency
33
+ # Customers selected currency
33
34
  #
34
35
  # @return [Symbol, Stigg::Models::V1::Customers::PaymentMethodAttachParams::BillingCurrency, nil]
35
36
  optional :billing_currency,
@@ -44,7 +45,7 @@ module Stigg
44
45
  #
45
46
  # @param vendor_identifier [Symbol, Stigg::Models::V1::Customers::PaymentMethodAttachParams::VendorIdentifier] The vendor identifier of integration
46
47
  #
47
- # @param billing_currency [Symbol, Stigg::Models::V1::Customers::PaymentMethodAttachParams::BillingCurrency, nil]
48
+ # @param billing_currency [Symbol, Stigg::Models::V1::Customers::PaymentMethodAttachParams::BillingCurrency, nil] Customers selected currency
48
49
  #
49
50
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
50
51
 
@@ -67,6 +68,7 @@ module Stigg
67
68
  # @return [Array<Symbol>]
68
69
  end
69
70
 
71
+ # Customers selected currency
70
72
  module BillingCurrency
71
73
  extend Stigg::Internal::Type::Enum
72
74