stripe 3.18.0 → 3.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95c81f1261a59a454760e88f4f32eac24ae2918d
4
- data.tar.gz: b40f14450495e9d069668691ec67f199be98b4ab
3
+ metadata.gz: b626d6656baff20e9955a3b690c6d632f22f04a4
4
+ data.tar.gz: '081d6faab91a974431222eb8d9ab0b6b2cea343a'
5
5
  SHA512:
6
- metadata.gz: 14dd0e4457a6f2049d296500c05fb8e9028f5c3ca992c5fb3bc8a7c98ad567722ced091bece4ecfdda21474dc3e2cf7ea27606c4715a4797503b669779639c6f
7
- data.tar.gz: f549db4c303ce3004db020c71dead12c7f5a626df88d149362ae5f3e794bd45a4ff2b53a35043025c315c39fc5d228e88c9174ece2830292e62db79d85a6cab3
6
+ metadata.gz: b97068f93d92be631b4b5302d16764d1759566f56fd0b400664efbd13e45cd9640024134b0852347c27ffd97bd504d9766dbc886067f4e6ead4f15af56206a8d
7
+ data.tar.gz: 3370d2e9557aa8aea60d1e04741d9e48e992b1c3ca93e3ae4da3a6d71f70bf191d1e2142c725848384fdb8cf06e259124f27baaa9e6f8c09f84c9a3ca536e4d3
@@ -33,12 +33,12 @@ Metrics/LineLength:
33
33
  # Offense count: 32
34
34
  # Configuration parameters: CountComments.
35
35
  Metrics/MethodLength:
36
- Max: 54
36
+ Max: 55
37
37
 
38
38
  # Offense count: 1
39
39
  # Configuration parameters: CountComments.
40
40
  Metrics/ModuleLength:
41
- Max: 314
41
+ Max: 315
42
42
 
43
43
  # Offense count: 6
44
44
  # Configuration parameters: CountKeywordArgs.
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.19.0 - 2018-07-27
4
+ * [#666](https://github.com/stripe/stripe-ruby/pull/666) Add support for scheduled query runs (`Stripe::Sigma::ScheduledQueryRun`) for Sigma
5
+
3
6
  ## 3.18.0 - 2018-07-26
4
7
  * [#665](https://github.com/stripe/stripe-ruby/pull/665) Add support for Stripe Issuing
5
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.18.0
1
+ 3.19.0
@@ -62,8 +62,8 @@ require "stripe/invoice_line_item"
62
62
  require "stripe/issuer_fraud_record"
63
63
  require "stripe/issuing/authorization"
64
64
  require "stripe/issuing/card"
65
- require "stripe/issuing/cardholder"
66
65
  require "stripe/issuing/card_details"
66
+ require "stripe/issuing/cardholder"
67
67
  require "stripe/issuing/dispute"
68
68
  require "stripe/issuing/transaction"
69
69
  require "stripe/login_link"
@@ -77,6 +77,7 @@ require "stripe/recipient"
77
77
  require "stripe/recipient_transfer"
78
78
  require "stripe/refund"
79
79
  require "stripe/reversal"
80
+ require "stripe/sigma/scheduled_query_run"
80
81
  require "stripe/sku"
81
82
  require "stripe/source"
82
83
  require "stripe/source_transaction"
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stripe
4
+ module Sigma
5
+ class ScheduledQueryRun < Stripe::APIResource
6
+ extend Stripe::APIOperations::List
7
+
8
+ OBJECT_NAME = "scheduled_query_run".freeze
9
+
10
+ def self.resource_url
11
+ "/v1/sigma/scheduled_query_runs"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -45,57 +45,58 @@ module Stripe
45
45
  ListObject::OBJECT_NAME => ListObject,
46
46
 
47
47
  # business objects
48
- Account::OBJECT_NAME => Account,
49
- AlipayAccount::OBJECT_NAME => AlipayAccount,
50
- ApplePayDomain::OBJECT_NAME => ApplePayDomain,
51
- ApplicationFee::OBJECT_NAME => ApplicationFee,
52
- ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund,
53
- Balance::OBJECT_NAME => Balance,
54
- BalanceTransaction::OBJECT_NAME => BalanceTransaction,
55
- BankAccount::OBJECT_NAME => BankAccount,
56
- BitcoinReceiver::OBJECT_NAME => BitcoinReceiver,
57
- BitcoinTransaction::OBJECT_NAME => BitcoinTransaction,
58
- Card::OBJECT_NAME => Card,
59
- Charge::OBJECT_NAME => Charge,
60
- CountrySpec::OBJECT_NAME => CountrySpec,
61
- Coupon::OBJECT_NAME => Coupon,
62
- Customer::OBJECT_NAME => Customer,
63
- Dispute::OBJECT_NAME => Dispute,
64
- EphemeralKey::OBJECT_NAME => EphemeralKey,
65
- Event::OBJECT_NAME => Event,
66
- ExchangeRate::OBJECT_NAME => ExchangeRate,
67
- FileUpload::OBJECT_NAME => FileUpload,
68
- Invoice::OBJECT_NAME => Invoice,
69
- InvoiceItem::OBJECT_NAME => InvoiceItem,
70
- InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
71
- IssuerFraudRecord::OBJECT_NAME => IssuerFraudRecord,
72
- Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
73
- Issuing::Card::OBJECT_NAME => Issuing::Card,
74
- Issuing::CardDetails::OBJECT_NAME => Issuing::CardDetails,
75
- Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
76
- Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
77
- Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
78
- LoginLink::OBJECT_NAME => LoginLink,
79
- Order::OBJECT_NAME => Order,
80
- OrderReturn::OBJECT_NAME => OrderReturn,
81
- PaymentIntent::OBJECT_NAME => PaymentIntent,
82
- Payout::OBJECT_NAME => Payout,
83
- Plan::OBJECT_NAME => Plan,
84
- Product::OBJECT_NAME => Product,
85
- Recipient::OBJECT_NAME => Recipient,
86
- RecipientTransfer::OBJECT_NAME => RecipientTransfer,
87
- Refund::OBJECT_NAME => Refund,
88
- Reversal::OBJECT_NAME => Reversal,
89
- SKU::OBJECT_NAME => SKU,
90
- Source::OBJECT_NAME => Source,
91
- SourceTransaction::OBJECT_NAME => SourceTransaction,
92
- Subscription::OBJECT_NAME => Subscription,
93
- SubscriptionItem::OBJECT_NAME => SubscriptionItem,
94
- ThreeDSecure::OBJECT_NAME => ThreeDSecure,
95
- Token::OBJECT_NAME => Token,
96
- Topup::OBJECT_NAME => Topup,
97
- Transfer::OBJECT_NAME => Transfer,
98
- UsageRecord::OBJECT_NAME => UsageRecord,
48
+ Account::OBJECT_NAME => Account,
49
+ AlipayAccount::OBJECT_NAME => AlipayAccount,
50
+ ApplePayDomain::OBJECT_NAME => ApplePayDomain,
51
+ ApplicationFee::OBJECT_NAME => ApplicationFee,
52
+ ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund,
53
+ Balance::OBJECT_NAME => Balance,
54
+ BalanceTransaction::OBJECT_NAME => BalanceTransaction,
55
+ BankAccount::OBJECT_NAME => BankAccount,
56
+ BitcoinReceiver::OBJECT_NAME => BitcoinReceiver,
57
+ BitcoinTransaction::OBJECT_NAME => BitcoinTransaction,
58
+ Card::OBJECT_NAME => Card,
59
+ Charge::OBJECT_NAME => Charge,
60
+ CountrySpec::OBJECT_NAME => CountrySpec,
61
+ Coupon::OBJECT_NAME => Coupon,
62
+ Customer::OBJECT_NAME => Customer,
63
+ Dispute::OBJECT_NAME => Dispute,
64
+ EphemeralKey::OBJECT_NAME => EphemeralKey,
65
+ Event::OBJECT_NAME => Event,
66
+ ExchangeRate::OBJECT_NAME => ExchangeRate,
67
+ FileUpload::OBJECT_NAME => FileUpload,
68
+ Invoice::OBJECT_NAME => Invoice,
69
+ InvoiceItem::OBJECT_NAME => InvoiceItem,
70
+ InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
71
+ IssuerFraudRecord::OBJECT_NAME => IssuerFraudRecord,
72
+ Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
73
+ Issuing::Card::OBJECT_NAME => Issuing::Card,
74
+ Issuing::CardDetails::OBJECT_NAME => Issuing::CardDetails,
75
+ Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
76
+ Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
77
+ Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
78
+ LoginLink::OBJECT_NAME => LoginLink,
79
+ Order::OBJECT_NAME => Order,
80
+ OrderReturn::OBJECT_NAME => OrderReturn,
81
+ PaymentIntent::OBJECT_NAME => PaymentIntent,
82
+ Payout::OBJECT_NAME => Payout,
83
+ Plan::OBJECT_NAME => Plan,
84
+ Product::OBJECT_NAME => Product,
85
+ Recipient::OBJECT_NAME => Recipient,
86
+ RecipientTransfer::OBJECT_NAME => RecipientTransfer,
87
+ Refund::OBJECT_NAME => Refund,
88
+ Reversal::OBJECT_NAME => Reversal,
89
+ SKU::OBJECT_NAME => SKU,
90
+ Sigma::ScheduledQueryRun::OBJECT_NAME => Sigma::ScheduledQueryRun,
91
+ Source::OBJECT_NAME => Source,
92
+ SourceTransaction::OBJECT_NAME => SourceTransaction,
93
+ Subscription::OBJECT_NAME => Subscription,
94
+ SubscriptionItem::OBJECT_NAME => SubscriptionItem,
95
+ ThreeDSecure::OBJECT_NAME => ThreeDSecure,
96
+ Token::OBJECT_NAME => Token,
97
+ Topup::OBJECT_NAME => Topup,
98
+ Transfer::OBJECT_NAME => Transfer,
99
+ UsageRecord::OBJECT_NAME => UsageRecord,
99
100
  }
100
101
  end
101
102
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "3.18.0".freeze
4
+ VERSION = "3.19.0".freeze
5
5
  end
@@ -38,8 +38,6 @@ module Stripe
38
38
  OBJECT_NAME = "mainresource".freeze
39
39
  nested_resource_class_methods :nested,
40
40
  operations: %i[create retrieve update delete list]
41
-
42
- OBJECT_NAME = "mainresource".freeze
43
41
  end
44
42
 
45
43
  should "define a create method" do
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path("../../../test_helper", __FILE__)
4
+
5
+ module Stripe
6
+ module Issuing
7
+ class ScheduledQueryRunTest < Test::Unit::TestCase
8
+ should "be listable" do
9
+ stub_request(:get, "#{Stripe.api_base}/v1/sigma/scheduled_query_runs")
10
+ .to_return(body: JSON.generate(object: "list", data: [{ id: "sqr_123", object: "scheduled_query_run" }]))
11
+
12
+ runs = Stripe::Sigma::ScheduledQueryRun.list
13
+ assert_requested :get, "#{Stripe.api_base}/v1/sigma/scheduled_query_runs"
14
+ assert runs.data.is_a?(Array)
15
+ assert runs.data[0].is_a?(Stripe::Sigma::ScheduledQueryRun)
16
+ end
17
+
18
+ should "be retrievable" do
19
+ stub_request(:get, "#{Stripe.api_base}/v1/sigma/scheduled_query_runs/sqr_123")
20
+ .to_return(body: JSON.generate(id: "sqr_123", object: "scheduled_query_run"))
21
+ run = Stripe::Sigma::ScheduledQueryRun.retrieve("sqr_123")
22
+ assert_requested :get, "#{Stripe.api_base}/v1/sigma/scheduled_query_runs/sqr_123"
23
+ assert run.is_a?(Stripe::Sigma::ScheduledQueryRun)
24
+ end
25
+ end
26
+ end
27
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.18.0
4
+ version: 3.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-26 00:00:00.000000000 Z
11
+ date: 2018-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -100,6 +100,7 @@ files:
100
100
  - lib/stripe/recipient_transfer.rb
101
101
  - lib/stripe/refund.rb
102
102
  - lib/stripe/reversal.rb
103
+ - lib/stripe/sigma/scheduled_query_run.rb
103
104
  - lib/stripe/singleton_api_resource.rb
104
105
  - lib/stripe/sku.rb
105
106
  - lib/stripe/source.rb
@@ -163,6 +164,7 @@ files:
163
164
  - test/stripe/recipient_test.rb
164
165
  - test/stripe/refund_test.rb
165
166
  - test/stripe/reversal_test.rb
167
+ - test/stripe/sigma/scheduled_query_run_test.rb
166
168
  - test/stripe/sku_test.rb
167
169
  - test/stripe/source_test.rb
168
170
  - test/stripe/source_transaction_test.rb
@@ -251,6 +253,7 @@ test_files:
251
253
  - test/stripe/recipient_test.rb
252
254
  - test/stripe/refund_test.rb
253
255
  - test/stripe/reversal_test.rb
256
+ - test/stripe/sigma/scheduled_query_run_test.rb
254
257
  - test/stripe/sku_test.rb
255
258
  - test/stripe/source_test.rb
256
259
  - test/stripe/source_transaction_test.rb