• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

code-corps / stripity_stripe / 1712 / 6
91%
master: 91%

Build:
DEFAULT BRANCH: master
Ran 10 May 2021 01:04PM UTC
Files 83
Run time 19s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 May 2021 12:50PM UTC coverage: 90.712%. Remained the same
STRIPE_MOCK_VERSION=0.95.0 MIX_ENV=test STRIPE_SECRET_KEY=non_empty_secret_key_string

push

travis-ci

web-flow
Remove :customer from typespec in CustomerBalanceTransaction.create (#662)

It's invalid to pass the `customer` key as both part of the URL (which
this function does) *and* in the body. Doing so leads to a Stripe
error:

```
iex(1)> Stripe.CustomerBalanceTransaction.create("cus_JO4D6sa5xl4Uk7", %{amount: -100, currency: "USD", customer: "cus_JO4D6sa5x
l4Uk7"})
{:error,
 %Stripe.Error{
   code: :invalid_request_error,
   extra: %{
     http_status: 400,
     param: :customer,
     raw_error: %{
       "message" => "A parameter provided in the URL (customer) was repeated as a GET or POST parameter. You can only provide this information as a portion of the URL.",
       "param" => "customer",
       "type" => "invalid_request_error"
     }
   },
   message: "A parameter provided in the URL (customer) was repeated as a GET or POST parameter. You can only provide this information as a portion of the URL.",
   request_id: nil,
   source: :stripe,
   user_message: nil
 }}
```

Whereas passing it as the first (required) positional argument works
fine:

```
iex(2)> Stripe.CustomerBalanceTransaction.create("cus_JO4D6sa5xl4Uk7", %{amount: -100, currency: "USD"})
{:ok,
 %Stripe.CustomerBalanceTransaction{
   amount: -100,
   created: 1619635421,
   credit_note: nil,
   currency: "usd",
   customer: "cus_JO4D6sa5xl4Uk7",
   description: nil,
   ending_balance: -100,
   id: "cbtxn_1IlIMLFvgMYR2X5ykmdTnR5H",
   invoice: nil,
   livemode: false,
   metadata: %{},
   object: "customer_balance_transaction",
   type: "adjustment"
 }}
```

713 of 786 relevant lines covered (90.71%)

149.97 hits per line

Source Files on job 1712.6 (STRIPE_MOCK_VERSION=0.95.0 MIX_ENV=test STRIPE_SECRET_KEY=non_empty_secret_key_string)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1635
  • Travis Job 1712.6
  • 30061d78 on github
  • Prev Job for STRIPE_MOCK_VERSION=0.95.0 MIX_ENV=test STRIPE_SECRET_KEY=non_empty_secret_key_string on master (#1706.1)
  • Next Job for STRIPE_MOCK_VERSION=0.95.0 MIX_ENV=test STRIPE_SECRET_KEY=non_empty_secret_key_string on master (#1715.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc