mollie-api-ruby 4.0.0 → 4.0.1

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 (98) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop.yml +10 -0
  3. data/.rubocop_todo.yml +92 -0
  4. data/.travis.yml +3 -1
  5. data/CHANGELOG.md +1 -1
  6. data/Gemfile +1 -1
  7. data/Rakefile +1 -2
  8. data/bin/console +4 -4
  9. data/docs/migration_v2_2_x.md +1 -1
  10. data/docs/migration_v3_x.md +2 -2
  11. data/examples/chargebacks/get.rb +2 -2
  12. data/examples/customers/create-payment.rb +4 -4
  13. data/examples/customers/create.rb +3 -3
  14. data/examples/customers/delete.rb +1 -1
  15. data/examples/customers/get.rb +1 -1
  16. data/examples/customers/list-payments.rb +1 -1
  17. data/examples/customers/update.rb +2 -2
  18. data/examples/invoices/get.rb +1 -1
  19. data/examples/mandates/create.rb +7 -7
  20. data/examples/mandates/delete.rb +1 -1
  21. data/examples/mandates/get.rb +1 -1
  22. data/examples/mandates/list.rb +1 -1
  23. data/examples/methods/get.rb +2 -2
  24. data/examples/organisations/get.rb +1 -1
  25. data/examples/payments/delete.rb +1 -1
  26. data/examples/payments/get-customer.rb +1 -1
  27. data/examples/payments/get-mandate.rb +1 -1
  28. data/examples/payments/get-settlement.rb +1 -1
  29. data/examples/payments/get-subscription.rb +1 -1
  30. data/examples/payments/get.rb +1 -1
  31. data/examples/payments/webhook.rb +1 -1
  32. data/examples/permissions/get.rb +1 -1
  33. data/examples/profiles/create.rb +6 -6
  34. data/examples/profiles/delete.rb +1 -1
  35. data/examples/profiles/get.rb +1 -1
  36. data/examples/profiles/list-chargebacks.rb +1 -1
  37. data/examples/profiles/list-methods.rb +1 -1
  38. data/examples/profiles/list-payments.rb +1 -1
  39. data/examples/profiles/list-refunds.rb +1 -1
  40. data/examples/profiles/update.rb +3 -3
  41. data/examples/refunds/create.rb +3 -3
  42. data/examples/refunds/delete.rb +2 -2
  43. data/examples/refunds/get.rb +2 -2
  44. data/examples/settlements/get.rb +1 -1
  45. data/examples/settlements/list-chargebacks.rb +1 -1
  46. data/examples/settlements/list-payments.rb +1 -1
  47. data/examples/settlements/list-refunds.rb +1 -1
  48. data/examples/subscriptions/create.rb +5 -5
  49. data/examples/subscriptions/delete.rb +2 -2
  50. data/examples/subscriptions/get.rb +2 -2
  51. data/examples/subscriptions/list.rb +1 -1
  52. data/examples/subscriptions/update.rb +1 -1
  53. data/lib/cacert.pem +2 -26
  54. data/lib/mollie.rb +0 -1
  55. data/lib/mollie/amount.rb +1 -1
  56. data/lib/mollie/base.rb +8 -8
  57. data/lib/mollie/chargeback.rb +12 -6
  58. data/lib/mollie/client.rb +17 -17
  59. data/lib/mollie/customer/mandate.rb +10 -6
  60. data/lib/mollie/customer/subscription.rb +15 -7
  61. data/lib/mollie/exception.rb +1 -1
  62. data/lib/mollie/invoice.rb +14 -6
  63. data/lib/mollie/list.rb +9 -13
  64. data/lib/mollie/method.rb +15 -15
  65. data/lib/mollie/organization.rb +1 -1
  66. data/lib/mollie/payment.rb +36 -16
  67. data/lib/mollie/permission.rb +18 -17
  68. data/lib/mollie/profile.rb +11 -7
  69. data/lib/mollie/refund.rb +12 -8
  70. data/lib/mollie/settlement.rb +17 -9
  71. data/lib/mollie/util.rb +8 -8
  72. data/lib/mollie/version.rb +1 -1
  73. data/mollie-api-ruby.gemspec +5 -4
  74. data/test/helper.rb +1 -1
  75. data/test/mollie/amount_test.rb +1 -1
  76. data/test/mollie/base_test.rb +72 -72
  77. data/test/mollie/chargeback_test.rb +36 -37
  78. data/test/mollie/client_test.rb +49 -49
  79. data/test/mollie/customer/mandate_test.rb +40 -40
  80. data/test/mollie/customer/payment_test.rb +5 -6
  81. data/test/mollie/customer/subscription_test.rb +45 -45
  82. data/test/mollie/customer_test.rb +12 -12
  83. data/test/mollie/invoice_test.rb +29 -29
  84. data/test/mollie/list_test.rb +23 -23
  85. data/test/mollie/method_test.rb +8 -8
  86. data/test/mollie/organization_test.rb +9 -9
  87. data/test/mollie/payment/chargeback_test.rb +4 -4
  88. data/test/mollie/payment/refund_test.rb +4 -4
  89. data/test/mollie/payment_test.rb +111 -111
  90. data/test/mollie/profile_test.rb +41 -42
  91. data/test/mollie/refund_test.rb +39 -39
  92. data/test/mollie/settlement/chargeback_test.rb +4 -4
  93. data/test/mollie/settlement/payment_test.rb +5 -5
  94. data/test/mollie/settlement/refund_test.rb +4 -4
  95. data/test/mollie/settlement_test.rb +53 -53
  96. data/test/mollie/util_test.rb +9 -11
  97. data/test/run-test.rb +4 -4
  98. metadata +46 -30
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d2b2306f3e3c4a027d9b0eeca909f303ebe89be4
4
- data.tar.gz: 0ff02d85a7fc3608abccdf5ad76e7c53e4040c31
2
+ SHA256:
3
+ metadata.gz: dc0a692631f366a82801cfacbddd3a374feb23c4246cad015f5d5d28442bbe6f
4
+ data.tar.gz: 13bab05f6eee4826daaf8147e696fc1c5b8fd828a35e3dd56697ef756e97ac77
5
5
  SHA512:
6
- metadata.gz: 372a9ac1d7c37a4f0009210ca2afebf55b63d255ef548a2acaad85dec36ada88697d4460bca79daa5490d7b7722a2702c9bd7115af6b7e4cfeeb67a1f1bab28c
7
- data.tar.gz: ab9251c647ae11dddfa13bb064f5e36cedc08087e1840730fd89c9fd62798d6ba5b08dc3b244852e2ca9527cb76bd14a60134388b45ecd689258cab3313827ea
6
+ metadata.gz: 0eca2506d8f26e6de42661531956513f04292d59f87711ac8b26e584b9fd61d8c905bfaa68da20c96a7b2d08eedf8edfc955f7b9cc4658cbe3e663611f66bfde
7
+ data.tar.gz: 2d9c0f92e0349014398dae906afe85cc32ecf32d8a8c2fe739bbbae2d0ad85f8563bdc0b56f357e1f238cf1f0f4424f0d95c5110555d67f3d0b20e3b816b945d
@@ -0,0 +1,10 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ Lint/UselessAssignment:
4
+ Exclude:
5
+ - 'examples/**/*'
6
+
7
+ # Configuration parameters: AllowedVariables.
8
+ Style/GlobalVars:
9
+ Exclude:
10
+ - 'test/run-test.rb'
@@ -0,0 +1,92 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-08-19 13:42:13 +0200 using RuboCop version 0.58.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: Include.
11
+ # Include: **/*.gemspec
12
+ Gemspec/RequiredRubyVersion:
13
+ Exclude:
14
+ - 'mollie-api-ruby.gemspec'
15
+
16
+ # Offense count: 45
17
+ Lint/DuplicateMethods:
18
+ Exclude:
19
+ - 'lib/mollie/amount.rb'
20
+ - 'lib/mollie/chargeback.rb'
21
+ - 'lib/mollie/client.rb'
22
+ - 'lib/mollie/customer.rb'
23
+ - 'lib/mollie/customer/mandate.rb'
24
+ - 'lib/mollie/customer/subscription.rb'
25
+ - 'lib/mollie/invoice.rb'
26
+ - 'lib/mollie/organization.rb'
27
+ - 'lib/mollie/payment.rb'
28
+ - 'lib/mollie/profile.rb'
29
+ - 'lib/mollie/refund.rb'
30
+ - 'lib/mollie/settlement.rb'
31
+
32
+ # Offense count: 15
33
+ Metrics/AbcSize:
34
+ Max: 227
35
+
36
+ # Offense count: 7
37
+ # Configuration parameters: CountComments.
38
+ Metrics/ClassLength:
39
+ Max: 295
40
+
41
+ # Offense count: 1
42
+ Metrics/CyclomaticComplexity:
43
+ Max: 13
44
+
45
+ # Offense count: 37
46
+ # Configuration parameters: CountComments.
47
+ Metrics/MethodLength:
48
+ Max: 140
49
+
50
+ # Offense count: 1
51
+ Metrics/PerceivedComplexity:
52
+ Max: 10
53
+
54
+ # Offense count: 1
55
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
56
+ # AllowedNames: io, id, to, by, on, in, at
57
+ Naming/UncommunicativeMethodParamName:
58
+ Exclude:
59
+ - 'lib/mollie/client.rb'
60
+
61
+ # Offense count: 3
62
+ # Cop supports --auto-correct.
63
+ # Configuration parameters: EnforcedStyle.
64
+ # SupportedStyles: braces, no_braces, context_dependent
65
+ Style/BracesAroundHashParameters:
66
+ Exclude:
67
+ - 'test/mollie/client_test.rb'
68
+
69
+ # Offense count: 21
70
+ Style/Documentation:
71
+ Enabled: false
72
+
73
+ # Offense count: 2
74
+ Style/DoubleNegation:
75
+ Exclude:
76
+ - 'lib/mollie/base.rb'
77
+ - 'lib/mollie/chargeback.rb'
78
+
79
+ # Offense count: 4
80
+ # Cop supports --auto-correct.
81
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
82
+ # SupportedStyles: slashes, percent_r, mixed
83
+ Style/RegexpLiteral:
84
+ Exclude:
85
+ - 'lib/mollie/util.rb'
86
+ - 'test/mollie/client_test.rb'
87
+
88
+ # Offense count: 164
89
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
90
+ # URISchemes: http, https
91
+ Metrics/LineLength:
92
+ Max: 157
@@ -6,9 +6,11 @@ rvm:
6
6
  - 2.3.0
7
7
  matrix:
8
8
  deploy:
9
+ gem: mollie-api-ruby
9
10
  provider: rubygems
10
11
  api_key:
11
- secure: eBq3/esJILG/1rs9mYwD/6QEybpiElDihqRO6sPH17D9e+lMYVXsaBxrBQutWLB9i7V176mbN/z/VR/fHbj8/xDYEuKzTnFwaROZpckX0dmwp8SRdBA1Lleq/zeQwhjeOLSSAJBxZXTSJcKQ5YQaUvojVIh1ky+rAz20QxyYHV8=
12
+ secure: "JdYKjK+AZNNviyAW92ta16Kk/u1gLTyvUVjoiSrGchsMmx8pN107MERpn5klFzOTKcnmMn+h3eA0RzhsuA+eFBfd5X58kNlXzXzKzKvOKmjrH69jiUWAJ5PmepacvsKMCAovOOtkskFzifKUUkrkPv87KO1J97wsZ4ASX6q3MRs="
12
13
  on:
13
14
  tags: true
15
+ repo: mollie/mollie-api-ruby
14
16
  rvm: 2.3.0
@@ -7,7 +7,7 @@ All notable changes to this project will be documented in this file.
7
7
  #### 4.0 - 2018-07-23
8
8
 
9
9
  - Migrated to the v2 API
10
- Refer to the [migration guide](/docs/migration_v3_x.md) for a complete list of changes
10
+ - Refer to the [migration guide](/docs/migration_v3_x.md) for a complete list of changes
11
11
  - Dropped Ruby 2.0.0 support.
12
12
 
13
13
  #### 3.1.0 - ....
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
data/Rakefile CHANGED
@@ -1,6 +1,5 @@
1
1
  task default: %w[test]
2
2
 
3
3
  task :test do
4
- ruby "test/run-test.rb"
4
+ ruby 'test/run-test.rb'
5
5
  end
6
-
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "mollie"
3
+ require 'bundler/setup'
4
+ require 'mollie'
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -10,6 +10,6 @@ require "mollie"
10
10
  # require "pry"
11
11
  # Pry.start
12
12
 
13
- require "irb"
14
- require "pp"
13
+ require 'irb'
14
+ require 'pp'
15
15
  IRB.start(__FILE__)
@@ -50,7 +50,7 @@ Change the client calls to Resource calls
50
50
  #)
51
51
 
52
52
  payment = Mollie::Payment.create(
53
- amount: { amount: '10.00', currency: 'EUR' },
53
+ amount: { value: '10.00', currency: 'EUR' },
54
54
  description: 'My first API payment',
55
55
  redirect_url: 'https://webshop.example.org/order/12345/',
56
56
  webhook_url: 'https://webshop.example.org/mollie-webhook/'
@@ -1,7 +1,7 @@
1
1
  # Migration from v3.x
2
2
 
3
- Please refer to [Migrating from v1 to v2](https://docs.mollie.com/migrating-v1-to-v2)
4
- for a general overview of the switch to Mollie v2 API.
3
+ Version 4.x of the Ruby client uses the v2 Mollie API. Please refer to [Migrating from v1 to v2](https://docs.mollie.com/migrating-v1-to-v2)
4
+ for a general overview of the changes introduced by the new Mollie API.
5
5
 
6
6
  Code examples can be found in the [/examples](/examples) folder.
7
7
 
@@ -1,4 +1,4 @@
1
1
  chargeback = Mollie::Payment::Chargeback.get(
2
- "chb_n9z0tp",
3
- payment_id: "tr_7UhSN1zuXS"
2
+ 'chb_n9z0tp',
3
+ payment_id: 'tr_7UhSN1zuXS'
4
4
  )
@@ -1,6 +1,6 @@
1
1
  payment = Mollie::Customer::Payment.create(
2
- customer_id: "cst_8wmqcHMN4U",
3
- amount: { value: "10.00", currency: "EUR" },
4
- description: "First payment",
5
- redirect_url: "https://webshop.example.org/order/12345/"
2
+ customer_id: 'cst_8wmqcHMN4U',
3
+ amount: { value: '10.00', currency: 'EUR' },
4
+ description: 'First payment',
5
+ redirect_url: 'https://webshop.example.org/order/12345/'
6
6
  )
@@ -1,5 +1,5 @@
1
1
  customer = Mollie::Customer.create(
2
- name: "John",
3
- email: "john@example.com",
4
- locale: "en_US"
2
+ name: 'John',
3
+ email: 'john@example.com',
4
+ locale: 'en_US'
5
5
  )
@@ -1 +1 @@
1
- Mollie::Customer.delete("cst_8wmqcHMN4U")
1
+ Mollie::Customer.delete('cst_8wmqcHMN4U')
@@ -1 +1 @@
1
- customer = Mollie::Customer.get("cst_8wmqcHMN4U")
1
+ customer = Mollie::Customer.get('cst_8wmqcHMN4U')
@@ -1 +1 @@
1
- payments = Mollie::Customer::Payment.all(customer_id: "cst_8wmqcHMN4U")
1
+ payments = Mollie::Customer::Payment.all(customer_id: 'cst_8wmqcHMN4U')
@@ -1,4 +1,4 @@
1
1
  customer = Mollie::Customer.update(
2
- "cst_8wmqcHMN4U",
3
- email: "otherjohn@example.com"
2
+ 'cst_8wmqcHMN4U',
3
+ email: 'otherjohn@example.com'
4
4
  )
@@ -1 +1 @@
1
- invoice = Mollie::Invoice.get("inv_xBEbP9rvAq")
1
+ invoice = Mollie::Invoice.get('inv_xBEbP9rvAq')
@@ -1,9 +1,9 @@
1
1
  mandate = Mollie::Customer::Mandate.create(
2
- customer_id: "cst_4qqhO89gsT",
3
- method: "directdebit",
4
- consumer_name: "John Doe",
5
- consumer_account: "NL55INGB0000000000",
6
- consumer_bic: "INGBNL2A",
7
- signature_date: "2018-05-07",
8
- mandate_reference: "YOUR-COMPANY-MD13804",
2
+ customer_id: 'cst_4qqhO89gsT',
3
+ method: 'directdebit',
4
+ consumer_name: 'John Doe',
5
+ consumer_account: 'NL55INGB0000000000',
6
+ consumer_bic: 'INGBNL2A',
7
+ signature_date: '2018-05-07',
8
+ mandate_reference: 'YOUR-COMPANY-MD13804'
9
9
  )
@@ -1 +1 @@
1
- Mollie::Customer::Mandate.delete("mdt_h3gAaD5zP", customer_id: "cst_4qqhO89gsT")
1
+ Mollie::Customer::Mandate.delete('mdt_h3gAaD5zP', customer_id: 'cst_4qqhO89gsT')
@@ -1 +1 @@
1
- mandate = Mollie::Customer::Mandate.get("mdt_h3gAaD5zP", customer_id: "cst_4qqhO89gsT")
1
+ mandate = Mollie::Customer::Mandate.get('mdt_h3gAaD5zP', customer_id: 'cst_4qqhO89gsT')
@@ -1 +1 @@
1
- mandates = Mollie::Customer::Mandate.all(customer_id: "cst_4qqhO89gsT")
1
+ mandates = Mollie::Customer::Mandate.all(customer_id: 'cst_4qqhO89gsT')
@@ -1,4 +1,4 @@
1
- method = Mollie::Method.get("ideal")
1
+ method = Mollie::Method.get('ideal')
2
2
 
3
3
  # Include iDEAL issuers
4
- method = Mollie::Method.get("ideal", include: "issuers")
4
+ method = Mollie::Method.get('ideal', include: 'issuers')
@@ -1 +1 @@
1
- organization = Mollie::Organization.get("org_1234567")
1
+ organization = Mollie::Organization.get('org_1234567')
@@ -1 +1 @@
1
- Mollie::Payment.delete("tr_7UhSN1zuXS")
1
+ Mollie::Payment.delete('tr_7UhSN1zuXS')
@@ -1,2 +1,2 @@
1
- payment = Mollie::Payment.get("tr_7UhSN1zuXS")
1
+ payment = Mollie::Payment.get('tr_7UhSN1zuXS')
2
2
  customer = payment.customer
@@ -1,2 +1,2 @@
1
- payment = Mollie::Payment.get("tr_7UhSN1zuXS")
1
+ payment = Mollie::Payment.get('tr_7UhSN1zuXS')
2
2
  mandate = payment.mandate
@@ -1,2 +1,2 @@
1
- payment = Mollie::Payment.get("tr_7UhSN1zuXS")
1
+ payment = Mollie::Payment.get('tr_7UhSN1zuXS')
2
2
  settlement = payment.settlement
@@ -1,2 +1,2 @@
1
- payment = Mollie::Payment.get("tr_7UhSN1zuXS")
1
+ payment = Mollie::Payment.get('tr_7UhSN1zuXS')
2
2
  subscription = payment.subscription
@@ -1 +1 @@
1
- payment = Mollie::Payment.get("tr_7UhSN1zuXS")
1
+ payment = Mollie::Payment.get('tr_7UhSN1zuXS')
@@ -1,4 +1,4 @@
1
- payment = Mollie::Payment.get("tr_7UhSN1zuXS")
1
+ payment = Mollie::Payment.get('tr_7UhSN1zuXS')
2
2
 
3
3
  if payment.paid?
4
4
  #
@@ -1 +1 @@
1
- permission = Mollie::Permission.get("payments.read")
1
+ permission = Mollie::Permission.get('payments.read')
@@ -1,8 +1,8 @@
1
1
  profile = Mollie::Profile.create(
2
- name: "My website name",
3
- website: "https://www.mywebsite.com",
4
- email: "info@mywebsite.com",
5
- phone: "+31208202070",
6
- categoryCode: "5399",
7
- mode: "live"
2
+ name: 'My website name',
3
+ website: 'https://www.mywebsite.com',
4
+ email: 'info@mywebsite.com',
5
+ phone: '+31208202070',
6
+ categoryCode: '5399',
7
+ mode: 'live'
8
8
  )
@@ -1 +1 @@
1
- Mollie::Profile.delete("pfl_v9hTwCvYqw")
1
+ Mollie::Profile.delete('pfl_v9hTwCvYqw')
@@ -1 +1 @@
1
- profile = Mollie::Profile.get("pfl_v9hTwCvYqw")
1
+ profile = Mollie::Profile.get('pfl_v9hTwCvYqw')
@@ -1,2 +1,2 @@
1
- profile = Profile.get("pfl_v9hTwCvYqw")
1
+ profile = Profile.get('pfl_v9hTwCvYqw')
2
2
  chargebacks = profile.chargebacks
@@ -1,2 +1,2 @@
1
- profile = Profile.get("pfl_v9hTwCvYqw")
1
+ profile = Profile.get('pfl_v9hTwCvYqw')
2
2
  methods = profile.methods
@@ -1,2 +1,2 @@
1
- profile = Profile.get("pfl_v9hTwCvYqw")
1
+ profile = Profile.get('pfl_v9hTwCvYqw')
2
2
  payments = profile.payments
@@ -1,2 +1,2 @@
1
- profile = Profile.get("pfl_v9hTwCvYqw")
1
+ profile = Profile.get('pfl_v9hTwCvYqw')
2
2
  refunds = profile.refunds
@@ -1,5 +1,5 @@
1
1
  profile = Mollie::Profile.update(
2
- "pfl_v9hTwCvYqw",
3
- name: "My website name",
4
- website: "https://www.mywebsite.com"
2
+ 'pfl_v9hTwCvYqw',
3
+ name: 'My website name',
4
+ website: 'https://www.mywebsite.com'
5
5
  )
@@ -1,5 +1,5 @@
1
1
  refund = Mollie::Payment::Refund.create(
2
- payment_id: "tr_7UhSN1zuXS",
3
- amount: { value: "5.00", currency: "EUR" },
4
- description: "Did not like it"
2
+ payment_id: 'tr_7UhSN1zuXS',
3
+ amount: { value: '5.00', currency: 'EUR' },
4
+ description: 'Did not like it'
5
5
  )
@@ -1,4 +1,4 @@
1
1
  Mollie::Payment::Refund.delete(
2
- "re_4qqhO89gsT",
3
- payment_id: "tr_7UhSN1zuXS"
2
+ 're_4qqhO89gsT',
3
+ payment_id: 'tr_7UhSN1zuXS'
4
4
  )
@@ -1,4 +1,4 @@
1
1
  refund = Mollie::Payment::Refund.get(
2
- "re_4qqhO89gsT",
3
- payment_id: "tr_7UhSN1zuXS"
2
+ 're_4qqhO89gsT',
3
+ payment_id: 'tr_7UhSN1zuXS'
4
4
  )
@@ -1 +1 @@
1
- settlement = Mollie::Settlement.get("stl_jDk30akdN")
1
+ settlement = Mollie::Settlement.get('stl_jDk30akdN')
@@ -1 +1 @@
1
- chargebacks = Mollie::Settlement::Chargeback.all(settlement_id: "stl_jDk30akdN")
1
+ chargebacks = Mollie::Settlement::Chargeback.all(settlement_id: 'stl_jDk30akdN')
@@ -1 +1 @@
1
- payments = Mollie::Settlement::Payment.all(settlement_id: "stl_jDk30akdN")
1
+ payments = Mollie::Settlement::Payment.all(settlement_id: 'stl_jDk30akdN')
@@ -1 +1 @@
1
- refunds = Mollie::Settlement::Refund.all(settlement_id: "stl_jDk30akdN")
1
+ refunds = Mollie::Settlement::Refund.all(settlement_id: 'stl_jDk30akdN')
@@ -1,8 +1,8 @@
1
1
  subscription = Mollie::Customer::Subscription.create(
2
- customer_id: "cst_5a2pPrwaWy",
3
- amount: { value: "20.00", currency: "EUR" },
2
+ customer_id: 'cst_5a2pPrwaWy',
3
+ amount: { value: '20.00', currency: 'EUR' },
4
4
  times: 4,
5
- interval: "3 months",
6
- description: "Quarterly payment",
7
- webhook_url: "https://webshop.example.org/payments/webhook/"
5
+ interval: '3 months',
6
+ description: 'Quarterly payment',
7
+ webhook_url: 'https://webshop.example.org/payments/webhook/'
8
8
  )
@@ -1,4 +1,4 @@
1
1
  Mollie::Customer::Subscription.delete(
2
- "sub_rVKGtNd6s3",
3
- customer_id: "cst_5a2pPrwaWy"
2
+ 'sub_rVKGtNd6s3',
3
+ customer_id: 'cst_5a2pPrwaWy'
4
4
  )