pingram 1.0.40 → 1.0.41

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 (220) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/lib/pingram/api/account_api.rb +191 -4
  4. data/lib/pingram/api/webhooks_api.rb +6 -6
  5. data/lib/pingram/api_client.rb +1 -1
  6. data/lib/pingram/models/account_get_response_billing_alerts.rb +1 -1
  7. data/lib/pingram/models/account_payment_methods.rb +214 -0
  8. data/lib/pingram/models/account_payment_methods_payment_methods_inner.rb +270 -0
  9. data/lib/pingram/models/assign_payment_method_request.rb +216 -0
  10. data/lib/pingram/models/billing_post_response_body.rb +1 -1
  11. data/lib/pingram/models/confirm_change_email_request.rb +14 -4
  12. data/lib/pingram/models/confirm_change_email_response.rb +192 -0
  13. data/lib/pingram/models/confirm_password_change_request.rb +191 -0
  14. data/lib/pingram/models/create_payment_method_setup_request.rb +191 -0
  15. data/lib/pingram/models/list_invoices_response_invoices_inner.rb +1 -1
  16. data/lib/pingram/models/logs_get_response_logs_inner.rb +10 -1
  17. data/lib/pingram/models/password_status_response.rb +195 -0
  18. data/lib/pingram/models/payment_method_setup.rb +191 -0
  19. data/lib/pingram/models/sign_in_username_request.rb +164 -0
  20. data/lib/pingram/models/sign_in_username_response.rb +165 -0
  21. data/lib/pingram/models/start_change_email_request.rb +13 -20
  22. data/lib/pingram/models/start_password_change_request.rb +185 -0
  23. data/lib/pingram/models/webhook_endpoint.rb +14 -5
  24. data/lib/pingram/models/webhook_endpoint_basic_auth.rb +193 -0
  25. data/lib/pingram/models/webhook_endpoint_upsert_request.rb +15 -5
  26. data/lib/pingram/models/webhook_endpoint_upsert_request_basic_auth.rb +176 -0
  27. data/lib/pingram/models/webhook_endpoints_response_endpoints_inner.rb +14 -5
  28. data/lib/pingram/version.rb +1 -1
  29. data/lib/pingram.rb +13 -0
  30. data/vendor/bundle/ruby/3.2.0/cache/ethon-0.19.1.gem +0 -0
  31. data/vendor/bundle/ruby/3.2.0/cache/io-console-0.9.5.gem +0 -0
  32. data/vendor/bundle/ruby/3.2.0/cache/typhoeus-1.7.1.gem +0 -0
  33. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
  34. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.6.0/gem_make.out +5 -5
  35. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.9.4 → io-console-0.9.5}/gem_make.out +10 -10
  36. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.5/io/console.so +0 -0
  37. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.9.4 → io-console-0.9.5}/mkmf.log +6 -6
  38. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  39. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.5.0/gem_make.out +5 -5
  40. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  41. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
  42. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/CHANGELOG.md +1120 -0
  43. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/README.md +261 -0
  44. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curl.rb +22 -0
  45. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/classes.rb +337 -0
  46. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curls/codes.rb +28 -9
  47. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curls/constants.rb +61 -4
  48. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curls/form_options.rb +2 -1
  49. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/functions.rb +107 -0
  50. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curls/infos.rb +104 -5
  51. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/introspection.rb +139 -0
  52. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/introspection_constants.rb +42 -0
  53. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/mime.rb +187 -0
  54. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/optional.rb +14 -0
  55. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curls/options.rb +298 -71
  56. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/settings.rb +21 -0
  57. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/share.rb +165 -0
  58. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/share_constants.rb +47 -0
  59. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/url.rb +171 -0
  60. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/curls/url_constants.rb +78 -0
  61. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/callbacks.rb +281 -0
  62. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/features.rb +4 -1
  63. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/files.rb +113 -0
  64. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/form.rb +65 -6
  65. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/header.rb +103 -0
  66. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/headers_api.rb +79 -0
  67. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/actionable.rb +25 -3
  68. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/get.rb +5 -1
  69. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/post.rb +1 -0
  70. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/postable.rb +9 -2
  71. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/http/putable.rb +40 -0
  72. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http.rb +16 -4
  73. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/informations.rb +51 -2
  74. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/mime.rb +29 -0
  75. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/mirror.rb +49 -0
  76. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/operations.rb +317 -0
  77. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/options.rb +369 -0
  78. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/queryable.rb +59 -14
  79. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/response_callbacks.rb +33 -12
  80. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/share.rb +28 -0
  81. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/url.rb +32 -0
  82. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/util.rb +47 -0
  83. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy.rb +185 -10
  84. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/fork_safety.rb +10 -0
  85. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/form_add.rb +12 -0
  86. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/global_init.rb +1 -1
  87. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/header.rb +12 -0
  88. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/invalid_option.rb +3 -1
  89. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/invalid_value.rb +15 -0
  90. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/mime.rb +17 -0
  91. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/multi_add.rb +1 -1
  92. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/multi_assign.rb +12 -0
  93. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/multi_fdset.rb +1 -1
  94. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/multi_perform.rb +12 -0
  95. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/multi_poll.rb +12 -0
  96. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/multi_remove.rb +1 -1
  97. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/multi_timeout.rb +2 -2
  98. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/multi_wait.rb +12 -0
  99. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/multi_wakeup.rb +12 -0
  100. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/select.rb +1 -1
  101. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/set_option.rb +27 -0
  102. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/share.rb +17 -0
  103. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/unsupported_option.rb +23 -0
  104. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/url.rb +17 -0
  105. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors.rb +13 -0
  106. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/libc.rb +50 -0
  107. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/loggable.rb +1 -1
  108. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/multi/operations.rb +472 -0
  109. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/multi/options.rb +219 -0
  110. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/multi/stack.rb +220 -0
  111. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/multi.rb +51 -15
  112. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/version.rb +1 -1
  113. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon.rb +8 -9
  114. data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/ext/io/console/console.c +8 -3
  115. data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/ext/io/console/extconf.rb +7 -3
  116. data/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.5/lib/io/console.so +0 -0
  117. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/CHANGELOG.md +228 -1
  118. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/README.md +766 -0
  119. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/UPGRADE.md +29 -0
  120. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/rack/typhoeus/middleware/params_decoder/helper.rb +129 -0
  121. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/rack/typhoeus/middleware/params_decoder.rb +8 -19
  122. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/rack/typhoeus.rb +2 -0
  123. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/adapters/faraday.rb +89 -28
  124. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/cache/dalli.rb +2 -0
  125. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/cache/rails.rb +3 -1
  126. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/cache/redis.rb +2 -0
  127. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/config.rb +51 -7
  128. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/easy_factory.rb +129 -23
  129. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus/errors/invalid_option.rb +23 -0
  130. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus/errors/no_response.rb +18 -0
  131. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/errors/no_stub.rb +8 -1
  132. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/errors/typhoeus_error.rb +2 -0
  133. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/errors.rb +4 -0
  134. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/expectation.rb +33 -1
  135. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/hydra/queueable.rb +29 -4
  136. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus/hydra.rb +423 -0
  137. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus/pool.rb +133 -0
  138. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/railtie.rb +4 -2
  139. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/request/actions.rb +2 -0
  140. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/request/callbacks.rb +11 -4
  141. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/request/marshal.rb +5 -2
  142. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/request/streamable.rb +2 -0
  143. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus/request.rb +510 -0
  144. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/response/cacheable.rb +2 -0
  145. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus/response/header.rb +325 -0
  146. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/response/informations.rb +75 -12
  147. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/response/status.rb +4 -13
  148. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/response.rb +35 -0
  149. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/lib/typhoeus/version.rb +3 -1
  150. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.7.1/lib/typhoeus.rb +206 -0
  151. data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/typhoeus.gemspec +15 -3
  152. data/vendor/bundle/ruby/3.2.0/specifications/{ethon-0.18.0.gemspec → ethon-0.19.1.gemspec} +4 -4
  153. data/vendor/bundle/ruby/3.2.0/specifications/{io-console-0.9.4.gemspec → io-console-0.9.5.gemspec} +3 -3
  154. data/vendor/bundle/ruby/3.2.0/specifications/{typhoeus-1.6.0.gemspec → typhoeus-1.7.1.gemspec} +5 -5
  155. metadata +156 -129
  156. data/vendor/bundle/ruby/3.2.0/cache/ethon-0.18.0.gem +0 -0
  157. data/vendor/bundle/ruby/3.2.0/cache/io-console-0.9.4.gem +0 -0
  158. data/vendor/bundle/ruby/3.2.0/cache/typhoeus-1.6.0.gem +0 -0
  159. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.4/io/console.so +0 -0
  160. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/CHANGELOG.md +0 -417
  161. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/README.md +0 -118
  162. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/curls/classes.rb +0 -65
  163. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/curls/functions.rb +0 -58
  164. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/curls/settings.rb +0 -12
  165. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/callbacks.rb +0 -155
  166. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/header.rb +0 -61
  167. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/http/putable.rb +0 -25
  168. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/mirror.rb +0 -36
  169. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/operations.rb +0 -64
  170. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/options.rb +0 -50
  171. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/easy/util.rb +0 -28
  172. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/errors/invalid_value.rb +0 -13
  173. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/libc.rb +0 -21
  174. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/multi/operations.rb +0 -228
  175. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/multi/options.rb +0 -117
  176. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.18.0/lib/ethon/multi/stack.rb +0 -49
  177. data/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.4/lib/io/console.so +0 -0
  178. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/README.md +0 -588
  179. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/rack/typhoeus/middleware/params_decoder/helper.rb +0 -76
  180. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/addable.rb +0 -23
  181. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/before.rb +0 -31
  182. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/block_connection.rb +0 -35
  183. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/cacheable.rb +0 -15
  184. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/memoizable.rb +0 -56
  185. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/runnable.rb +0 -19
  186. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra/stubbable.rb +0 -28
  187. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/hydra.rb +0 -95
  188. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/pool.rb +0 -70
  189. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/before.rb +0 -30
  190. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/block_connection.rb +0 -52
  191. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/cacheable.rb +0 -38
  192. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/memoizable.rb +0 -38
  193. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/operations.rb +0 -40
  194. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/responseable.rb +0 -29
  195. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request/stubbable.rb +0 -30
  196. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/request.rb +0 -223
  197. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus/response/header.rb +0 -105
  198. data/vendor/bundle/ruby/3.2.0/gems/typhoeus-1.6.0/lib/typhoeus.rb +0 -143
  199. /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{io-console-0.9.4 → io-console-0.9.5}/gem.build_complete +0 -0
  200. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/LICENSE +0 -0
  201. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/ethon.gemspec +0 -0
  202. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/curls/messages.rb +0 -0
  203. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/debug_info.rb +0 -0
  204. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/custom.rb +0 -0
  205. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/delete.rb +0 -0
  206. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/head.rb +0 -0
  207. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/options.rb +0 -0
  208. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/patch.rb +0 -0
  209. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/http/put.rb +0 -0
  210. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/easy/params.rb +0 -0
  211. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.18.0 → ethon-0.19.1}/lib/ethon/errors/ethon_error.rb +0 -0
  212. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/.document +0 -0
  213. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/BSDL +0 -0
  214. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/COPYING +0 -0
  215. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/README.md +0 -0
  216. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/ext/io/console/Makefile +0 -0
  217. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/ext/io/console/win32_vk.inc +0 -0
  218. /data/vendor/bundle/ruby/3.2.0/gems/{io-console-0.9.4 → io-console-0.9.5}/lib/io/console/size.rb +0 -0
  219. /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/CONTRIBUTING.md +0 -0
  220. /data/vendor/bundle/ruby/3.2.0/gems/{typhoeus-1.6.0 → typhoeus-1.7.1}/LICENSE +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7c189f4dbe0fee0a6ddf00f29993eab2e143d2774bf4e4ae01e8893f8bfddb0
4
- data.tar.gz: dee219ada2ba149b315d48721fe0c1b6790695eaf9834fb4a14a0d3dc4d49117
3
+ metadata.gz: 96020c2930ababd33d300af1ab7e6efcc62cd1deec198f65ac0fcdc5773bcb2e
4
+ data.tar.gz: c32d5e5cc0b0be6d4ded2234a714f04b2e1eb9621ac2a21e7f2ba598c409dbad
5
5
  SHA512:
6
- metadata.gz: da6ddc9a3ba80763a51fc6ac96e7fc5fba3f4cb31cb578f4fa3671e31964d30dc2b39b8c766fde6bf186053794bf9bd27b5e35bd5c94ccf2435816aa2d8833d3
7
- data.tar.gz: e0951e381c394c431113e93d2f6cf92f6c22a750af10e260d618a615787b005b3ae5a7c10cda41bc8474bf1f6bcd9dedf88f63426de8cb49774e6153a265440c
6
+ metadata.gz: dfb598f8343edb6313a30d99a1383b4472b1fd4a1658d0ae67d1dcd25d353446f1ff8020816fb3ac2a336f365e3457a1f00653241e3893cb2fb2e65d56fdba02
7
+ data.tar.gz: 675786c9718be4a7cd039cb0543f4ce67b8de527e3afae67b6afca4db279d38d86cb712cdf96399f427ea2eecf82d80e6675de3f010a6b5a3a9c40ecf01c53ac
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pingram (1.0.40)
4
+ pingram (1.0.41)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -13,11 +13,11 @@ GEM
13
13
  coderay (1.1.3)
14
14
  date (3.6.0)
15
15
  diff-lcs (1.6.2)
16
- ethon (0.18.0)
16
+ ethon (0.19.1)
17
17
  ffi (>= 1.15.0)
18
18
  logger
19
19
  ffi (1.17.4-x86_64-linux-gnu)
20
- io-console (0.9.4)
20
+ io-console (0.9.5)
21
21
  jaro_winkler (1.5.6)
22
22
  logger (1.7.0)
23
23
  method_source (1.1.0)
@@ -63,8 +63,8 @@ GEM
63
63
  unicode-display_width (>= 1.4.0, < 1.6)
64
64
  ruby-progressbar (1.13.0)
65
65
  stringio (3.2.0)
66
- typhoeus (1.6.0)
67
- ethon (>= 0.18.0)
66
+ typhoeus (1.7.1)
67
+ ethon (>= 0.19.1, < 0.20.0)
68
68
  unicode-display_width (1.5.0)
69
69
 
70
70
  PLATFORMS
@@ -19,6 +19,72 @@ module Pingram
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
23
+ # @param assign_payment_method_request [AssignPaymentMethodRequest]
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [AccountPaymentMethods]
26
+ def account_assign_payment_method(assign_payment_method_request, opts = {})
27
+ data, _status_code, _headers = account_assign_payment_method_with_http_info(assign_payment_method_request, opts)
28
+ data
29
+ end
30
+
31
+ # Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
32
+ # @param assign_payment_method_request [AssignPaymentMethodRequest]
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(AccountPaymentMethods, Integer, Hash)>] AccountPaymentMethods data, response status code and response headers
35
+ def account_assign_payment_method_with_http_info(assign_payment_method_request, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: AccountApi.account_assign_payment_method ...'
38
+ end
39
+ # verify the required parameter 'assign_payment_method_request' is set
40
+ if @api_client.config.client_side_validation && assign_payment_method_request.nil?
41
+ fail ArgumentError, "Missing the required parameter 'assign_payment_method_request' when calling AccountApi.account_assign_payment_method"
42
+ end
43
+ # resource path
44
+ local_var_path = '/account/payment-methods/assign'
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
53
+ # HTTP header 'Content-Type'
54
+ content_type = @api_client.select_header_content_type(['application/json'])
55
+ if !content_type.nil?
56
+ header_params['Content-Type'] = content_type
57
+ end
58
+
59
+ # form parameters
60
+ form_params = opts[:form_params] || {}
61
+
62
+ # http body (model)
63
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(assign_payment_method_request)
64
+
65
+ # return_type
66
+ return_type = opts[:debug_return_type] || 'AccountPaymentMethods'
67
+
68
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
69
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
70
+
71
+ new_options = opts.merge(
72
+ :operation => :"AccountApi.account_assign_payment_method",
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => return_type
79
+ )
80
+
81
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: AccountApi#account_assign_payment_method\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+
22
88
  # Cancel the paid plan at the end of the current billing cycle. Access continues until then.
23
89
  # @param cancel_subscription_request [CancelSubscriptionRequest]
24
90
  # @param [Hash] opts the optional parameters
@@ -151,6 +217,72 @@ module Pingram
151
217
  return data, status_code, headers
152
218
  end
153
219
 
220
+ # Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
221
+ # @param create_payment_method_setup_request [CreatePaymentMethodSetupRequest]
222
+ # @param [Hash] opts the optional parameters
223
+ # @return [PaymentMethodSetup]
224
+ def account_create_payment_method_setup(create_payment_method_setup_request, opts = {})
225
+ data, _status_code, _headers = account_create_payment_method_setup_with_http_info(create_payment_method_setup_request, opts)
226
+ data
227
+ end
228
+
229
+ # Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
230
+ # @param create_payment_method_setup_request [CreatePaymentMethodSetupRequest]
231
+ # @param [Hash] opts the optional parameters
232
+ # @return [Array<(PaymentMethodSetup, Integer, Hash)>] PaymentMethodSetup data, response status code and response headers
233
+ def account_create_payment_method_setup_with_http_info(create_payment_method_setup_request, opts = {})
234
+ if @api_client.config.debugging
235
+ @api_client.config.logger.debug 'Calling API: AccountApi.account_create_payment_method_setup ...'
236
+ end
237
+ # verify the required parameter 'create_payment_method_setup_request' is set
238
+ if @api_client.config.client_side_validation && create_payment_method_setup_request.nil?
239
+ fail ArgumentError, "Missing the required parameter 'create_payment_method_setup_request' when calling AccountApi.account_create_payment_method_setup"
240
+ end
241
+ # resource path
242
+ local_var_path = '/account/payment-methods/setup'
243
+
244
+ # query parameters
245
+ query_params = opts[:query_params] || {}
246
+
247
+ # header parameters
248
+ header_params = opts[:header_params] || {}
249
+ # HTTP header 'Accept' (if needed)
250
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
251
+ # HTTP header 'Content-Type'
252
+ content_type = @api_client.select_header_content_type(['application/json'])
253
+ if !content_type.nil?
254
+ header_params['Content-Type'] = content_type
255
+ end
256
+
257
+ # form parameters
258
+ form_params = opts[:form_params] || {}
259
+
260
+ # http body (model)
261
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_payment_method_setup_request)
262
+
263
+ # return_type
264
+ return_type = opts[:debug_return_type] || 'PaymentMethodSetup'
265
+
266
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
267
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
268
+
269
+ new_options = opts.merge(
270
+ :operation => :"AccountApi.account_create_payment_method_setup",
271
+ :header_params => header_params,
272
+ :query_params => query_params,
273
+ :form_params => form_params,
274
+ :body => post_body,
275
+ :auth_names => auth_names,
276
+ :return_type => return_type
277
+ )
278
+
279
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
280
+ if @api_client.config.debugging
281
+ @api_client.config.logger.debug "API called: AccountApi#account_create_payment_method_setup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
282
+ end
283
+ return data, status_code, headers
284
+ end
285
+
154
286
  # Get account information for the authenticated account
155
287
  # @param [Hash] opts the optional parameters
156
288
  # @return [AccountGetResponse]
@@ -443,7 +575,7 @@ module Pingram
443
575
  return data, status_code, headers
444
576
  end
445
577
 
446
- # List Stripe invoices for the authenticated account, newest first.
578
+ # List invoices for this account, newest first.
447
579
  # @param [Hash] opts the optional parameters
448
580
  # @option opts [Float] :limit Max invoices to return (1-100, default 10)
449
581
  # @option opts [String] :starting_after Pagination cursor (invoice id from a previous response)
@@ -456,7 +588,7 @@ module Pingram
456
588
  data
457
589
  end
458
590
 
459
- # List Stripe invoices for the authenticated account, newest first.
591
+ # List invoices for this account, newest first.
460
592
  # @param [Hash] opts the optional parameters
461
593
  # @option opts [Float] :limit Max invoices to return (1-100, default 10)
462
594
  # @option opts [String] :starting_after Pagination cursor (invoice id from a previous response)
@@ -513,6 +645,61 @@ module Pingram
513
645
  return data, status_code, headers
514
646
  end
515
647
 
648
+ # List saved cards. Only the account owner can call this.
649
+ # @param [Hash] opts the optional parameters
650
+ # @return [AccountPaymentMethods]
651
+ def account_list_payment_methods(opts = {})
652
+ data, _status_code, _headers = account_list_payment_methods_with_http_info(opts)
653
+ data
654
+ end
655
+
656
+ # List saved cards. Only the account owner can call this.
657
+ # @param [Hash] opts the optional parameters
658
+ # @return [Array<(AccountPaymentMethods, Integer, Hash)>] AccountPaymentMethods data, response status code and response headers
659
+ def account_list_payment_methods_with_http_info(opts = {})
660
+ if @api_client.config.debugging
661
+ @api_client.config.logger.debug 'Calling API: AccountApi.account_list_payment_methods ...'
662
+ end
663
+ # resource path
664
+ local_var_path = '/account/payment-methods'
665
+
666
+ # query parameters
667
+ query_params = opts[:query_params] || {}
668
+
669
+ # header parameters
670
+ header_params = opts[:header_params] || {}
671
+ # HTTP header 'Accept' (if needed)
672
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
673
+
674
+ # form parameters
675
+ form_params = opts[:form_params] || {}
676
+
677
+ # http body (model)
678
+ post_body = opts[:debug_body]
679
+
680
+ # return_type
681
+ return_type = opts[:debug_return_type] || 'AccountPaymentMethods'
682
+
683
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
684
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
685
+
686
+ new_options = opts.merge(
687
+ :operation => :"AccountApi.account_list_payment_methods",
688
+ :header_params => header_params,
689
+ :query_params => query_params,
690
+ :form_params => form_params,
691
+ :body => post_body,
692
+ :auth_names => auth_names,
693
+ :return_type => return_type
694
+ )
695
+
696
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
697
+ if @api_client.config.debugging
698
+ @api_client.config.logger.debug "API called: AccountApi#account_list_payment_methods\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
699
+ end
700
+ return data, status_code, headers
701
+ end
702
+
516
703
  # List Supabase projects for the connected account
517
704
  # @param [Hash] opts the optional parameters
518
705
  # @return [SupabaseProjectsResponse]
@@ -568,7 +755,7 @@ module Pingram
568
755
  return data, status_code, headers
569
756
  end
570
757
 
571
- # Get or create Stripe customer and optionally create checkout session
758
+ # Start or continue billing for this account. Returns a URL when payment is needed.
572
759
  # @param billing_post_request_body [BillingPostRequestBody]
573
760
  # @param [Hash] opts the optional parameters
574
761
  # @return [BillingPostResponseBody]
@@ -577,7 +764,7 @@ module Pingram
577
764
  data
578
765
  end
579
766
 
580
- # Get or create Stripe customer and optionally create checkout session
767
+ # Start or continue billing for this account. Returns a URL when payment is needed.
581
768
  # @param billing_post_request_body [BillingPostRequestBody]
582
769
  # @param [Hash] opts the optional parameters
583
770
  # @return [Array<(BillingPostResponseBody, Integer, Hash)>] BillingPostResponseBody data, response status code and response headers
@@ -19,7 +19,7 @@ module Pingram
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
22
+ # Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx. Optional basic auth is sent as an Authorization header. Put it in basicAuth or in the URL, not both. The password is not returned.
23
23
  # @param webhook_endpoint_upsert_request [WebhookEndpointUpsertRequest]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [WebhookEndpoint]
@@ -28,7 +28,7 @@ module Pingram
28
28
  data
29
29
  end
30
30
 
31
- # Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
31
+ # Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx. Optional basic auth is sent as an Authorization header. Put it in basicAuth or in the URL, not both. The password is not returned.
32
32
  # @param webhook_endpoint_upsert_request [WebhookEndpointUpsertRequest]
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(WebhookEndpoint, Integer, Hash)>] WebhookEndpoint data, response status code and response headers
@@ -146,7 +146,7 @@ module Pingram
146
146
  return data, status_code, headers
147
147
  end
148
148
 
149
- # List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. Use the id with update or delete.
149
+ # List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. When basic auth is saved, username is returned and passwordSet is true. The password is not returned. Use the id with update or delete.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @return [WebhookEndpointsResponse]
152
152
  def webhooks_list_webhooks(opts = {})
@@ -154,7 +154,7 @@ module Pingram
154
154
  data
155
155
  end
156
156
 
157
- # List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. Use the id with update or delete.
157
+ # List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. When basic auth is saved, username is returned and passwordSet is true. The password is not returned. Use the id with update or delete.
158
158
  # @param [Hash] opts the optional parameters
159
159
  # @return [Array<(WebhookEndpointsResponse, Integer, Hash)>] WebhookEndpointsResponse data, response status code and response headers
160
160
  def webhooks_list_webhooks_with_http_info(opts = {})
@@ -201,7 +201,7 @@ module Pingram
201
201
  return data, status_code, headers
202
202
  end
203
203
 
204
- # Replace one webhook endpoint's URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL.
204
+ # Replace one webhook endpoint's URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL. Omit basicAuth to keep stored credentials. null removes them. Omit the password to keep the stored password. The password is not returned.
205
205
  # @param endpoint_id [String] Id of the webhook endpoint, from list or create.
206
206
  # @param webhook_endpoint_upsert_request [WebhookEndpointUpsertRequest]
207
207
  # @param [Hash] opts the optional parameters
@@ -211,7 +211,7 @@ module Pingram
211
211
  data
212
212
  end
213
213
 
214
- # Replace one webhook endpoint&#39;s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL.
214
+ # Replace one webhook endpoint&#39;s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL. Omit basicAuth to keep stored credentials. null removes them. Omit the password to keep the stored password. The password is not returned.
215
215
  # @param endpoint_id [String] Id of the webhook endpoint, from list or create.
216
216
  # @param webhook_endpoint_upsert_request [WebhookEndpointUpsertRequest]
217
217
  # @param [Hash] opts the optional parameters
@@ -32,7 +32,7 @@ module Pingram
32
32
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
33
33
  def initialize(config = Configuration.default)
34
34
  @config = config
35
- @user_agent = "pingram-ruby/1.0.40"
35
+ @user_agent = "pingram-ruby/1.0.41"
36
36
  @default_headers = {
37
37
  'Content-Type' => 'application/json',
38
38
  'User-Agent' => @user_agent
@@ -22,7 +22,7 @@ module Pingram
22
22
  # Addresses that receive threshold emails. At most three.
23
23
  attr_accessor :emails
24
24
 
25
- # Percents to email, from 5 to 100 in steps of 5. At most two. At least one is required while enabled.
25
+ # Percents to email, from 5 to 100 in steps of 5. At most five. At least one is required while enabled.
26
26
  attr_accessor :thresholds
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -0,0 +1,214 @@
1
+ =begin
2
+ #Pingram
3
+
4
+ #Internal API for notification delivery and management
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Pingram
17
+ # GET /account/payment-methods and POST /account/payment-methods/assign response.
18
+ class AccountPaymentMethods < ApiModelBase
19
+ attr_accessor :payment_methods
20
+
21
+ # Card this account is billed on, when one is set.
22
+ attr_accessor :this_account_payment_method_id
23
+
24
+ # Card new accounts you create will use by default.
25
+ attr_accessor :default_for_new_accounts_payment_method_id
26
+
27
+ # How many of your accounts can use these cards, including this one.
28
+ attr_accessor :shared_account_count
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'payment_methods' => :'paymentMethods',
34
+ :'this_account_payment_method_id' => :'thisAccountPaymentMethodId',
35
+ :'default_for_new_accounts_payment_method_id' => :'defaultForNewAccountsPaymentMethodId',
36
+ :'shared_account_count' => :'sharedAccountCount'
37
+ }
38
+ end
39
+
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ acceptable_attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'payment_methods' => :'Array<AccountPaymentMethodsPaymentMethodsInner>',
54
+ :'this_account_payment_method_id' => :'String',
55
+ :'default_for_new_accounts_payment_method_id' => :'String',
56
+ :'shared_account_count' => :'Float'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.openapi_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::AccountPaymentMethods` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
75
+ attributes = attributes.each_with_object({}) { |(k, v), h|
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::AccountPaymentMethods`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
+ end
79
+ h[k.to_sym] = v
80
+ }
81
+
82
+ if attributes.key?(:'payment_methods')
83
+ if (value = attributes[:'payment_methods']).is_a?(Array)
84
+ self.payment_methods = value
85
+ end
86
+ else
87
+ self.payment_methods = nil
88
+ end
89
+
90
+ if attributes.key?(:'this_account_payment_method_id')
91
+ self.this_account_payment_method_id = attributes[:'this_account_payment_method_id']
92
+ end
93
+
94
+ if attributes.key?(:'default_for_new_accounts_payment_method_id')
95
+ self.default_for_new_accounts_payment_method_id = attributes[:'default_for_new_accounts_payment_method_id']
96
+ end
97
+
98
+ if attributes.key?(:'shared_account_count')
99
+ self.shared_account_count = attributes[:'shared_account_count']
100
+ else
101
+ self.shared_account_count = nil
102
+ end
103
+ end
104
+
105
+ # Show invalid properties with the reasons. Usually used together with valid?
106
+ # @return Array for valid properties with the reasons
107
+ def list_invalid_properties
108
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
109
+ invalid_properties = Array.new
110
+ if @payment_methods.nil?
111
+ invalid_properties.push('invalid value for "payment_methods", payment_methods cannot be nil.')
112
+ end
113
+
114
+ if @shared_account_count.nil?
115
+ invalid_properties.push('invalid value for "shared_account_count", shared_account_count cannot be nil.')
116
+ end
117
+
118
+ invalid_properties
119
+ end
120
+
121
+ # Check to see if the all the properties in the model are valid
122
+ # @return true if the model is valid
123
+ def valid?
124
+ warn '[DEPRECATED] the `valid?` method is obsolete'
125
+ return false if @payment_methods.nil?
126
+ return false if @shared_account_count.nil?
127
+ true
128
+ end
129
+
130
+ # Custom attribute writer method with validation
131
+ # @param [Object] payment_methods Value to be assigned
132
+ def payment_methods=(payment_methods)
133
+ if payment_methods.nil?
134
+ fail ArgumentError, 'payment_methods cannot be nil'
135
+ end
136
+
137
+ @payment_methods = payment_methods
138
+ end
139
+
140
+ # Custom attribute writer method with validation
141
+ # @param [Object] shared_account_count Value to be assigned
142
+ def shared_account_count=(shared_account_count)
143
+ if shared_account_count.nil?
144
+ fail ArgumentError, 'shared_account_count cannot be nil'
145
+ end
146
+
147
+ @shared_account_count = shared_account_count
148
+ end
149
+
150
+ # Checks equality by comparing each attribute.
151
+ # @param [Object] Object to be compared
152
+ def ==(o)
153
+ return true if self.equal?(o)
154
+ self.class == o.class &&
155
+ payment_methods == o.payment_methods &&
156
+ this_account_payment_method_id == o.this_account_payment_method_id &&
157
+ default_for_new_accounts_payment_method_id == o.default_for_new_accounts_payment_method_id &&
158
+ shared_account_count == o.shared_account_count
159
+ end
160
+
161
+ # @see the `==` method
162
+ # @param [Object] Object to be compared
163
+ def eql?(o)
164
+ self == o
165
+ end
166
+
167
+ # Calculates hash code according to all attributes.
168
+ # @return [Integer] Hash code
169
+ def hash
170
+ [payment_methods, this_account_payment_method_id, default_for_new_accounts_payment_method_id, shared_account_count].hash
171
+ end
172
+
173
+ # Builds the object from hash
174
+ # @param [Hash] attributes Model attributes in the form of hash
175
+ # @return [Object] Returns the model itself
176
+ def self.build_from_hash(attributes)
177
+ return nil unless attributes.is_a?(Hash)
178
+ attributes = attributes.transform_keys(&:to_sym)
179
+ transformed_hash = {}
180
+ openapi_types.each_pair do |key, type|
181
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
182
+ transformed_hash["#{key}"] = nil
183
+ elsif type =~ /\AArray<(.*)>/i
184
+ # check to ensure the input is an array given that the attribute
185
+ # is documented as an array but the input is not
186
+ if attributes[attribute_map[key]].is_a?(Array)
187
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
188
+ end
189
+ elsif !attributes[attribute_map[key]].nil?
190
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
191
+ end
192
+ end
193
+ new(transformed_hash)
194
+ end
195
+
196
+ # Returns the object in the form of hash
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_hash
199
+ hash = {}
200
+ self.class.attribute_map.each_pair do |attr, param|
201
+ value = self.send(attr)
202
+ if value.nil?
203
+ is_nullable = self.class.openapi_nullable.include?(attr)
204
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
205
+ end
206
+
207
+ hash[param] = _to_hash(value)
208
+ end
209
+ hash
210
+ end
211
+
212
+ end
213
+
214
+ end