stigg-api-client 0.545.0 → 0.548.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bf14111ed4e0a2d9bf456377c3c0e80956060279b9f157739afd3edbf17cbe9
4
- data.tar.gz: 612270ca0e4acc13f557eef6e997cd3f78779858617fd971ce1459380a3a414c
3
+ metadata.gz: dc5c7bf1fd6f4b726fd1a0270ddbb18be2c9f1311a595b873f7c653c6eaf505d
4
+ data.tar.gz: da8f90c8e772f6fa8e84ab7da163d98c8f67c20f7525128c89a54074b049dd36
5
5
  SHA512:
6
- metadata.gz: 65ddcc5b0cba2c319c0a4926bb56d1b71473c5987b2e9e7d5bc37fe5c2ac728e12451102faa6ef62a46dff5d49ba4ec2f8f8224b8f2a6ffd481461b3c9f713de
7
- data.tar.gz: a8b1a2d9b9178c059a667c3a8bca88a751bb8a30bb0ac135fa858f6525db05870c9871daebf7e68c39a193bd471bd6e6a24c748b5539ebec91beb4963b7c6890
6
+ metadata.gz: 785d54313ddb8b05a7b27c361301e74bd1e7f696227002461316e88d5e1e06228025014a14eb2907813ff53da506a19ca2b06e67eae76a9a4e30aaf2065ecb97
7
+ data.tar.gz: f5e98045c176f204568c3535bd1a58c197222a6bdf4ad284264d97981b992c8b352bd6ce5b09f60bdf0f9707b58a9e5946d9680e5a53a730c4f43569e08da627
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (0.545.0)
4
+ stigg-api-client (0.548.0)
5
5
  graphlient (~> 0.7.0)
6
6
 
7
7
  GEM
@@ -484,6 +484,8 @@ module Stigg
484
484
  currency
485
485
  }
486
486
  }
487
+ isPlanDowngrade
488
+ hasScheduledUpdates
487
489
  }
488
490
  GRAPHQL
489
491
 
@@ -742,8 +744,8 @@ module Stigg
742
744
  }
743
745
  GRAPHQL
744
746
 
745
- CheckoutDataFragment = <<~GRAPHQL
746
- fragment CheckoutDataFragment on CheckoutData {
747
+ CheckoutStateFragment = <<~GRAPHQL
748
+ fragment CheckoutStateFragment on CheckoutState {
747
749
  setupSecret
748
750
  customer {
749
751
  ...CustomerFragment
@@ -1157,9 +1159,9 @@ module Stigg
1157
1159
  #{Fragment::TotalPriceFragment}
1158
1160
  GRAPHQL
1159
1161
 
1160
- Checkout = <<~GRAPHQL
1161
- mutation ($input: CheckoutInput!) {
1162
- checkout(input: $input) {
1162
+ ApplySubscription = <<~GRAPHQL
1163
+ mutation ($input: ApplySubscriptionInput!) {
1164
+ applySubscription(input: $input) {
1163
1165
  subscription {
1164
1166
  ...SubscriptionFragment
1165
1167
  }
@@ -1231,6 +1233,15 @@ module Stigg
1231
1233
  #{Fragment::SubscriptionPreviewFragment}
1232
1234
  GRAPHQL
1233
1235
 
1236
+ PreviewSubscription = <<~GRAPHQL
1237
+ mutation ($input: PreviewSubscriptionInput!) {
1238
+ previewSubscription(input: $input) {
1239
+ ...SubscriptionPreviewFragment
1240
+ }
1241
+ }
1242
+ #{Fragment::SubscriptionPreviewFragment}
1243
+ GRAPHQL
1244
+
1234
1245
  CancelSubscriptionUpdates = <<~GRAPHQL
1235
1246
  mutation (
1236
1247
  $input: SubscriptionUpdateScheduleCancellationInput!
@@ -1467,13 +1478,13 @@ module Stigg
1467
1478
  #{Fragment::CustomerResourceFragment}
1468
1479
  GRAPHQL
1469
1480
 
1470
- CheckoutData = <<~GRAPHQL
1471
- query ($input: CheckoutDataInput!) {
1472
- checkoutData(input: $input) {
1473
- ...CheckoutDataFragment
1481
+ CheckoutState = <<~GRAPHQL
1482
+ query ($input: CheckoutStateInput!) {
1483
+ checkoutState(input: $input) {
1484
+ ...CheckoutStateFragment
1474
1485
  }
1475
1486
  }
1476
- #{Fragment::CheckoutDataFragment}
1487
+ #{Fragment::CheckoutStateFragment}
1477
1488
  #{Fragment::CustomerFragment}
1478
1489
  #{Fragment::SlimCustomerFragment}
1479
1490
  #{Fragment::CouponFragment}
@@ -3032,6 +3032,244 @@
3032
3032
  ],
3033
3033
  "possibleTypes": null
3034
3034
  },
3035
+ {
3036
+ "kind": "OBJECT",
3037
+ "name": "ApplySubscription",
3038
+ "description": null,
3039
+ "fields": [
3040
+ {
3041
+ "name": "subscription",
3042
+ "description": null,
3043
+ "args": [],
3044
+ "type": {
3045
+ "kind": "OBJECT",
3046
+ "name": "CustomerSubscription",
3047
+ "ofType": null
3048
+ },
3049
+ "isDeprecated": false,
3050
+ "deprecationReason": null
3051
+ }
3052
+ ],
3053
+ "inputFields": null,
3054
+ "interfaces": [],
3055
+ "enumValues": null,
3056
+ "possibleTypes": null
3057
+ },
3058
+ {
3059
+ "kind": "INPUT_OBJECT",
3060
+ "name": "ApplySubscriptionInput",
3061
+ "description": null,
3062
+ "fields": null,
3063
+ "inputFields": [
3064
+ {
3065
+ "name": "additionalMetaData",
3066
+ "description": null,
3067
+ "type": {
3068
+ "kind": "SCALAR",
3069
+ "name": "JSON",
3070
+ "ofType": null
3071
+ },
3072
+ "defaultValue": null,
3073
+ "isDeprecated": false,
3074
+ "deprecationReason": null
3075
+ },
3076
+ {
3077
+ "name": "addons",
3078
+ "description": null,
3079
+ "type": {
3080
+ "kind": "LIST",
3081
+ "name": null,
3082
+ "ofType": {
3083
+ "kind": "NON_NULL",
3084
+ "name": null,
3085
+ "ofType": {
3086
+ "kind": "INPUT_OBJECT",
3087
+ "name": "SubscriptionAddonInput",
3088
+ "ofType": null
3089
+ }
3090
+ }
3091
+ },
3092
+ "defaultValue": null,
3093
+ "isDeprecated": false,
3094
+ "deprecationReason": null
3095
+ },
3096
+ {
3097
+ "name": "billableFeatures",
3098
+ "description": null,
3099
+ "type": {
3100
+ "kind": "LIST",
3101
+ "name": null,
3102
+ "ofType": {
3103
+ "kind": "NON_NULL",
3104
+ "name": null,
3105
+ "ofType": {
3106
+ "kind": "INPUT_OBJECT",
3107
+ "name": "BillableFeatureInput",
3108
+ "ofType": null
3109
+ }
3110
+ }
3111
+ },
3112
+ "defaultValue": null,
3113
+ "isDeprecated": false,
3114
+ "deprecationReason": null
3115
+ },
3116
+ {
3117
+ "name": "billingCountryCode",
3118
+ "description": null,
3119
+ "type": {
3120
+ "kind": "SCALAR",
3121
+ "name": "String",
3122
+ "ofType": null
3123
+ },
3124
+ "defaultValue": null,
3125
+ "isDeprecated": false,
3126
+ "deprecationReason": null
3127
+ },
3128
+ {
3129
+ "name": "billingId",
3130
+ "description": null,
3131
+ "type": {
3132
+ "kind": "SCALAR",
3133
+ "name": "String",
3134
+ "ofType": null
3135
+ },
3136
+ "defaultValue": null,
3137
+ "isDeprecated": false,
3138
+ "deprecationReason": null
3139
+ },
3140
+ {
3141
+ "name": "billingInformation",
3142
+ "description": null,
3143
+ "type": {
3144
+ "kind": "INPUT_OBJECT",
3145
+ "name": "SubscriptionBillingInfo",
3146
+ "ofType": null
3147
+ },
3148
+ "defaultValue": null,
3149
+ "isDeprecated": false,
3150
+ "deprecationReason": null
3151
+ },
3152
+ {
3153
+ "name": "billingPeriod",
3154
+ "description": null,
3155
+ "type": {
3156
+ "kind": "ENUM",
3157
+ "name": "BillingPeriod",
3158
+ "ofType": null
3159
+ },
3160
+ "defaultValue": null,
3161
+ "isDeprecated": false,
3162
+ "deprecationReason": null
3163
+ },
3164
+ {
3165
+ "name": "customerId",
3166
+ "description": null,
3167
+ "type": {
3168
+ "kind": "NON_NULL",
3169
+ "name": null,
3170
+ "ofType": {
3171
+ "kind": "SCALAR",
3172
+ "name": "String",
3173
+ "ofType": null
3174
+ }
3175
+ },
3176
+ "defaultValue": null,
3177
+ "isDeprecated": false,
3178
+ "deprecationReason": null
3179
+ },
3180
+ {
3181
+ "name": "paymentMethodId",
3182
+ "description": null,
3183
+ "type": {
3184
+ "kind": "SCALAR",
3185
+ "name": "String",
3186
+ "ofType": null
3187
+ },
3188
+ "defaultValue": null,
3189
+ "isDeprecated": false,
3190
+ "deprecationReason": null
3191
+ },
3192
+ {
3193
+ "name": "planId",
3194
+ "description": null,
3195
+ "type": {
3196
+ "kind": "NON_NULL",
3197
+ "name": null,
3198
+ "ofType": {
3199
+ "kind": "SCALAR",
3200
+ "name": "String",
3201
+ "ofType": null
3202
+ }
3203
+ },
3204
+ "defaultValue": null,
3205
+ "isDeprecated": false,
3206
+ "deprecationReason": null
3207
+ },
3208
+ {
3209
+ "name": "promotionCode",
3210
+ "description": null,
3211
+ "type": {
3212
+ "kind": "SCALAR",
3213
+ "name": "String",
3214
+ "ofType": null
3215
+ },
3216
+ "defaultValue": null,
3217
+ "isDeprecated": false,
3218
+ "deprecationReason": null
3219
+ },
3220
+ {
3221
+ "name": "resourceId",
3222
+ "description": null,
3223
+ "type": {
3224
+ "kind": "SCALAR",
3225
+ "name": "String",
3226
+ "ofType": null
3227
+ },
3228
+ "defaultValue": null,
3229
+ "isDeprecated": false,
3230
+ "deprecationReason": null
3231
+ },
3232
+ {
3233
+ "name": "skipTrial",
3234
+ "description": null,
3235
+ "type": {
3236
+ "kind": "SCALAR",
3237
+ "name": "Boolean",
3238
+ "ofType": null
3239
+ },
3240
+ "defaultValue": "false",
3241
+ "isDeprecated": false,
3242
+ "deprecationReason": null
3243
+ },
3244
+ {
3245
+ "name": "startDate",
3246
+ "description": null,
3247
+ "type": {
3248
+ "kind": "SCALAR",
3249
+ "name": "DateTime",
3250
+ "ofType": null
3251
+ },
3252
+ "defaultValue": null,
3253
+ "isDeprecated": false,
3254
+ "deprecationReason": null
3255
+ },
3256
+ {
3257
+ "name": "unitQuantity",
3258
+ "description": null,
3259
+ "type": {
3260
+ "kind": "SCALAR",
3261
+ "name": "Float",
3262
+ "ofType": null
3263
+ },
3264
+ "defaultValue": "-1",
3265
+ "isDeprecated": false,
3266
+ "deprecationReason": null
3267
+ }
3268
+ ],
3269
+ "interfaces": null,
3270
+ "enumValues": null,
3271
+ "possibleTypes": null
3272
+ },
3035
3273
  {
3036
3274
  "kind": "INPUT_OBJECT",
3037
3275
  "name": "ArchiveCouponInput",
@@ -4118,29 +4356,6 @@
4118
4356
  ],
4119
4357
  "possibleTypes": null
4120
4358
  },
4121
- {
4122
- "kind": "OBJECT",
4123
- "name": "Checkout",
4124
- "description": null,
4125
- "fields": [
4126
- {
4127
- "name": "subscription",
4128
- "description": null,
4129
- "args": [],
4130
- "type": {
4131
- "kind": "OBJECT",
4132
- "name": "CustomerSubscription",
4133
- "ofType": null
4134
- },
4135
- "isDeprecated": false,
4136
- "deprecationReason": null
4137
- }
4138
- ],
4139
- "inputFields": null,
4140
- "interfaces": [],
4141
- "enumValues": null,
4142
- "possibleTypes": null
4143
- },
4144
4359
  {
4145
4360
  "kind": "OBJECT",
4146
4361
  "name": "CheckoutBillingIntegration",
@@ -4228,112 +4443,77 @@
4228
4443
  "possibleTypes": null
4229
4444
  },
4230
4445
  {
4231
- "kind": "OBJECT",
4232
- "name": "CheckoutData",
4446
+ "kind": "INPUT_OBJECT",
4447
+ "name": "CheckoutOptions",
4233
4448
  "description": null,
4234
- "fields": [
4449
+ "fields": null,
4450
+ "inputFields": [
4235
4451
  {
4236
- "name": "activeSubscription",
4452
+ "name": "allowPromoCodes",
4237
4453
  "description": null,
4238
- "args": [],
4239
4454
  "type": {
4240
- "kind": "OBJECT",
4241
- "name": "CustomerSubscription",
4455
+ "kind": "SCALAR",
4456
+ "name": "Boolean",
4242
4457
  "ofType": null
4243
4458
  },
4459
+ "defaultValue": "false",
4244
4460
  "isDeprecated": false,
4245
4461
  "deprecationReason": null
4246
4462
  },
4247
4463
  {
4248
- "name": "billingIntegration",
4464
+ "name": "allowTaxIdCollection",
4249
4465
  "description": null,
4250
- "args": [],
4251
4466
  "type": {
4252
- "kind": "NON_NULL",
4253
- "name": null,
4254
- "ofType": {
4255
- "kind": "OBJECT",
4256
- "name": "CheckoutBillingIntegration",
4257
- "ofType": null
4258
- }
4467
+ "kind": "SCALAR",
4468
+ "name": "Boolean",
4469
+ "ofType": null
4259
4470
  },
4471
+ "defaultValue": "false",
4260
4472
  "isDeprecated": false,
4261
4473
  "deprecationReason": null
4262
4474
  },
4263
4475
  {
4264
- "name": "customer",
4476
+ "name": "cancelUrl",
4265
4477
  "description": null,
4266
- "args": [],
4267
4478
  "type": {
4268
4479
  "kind": "NON_NULL",
4269
4480
  "name": null,
4270
4481
  "ofType": {
4271
- "kind": "OBJECT",
4272
- "name": "Customer",
4482
+ "kind": "SCALAR",
4483
+ "name": "String",
4273
4484
  "ofType": null
4274
4485
  }
4275
4486
  },
4487
+ "defaultValue": null,
4276
4488
  "isDeprecated": false,
4277
4489
  "deprecationReason": null
4278
4490
  },
4279
4491
  {
4280
- "name": "plan",
4492
+ "name": "collectBillingAddress",
4281
4493
  "description": null,
4282
- "args": [],
4283
4494
  "type": {
4284
- "kind": "NON_NULL",
4285
- "name": null,
4286
- "ofType": {
4287
- "kind": "OBJECT",
4288
- "name": "Plan",
4289
- "ofType": null
4290
- }
4495
+ "kind": "SCALAR",
4496
+ "name": "Boolean",
4497
+ "ofType": null
4291
4498
  },
4499
+ "defaultValue": "false",
4292
4500
  "isDeprecated": false,
4293
4501
  "deprecationReason": null
4294
4502
  },
4295
4503
  {
4296
- "name": "resource",
4504
+ "name": "collectPhoneNumber",
4297
4505
  "description": null,
4298
- "args": [],
4299
4506
  "type": {
4300
- "kind": "OBJECT",
4301
- "name": "CustomerResource",
4507
+ "kind": "SCALAR",
4508
+ "name": "Boolean",
4302
4509
  "ofType": null
4303
4510
  },
4511
+ "defaultValue": "false",
4304
4512
  "isDeprecated": false,
4305
4513
  "deprecationReason": null
4306
4514
  },
4307
4515
  {
4308
- "name": "setupSecret",
4309
- "description": null,
4310
- "args": [],
4311
- "type": {
4312
- "kind": "NON_NULL",
4313
- "name": null,
4314
- "ofType": {
4315
- "kind": "SCALAR",
4316
- "name": "String",
4317
- "ofType": null
4318
- }
4319
- },
4320
- "isDeprecated": false,
4321
- "deprecationReason": null
4322
- }
4323
- ],
4324
- "inputFields": null,
4325
- "interfaces": [],
4326
- "enumValues": null,
4327
- "possibleTypes": null
4328
- },
4329
- {
4330
- "kind": "INPUT_OBJECT",
4331
- "name": "CheckoutDataInput",
4332
- "description": null,
4333
- "fields": null,
4334
- "inputFields": [
4335
- {
4336
- "name": "billingCountryCode",
4516
+ "name": "referenceId",
4337
4517
  "description": null,
4338
4518
  "type": {
4339
4519
  "kind": "SCALAR",
@@ -4345,23 +4525,7 @@
4345
4525
  "deprecationReason": null
4346
4526
  },
4347
4527
  {
4348
- "name": "customerId",
4349
- "description": null,
4350
- "type": {
4351
- "kind": "NON_NULL",
4352
- "name": null,
4353
- "ofType": {
4354
- "kind": "SCALAR",
4355
- "name": "String",
4356
- "ofType": null
4357
- }
4358
- },
4359
- "defaultValue": null,
4360
- "isDeprecated": false,
4361
- "deprecationReason": null
4362
- },
4363
- {
4364
- "name": "planId",
4528
+ "name": "successUrl",
4365
4529
  "description": null,
4366
4530
  "type": {
4367
4531
  "kind": "NON_NULL",
@@ -4375,18 +4539,6 @@
4375
4539
  "defaultValue": null,
4376
4540
  "isDeprecated": false,
4377
4541
  "deprecationReason": null
4378
- },
4379
- {
4380
- "name": "resourceId",
4381
- "description": null,
4382
- "type": {
4383
- "kind": "SCALAR",
4384
- "name": "String",
4385
- "ofType": null
4386
- },
4387
- "defaultValue": null,
4388
- "isDeprecated": false,
4389
- "deprecationReason": null
4390
4542
  }
4391
4543
  ],
4392
4544
  "interfaces": null,
@@ -4394,142 +4546,86 @@
4394
4546
  "possibleTypes": null
4395
4547
  },
4396
4548
  {
4397
- "kind": "INPUT_OBJECT",
4398
- "name": "CheckoutInput",
4549
+ "kind": "OBJECT",
4550
+ "name": "CheckoutState",
4399
4551
  "description": null,
4400
- "fields": null,
4401
- "inputFields": [
4552
+ "fields": [
4402
4553
  {
4403
- "name": "additionalMetaData",
4554
+ "name": "activeSubscription",
4404
4555
  "description": null,
4556
+ "args": [],
4405
4557
  "type": {
4406
- "kind": "SCALAR",
4407
- "name": "JSON",
4558
+ "kind": "OBJECT",
4559
+ "name": "CustomerSubscription",
4408
4560
  "ofType": null
4409
4561
  },
4410
- "defaultValue": null,
4411
4562
  "isDeprecated": false,
4412
4563
  "deprecationReason": null
4413
4564
  },
4414
4565
  {
4415
- "name": "addons",
4566
+ "name": "billingIntegration",
4416
4567
  "description": null,
4568
+ "args": [],
4417
4569
  "type": {
4418
- "kind": "LIST",
4570
+ "kind": "NON_NULL",
4419
4571
  "name": null,
4420
4572
  "ofType": {
4421
- "kind": "NON_NULL",
4422
- "name": null,
4423
- "ofType": {
4424
- "kind": "INPUT_OBJECT",
4425
- "name": "SubscriptionAddonInput",
4426
- "ofType": null
4427
- }
4573
+ "kind": "OBJECT",
4574
+ "name": "CheckoutBillingIntegration",
4575
+ "ofType": null
4428
4576
  }
4429
4577
  },
4430
- "defaultValue": null,
4431
4578
  "isDeprecated": false,
4432
4579
  "deprecationReason": null
4433
4580
  },
4434
4581
  {
4435
- "name": "billableFeatures",
4582
+ "name": "customer",
4436
4583
  "description": null,
4584
+ "args": [],
4437
4585
  "type": {
4438
- "kind": "LIST",
4586
+ "kind": "NON_NULL",
4439
4587
  "name": null,
4440
4588
  "ofType": {
4441
- "kind": "NON_NULL",
4442
- "name": null,
4443
- "ofType": {
4444
- "kind": "INPUT_OBJECT",
4445
- "name": "BillableFeatureInput",
4446
- "ofType": null
4447
- }
4589
+ "kind": "OBJECT",
4590
+ "name": "Customer",
4591
+ "ofType": null
4448
4592
  }
4449
4593
  },
4450
- "defaultValue": null,
4451
- "isDeprecated": false,
4452
- "deprecationReason": null
4453
- },
4454
- {
4455
- "name": "billingCountryCode",
4456
- "description": null,
4457
- "type": {
4458
- "kind": "SCALAR",
4459
- "name": "String",
4460
- "ofType": null
4461
- },
4462
- "defaultValue": null,
4463
- "isDeprecated": false,
4464
- "deprecationReason": null
4465
- },
4466
- {
4467
- "name": "billingId",
4468
- "description": null,
4469
- "type": {
4470
- "kind": "SCALAR",
4471
- "name": "String",
4472
- "ofType": null
4473
- },
4474
- "defaultValue": null,
4475
- "isDeprecated": false,
4476
- "deprecationReason": null
4477
- },
4478
- {
4479
- "name": "billingInformation",
4480
- "description": null,
4481
- "type": {
4482
- "kind": "INPUT_OBJECT",
4483
- "name": "SubscriptionBillingInfo",
4484
- "ofType": null
4485
- },
4486
- "defaultValue": null,
4487
4594
  "isDeprecated": false,
4488
4595
  "deprecationReason": null
4489
4596
  },
4490
4597
  {
4491
- "name": "billingPeriod",
4492
- "description": null,
4493
- "type": {
4494
- "kind": "ENUM",
4495
- "name": "BillingPeriod",
4496
- "ofType": null
4497
- },
4498
- "defaultValue": null,
4499
- "isDeprecated": false,
4500
- "deprecationReason": null
4501
- },
4502
- {
4503
- "name": "customerId",
4598
+ "name": "plan",
4504
4599
  "description": null,
4600
+ "args": [],
4505
4601
  "type": {
4506
4602
  "kind": "NON_NULL",
4507
4603
  "name": null,
4508
4604
  "ofType": {
4509
- "kind": "SCALAR",
4510
- "name": "String",
4605
+ "kind": "OBJECT",
4606
+ "name": "Plan",
4511
4607
  "ofType": null
4512
4608
  }
4513
4609
  },
4514
- "defaultValue": null,
4515
4610
  "isDeprecated": false,
4516
4611
  "deprecationReason": null
4517
4612
  },
4518
4613
  {
4519
- "name": "paymentMethodId",
4614
+ "name": "resource",
4520
4615
  "description": null,
4616
+ "args": [],
4521
4617
  "type": {
4522
- "kind": "SCALAR",
4523
- "name": "String",
4618
+ "kind": "OBJECT",
4619
+ "name": "CustomerResource",
4524
4620
  "ofType": null
4525
4621
  },
4526
- "defaultValue": null,
4527
4622
  "isDeprecated": false,
4528
4623
  "deprecationReason": null
4529
4624
  },
4530
4625
  {
4531
- "name": "planId",
4626
+ "name": "setupSecret",
4532
4627
  "description": null,
4628
+ "args": [],
4533
4629
  "type": {
4534
4630
  "kind": "NON_NULL",
4535
4631
  "name": null,
@@ -4539,107 +4635,35 @@
4539
4635
  "ofType": null
4540
4636
  }
4541
4637
  },
4542
- "defaultValue": null,
4543
- "isDeprecated": false,
4544
- "deprecationReason": null
4545
- },
4546
- {
4547
- "name": "promotionCode",
4548
- "description": null,
4549
- "type": {
4550
- "kind": "SCALAR",
4551
- "name": "String",
4552
- "ofType": null
4553
- },
4554
- "defaultValue": null,
4555
- "isDeprecated": false,
4556
- "deprecationReason": null
4557
- },
4558
- {
4559
- "name": "resourceId",
4560
- "description": null,
4561
- "type": {
4562
- "kind": "SCALAR",
4563
- "name": "String",
4564
- "ofType": null
4565
- },
4566
- "defaultValue": null,
4567
- "isDeprecated": false,
4568
- "deprecationReason": null
4569
- },
4570
- {
4571
- "name": "skipTrial",
4572
- "description": null,
4573
- "type": {
4574
- "kind": "SCALAR",
4575
- "name": "Boolean",
4576
- "ofType": null
4577
- },
4578
- "defaultValue": "false",
4579
- "isDeprecated": false,
4580
- "deprecationReason": null
4581
- },
4582
- {
4583
- "name": "startDate",
4584
- "description": null,
4585
- "type": {
4586
- "kind": "SCALAR",
4587
- "name": "DateTime",
4588
- "ofType": null
4589
- },
4590
- "defaultValue": null,
4591
- "isDeprecated": false,
4592
- "deprecationReason": null
4593
- },
4594
- {
4595
- "name": "unitQuantity",
4596
- "description": null,
4597
- "type": {
4598
- "kind": "SCALAR",
4599
- "name": "Float",
4600
- "ofType": null
4601
- },
4602
- "defaultValue": "-1",
4603
4638
  "isDeprecated": false,
4604
4639
  "deprecationReason": null
4605
4640
  }
4606
4641
  ],
4607
- "interfaces": null,
4642
+ "inputFields": null,
4643
+ "interfaces": [],
4608
4644
  "enumValues": null,
4609
4645
  "possibleTypes": null
4610
4646
  },
4611
4647
  {
4612
4648
  "kind": "INPUT_OBJECT",
4613
- "name": "CheckoutOptions",
4649
+ "name": "CheckoutStateInput",
4614
4650
  "description": null,
4615
4651
  "fields": null,
4616
4652
  "inputFields": [
4617
4653
  {
4618
- "name": "allowPromoCodes",
4619
- "description": null,
4620
- "type": {
4621
- "kind": "SCALAR",
4622
- "name": "Boolean",
4623
- "ofType": null
4624
- },
4625
- "defaultValue": "false",
4626
- "isDeprecated": false,
4627
- "deprecationReason": null
4628
- },
4629
- {
4630
- "name": "allowTaxIdCollection",
4654
+ "name": "billingCountryCode",
4631
4655
  "description": null,
4632
4656
  "type": {
4633
4657
  "kind": "SCALAR",
4634
- "name": "Boolean",
4658
+ "name": "String",
4635
4659
  "ofType": null
4636
4660
  },
4637
- "defaultValue": "false",
4661
+ "defaultValue": null,
4638
4662
  "isDeprecated": false,
4639
4663
  "deprecationReason": null
4640
4664
  },
4641
4665
  {
4642
- "name": "cancelUrl",
4666
+ "name": "customerId",
4643
4667
  "description": null,
4644
4668
  "type": {
4645
4669
  "kind": "NON_NULL",
@@ -4655,31 +4679,23 @@
4655
4679
  "deprecationReason": null
4656
4680
  },
4657
4681
  {
4658
- "name": "collectBillingAddress",
4659
- "description": null,
4660
- "type": {
4661
- "kind": "SCALAR",
4662
- "name": "Boolean",
4663
- "ofType": null
4664
- },
4665
- "defaultValue": "false",
4666
- "isDeprecated": false,
4667
- "deprecationReason": null
4668
- },
4669
- {
4670
- "name": "collectPhoneNumber",
4682
+ "name": "planId",
4671
4683
  "description": null,
4672
4684
  "type": {
4673
- "kind": "SCALAR",
4674
- "name": "Boolean",
4675
- "ofType": null
4685
+ "kind": "NON_NULL",
4686
+ "name": null,
4687
+ "ofType": {
4688
+ "kind": "SCALAR",
4689
+ "name": "String",
4690
+ "ofType": null
4691
+ }
4676
4692
  },
4677
- "defaultValue": "false",
4693
+ "defaultValue": null,
4678
4694
  "isDeprecated": false,
4679
4695
  "deprecationReason": null
4680
4696
  },
4681
4697
  {
4682
- "name": "referenceId",
4698
+ "name": "resourceId",
4683
4699
  "description": null,
4684
4700
  "type": {
4685
4701
  "kind": "SCALAR",
@@ -4689,22 +4705,6 @@
4689
4705
  "defaultValue": null,
4690
4706
  "isDeprecated": false,
4691
4707
  "deprecationReason": null
4692
- },
4693
- {
4694
- "name": "successUrl",
4695
- "description": null,
4696
- "type": {
4697
- "kind": "NON_NULL",
4698
- "name": null,
4699
- "ofType": {
4700
- "kind": "SCALAR",
4701
- "name": "String",
4702
- "ofType": null
4703
- }
4704
- },
4705
- "defaultValue": null,
4706
- "isDeprecated": false,
4707
- "deprecationReason": null
4708
4708
  }
4709
4709
  ],
4710
4710
  "interfaces": null,
@@ -31140,6 +31140,39 @@
31140
31140
  "isDeprecated": false,
31141
31141
  "deprecationReason": null
31142
31142
  },
31143
+ {
31144
+ "name": "applySubscription",
31145
+ "description": null,
31146
+ "args": [
31147
+ {
31148
+ "name": "input",
31149
+ "description": null,
31150
+ "type": {
31151
+ "kind": "NON_NULL",
31152
+ "name": null,
31153
+ "ofType": {
31154
+ "kind": "INPUT_OBJECT",
31155
+ "name": "ApplySubscriptionInput",
31156
+ "ofType": null
31157
+ }
31158
+ },
31159
+ "defaultValue": null,
31160
+ "isDeprecated": false,
31161
+ "deprecationReason": null
31162
+ }
31163
+ ],
31164
+ "type": {
31165
+ "kind": "NON_NULL",
31166
+ "name": null,
31167
+ "ofType": {
31168
+ "kind": "OBJECT",
31169
+ "name": "ApplySubscription",
31170
+ "ofType": null
31171
+ }
31172
+ },
31173
+ "isDeprecated": false,
31174
+ "deprecationReason": null
31175
+ },
31143
31176
  {
31144
31177
  "name": "archiveCustomer",
31145
31178
  "description": null,
@@ -31338,39 +31371,6 @@
31338
31371
  "isDeprecated": false,
31339
31372
  "deprecationReason": null
31340
31373
  },
31341
- {
31342
- "name": "checkout",
31343
- "description": null,
31344
- "args": [
31345
- {
31346
- "name": "input",
31347
- "description": null,
31348
- "type": {
31349
- "kind": "NON_NULL",
31350
- "name": null,
31351
- "ofType": {
31352
- "kind": "INPUT_OBJECT",
31353
- "name": "CheckoutInput",
31354
- "ofType": null
31355
- }
31356
- },
31357
- "defaultValue": null,
31358
- "isDeprecated": false,
31359
- "deprecationReason": null
31360
- }
31361
- ],
31362
- "type": {
31363
- "kind": "NON_NULL",
31364
- "name": null,
31365
- "ofType": {
31366
- "kind": "OBJECT",
31367
- "name": "Checkout",
31368
- "ofType": null
31369
- }
31370
- },
31371
- "isDeprecated": false,
31372
- "deprecationReason": null
31373
- },
31374
31374
  {
31375
31375
  "name": "createAccount",
31376
31376
  "description": null,
@@ -32674,6 +32674,39 @@
32674
32674
  "isDeprecated": false,
32675
32675
  "deprecationReason": null
32676
32676
  },
32677
+ {
32678
+ "name": "previewSubscription",
32679
+ "description": null,
32680
+ "args": [
32681
+ {
32682
+ "name": "input",
32683
+ "description": null,
32684
+ "type": {
32685
+ "kind": "NON_NULL",
32686
+ "name": null,
32687
+ "ofType": {
32688
+ "kind": "INPUT_OBJECT",
32689
+ "name": "PreviewSubscriptionInput",
32690
+ "ofType": null
32691
+ }
32692
+ },
32693
+ "defaultValue": null,
32694
+ "isDeprecated": false,
32695
+ "deprecationReason": null
32696
+ }
32697
+ ],
32698
+ "type": {
32699
+ "kind": "NON_NULL",
32700
+ "name": null,
32701
+ "ofType": {
32702
+ "kind": "OBJECT",
32703
+ "name": "SubscriptionPreview",
32704
+ "ofType": null
32705
+ }
32706
+ },
32707
+ "isDeprecated": false,
32708
+ "deprecationReason": null
32709
+ },
32677
32710
  {
32678
32711
  "name": "provisionCustomer",
32679
32712
  "description": null,
@@ -42041,6 +42074,185 @@
42041
42074
  "enumValues": null,
42042
42075
  "possibleTypes": null
42043
42076
  },
42077
+ {
42078
+ "kind": "INPUT_OBJECT",
42079
+ "name": "PreviewSubscriptionInput",
42080
+ "description": null,
42081
+ "fields": null,
42082
+ "inputFields": [
42083
+ {
42084
+ "name": "addons",
42085
+ "description": null,
42086
+ "type": {
42087
+ "kind": "LIST",
42088
+ "name": null,
42089
+ "ofType": {
42090
+ "kind": "NON_NULL",
42091
+ "name": null,
42092
+ "ofType": {
42093
+ "kind": "INPUT_OBJECT",
42094
+ "name": "SubscriptionAddonInput",
42095
+ "ofType": null
42096
+ }
42097
+ }
42098
+ },
42099
+ "defaultValue": null,
42100
+ "isDeprecated": false,
42101
+ "deprecationReason": null
42102
+ },
42103
+ {
42104
+ "name": "billableFeatures",
42105
+ "description": null,
42106
+ "type": {
42107
+ "kind": "LIST",
42108
+ "name": null,
42109
+ "ofType": {
42110
+ "kind": "NON_NULL",
42111
+ "name": null,
42112
+ "ofType": {
42113
+ "kind": "INPUT_OBJECT",
42114
+ "name": "BillableFeatureInput",
42115
+ "ofType": null
42116
+ }
42117
+ }
42118
+ },
42119
+ "defaultValue": null,
42120
+ "isDeprecated": false,
42121
+ "deprecationReason": null
42122
+ },
42123
+ {
42124
+ "name": "billingCountryCode",
42125
+ "description": null,
42126
+ "type": {
42127
+ "kind": "SCALAR",
42128
+ "name": "String",
42129
+ "ofType": null
42130
+ },
42131
+ "defaultValue": null,
42132
+ "isDeprecated": false,
42133
+ "deprecationReason": null
42134
+ },
42135
+ {
42136
+ "name": "billingInformation",
42137
+ "description": null,
42138
+ "type": {
42139
+ "kind": "INPUT_OBJECT",
42140
+ "name": "SubscriptionBillingInfo",
42141
+ "ofType": null
42142
+ },
42143
+ "defaultValue": null,
42144
+ "isDeprecated": false,
42145
+ "deprecationReason": null
42146
+ },
42147
+ {
42148
+ "name": "billingPeriod",
42149
+ "description": null,
42150
+ "type": {
42151
+ "kind": "ENUM",
42152
+ "name": "BillingPeriod",
42153
+ "ofType": null
42154
+ },
42155
+ "defaultValue": null,
42156
+ "isDeprecated": false,
42157
+ "deprecationReason": null
42158
+ },
42159
+ {
42160
+ "name": "customerId",
42161
+ "description": null,
42162
+ "type": {
42163
+ "kind": "NON_NULL",
42164
+ "name": null,
42165
+ "ofType": {
42166
+ "kind": "SCALAR",
42167
+ "name": "String",
42168
+ "ofType": null
42169
+ }
42170
+ },
42171
+ "defaultValue": null,
42172
+ "isDeprecated": false,
42173
+ "deprecationReason": null
42174
+ },
42175
+ {
42176
+ "name": "environmentId",
42177
+ "description": null,
42178
+ "type": {
42179
+ "kind": "SCALAR",
42180
+ "name": "String",
42181
+ "ofType": null
42182
+ },
42183
+ "defaultValue": null,
42184
+ "isDeprecated": false,
42185
+ "deprecationReason": null
42186
+ },
42187
+ {
42188
+ "name": "planId",
42189
+ "description": null,
42190
+ "type": {
42191
+ "kind": "NON_NULL",
42192
+ "name": null,
42193
+ "ofType": {
42194
+ "kind": "SCALAR",
42195
+ "name": "String",
42196
+ "ofType": null
42197
+ }
42198
+ },
42199
+ "defaultValue": null,
42200
+ "isDeprecated": false,
42201
+ "deprecationReason": null
42202
+ },
42203
+ {
42204
+ "name": "promotionCode",
42205
+ "description": null,
42206
+ "type": {
42207
+ "kind": "SCALAR",
42208
+ "name": "String",
42209
+ "ofType": null
42210
+ },
42211
+ "defaultValue": null,
42212
+ "isDeprecated": false,
42213
+ "deprecationReason": null
42214
+ },
42215
+ {
42216
+ "name": "resourceId",
42217
+ "description": null,
42218
+ "type": {
42219
+ "kind": "SCALAR",
42220
+ "name": "String",
42221
+ "ofType": null
42222
+ },
42223
+ "defaultValue": null,
42224
+ "isDeprecated": false,
42225
+ "deprecationReason": null
42226
+ },
42227
+ {
42228
+ "name": "startDate",
42229
+ "description": null,
42230
+ "type": {
42231
+ "kind": "SCALAR",
42232
+ "name": "DateTime",
42233
+ "ofType": null
42234
+ },
42235
+ "defaultValue": null,
42236
+ "isDeprecated": false,
42237
+ "deprecationReason": null
42238
+ },
42239
+ {
42240
+ "name": "unitQuantity",
42241
+ "description": null,
42242
+ "type": {
42243
+ "kind": "SCALAR",
42244
+ "name": "Float",
42245
+ "ofType": null
42246
+ },
42247
+ "defaultValue": "-1",
42248
+ "isDeprecated": false,
42249
+ "deprecationReason": null
42250
+ }
42251
+ ],
42252
+ "interfaces": null,
42253
+ "enumValues": null,
42254
+ "possibleTypes": null
42255
+ },
42044
42256
  {
42045
42257
  "kind": "OBJECT",
42046
42258
  "name": "Price",
@@ -48924,7 +49136,7 @@
48924
49136
  "deprecationReason": null
48925
49137
  },
48926
49138
  {
48927
- "name": "checkoutData",
49139
+ "name": "checkoutState",
48928
49140
  "description": null,
48929
49141
  "args": [
48930
49142
  {
@@ -48935,7 +49147,7 @@
48935
49147
  "name": null,
48936
49148
  "ofType": {
48937
49149
  "kind": "INPUT_OBJECT",
48938
- "name": "CheckoutDataInput",
49150
+ "name": "CheckoutStateInput",
48939
49151
  "ofType": null
48940
49152
  }
48941
49153
  },
@@ -48949,7 +49161,7 @@
48949
49161
  "name": null,
48950
49162
  "ofType": {
48951
49163
  "kind": "OBJECT",
48952
- "name": "CheckoutData",
49164
+ "name": "CheckoutState",
48953
49165
  "ofType": null
48954
49166
  }
48955
49167
  },
@@ -57971,6 +58183,30 @@
57971
58183
  "isDeprecated": false,
57972
58184
  "deprecationReason": null
57973
58185
  },
58186
+ {
58187
+ "name": "hasScheduledUpdates",
58188
+ "description": null,
58189
+ "args": [],
58190
+ "type": {
58191
+ "kind": "SCALAR",
58192
+ "name": "Boolean",
58193
+ "ofType": null
58194
+ },
58195
+ "isDeprecated": false,
58196
+ "deprecationReason": null
58197
+ },
58198
+ {
58199
+ "name": "isPlanDowngrade",
58200
+ "description": null,
58201
+ "args": [],
58202
+ "type": {
58203
+ "kind": "SCALAR",
58204
+ "name": "Boolean",
58205
+ "ofType": null
58206
+ },
58207
+ "isDeprecated": false,
58208
+ "deprecationReason": null
58209
+ },
57974
58210
  {
57975
58211
  "name": "proration",
57976
58212
  "description": null,
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.545.0"
4
+ VERSION = "0.548.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stigg-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.545.0
4
+ version: 0.548.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-17 00:00:00.000000000 Z
11
+ date: 2023-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphlient