stigg-api-client 3.65.0 → 3.68.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: 887fe87f010413a5f1f9ab9e00739eb540d33183bed47ee79346cc20647a9212
4
- data.tar.gz: 3d8558a342b748b60f9ad76d36c897395170691e719f280d93b36f659d22d584
3
+ metadata.gz: f09c5d5f6b2607df75f864024d67a7cdafc2bc00de957c03f32a235318905ee0
4
+ data.tar.gz: 077f1abdd2e615e3bd5fd1f789192901f53d4d571de0ccdda36c84eb2d89a8e0
5
5
  SHA512:
6
- metadata.gz: 9afb605ecbe8d84b78e009ba0e3a2f93aaab946301d58f323b286228660af6fda60ca25f047b66b6065ab29c593877763e349c105f9268c67327823bf224dc27
7
- data.tar.gz: f5c316d5bb8306c745f3c91eca25b1cfb66cad27d92e96455168582056badb6b6a32caca4df713c4ee13584f2520853a0d1bb4db40023bd2ca7e9cc84ec28406
6
+ metadata.gz: ee61818dcd381da7dbc92680ef3e0d7a927166458759f1d9ab82f744f4dc16b4dad79dcfa8df12e8663b33cd8079777c0be393dc5c5598f6cb57aa1ee3552ce6
7
+ data.tar.gz: 6ac3be0924ee84c393c1b6cd1c883e6999b8e20da0edb17d32fcccdf464e8274acd2d1b0081390544294650118c7922f01fc72b18694f4dc83a1133eb0350b3e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (3.65.0)
4
+ stigg-api-client (3.68.0)
5
5
  graphlient (>= 0.6.0, < 1.0)
6
6
  graphql-client (>= 0.19, < 1.0)
7
7
 
@@ -1120,6 +1120,20 @@ module Stigg
1120
1120
  }
1121
1121
  GRAPHQL
1122
1122
 
1123
+ StripeCheckoutCredentialsFragment = <<~GRAPHQL
1124
+ fragment StripeCheckoutCredentialsFragment on StripeCheckoutCredentials {
1125
+ accountId
1126
+ setupSecret
1127
+ publicKey
1128
+ }
1129
+ GRAPHQL
1130
+
1131
+ ZuoraCheckoutCredentialsFragment = <<~GRAPHQL
1132
+ fragment ZuoraCheckoutCredentialsFragment on ZuoraCheckoutCredentials {
1133
+ publishableKey
1134
+ }
1135
+ GRAPHQL
1136
+
1123
1137
  CheckoutStateFragment = <<~GRAPHQL
1124
1138
  fragment CheckoutStateFragment on CheckoutState {
1125
1139
  configuration {
@@ -1140,6 +1154,14 @@ module Stigg
1140
1154
  }
1141
1155
  billingIntegration {
1142
1156
  billingIdentifier
1157
+ billingCredentials {
1158
+ ... on StripeCheckoutCredentials {
1159
+ ...StripeCheckoutCredentialsFragment
1160
+ }
1161
+ ... on ZuoraCheckoutCredentials {
1162
+ ...ZuoraCheckoutCredentialsFragment
1163
+ }
1164
+ }
1143
1165
  credentials {
1144
1166
  accountId
1145
1167
  publicKey
@@ -1729,6 +1751,12 @@ module Stigg
1729
1751
  }
1730
1752
  }
1731
1753
  GRAPHQL
1754
+
1755
+ PaymentSessionFragment = <<~GRAPHQL
1756
+ fragment PaymentSessionFragment on PaymentSession {
1757
+ token
1758
+ }
1759
+ GRAPHQL
1732
1760
  end
1733
1761
 
1734
1762
  module Mutation
@@ -1776,7 +1804,9 @@ module Stigg
1776
1804
  GRAPHQL
1777
1805
 
1778
1806
  DetachCustomerPaymentMethod = <<~GRAPHQL
1779
- mutation DetachCustomerPaymentMethod($input: DetachCustomerPaymentMethodInput!) {
1807
+ mutation DetachCustomerPaymentMethod(
1808
+ $input: DetachCustomerPaymentMethodInput!
1809
+ ) {
1780
1810
  detachCustomerPaymentMethod(input: $input) {
1781
1811
  ...SlimCustomerFragment
1782
1812
  }
@@ -2023,7 +2053,9 @@ module Stigg
2023
2053
  GRAPHQL
2024
2054
 
2025
2055
  DelegateSubscriptionToCustomer = <<~GRAPHQL
2026
- mutation DelegateSubscriptionToCustomer($input: DelegateSubscriptionToCustomerInput!) {
2056
+ mutation DelegateSubscriptionToCustomer(
2057
+ $input: DelegateSubscriptionToCustomerInput!
2058
+ ) {
2027
2059
  delegateSubscriptionToCustomer(input: $input) {
2028
2060
  ...SlimSubscriptionFragment
2029
2061
  }
@@ -2037,7 +2069,9 @@ module Stigg
2037
2069
  GRAPHQL
2038
2070
 
2039
2071
  TransferSubscriptionToResource = <<~GRAPHQL
2040
- mutation TransferSubscriptionToResource($input: TransferSubscriptionToResourceInput!) {
2072
+ mutation TransferSubscriptionToResource(
2073
+ $input: TransferSubscriptionToResourceInput!
2074
+ ) {
2041
2075
  transferSubscriptionToResource(input: $input) {
2042
2076
  ...SlimSubscriptionFragment
2043
2077
  }
@@ -2060,7 +2094,9 @@ module Stigg
2060
2094
  GRAPHQL
2061
2095
 
2062
2096
  GrantPromotionalEntitlementsGroup = <<~GRAPHQL
2063
- mutation GrantPromotionalEntitlementsGroup($input: GrantPromotionalEntitlementsGroupInput!) {
2097
+ mutation GrantPromotionalEntitlementsGroup(
2098
+ $input: GrantPromotionalEntitlementsGroupInput!
2099
+ ) {
2064
2100
  grantPromotionalEntitlementsGroup(input: $input) {
2065
2101
  ...PromotionalEntitlementFragment
2066
2102
  }
@@ -2069,7 +2105,9 @@ module Stigg
2069
2105
  GRAPHQL
2070
2106
 
2071
2107
  RevokePromotionalEntitlementsGroup = <<~GRAPHQL
2072
- mutation RevokePromotionalEntitlementsGroup($input: RevokePromotionalEntitlementsGroupInput!) {
2108
+ mutation RevokePromotionalEntitlementsGroup(
2109
+ $input: RevokePromotionalEntitlementsGroupInput!
2110
+ ) {
2073
2111
  revokePromotionalEntitlementsGroup(input: $input) {
2074
2112
  ...PromotionalEntitlementFragment
2075
2113
  }
@@ -2078,13 +2116,24 @@ module Stigg
2078
2116
  GRAPHQL
2079
2117
 
2080
2118
  UnlinkPromotionalEntitlementsGroup = <<~GRAPHQL
2081
- mutation UnlinkPromotionalEntitlementsGroup($input: UnlinkPromotionalEntitlementsGroupInput!) {
2119
+ mutation UnlinkPromotionalEntitlementsGroup(
2120
+ $input: UnlinkPromotionalEntitlementsGroupInput!
2121
+ ) {
2082
2122
  unlinkPromotionalEntitlementsGroup(input: $input) {
2083
2123
  ...PromotionalEntitlementFragment
2084
2124
  }
2085
2125
  }
2086
2126
  #{Fragment::PromotionalEntitlementFragment}
2087
2127
  GRAPHQL
2128
+
2129
+ CreatePaymentSession = <<~GRAPHQL
2130
+ mutation CreatePaymentSession($input: PaymentSessionInput!) {
2131
+ createPaymentSession(input: $input) {
2132
+ ...PaymentSessionFragment
2133
+ }
2134
+ }
2135
+ #{Fragment::PaymentSessionFragment}
2136
+ GRAPHQL
2088
2137
  end
2089
2138
 
2090
2139
  module Query
@@ -2356,6 +2405,8 @@ module Stigg
2356
2405
  #{Fragment::ScheduleVariablesFragment}
2357
2406
  #{Fragment::SubscriptionFutureUpdateData}
2358
2407
  #{Fragment::SubscriptionTrialConfigurationFragment}
2408
+ #{Fragment::StripeCheckoutCredentialsFragment}
2409
+ #{Fragment::ZuoraCheckoutCredentialsFragment}
2359
2410
  GRAPHQL
2360
2411
 
2361
2412
  GetMockPaywall = <<~GRAPHQL
@@ -5926,6 +5926,27 @@
5926
5926
  "enumValues": null,
5927
5927
  "possibleTypes": null
5928
5928
  },
5929
+ {
5930
+ "kind": "UNION",
5931
+ "name": "BillingCredentials",
5932
+ "description": null,
5933
+ "fields": null,
5934
+ "inputFields": null,
5935
+ "interfaces": null,
5936
+ "enumValues": null,
5937
+ "possibleTypes": [
5938
+ {
5939
+ "kind": "OBJECT",
5940
+ "name": "StripeCheckoutCredentials",
5941
+ "ofType": null
5942
+ },
5943
+ {
5944
+ "kind": "OBJECT",
5945
+ "name": "ZuoraCheckoutCredentials",
5946
+ "ofType": null
5947
+ }
5948
+ ]
5949
+ },
5929
5950
  {
5930
5951
  "kind": "ENUM",
5931
5952
  "name": "BillingModel",
@@ -6416,6 +6437,12 @@
6416
6437
  "description": "Stripe",
6417
6438
  "isDeprecated": false,
6418
6439
  "deprecationReason": null
6440
+ },
6441
+ {
6442
+ "name": "ZUORA",
6443
+ "description": "Zuora",
6444
+ "isDeprecated": false,
6445
+ "deprecationReason": null
6419
6446
  }
6420
6447
  ],
6421
6448
  "possibleTypes": null
@@ -6930,6 +6957,22 @@
6930
6957
  "name": "CheckoutBillingIntegration",
6931
6958
  "description": "Checkout billing integration",
6932
6959
  "fields": [
6960
+ {
6961
+ "name": "billingCredentials",
6962
+ "description": "The billing credentials",
6963
+ "args": [],
6964
+ "type": {
6965
+ "kind": "NON_NULL",
6966
+ "name": null,
6967
+ "ofType": {
6968
+ "kind": "UNION",
6969
+ "name": "BillingCredentials",
6970
+ "ofType": null
6971
+ }
6972
+ },
6973
+ "isDeprecated": false,
6974
+ "deprecationReason": null
6975
+ },
6933
6976
  {
6934
6977
  "name": "billingIdentifier",
6935
6978
  "description": "The billing vendor identifier",
@@ -6959,8 +7002,8 @@
6959
7002
  "ofType": null
6960
7003
  }
6961
7004
  },
6962
- "isDeprecated": false,
6963
- "deprecationReason": null
7005
+ "isDeprecated": true,
7006
+ "deprecationReason": "Use billingIntegration.billingCredentials instead"
6964
7007
  }
6965
7008
  ],
6966
7009
  "inputFields": null,
@@ -7210,32 +7253,24 @@
7210
7253
  "fields": [
7211
7254
  {
7212
7255
  "name": "accountId",
7213
- "description": "The account ID",
7256
+ "description": "Account ID",
7214
7257
  "args": [],
7215
7258
  "type": {
7216
- "kind": "NON_NULL",
7217
- "name": null,
7218
- "ofType": {
7219
- "kind": "SCALAR",
7220
- "name": "String",
7221
- "ofType": null
7222
- }
7259
+ "kind": "SCALAR",
7260
+ "name": "String",
7261
+ "ofType": null
7223
7262
  },
7224
7263
  "isDeprecated": false,
7225
7264
  "deprecationReason": null
7226
7265
  },
7227
7266
  {
7228
7267
  "name": "publicKey",
7229
- "description": "The public key",
7268
+ "description": "Public key",
7230
7269
  "args": [],
7231
7270
  "type": {
7232
- "kind": "NON_NULL",
7233
- "name": null,
7234
- "ofType": {
7235
- "kind": "SCALAR",
7236
- "name": "String",
7237
- "ofType": null
7238
- }
7271
+ "kind": "SCALAR",
7272
+ "name": "String",
7273
+ "ofType": null
7239
7274
  },
7240
7275
  "isDeprecated": false,
7241
7276
  "deprecationReason": null
@@ -7511,7 +7546,7 @@
7511
7546
  },
7512
7547
  {
7513
7548
  "name": "setupSecret",
7514
- "description": "The billing integration setup secret",
7549
+ "description": "The billing setup secret",
7515
7550
  "args": [],
7516
7551
  "type": {
7517
7552
  "kind": "NON_NULL",
@@ -7522,8 +7557,8 @@
7522
7557
  "ofType": null
7523
7558
  }
7524
7559
  },
7525
- "isDeprecated": false,
7526
- "deprecationReason": null
7560
+ "isDeprecated": true,
7561
+ "deprecationReason": "Use billingIntegration.billingCredentials.setupSecret instead"
7527
7562
  }
7528
7563
  ],
7529
7564
  "inputFields": null,
@@ -45085,6 +45120,39 @@
45085
45120
  "isDeprecated": false,
45086
45121
  "deprecationReason": null
45087
45122
  },
45123
+ {
45124
+ "name": "createPaymentSession",
45125
+ "description": "Create a billing payment session",
45126
+ "args": [
45127
+ {
45128
+ "name": "input",
45129
+ "description": "The billing payment session input",
45130
+ "type": {
45131
+ "kind": "NON_NULL",
45132
+ "name": null,
45133
+ "ofType": {
45134
+ "kind": "INPUT_OBJECT",
45135
+ "name": "PaymentSessionInput",
45136
+ "ofType": null
45137
+ }
45138
+ },
45139
+ "defaultValue": null,
45140
+ "isDeprecated": false,
45141
+ "deprecationReason": null
45142
+ }
45143
+ ],
45144
+ "type": {
45145
+ "kind": "NON_NULL",
45146
+ "name": null,
45147
+ "ofType": {
45148
+ "kind": "OBJECT",
45149
+ "name": "PaymentSession",
45150
+ "ofType": null
45151
+ }
45152
+ },
45153
+ "isDeprecated": false,
45154
+ "deprecationReason": null
45155
+ },
45088
45156
  {
45089
45157
  "name": "createPlanDraft",
45090
45158
  "description": "Create a plan draft",
@@ -55578,6 +55646,88 @@
55578
55646
  ],
55579
55647
  "possibleTypes": null
55580
55648
  },
55649
+ {
55650
+ "kind": "OBJECT",
55651
+ "name": "PaymentSession",
55652
+ "description": "Billing payment session",
55653
+ "fields": [
55654
+ {
55655
+ "name": "token",
55656
+ "description": "Billing payment session token",
55657
+ "args": [],
55658
+ "type": {
55659
+ "kind": "NON_NULL",
55660
+ "name": null,
55661
+ "ofType": {
55662
+ "kind": "SCALAR",
55663
+ "name": "String",
55664
+ "ofType": null
55665
+ }
55666
+ },
55667
+ "isDeprecated": false,
55668
+ "deprecationReason": null
55669
+ }
55670
+ ],
55671
+ "inputFields": null,
55672
+ "interfaces": [],
55673
+ "enumValues": null,
55674
+ "possibleTypes": null
55675
+ },
55676
+ {
55677
+ "kind": "INPUT_OBJECT",
55678
+ "name": "PaymentSessionInput",
55679
+ "description": "The billing payment session input",
55680
+ "fields": null,
55681
+ "inputFields": [
55682
+ {
55683
+ "name": "billingCountryCode",
55684
+ "description": "The billing country code of the plan to create payment session",
55685
+ "type": {
55686
+ "kind": "SCALAR",
55687
+ "name": "String",
55688
+ "ofType": null
55689
+ },
55690
+ "defaultValue": null,
55691
+ "isDeprecated": false,
55692
+ "deprecationReason": null
55693
+ },
55694
+ {
55695
+ "name": "customerId",
55696
+ "description": "Customer ID",
55697
+ "type": {
55698
+ "kind": "NON_NULL",
55699
+ "name": null,
55700
+ "ofType": {
55701
+ "kind": "SCALAR",
55702
+ "name": "String",
55703
+ "ofType": null
55704
+ }
55705
+ },
55706
+ "defaultValue": null,
55707
+ "isDeprecated": false,
55708
+ "deprecationReason": null
55709
+ },
55710
+ {
55711
+ "name": "planId",
55712
+ "description": "The plan ID to create payment session",
55713
+ "type": {
55714
+ "kind": "NON_NULL",
55715
+ "name": null,
55716
+ "ofType": {
55717
+ "kind": "SCALAR",
55718
+ "name": "String",
55719
+ "ofType": null
55720
+ }
55721
+ },
55722
+ "defaultValue": null,
55723
+ "isDeprecated": false,
55724
+ "deprecationReason": null
55725
+ }
55726
+ ],
55727
+ "interfaces": null,
55728
+ "enumValues": null,
55729
+ "possibleTypes": null
55730
+ },
55581
55731
  {
55582
55732
  "kind": "OBJECT",
55583
55733
  "name": "Paywall",
@@ -74295,6 +74445,57 @@
74295
74445
  "enumValues": null,
74296
74446
  "possibleTypes": null
74297
74447
  },
74448
+ {
74449
+ "kind": "OBJECT",
74450
+ "name": "StripeCheckoutCredentials",
74451
+ "description": "Stripe checkout credentials",
74452
+ "fields": [
74453
+ {
74454
+ "name": "accountId",
74455
+ "description": "Stripe account ID",
74456
+ "args": [],
74457
+ "type": {
74458
+ "kind": "SCALAR",
74459
+ "name": "String",
74460
+ "ofType": null
74461
+ },
74462
+ "isDeprecated": false,
74463
+ "deprecationReason": null
74464
+ },
74465
+ {
74466
+ "name": "publicKey",
74467
+ "description": "Stripe public key",
74468
+ "args": [],
74469
+ "type": {
74470
+ "kind": "SCALAR",
74471
+ "name": "String",
74472
+ "ofType": null
74473
+ },
74474
+ "isDeprecated": false,
74475
+ "deprecationReason": null
74476
+ },
74477
+ {
74478
+ "name": "setupSecret",
74479
+ "description": "Stripe setup secret",
74480
+ "args": [],
74481
+ "type": {
74482
+ "kind": "NON_NULL",
74483
+ "name": null,
74484
+ "ofType": {
74485
+ "kind": "SCALAR",
74486
+ "name": "String",
74487
+ "ofType": null
74488
+ }
74489
+ },
74490
+ "isDeprecated": false,
74491
+ "deprecationReason": null
74492
+ }
74493
+ ],
74494
+ "inputFields": null,
74495
+ "interfaces": [],
74496
+ "enumValues": null,
74497
+ "possibleTypes": null
74498
+ },
74298
74499
  {
74299
74500
  "kind": "OBJECT",
74300
74501
  "name": "StripeCredentials",
@@ -94785,6 +94986,33 @@
94785
94986
  "enumValues": null,
94786
94987
  "possibleTypes": null
94787
94988
  },
94989
+ {
94990
+ "kind": "OBJECT",
94991
+ "name": "ZuoraCheckoutCredentials",
94992
+ "description": "Zuora checkout credentials",
94993
+ "fields": [
94994
+ {
94995
+ "name": "publishableKey",
94996
+ "description": "Zuora publishable key",
94997
+ "args": [],
94998
+ "type": {
94999
+ "kind": "NON_NULL",
95000
+ "name": null,
95001
+ "ofType": {
95002
+ "kind": "SCALAR",
95003
+ "name": "String",
95004
+ "ofType": null
95005
+ }
95006
+ },
95007
+ "isDeprecated": false,
95008
+ "deprecationReason": null
95009
+ }
95010
+ ],
95011
+ "inputFields": null,
95012
+ "interfaces": [],
95013
+ "enumValues": null,
95014
+ "possibleTypes": null
95015
+ },
94788
95016
  {
94789
95017
  "kind": "OBJECT",
94790
95018
  "name": "ZuoraCredentials",
@@ -94862,6 +95090,18 @@
94862
95090
  "isDeprecated": false,
94863
95091
  "deprecationReason": null
94864
95092
  },
95093
+ {
95094
+ "name": "publishableKey",
95095
+ "description": "Publishable key for the Zuora payment form",
95096
+ "args": [],
95097
+ "type": {
95098
+ "kind": "SCALAR",
95099
+ "name": "String",
95100
+ "ofType": null
95101
+ },
95102
+ "isDeprecated": false,
95103
+ "deprecationReason": null
95104
+ },
94865
95105
  {
94866
95106
  "name": "stripePublishableKey",
94867
95107
  "description": "Stripe publishable key for the Zuora payment page",
@@ -94982,6 +95222,18 @@
94982
95222
  "isDeprecated": false,
94983
95223
  "deprecationReason": null
94984
95224
  },
95225
+ {
95226
+ "name": "publishableKey",
95227
+ "description": "Publishable key for the Zuora payment form",
95228
+ "type": {
95229
+ "kind": "SCALAR",
95230
+ "name": "String",
95231
+ "ofType": null
95232
+ },
95233
+ "defaultValue": null,
95234
+ "isDeprecated": false,
95235
+ "deprecationReason": null
95236
+ },
94985
95237
  {
94986
95238
  "name": "stripePublishableKey",
94987
95239
  "description": "Stripe publishable key for the Zuora payment page",
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "3.65.0"
4
+ VERSION = "3.68.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stigg-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.65.0
4
+ version: 3.68.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg