inttegro 5.0.0 → 6.0.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.
Files changed (696) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +39 -3
  4. data/Rakefile +2 -0
  5. data/lib/inttegro/app/application.rb +69 -0
  6. data/lib/inttegro/app/base.rb +11 -0
  7. data/lib/inttegro/app/create_request.rb +65 -0
  8. data/lib/inttegro/app/create_request_relationship_policy.rb +45 -0
  9. data/lib/inttegro/app/create_response.rb +28 -0
  10. data/lib/inttegro/app/credential_owner.rb +28 -0
  11. data/lib/inttegro/app/looked_up.rb +69 -0
  12. data/lib/inttegro/app/lookup_response.rb +28 -0
  13. data/lib/inttegro/app/management_role.rb +27 -0
  14. data/lib/inttegro/app/relationship.rb +114 -0
  15. data/lib/inttegro/app/relationship_kind.rb +25 -0
  16. data/lib/inttegro/app/relationship_policy.rb +43 -0
  17. data/lib/inttegro/app/relationship_status.rb +34 -0
  18. data/lib/inttegro/app/secret_key.rb +48 -0
  19. data/lib/inttegro/app/update_request.rb +48 -0
  20. data/lib/inttegro/app/update_response.rb +28 -0
  21. data/lib/inttegro/app/updated.rb +62 -0
  22. data/lib/inttegro/balance/base.rb +17 -0
  23. data/lib/inttegro/balance/currency_snapshot.rb +58 -0
  24. data/lib/inttegro/balance/currency_snapshot_refund.rb +27 -0
  25. data/lib/inttegro/balance/currency_snapshot_reserved.rb +27 -0
  26. data/lib/inttegro/balance/lookup_request.rb +21 -0
  27. data/lib/inttegro/balance/snapshot.rb +28 -0
  28. data/lib/inttegro/balance/snapshot_response.rb +28 -0
  29. data/lib/inttegro/balance/value.rb +27 -0
  30. data/lib/inttegro/balance_transaction/amount.rb +34 -0
  31. data/lib/inttegro/balance_transaction/balance_transaction.rb +107 -0
  32. data/lib/inttegro/balance_transaction/base.rb +11 -0
  33. data/lib/inttegro/balance_transaction/lookup_request.rb +27 -0
  34. data/lib/inttegro/balance_transaction/page.rb +42 -0
  35. data/lib/inttegro/balance_transaction/page_request.rb +34 -0
  36. data/lib/inttegro/balance_transaction/page_response.rb +28 -0
  37. data/lib/inttegro/balance_transaction/payout_configuration.rb +35 -0
  38. data/lib/inttegro/balance_transaction/payout_configuration_destination.rb +27 -0
  39. data/lib/inttegro/balance_transaction/questions.rb +48 -0
  40. data/lib/inttegro/balance_transaction/response.rb +30 -0
  41. data/lib/inttegro/balance_transaction/type.rb +27 -0
  42. data/lib/inttegro/bank_account/base.rb +17 -0
  43. data/lib/inttegro/bank_account/created.rb +63 -0
  44. data/lib/inttegro/bank_account/ghana_bank_account.rb +63 -0
  45. data/lib/inttegro/bank_account/type.rb +24 -0
  46. data/lib/inttegro/bank_account/updated.rb +63 -0
  47. data/lib/inttegro/broadcast/base.rb +17 -0
  48. data/lib/inttegro/broadcast/cancel_detail.rb +120 -0
  49. data/lib/inttegro/broadcast/cancel_request.rb +27 -0
  50. data/lib/inttegro/broadcast/cancel_response.rb +28 -0
  51. data/lib/inttegro/broadcast/creation_detail.rb +91 -0
  52. data/lib/inttegro/broadcast/detail.rb +113 -0
  53. data/lib/inttegro/broadcast/error.rb +41 -0
  54. data/lib/inttegro/broadcast/lookup_request.rb +27 -0
  55. data/lib/inttegro/broadcast/lookup_response.rb +28 -0
  56. data/lib/inttegro/broadcast/request.rb +68 -0
  57. data/lib/inttegro/broadcast/request_request_meta.rb +27 -0
  58. data/lib/inttegro/broadcast/response.rb +28 -0
  59. data/lib/inttegro/checkout/base.rb +17 -0
  60. data/lib/inttegro/checkout/billing_details.rb +42 -0
  61. data/lib/inttegro/checkout/confirm_payment_request.rb +48 -0
  62. data/lib/inttegro/checkout/invoice_view.rb +79 -0
  63. data/lib/inttegro/checkout/invoice_view_beneficiary.rb +97 -0
  64. data/lib/inttegro/checkout/invoice_view_format.rb +44 -0
  65. data/lib/inttegro/checkout/invoice_view_format_pdf.rb +27 -0
  66. data/lib/inttegro/checkout/invoice_view_format_receipt.rb +27 -0
  67. data/lib/inttegro/checkout/invoice_view_format_web.rb +27 -0
  68. data/lib/inttegro/checkout/invoice_view_status.rb +39 -0
  69. data/lib/inttegro/checkout/mobile_money_data.rb +42 -0
  70. data/lib/inttegro/checkout/mobile_money_data_network.rb +34 -0
  71. data/lib/inttegro/checkout/order.rb +154 -0
  72. data/lib/inttegro/checkout/order_checkout_settings.rb +34 -0
  73. data/lib/inttegro/checkout/order_created_from.rb +41 -0
  74. data/lib/inttegro/checkout/order_customer.rb +71 -0
  75. data/lib/inttegro/checkout/order_customer_billing_address.rb +21 -0
  76. data/lib/inttegro/checkout/order_customer_shipping_address.rb +21 -0
  77. data/lib/inttegro/checkout/order_line_item_group.rb +36 -0
  78. data/lib/inttegro/checkout/order_payment.rb +160 -0
  79. data/lib/inttegro/checkout/order_payment_billing_details.rb +21 -0
  80. data/lib/inttegro/checkout/order_payment_latest_attempt.rb +21 -0
  81. data/lib/inttegro/checkout/order_payment_latest_error.rb +21 -0
  82. data/lib/inttegro/checkout/order_payment_next_action.rb +21 -0
  83. data/lib/inttegro/checkout/order_payment_payment_method.rb +21 -0
  84. data/lib/inttegro/checkout/order_reference_request.rb +27 -0
  85. data/lib/inttegro/checkout/order_response.rb +38 -0
  86. data/lib/inttegro/checkout/order_status.rb +42 -0
  87. data/lib/inttegro/checkout/pay_request.rb +53 -0
  88. data/lib/inttegro/checkout/pay_request_payment_method_data.rb +47 -0
  89. data/lib/inttegro/checkout/pay_request_payment_method_data_type.rb +25 -0
  90. data/lib/inttegro/checkout/payment_address.rb +76 -0
  91. data/lib/inttegro/checkout/payment_method_data.rb +45 -0
  92. data/lib/inttegro/checkout/payment_method_data_billing_details.rb +43 -0
  93. data/lib/inttegro/checkout/payment_method_data_type.rb +25 -0
  94. data/lib/inttegro/chime/base.rb +11 -0
  95. data/lib/inttegro/chime/chime.rb +99 -0
  96. data/lib/inttegro/chime/email_event.rb +118 -0
  97. data/lib/inttegro/chime/email_mailbox.rb +34 -0
  98. data/lib/inttegro/chime/email_message.rb +79 -0
  99. data/lib/inttegro/chime/email_message_input.rb +63 -0
  100. data/lib/inttegro/chime/email_safety_result.rb +78 -0
  101. data/lib/inttegro/chime/email_scanned_link.rb +56 -0
  102. data/lib/inttegro/chime/email_schema_kind.rb +30 -0
  103. data/lib/inttegro/chime/email_schema_markup.rb +36 -0
  104. data/lib/inttegro/chime/inline_recipient.rb +18 -0
  105. data/lib/inttegro/chime/inline_recipient_variant1.rb +43 -0
  106. data/lib/inttegro/chime/inline_recipient_variant1_phone.rb +27 -0
  107. data/lib/inttegro/chime/inline_recipient_variant1_type.rb +25 -0
  108. data/lib/inttegro/chime/inline_recipient_variant2.rb +43 -0
  109. data/lib/inttegro/chime/inline_recipient_variant2_email.rb +27 -0
  110. data/lib/inttegro/chime/inline_recipient_variant2_type.rb +25 -0
  111. data/lib/inttegro/chime/lookup_request.rb +27 -0
  112. data/lib/inttegro/chime/page.rb +42 -0
  113. data/lib/inttegro/chime/page_request.rb +49 -0
  114. data/lib/inttegro/chime/page_response.rb +28 -0
  115. data/lib/inttegro/chime/recipient.rb +18 -0
  116. data/lib/inttegro/chime/recipient_detail.rb +51 -0
  117. data/lib/inttegro/chime/recipient_detail_email.rb +27 -0
  118. data/lib/inttegro/chime/recipient_detail_phone.rb +27 -0
  119. data/lib/inttegro/chime/recipient_type.rb +27 -0
  120. data/lib/inttegro/chime/response.rb +28 -0
  121. data/lib/inttegro/chime/saved_customer_recipient.rb +35 -0
  122. data/lib/inttegro/chime/send_request.rb +82 -0
  123. data/lib/inttegro/chime/send_request_request_meta.rb +27 -0
  124. data/lib/inttegro/chime/transmission.rb +162 -0
  125. data/lib/inttegro/chime/transport.rb +27 -0
  126. data/lib/inttegro/customer/address.rb +76 -0
  127. data/lib/inttegro/customer/address_input.rb +76 -0
  128. data/lib/inttegro/customer/balance_value.rb +35 -0
  129. data/lib/inttegro/customer/base.rb +11 -0
  130. data/lib/inttegro/customer/create_request.rb +78 -0
  131. data/lib/inttegro/customer/customer.rb +119 -0
  132. data/lib/inttegro/customer/data.rb +56 -0
  133. data/lib/inttegro/customer/lookup_request.rb +27 -0
  134. data/lib/inttegro/customer/page.rb +42 -0
  135. data/lib/inttegro/customer/page_request.rb +34 -0
  136. data/lib/inttegro/customer/page_response.rb +28 -0
  137. data/lib/inttegro/customer/response.rb +37 -0
  138. data/lib/inttegro/customer/update_request.rb +92 -0
  139. data/lib/inttegro/enums.rb +4 -2
  140. data/lib/inttegro/file/actor.rb +48 -0
  141. data/lib/inttegro/file/actor_input.rb +48 -0
  142. data/lib/inttegro/file/api_error.rb +69 -0
  143. data/lib/inttegro/file/base.rb +11 -0
  144. data/lib/inttegro/file/contents_delivery_mode.rb +27 -0
  145. data/lib/inttegro/file/contents_request.rb +43 -0
  146. data/lib/inttegro/file/create_request.rb +48 -0
  147. data/lib/inttegro/file/delete_request.rb +27 -0
  148. data/lib/inttegro/file/delivery.rb +42 -0
  149. data/lib/inttegro/file/disposition.rb +27 -0
  150. data/lib/inttegro/file/file.rb +176 -0
  151. data/lib/inttegro/file/latest_error.rb +48 -0
  152. data/lib/inttegro/file/lookup_request.rb +27 -0
  153. data/lib/inttegro/file/media.rb +90 -0
  154. data/lib/inttegro/file/page.rb +42 -0
  155. data/lib/inttegro/file/page_request.rb +63 -0
  156. data/lib/inttegro/file/page_response.rb +28 -0
  157. data/lib/inttegro/file/party.rb +48 -0
  158. data/lib/inttegro/file/public_storage.rb +35 -0
  159. data/lib/inttegro/file/resource.rb +41 -0
  160. data/lib/inttegro/file/response.rb +29 -0
  161. data/lib/inttegro/file/scan_status.rb +33 -0
  162. data/lib/inttegro/file/service_health_response.rb +48 -0
  163. data/lib/inttegro/file/service_ready_response.rb +55 -0
  164. data/lib/inttegro/file/source.rb +42 -0
  165. data/lib/inttegro/file/source_type.rb +30 -0
  166. data/lib/inttegro/file/status.rb +36 -0
  167. data/lib/inttegro/file/storage_encoding.rb +27 -0
  168. data/lib/inttegro/file/upload_receipt.rb +70 -0
  169. data/lib/inttegro/file_link/access.rb +55 -0
  170. data/lib/inttegro/file_link/access_request.rb +48 -0
  171. data/lib/inttegro/file_link/actor.rb +48 -0
  172. data/lib/inttegro/file_link/base.rb +11 -0
  173. data/lib/inttegro/file_link/create_request.rb +66 -0
  174. data/lib/inttegro/file_link/creation.rb +35 -0
  175. data/lib/inttegro/file_link/delivery.rb +49 -0
  176. data/lib/inttegro/file_link/delivery_mode.rb +30 -0
  177. data/lib/inttegro/file_link/file_link.rb +136 -0
  178. data/lib/inttegro/file_link/kind.rb +24 -0
  179. data/lib/inttegro/file_link/lookup_request.rb +27 -0
  180. data/lib/inttegro/file_link/page.rb +42 -0
  181. data/lib/inttegro/file_link/page_request.rb +49 -0
  182. data/lib/inttegro/file_link/page_response.rb +28 -0
  183. data/lib/inttegro/file_link/response.rb +28 -0
  184. data/lib/inttegro/file_link/revoke_request.rb +35 -0
  185. data/lib/inttegro/file_link/status.rb +33 -0
  186. data/lib/inttegro/file_reference/base.rb +17 -0
  187. data/lib/inttegro/file_reference/input.rb +55 -0
  188. data/lib/inttegro/file_reference/reconcile_request.rb +42 -0
  189. data/lib/inttegro/file_reference/reconciliation.rb +27 -0
  190. data/lib/inttegro/financial_account/address.rb +76 -0
  191. data/lib/inttegro/financial_account/bank.rb +36 -0
  192. data/lib/inttegro/financial_account/bank_request.rb +97 -0
  193. data/lib/inttegro/financial_account/bank_request_bank_account.rb +36 -0
  194. data/lib/inttegro/financial_account/bank_request_bank_account_ghana_bank_account.rb +50 -0
  195. data/lib/inttegro/financial_account/bank_request_type.rb +25 -0
  196. data/lib/inttegro/financial_account/base.rb +11 -0
  197. data/lib/inttegro/financial_account/compact.rb +70 -0
  198. data/lib/inttegro/financial_account/connect_response.rb +28 -0
  199. data/lib/inttegro/financial_account/connected.rb +158 -0
  200. data/lib/inttegro/financial_account/create_request.rb +19 -0
  201. data/lib/inttegro/financial_account/create_response.rb +28 -0
  202. data/lib/inttegro/financial_account/created.rb +149 -0
  203. data/lib/inttegro/financial_account/created_address.rb +90 -0
  204. data/lib/inttegro/financial_account/created_bank.rb +43 -0
  205. data/lib/inttegro/financial_account/created_owner.rb +35 -0
  206. data/lib/inttegro/financial_account/details.rb +125 -0
  207. data/lib/inttegro/financial_account/disable_pull_response.rb +28 -0
  208. data/lib/inttegro/financial_account/disable_push_response.rb +28 -0
  209. data/lib/inttegro/financial_account/disable_request.rb +35 -0
  210. data/lib/inttegro/financial_account/disconnect_response.rb +28 -0
  211. data/lib/inttegro/financial_account/dosh_request.rb +97 -0
  212. data/lib/inttegro/financial_account/dosh_request_type.rb +25 -0
  213. data/lib/inttegro/financial_account/enable_pull_request.rb +41 -0
  214. data/lib/inttegro/financial_account/enable_pull_response.rb +28 -0
  215. data/lib/inttegro/financial_account/enable_push_response.rb +28 -0
  216. data/lib/inttegro/financial_account/financial_account.rb +163 -0
  217. data/lib/inttegro/financial_account/financial_account_page_request.rb +34 -0
  218. data/lib/inttegro/financial_account/id_request.rb +27 -0
  219. data/lib/inttegro/financial_account/lookup_response.rb +28 -0
  220. data/lib/inttegro/financial_account/mandate.rb +48 -0
  221. data/lib/inttegro/financial_account/owner.rb +35 -0
  222. data/lib/inttegro/financial_account/owner_input.rb +35 -0
  223. data/lib/inttegro/financial_account/owner_input_address.rb +76 -0
  224. data/lib/inttegro/financial_account/owner_update_input.rb +35 -0
  225. data/lib/inttegro/financial_account/owner_update_input_address.rb +76 -0
  226. data/lib/inttegro/financial_account/page.rb +42 -0
  227. data/lib/inttegro/financial_account/page_financial_accounts_request.rb +34 -0
  228. data/lib/inttegro/financial_account/page_response.rb +37 -0
  229. data/lib/inttegro/financial_account/page_response_inline.rb +28 -0
  230. data/lib/inttegro/financial_account/pull_configuration.rb +35 -0
  231. data/lib/inttegro/financial_account/push_configuration.rb +27 -0
  232. data/lib/inttegro/financial_account/reconnect_response.rb +28 -0
  233. data/lib/inttegro/financial_account/request_base.rb +88 -0
  234. data/lib/inttegro/financial_account/request_base_pull_configuration.rb +27 -0
  235. data/lib/inttegro/financial_account/request_base_push_configuration.rb +27 -0
  236. data/lib/inttegro/financial_account/type.rb +30 -0
  237. data/lib/inttegro/financial_account/update_request.rb +64 -0
  238. data/lib/inttegro/financial_account/update_response.rb +28 -0
  239. data/lib/inttegro/financial_account/updated.rb +165 -0
  240. data/lib/inttegro/financial_account/updated_address.rb +83 -0
  241. data/lib/inttegro/financial_account/updated_bank.rb +43 -0
  242. data/lib/inttegro/financial_account/updated_owner.rb +35 -0
  243. data/lib/inttegro/financial_account/updated_wallet.rb +43 -0
  244. data/lib/inttegro/financial_account/verification.rb +42 -0
  245. data/lib/inttegro/financial_account/verification_request.rb +41 -0
  246. data/lib/inttegro/financial_account/wallet.rb +43 -0
  247. data/lib/inttegro/financial_account/wallet_mobile_money.rb +35 -0
  248. data/lib/inttegro/financial_account/wallet_request.rb +96 -0
  249. data/lib/inttegro/financial_account/wallet_request_type.rb +25 -0
  250. data/lib/inttegro/financial_account/wallet_request_wallet.rb +36 -0
  251. data/lib/inttegro/financial_account/wallet_request_wallet_mobile_money.rb +35 -0
  252. data/lib/inttegro/financial_account/wire_page.rb +42 -0
  253. data/lib/inttegro/financial_account/wire_page_accounts_item.rb +85 -0
  254. data/lib/inttegro/generated/enums.rb +80 -642
  255. data/lib/inttegro/generated/models.rb +545 -3867
  256. data/lib/inttegro/generated/operations.rb +236 -236
  257. data/lib/inttegro/message_template/attachment_ids.rb +17 -0
  258. data/lib/inttegro/message_template/base.rb +11 -0
  259. data/lib/inttegro/message_template/channel.rb +27 -0
  260. data/lib/inttegro/message_template/create_email_request.rb +81 -0
  261. data/lib/inttegro/message_template/create_email_request_channel.rb +25 -0
  262. data/lib/inttegro/message_template/create_fields.rb +64 -0
  263. data/lib/inttegro/message_template/create_request.rb +18 -0
  264. data/lib/inttegro/message_template/create_sms_request.rb +72 -0
  265. data/lib/inttegro/message_template/create_sms_request_channel.rb +25 -0
  266. data/lib/inttegro/message_template/email_content.rb +56 -0
  267. data/lib/inttegro/message_template/envelope.rb +28 -0
  268. data/lib/inttegro/message_template/id_request.rb +27 -0
  269. data/lib/inttegro/message_template/mailbox.rb +34 -0
  270. data/lib/inttegro/message_template/message_template.rb +158 -0
  271. data/lib/inttegro/message_template/page.rb +42 -0
  272. data/lib/inttegro/message_template/page_envelope.rb +28 -0
  273. data/lib/inttegro/message_template/page_request.rb +64 -0
  274. data/lib/inttegro/message_template/preview.rb +36 -0
  275. data/lib/inttegro/message_template/reference.rb +35 -0
  276. data/lib/inttegro/message_template/render_preview_request.rb +28 -0
  277. data/lib/inttegro/message_template/rendered.rb +53 -0
  278. data/lib/inttegro/message_template/rendered_email.rb +71 -0
  279. data/lib/inttegro/message_template/rendered_sms.rb +27 -0
  280. data/lib/inttegro/message_template/safety_result.rb +78 -0
  281. data/lib/inttegro/message_template/scanned_link.rb +55 -0
  282. data/lib/inttegro/message_template/sms_content.rb +27 -0
  283. data/lib/inttegro/message_template/status.rb +30 -0
  284. data/lib/inttegro/message_template/update_request.rb +96 -0
  285. data/lib/inttegro/message_template/variable.rb +64 -0
  286. data/lib/inttegro/message_template/variable_input.rb +64 -0
  287. data/lib/inttegro/message_template/variable_item.rb +56 -0
  288. data/lib/inttegro/message_template/variable_item_input.rb +56 -0
  289. data/lib/inttegro/message_template/variable_item_type.rb +49 -0
  290. data/lib/inttegro/message_template/variable_type.rb +52 -0
  291. data/lib/inttegro/message_template/variables.rb +21 -0
  292. data/lib/inttegro/model_serialization.rb +85 -0
  293. data/lib/inttegro/models.rb +12 -156
  294. data/lib/inttegro/money/amount.rb +36 -0
  295. data/lib/inttegro/money/amount_params.rb +36 -0
  296. data/lib/inttegro/money/base.rb +17 -0
  297. data/lib/inttegro/money/currency.rb +37 -0
  298. data/lib/inttegro/money/currency_deserialization.rb +24 -0
  299. data/lib/inttegro/order/address.rb +76 -0
  300. data/lib/inttegro/order/base.rb +11 -0
  301. data/lib/inttegro/order/cancel_request.rb +42 -0
  302. data/lib/inttegro/order/checkout_settings.rb +34 -0
  303. data/lib/inttegro/order/complete_envelope.rb +29 -0
  304. data/lib/inttegro/order/complete_request.rb +36 -0
  305. data/lib/inttegro/order/create_existing_customer.rb +147 -0
  306. data/lib/inttegro/order/create_existing_customer_checkout_settings.rb +35 -0
  307. data/lib/inttegro/order/create_existing_customer_request_meta.rb +27 -0
  308. data/lib/inttegro/order/create_new_customer.rb +149 -0
  309. data/lib/inttegro/order/create_new_customer_checkout_settings.rb +35 -0
  310. data/lib/inttegro/order/create_new_customer_request_meta.rb +27 -0
  311. data/lib/inttegro/order/created_from.rb +42 -0
  312. data/lib/inttegro/order/created_from_resource_type.rb +25 -0
  313. data/lib/inttegro/order/customer.rb +70 -0
  314. data/lib/inttegro/order/discount.rb +21 -0
  315. data/lib/inttegro/order/discount_line_item.rb +36 -0
  316. data/lib/inttegro/order/discount_line_item_type.rb +24 -0
  317. data/lib/inttegro/order/document_delivery.rb +67 -0
  318. data/lib/inttegro/order/document_delivery_attempt.rb +35 -0
  319. data/lib/inttegro/order/document_delivery_failure.rb +35 -0
  320. data/lib/inttegro/order/document_delivery_request.rb +27 -0
  321. data/lib/inttegro/order/document_delivery_result.rb +46 -0
  322. data/lib/inttegro/order/document_format.rb +27 -0
  323. data/lib/inttegro/order/document_kind.rb +27 -0
  324. data/lib/inttegro/order/envelope.rb +29 -0
  325. data/lib/inttegro/order/fee_line_item.rb +36 -0
  326. data/lib/inttegro/order/fee_line_item_fee.rb +56 -0
  327. data/lib/inttegro/order/fee_line_item_type.rb +24 -0
  328. data/lib/inttegro/order/finalize_envelope.rb +29 -0
  329. data/lib/inttegro/order/finalize_request.rb +27 -0
  330. data/lib/inttegro/order/invoice.rb +35 -0
  331. data/lib/inttegro/order/invoice_format.rb +42 -0
  332. data/lib/inttegro/order/line_item.rb +20 -0
  333. data/lib/inttegro/order/line_item_group.rb +36 -0
  334. data/lib/inttegro/order/lookup_request.rb +27 -0
  335. data/lib/inttegro/order/order.rb +177 -0
  336. data/lib/inttegro/order/page.rb +42 -0
  337. data/lib/inttegro/order/page_envelope.rb +28 -0
  338. data/lib/inttegro/order/page_request.rb +42 -0
  339. data/lib/inttegro/order/pay_request.rb +51 -0
  340. data/lib/inttegro/order/payout_settings_request.rb +35 -0
  341. data/lib/inttegro/order/payout_settings_request_destination.rb +27 -0
  342. data/lib/inttegro/order/product_line_item.rb +36 -0
  343. data/lib/inttegro/order/product_line_item_product.rb +106 -0
  344. data/lib/inttegro/order/product_line_item_type.rb +24 -0
  345. data/lib/inttegro/order/questions.rb +53 -0
  346. data/lib/inttegro/order/shipping_line_item.rb +36 -0
  347. data/lib/inttegro/order/shipping_line_item_shipping.rb +49 -0
  348. data/lib/inttegro/order/shipping_line_item_type.rb +24 -0
  349. data/lib/inttegro/order/status.rb +42 -0
  350. data/lib/inttegro/order/update_request.rb +117 -0
  351. data/lib/inttegro/order/update_request_payment_method_data.rb +38 -0
  352. data/lib/inttegro/order/update_request_payment_method_data_type.rb +24 -0
  353. data/lib/inttegro/otp/alphabet_type.rb +30 -0
  354. data/lib/inttegro/otp/base.rb +17 -0
  355. data/lib/inttegro/otp/initiate_request.rb +91 -0
  356. data/lib/inttegro/otp/initiate_response.rb +28 -0
  357. data/lib/inttegro/otp/lookup_request.rb +27 -0
  358. data/lib/inttegro/otp/lookup_response.rb +28 -0
  359. data/lib/inttegro/otp/status.rb +39 -0
  360. data/lib/inttegro/otp/transaction.rb +78 -0
  361. data/lib/inttegro/otp/transmission.rb +57 -0
  362. data/lib/inttegro/otp/transmission_sent_via.rb +24 -0
  363. data/lib/inttegro/otp/transmission_status.rb +30 -0
  364. data/lib/inttegro/otp/verification.rb +36 -0
  365. data/lib/inttegro/otp/verification_attempt.rb +56 -0
  366. data/lib/inttegro/otp/verification_attempt_result.rb +35 -0
  367. data/lib/inttegro/otp/verification_verdict.rb +27 -0
  368. data/lib/inttegro/otp/verify_request.rb +41 -0
  369. data/lib/inttegro/payment/attempt_status.rb +42 -0
  370. data/lib/inttegro/payment/base.rb +11 -0
  371. data/lib/inttegro/payment/billing_details.rb +28 -0
  372. data/lib/inttegro/payment/billing_details_owner.rb +35 -0
  373. data/lib/inttegro/payment/confirm_request.rb +48 -0
  374. data/lib/inttegro/payment/confirmation_channel.rb +30 -0
  375. data/lib/inttegro/payment/customer.rb +70 -0
  376. data/lib/inttegro/payment/latest_attempt.rb +71 -0
  377. data/lib/inttegro/payment/latest_attempt_error.rb +27 -0
  378. data/lib/inttegro/payment/latest_error.rb +55 -0
  379. data/lib/inttegro/payment/method_snapshot_bank_account.rb +35 -0
  380. data/lib/inttegro/payment/method_snapshot_bank_account_ghana_bank_account.rb +56 -0
  381. data/lib/inttegro/payment/method_snapshot_mobile_money.rb +42 -0
  382. data/lib/inttegro/payment/method_snapshot_owner.rb +35 -0
  383. data/lib/inttegro/payment/next_action.rb +60 -0
  384. data/lib/inttegro/payment/next_action_authorize.rb +41 -0
  385. data/lib/inttegro/payment/next_action_confirm_payment.rb +64 -0
  386. data/lib/inttegro/payment/next_action_confirm_payment_attempt.rb +55 -0
  387. data/lib/inttegro/payment/next_action_confirm_payment_request.rb +63 -0
  388. data/lib/inttegro/payment/next_action_redirect.rb +42 -0
  389. data/lib/inttegro/payment/next_action_redirect_latest_visit.rb +41 -0
  390. data/lib/inttegro/payment/next_action_request_confirmation.rb +35 -0
  391. data/lib/inttegro/payment/next_action_request_confirmation_last_request.rb +64 -0
  392. data/lib/inttegro/payment/next_action_type.rb +36 -0
  393. data/lib/inttegro/payment/payment.rb +177 -0
  394. data/lib/inttegro/payment/payment_method.rb +95 -0
  395. data/lib/inttegro/payment/payout_configuration.rb +35 -0
  396. data/lib/inttegro/payment/payout_configuration_destination.rb +27 -0
  397. data/lib/inttegro/payment/questions.rb +47 -0
  398. data/lib/inttegro/payment/result.rb +56 -0
  399. data/lib/inttegro/payment/result_status.rb +36 -0
  400. data/lib/inttegro/payment/status.rb +48 -0
  401. data/lib/inttegro/payment_method/activate_request.rb +27 -0
  402. data/lib/inttegro/payment_method/activate_response.rb +28 -0
  403. data/lib/inttegro/payment_method/archive_request.rb +27 -0
  404. data/lib/inttegro/payment_method/archive_response.rb +28 -0
  405. data/lib/inttegro/payment_method/bank_account.rb +36 -0
  406. data/lib/inttegro/payment_method/bank_account_ghana_bank_account.rb +55 -0
  407. data/lib/inttegro/payment_method/base.rb +11 -0
  408. data/lib/inttegro/payment_method/card.rb +21 -0
  409. data/lib/inttegro/payment_method/data.rb +36 -0
  410. data/lib/inttegro/payment_method/data_mobile_money.rb +35 -0
  411. data/lib/inttegro/payment_method/data_type.rb +24 -0
  412. data/lib/inttegro/payment_method/deletion.rb +20 -0
  413. data/lib/inttegro/payment_method/disactivate_request.rb +27 -0
  414. data/lib/inttegro/payment_method/disactivate_response.rb +28 -0
  415. data/lib/inttegro/payment_method/get_settings_request.rb +21 -0
  416. data/lib/inttegro/payment_method/get_settings_response.rb +28 -0
  417. data/lib/inttegro/payment_method/lookup_request.rb +27 -0
  418. data/lib/inttegro/payment_method/lookup_response.rb +28 -0
  419. data/lib/inttegro/payment_method/mobile_money.rb +42 -0
  420. data/lib/inttegro/payment_method/owner.rb +35 -0
  421. data/lib/inttegro/payment_method/owner_address.rb +76 -0
  422. data/lib/inttegro/payment_method/owner_input.rb +35 -0
  423. data/lib/inttegro/payment_method/owner_input_address.rb +76 -0
  424. data/lib/inttegro/payment_method/page.rb +42 -0
  425. data/lib/inttegro/payment_method/page_request.rb +42 -0
  426. data/lib/inttegro/payment_method/page_response.rb +28 -0
  427. data/lib/inttegro/payment_method/payment_method.rb +138 -0
  428. data/lib/inttegro/payment_method/questions.rb +35 -0
  429. data/lib/inttegro/payment_method/settings.rb +49 -0
  430. data/lib/inttegro/payment_method/supplied.rb +62 -0
  431. data/lib/inttegro/payment_method/tokenize_base.rb +43 -0
  432. data/lib/inttegro/payment_method/tokenize_base_type.rb +25 -0
  433. data/lib/inttegro/payment_method/tokenize_mobile_money_request.rb +59 -0
  434. data/lib/inttegro/payment_method/tokenize_mobile_money_request_mobile_money.rb +36 -0
  435. data/lib/inttegro/payment_method/tokenize_mobile_money_request_type.rb +25 -0
  436. data/lib/inttegro/payment_method/tokenize_response.rb +28 -0
  437. data/lib/inttegro/payment_method/type.rb +33 -0
  438. data/lib/inttegro/payment_method/type_setting.rb +56 -0
  439. data/lib/inttegro/payment_method/unarchive_request.rb +27 -0
  440. data/lib/inttegro/payment_method/unarchive_response.rb +28 -0
  441. data/lib/inttegro/payment_method/update_request.rb +57 -0
  442. data/lib/inttegro/payment_method/update_request_owner.rb +35 -0
  443. data/lib/inttegro/payment_method/update_request_owner_address.rb +76 -0
  444. data/lib/inttegro/payment_method/update_response.rb +28 -0
  445. data/lib/inttegro/payment_method/verification.rb +55 -0
  446. data/lib/inttegro/payout/base.rb +11 -0
  447. data/lib/inttegro/payout/cancel_request.rb +27 -0
  448. data/lib/inttegro/payout/cancel_response.rb +28 -0
  449. data/lib/inttegro/payout/disable_automatic_request.rb +21 -0
  450. data/lib/inttegro/payout/disable_automatic_response.rb +28 -0
  451. data/lib/inttegro/payout/enable_automatic_request.rb +21 -0
  452. data/lib/inttegro/payout/enable_automatic_response.rb +28 -0
  453. data/lib/inttegro/payout/error.rb +48 -0
  454. data/lib/inttegro/payout/get_settings_request.rb +21 -0
  455. data/lib/inttegro/payout/get_settings_response.rb +28 -0
  456. data/lib/inttegro/payout/lookup_request.rb +27 -0
  457. data/lib/inttegro/payout/lookup_response.rb +28 -0
  458. data/lib/inttegro/payout/page.rb +42 -0
  459. data/lib/inttegro/payout/page_request.rb +34 -0
  460. data/lib/inttegro/payout/page_response.rb +28 -0
  461. data/lib/inttegro/payout/payout.rb +176 -0
  462. data/lib/inttegro/payout/set_destinations_request.rb +27 -0
  463. data/lib/inttegro/payout/set_destinations_response.rb +28 -0
  464. data/lib/inttegro/payout/settings_lookup.rb +42 -0
  465. data/lib/inttegro/payout/settings_lookup_schedule.rb +63 -0
  466. data/lib/inttegro/payout/settings_lookup_schedule_aging_spec.rb +41 -0
  467. data/lib/inttegro/payout/settings_mutation.rb +42 -0
  468. data/lib/inttegro/payout/settings_mutation_schedule.rb +70 -0
  469. data/lib/inttegro/payout/settings_mutation_schedule_spec.rb +48 -0
  470. data/lib/inttegro/payout/status.rb +42 -0
  471. data/lib/inttegro/price/action_request.rb +27 -0
  472. data/lib/inttegro/price/base.rb +11 -0
  473. data/lib/inttegro/price/catalog_price.rb +92 -0
  474. data/lib/inttegro/price/catalog_price_params.rb +49 -0
  475. data/lib/inttegro/price/embedded_product.rb +159 -0
  476. data/lib/inttegro/price/lookup_request.rb +27 -0
  477. data/lib/inttegro/price/page.rb +42 -0
  478. data/lib/inttegro/price/page_item.rb +17 -0
  479. data/lib/inttegro/price/page_request.rb +41 -0
  480. data/lib/inttegro/price/page_response.rb +37 -0
  481. data/lib/inttegro/price/price.rb +34 -0
  482. data/lib/inttegro/price/price_params.rb +36 -0
  483. data/lib/inttegro/price/response.rb +37 -0
  484. data/lib/inttegro/price/update_request.rb +41 -0
  485. data/lib/inttegro/product/action_request.rb +27 -0
  486. data/lib/inttegro/product/add_price_request.rb +49 -0
  487. data/lib/inttegro/product/add_price_response.rb +37 -0
  488. data/lib/inttegro/product/attribute.rb +34 -0
  489. data/lib/inttegro/product/base.rb +11 -0
  490. data/lib/inttegro/product/catalog_with_price_data.rb +42 -0
  491. data/lib/inttegro/product/catalog_with_price_reference.rb +42 -0
  492. data/lib/inttegro/product/create_request.rb +124 -0
  493. data/lib/inttegro/product/delivery.rb +21 -0
  494. data/lib/inttegro/product/details.rb +22 -0
  495. data/lib/inttegro/product/dimensions.rb +44 -0
  496. data/lib/inttegro/product/dimensions_custom.rb +41 -0
  497. data/lib/inttegro/product/dimensions_digital.rb +41 -0
  498. data/lib/inttegro/product/dimensions_physical.rb +76 -0
  499. data/lib/inttegro/product/download.rb +21 -0
  500. data/lib/inttegro/product/inline_details.rb +79 -0
  501. data/lib/inttegro/product/line_item.rb +39 -0
  502. data/lib/inttegro/product/line_item_type.rb +24 -0
  503. data/lib/inttegro/product/lookup_request.rb +27 -0
  504. data/lib/inttegro/product/media.rb +83 -0
  505. data/lib/inttegro/product/page.rb +42 -0
  506. data/lib/inttegro/product/page_request.rb +34 -0
  507. data/lib/inttegro/product/page_response.rb +28 -0
  508. data/lib/inttegro/product/price_summary.rb +49 -0
  509. data/lib/inttegro/product/product.rb +165 -0
  510. data/lib/inttegro/product/questions.rb +35 -0
  511. data/lib/inttegro/product/render.rb +21 -0
  512. data/lib/inttegro/product/response.rb +37 -0
  513. data/lib/inttegro/product/service.rb +21 -0
  514. data/lib/inttegro/product/set_default_unit_price_request.rb +22 -0
  515. data/lib/inttegro/product/shipment.rb +68 -0
  516. data/lib/inttegro/product/shipment_input.rb +28 -0
  517. data/lib/inttegro/product/shipment_input_type.rb +33 -0
  518. data/lib/inttegro/product/shipment_type.rb +36 -0
  519. data/lib/inttegro/product/stream.rb +21 -0
  520. data/lib/inttegro/product/type.rb +39 -0
  521. data/lib/inttegro/product/update_request.rb +124 -0
  522. data/lib/inttegro/product/update_response.rb +28 -0
  523. data/lib/inttegro/product/updated.rb +122 -0
  524. data/lib/inttegro/purchase_intent/activity.rb +122 -0
  525. data/lib/inttegro/purchase_intent/activity_attribution.rb +83 -0
  526. data/lib/inttegro/purchase_intent/activity_log.rb +28 -0
  527. data/lib/inttegro/purchase_intent/activity_type.rb +37 -0
  528. data/lib/inttegro/purchase_intent/activity_visitor.rb +97 -0
  529. data/lib/inttegro/purchase_intent/base.rb +11 -0
  530. data/lib/inttegro/purchase_intent/cancel_request.rb +34 -0
  531. data/lib/inttegro/purchase_intent/create_request.rb +75 -0
  532. data/lib/inttegro/purchase_intent/create_request_price.rb +51 -0
  533. data/lib/inttegro/purchase_intent/create_request_price_original.rb +35 -0
  534. data/lib/inttegro/purchase_intent/create_request_product.rb +34 -0
  535. data/lib/inttegro/purchase_intent/create_request_quantity.rb +35 -0
  536. data/lib/inttegro/purchase_intent/create_request_usage.rb +34 -0
  537. data/lib/inttegro/purchase_intent/lookup_request.rb +27 -0
  538. data/lib/inttegro/purchase_intent/merchant.rb +42 -0
  539. data/lib/inttegro/purchase_intent/original_price.rb +49 -0
  540. data/lib/inttegro/purchase_intent/page.rb +42 -0
  541. data/lib/inttegro/purchase_intent/page_request.rb +34 -0
  542. data/lib/inttegro/purchase_intent/page_response.rb +28 -0
  543. data/lib/inttegro/purchase_intent/price.rb +57 -0
  544. data/lib/inttegro/purchase_intent/product.rb +174 -0
  545. data/lib/inttegro/purchase_intent/product_attributes_item.rb +34 -0
  546. data/lib/inttegro/purchase_intent/purchase_intent.rb +128 -0
  547. data/lib/inttegro/purchase_intent/quantity.rb +36 -0
  548. data/lib/inttegro/purchase_intent/questions.rb +38 -0
  549. data/lib/inttegro/purchase_intent/response.rb +28 -0
  550. data/lib/inttegro/purchase_intent/status.rb +33 -0
  551. data/lib/inttegro/purchase_intent/update_request.rb +61 -0
  552. data/lib/inttegro/purchase_intent/update_request_quantity.rb +36 -0
  553. data/lib/inttegro/purchase_intent/usage.rb +43 -0
  554. data/lib/inttegro/purchase_intent/usage_order.rb +34 -0
  555. data/lib/inttegro/purchase_intent/variant.rb +64 -0
  556. data/lib/inttegro/purchase_intent/variant_axis.rb +41 -0
  557. data/lib/inttegro/purchase_intent/variant_set.rb +78 -0
  558. data/lib/inttegro/refund/base.rb +11 -0
  559. data/lib/inttegro/refund/cancel_request.rb +35 -0
  560. data/lib/inttegro/refund/create_line_item.rb +51 -0
  561. data/lib/inttegro/refund/create_request.rb +73 -0
  562. data/lib/inttegro/refund/line_item.rb +64 -0
  563. data/lib/inttegro/refund/lookup_request.rb +27 -0
  564. data/lib/inttegro/refund/page.rb +42 -0
  565. data/lib/inttegro/refund/page_request.rb +34 -0
  566. data/lib/inttegro/refund/page_response.rb +28 -0
  567. data/lib/inttegro/refund/reason.rb +48 -0
  568. data/lib/inttegro/refund/refund.rb +121 -0
  569. data/lib/inttegro/refund/request_meta.rb +27 -0
  570. data/lib/inttegro/refund/response.rb +28 -0
  571. data/lib/inttegro/refund/status.rb +36 -0
  572. data/lib/inttegro/resources/apps.rb +19 -0
  573. data/lib/inttegro/resources/balance_transactions.rb +13 -1
  574. data/lib/inttegro/resources/balances.rb +8 -1
  575. data/lib/inttegro/resources/broadcasts.rb +14 -2
  576. data/lib/inttegro/resources/chimes.rb +27 -3
  577. data/lib/inttegro/resources/customers.rb +21 -1
  578. data/lib/inttegro/resources/file_links.rb +32 -2
  579. data/lib/inttegro/resources/file_references.rb +9 -1
  580. data/lib/inttegro/resources/files.rb +30 -1
  581. data/lib/inttegro/resources/financial_accounts.rb +51 -1
  582. data/lib/inttegro/resources/keys.rb +41 -3
  583. data/lib/inttegro/resources/message_templates.rb +38 -2
  584. data/lib/inttegro/resources/orders.rb +18 -13
  585. data/lib/inttegro/resources/otp.rb +24 -4
  586. data/lib/inttegro/resources/payment_methods.rb +33 -8
  587. data/lib/inttegro/resources/payouts.rb +26 -14
  588. data/lib/inttegro/resources/prices.rb +39 -7
  589. data/lib/inttegro/resources/products.rb +43 -3
  590. data/lib/inttegro/resources/purchase_intents.rb +25 -1
  591. data/lib/inttegro/resources/refunds.rb +21 -1
  592. data/lib/inttegro/resources/schedules.rb +14 -2
  593. data/lib/inttegro/resources/spec.rb +8 -1
  594. data/lib/inttegro/resources/upload_requests.rb +37 -4
  595. data/lib/inttegro/schedule/base.rb +17 -0
  596. data/lib/inttegro/schedule/cancel_detail.rb +120 -0
  597. data/lib/inttegro/schedule/cancel_request.rb +27 -0
  598. data/lib/inttegro/schedule/cancel_response.rb +28 -0
  599. data/lib/inttegro/schedule/chime_request.rb +81 -0
  600. data/lib/inttegro/schedule/chime_request_request_meta.rb +27 -0
  601. data/lib/inttegro/schedule/creation_detail.rb +98 -0
  602. data/lib/inttegro/schedule/detail.rb +113 -0
  603. data/lib/inttegro/schedule/error.rb +41 -0
  604. data/lib/inttegro/schedule/lookup_request.rb +27 -0
  605. data/lib/inttegro/schedule/lookup_response.rb +28 -0
  606. data/lib/inttegro/schedule/payout_request.rb +48 -0
  607. data/lib/inttegro/schedule/payout_response.rb +28 -0
  608. data/lib/inttegro/schedule/response.rb +28 -0
  609. data/lib/inttegro/secret_key/auth_result.rb +27 -0
  610. data/lib/inttegro/secret_key/base.rb +11 -0
  611. data/lib/inttegro/secret_key/destroy_request.rb +27 -0
  612. data/lib/inttegro/secret_key/destroy_response.rb +29 -0
  613. data/lib/inttegro/secret_key/generate_request.rb +28 -0
  614. data/lib/inttegro/secret_key/generate_response.rb +28 -0
  615. data/lib/inttegro/secret_key/generated.rb +56 -0
  616. data/lib/inttegro/secret_key/lookup_request.rb +27 -0
  617. data/lib/inttegro/secret_key/lookup_response.rb +29 -0
  618. data/lib/inttegro/secret_key/page.rb +63 -0
  619. data/lib/inttegro/secret_key/page_request.rb +41 -0
  620. data/lib/inttegro/secret_key/page_response.rb +28 -0
  621. data/lib/inttegro/secret_key/secret_key.rb +98 -0
  622. data/lib/inttegro/secret_key/status.rb +30 -0
  623. data/lib/inttegro/secret_key/token_type.rb +24 -0
  624. data/lib/inttegro/secret_key/update_request.rb +34 -0
  625. data/lib/inttegro/secret_key/update_response.rb +29 -0
  626. data/lib/inttegro/secret_key/usage.rb +37 -0
  627. data/lib/inttegro/secret_key/usage_page.rb +63 -0
  628. data/lib/inttegro/secret_key/usage_request.rb +48 -0
  629. data/lib/inttegro/secret_key/usage_row.rb +42 -0
  630. data/lib/inttegro/shared/address.rb +83 -0
  631. data/lib/inttegro/shared/base.rb +17 -0
  632. data/lib/inttegro/shared/billing_details.rb +49 -0
  633. data/lib/inttegro/shared/content_safety_status.rb +30 -0
  634. data/lib/inttegro/shared/country_bank.rb +56 -0
  635. data/lib/inttegro/shared/country_bank_branch.rb +41 -0
  636. data/lib/inttegro/shared/country_bank_directory.rb +42 -0
  637. data/lib/inttegro/shared/country_specification.rb +91 -0
  638. data/lib/inttegro/shared/country_specifications.rb +28 -0
  639. data/lib/inttegro/shared/delivery_channel.rb +27 -0
  640. data/lib/inttegro/shared/dosh_account.rb +22 -0
  641. data/lib/inttegro/shared/error_envelope.rb +29 -0
  642. data/lib/inttegro/shared/error_payload.rb +76 -0
  643. data/lib/inttegro/shared/fee_details.rb +64 -0
  644. data/lib/inttegro/shared/fee_line_item.rb +36 -0
  645. data/lib/inttegro/shared/fee_line_item_type.rb +24 -0
  646. data/lib/inttegro/shared/financial_institution.rb +64 -0
  647. data/lib/inttegro/shared/financial_institution_bank.rb +56 -0
  648. data/lib/inttegro/shared/financial_institution_bank_branch.rb +41 -0
  649. data/lib/inttegro/shared/financial_institution_mobile_money_provider.rb +28 -0
  650. data/lib/inttegro/shared/invoice_settings.rb +51 -0
  651. data/lib/inttegro/shared/line_item.rb +19 -0
  652. data/lib/inttegro/shared/list_country_specs_request.rb +21 -0
  653. data/lib/inttegro/shared/mobile_money.rb +35 -0
  654. data/lib/inttegro/shared/mobile_money_network.rb +33 -0
  655. data/lib/inttegro/shared/request_confirmation_request.rb +27 -0
  656. data/lib/inttegro/shared/resource_supply.rb +62 -0
  657. data/lib/inttegro/shared/shipping.rb +28 -0
  658. data/lib/inttegro/shared/shipping_details.rb +50 -0
  659. data/lib/inttegro/shared/shipping_line_item.rb +36 -0
  660. data/lib/inttegro/shared/shipping_line_item_type.rb +24 -0
  661. data/lib/inttegro/shared/upload_fulfillment.rb +36 -0
  662. data/lib/inttegro/shared/upload_review_decision.rb +28 -0
  663. data/lib/inttegro/shared/upload_review_type.rb +27 -0
  664. data/lib/inttegro/upload_request/actor.rb +48 -0
  665. data/lib/inttegro/upload_request/attempt.rb +113 -0
  666. data/lib/inttegro/upload_request/attempts.rb +48 -0
  667. data/lib/inttegro/upload_request/attempts_request.rb +27 -0
  668. data/lib/inttegro/upload_request/base.rb +11 -0
  669. data/lib/inttegro/upload_request/cancel_request.rb +35 -0
  670. data/lib/inttegro/upload_request/constraints.rb +62 -0
  671. data/lib/inttegro/upload_request/create_request.rb +97 -0
  672. data/lib/inttegro/upload_request/details.rb +205 -0
  673. data/lib/inttegro/upload_request/display.rb +41 -0
  674. data/lib/inttegro/upload_request/fulfill_request.rb +27 -0
  675. data/lib/inttegro/upload_request/latest_error.rb +55 -0
  676. data/lib/inttegro/upload_request/lookup_request.rb +27 -0
  677. data/lib/inttegro/upload_request/page.rb +42 -0
  678. data/lib/inttegro/upload_request/page_request.rb +57 -0
  679. data/lib/inttegro/upload_request/page_response.rb +28 -0
  680. data/lib/inttegro/upload_request/response.rb +28 -0
  681. data/lib/inttegro/upload_request/review.rb +72 -0
  682. data/lib/inttegro/upload_request/review_attempt_by_id_request.rb +57 -0
  683. data/lib/inttegro/upload_request/review_attempt_by_ordinal_request.rb +57 -0
  684. data/lib/inttegro/upload_request/review_attempt_request.rb +18 -0
  685. data/lib/inttegro/upload_request/review_reason.rb +41 -0
  686. data/lib/inttegro/upload_request/review_reason_input.rb +41 -0
  687. data/lib/inttegro/upload_request/status.rb +39 -0
  688. data/lib/inttegro/upload_request/upload_request.rb +195 -0
  689. data/lib/inttegro/upload_request/validation_failure.rb +36 -0
  690. data/lib/inttegro/upload_request/validation_failure_error.rb +48 -0
  691. data/lib/inttegro/upload_request/with_attempt_response.rb +28 -0
  692. data/lib/inttegro/version.rb +1 -1
  693. data/lib/inttegro/wallet/base.rb +17 -0
  694. data/lib/inttegro/wallet/type.rb +24 -0
  695. data/rbi/inttegro/generated.rbi +82 -82
  696. metadata +663 -2
@@ -0,0 +1,97 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Checkout
10
+ # Typed representation of the invoice view beneficiary object in the Inttegro API.
11
+ #
12
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
13
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
14
+ # field names and serialized enum values.
15
+ #
16
+ # @api public
17
+ #
18
+ # @!attribute [r] id
19
+ # Value of the `id` field in the Inttegro API payload.
20
+ #
21
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `id`.
22
+ # @return [String, nil]
23
+ #
24
+ # @!attribute [r] legal_entity_type
25
+ # Value of the `legal_entity_type` field in the Inttegro API payload.
26
+ #
27
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `legal_entity_type`.
28
+ # @return [String, nil]
29
+ #
30
+ # @!attribute [r] logo_url
31
+ # Value of the `logo_url` field in the Inttegro API payload.
32
+ #
33
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `logo_url`.
34
+ # @return [String, nil]
35
+ #
36
+ # @!attribute [r] alias
37
+ # Value of the `alias` field in the Inttegro API payload.
38
+ #
39
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `alias`.
40
+ # @return [String, nil]
41
+ #
42
+ # @!attribute [r] name
43
+ # Value of the `name` field in the Inttegro API payload.
44
+ #
45
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `name`.
46
+ # @return [String, nil]
47
+ #
48
+ # @!attribute [r] support_email
49
+ # Value of the `support_email` field in the Inttegro API payload.
50
+ #
51
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `support_email`.
52
+ # @return [String, nil]
53
+ #
54
+ # @!attribute [r] support_phone
55
+ # Value of the `support_phone` field in the Inttegro API payload.
56
+ #
57
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `support_phone`.
58
+ # @return [String, nil]
59
+ #
60
+ # @!attribute [r] website_url
61
+ # Value of the `website_url` field in the Inttegro API payload.
62
+ #
63
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `website_url`.
64
+ # @return [String, nil]
65
+ #
66
+ # @!attribute [r] accent_color
67
+ # Value of the `accent_color` field in the Inttegro API payload.
68
+ #
69
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `accent_color`.
70
+ # @return [String, nil]
71
+ #
72
+ # @!attribute [r] invoice_support_line
73
+ # Value of the `invoice_support_line` field in the Inttegro API payload.
74
+ #
75
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `invoice_support_line`.
76
+ # @return [String, nil]
77
+ #
78
+ # @!attribute [r] invoice_footer
79
+ # Value of the `invoice_footer` field in the Inttegro API payload.
80
+ #
81
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `invoice_footer`.
82
+ # @return [String, nil]
83
+ class InvoiceViewBeneficiary < T::Struct
84
+ const :id, T.nilable(String), default: nil
85
+ const :legal_entity_type, T.nilable(String), default: nil
86
+ const :logo_url, T.nilable(String), default: nil
87
+ const :alias, T.nilable(String), default: nil
88
+ const :name, T.nilable(String), default: nil
89
+ const :support_email, T.nilable(String), default: nil
90
+ const :support_phone, T.nilable(String), default: nil
91
+ const :website_url, T.nilable(String), default: nil
92
+ const :accent_color, T.nilable(String), default: nil
93
+ const :invoice_support_line, T.nilable(String), default: nil
94
+ const :invoice_footer, T.nilable(String), default: nil
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "invoice_view_format_pdf"
8
+ require_relative "invoice_view_format_receipt"
9
+ require_relative "invoice_view_format_web"
10
+
11
+ module Inttegro
12
+ module Checkout
13
+ # Typed representation of the invoice view format object in the Inttegro API.
14
+ #
15
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
16
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
17
+ # field names and serialized enum values.
18
+ #
19
+ # @api public
20
+ #
21
+ # @!attribute [r] web
22
+ # Value of the `web` field in the Inttegro API payload.
23
+ #
24
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `web`.
25
+ # @return [Inttegro::Checkout::InvoiceViewFormatWeb, nil]
26
+ #
27
+ # @!attribute [r] pdf
28
+ # Value of the `pdf` field in the Inttegro API payload.
29
+ #
30
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `pdf`.
31
+ # @return [Inttegro::Checkout::InvoiceViewFormatPdf, nil]
32
+ #
33
+ # @!attribute [r] receipt
34
+ # Value of the `receipt` field in the Inttegro API payload.
35
+ #
36
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `receipt`.
37
+ # @return [Inttegro::Checkout::InvoiceViewFormatReceipt, nil]
38
+ class InvoiceViewFormat < T::Struct
39
+ const :web, T.nilable(Inttegro::Checkout::InvoiceViewFormatWeb), default: nil
40
+ const :pdf, T.nilable(Inttegro::Checkout::InvoiceViewFormatPdf), default: nil
41
+ const :receipt, T.nilable(Inttegro::Checkout::InvoiceViewFormatReceipt), default: nil
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Checkout
10
+ # Typed representation of the invoice view format pdf object in the Inttegro API.
11
+ #
12
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
13
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
14
+ # field names and serialized enum values.
15
+ #
16
+ # @api public
17
+ #
18
+ # @!attribute [r] url
19
+ # Value of the `url` field in the Inttegro API payload.
20
+ #
21
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `url`.
22
+ # @return [String, nil]
23
+ class InvoiceViewFormatPdf < T::Struct
24
+ const :url, T.nilable(String), default: nil
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Checkout
10
+ # Typed representation of the invoice view format receipt object in the Inttegro API.
11
+ #
12
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
13
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
14
+ # field names and serialized enum values.
15
+ #
16
+ # @api public
17
+ #
18
+ # @!attribute [r] url
19
+ # Value of the `url` field in the Inttegro API payload.
20
+ #
21
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `url`.
22
+ # @return [String, nil]
23
+ class InvoiceViewFormatReceipt < T::Struct
24
+ const :url, T.nilable(String), default: nil
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Checkout
10
+ # Typed representation of the invoice view format web object in the Inttegro API.
11
+ #
12
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
13
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
14
+ # field names and serialized enum values.
15
+ #
16
+ # @api public
17
+ #
18
+ # @!attribute [r] url
19
+ # Value of the `url` field in the Inttegro API payload.
20
+ #
21
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `url`.
22
+ # @return [String, nil]
23
+ class InvoiceViewFormatWeb < T::Struct
24
+ const :url, T.nilable(String), default: nil
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Checkout
10
+ # String-backed values accepted by the Inttegro API for Inttegro::Checkout::InvoiceViewStatus.
11
+ #
12
+ # Use the constants below when constructing a request. `#serialize` returns the documented
13
+ # string wire value received from or sent to the API.
14
+ #
15
+ # @api public
16
+ class InvoiceViewStatus < T::Enum
17
+ enums do
18
+ # Serialized wire value: `draft`.
19
+ # @return [Inttegro::Checkout::InvoiceViewStatus]
20
+ DRAFT = new("draft")
21
+ # Serialized wire value: `requires_payment`.
22
+ # @return [Inttegro::Checkout::InvoiceViewStatus]
23
+ REQUIRES_PAYMENT = new("requires_payment")
24
+ # Serialized wire value: `overdue`.
25
+ # @return [Inttegro::Checkout::InvoiceViewStatus]
26
+ OVERDUE = new("overdue")
27
+ # Serialized wire value: `paid`.
28
+ # @return [Inttegro::Checkout::InvoiceViewStatus]
29
+ PAID = new("paid")
30
+ # Serialized wire value: `expired`.
31
+ # @return [Inttegro::Checkout::InvoiceViewStatus]
32
+ EXPIRED = new("expired")
33
+ # Serialized wire value: `canceled`.
34
+ # @return [Inttegro::Checkout::InvoiceViewStatus]
35
+ CANCELED = new("canceled")
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "mobile_money_data_network"
8
+
9
+ module Inttegro
10
+ module Checkout
11
+ # Typed representation of the mobile money data object in the Inttegro API.
12
+ #
13
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
14
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
15
+ # field names and serialized enum values.
16
+ #
17
+ # @api public
18
+ #
19
+ # @!attribute [r] reference
20
+ # Value of the `reference` field in the Inttegro API payload.
21
+ #
22
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `reference`.
23
+ # @return [String, nil]
24
+ #
25
+ # @!attribute [r] network
26
+ # Value of the `network` field in the Inttegro API payload.
27
+ #
28
+ # Required in the API payload. Wire name: `network`.
29
+ # @return [Inttegro::Checkout::MobileMoneyDataNetwork]
30
+ #
31
+ # @!attribute [r] account_number
32
+ # Value of the `account_number` field in the Inttegro API payload.
33
+ #
34
+ # Required in the API payload. Wire name: `account_number`.
35
+ # @return [String]
36
+ class MobileMoneyData < T::Struct
37
+ const :reference, T.nilable(String), default: nil
38
+ const :network, Inttegro::Checkout::MobileMoneyDataNetwork
39
+ const :account_number, String
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Checkout
10
+ # String-backed values accepted by the Inttegro API for
11
+ # Inttegro::Checkout::MobileMoneyDataNetwork.
12
+ #
13
+ # Use the constants below when constructing a request. `#serialize` returns the documented
14
+ # string wire value received from or sent to the API.
15
+ #
16
+ # @api public
17
+ class MobileMoneyDataNetwork < T::Enum
18
+ enums do
19
+ # Serialized wire value: `mtn`.
20
+ # @return [Inttegro::Checkout::MobileMoneyDataNetwork]
21
+ MTN = new("mtn")
22
+ # Serialized wire value: `vodafone`.
23
+ # @return [Inttegro::Checkout::MobileMoneyDataNetwork]
24
+ VODAFONE = new("vodafone")
25
+ # Serialized wire value: `airtel`.
26
+ # @return [Inttegro::Checkout::MobileMoneyDataNetwork]
27
+ AIRTEL = new("airtel")
28
+ # Serialized wire value: `telecel`.
29
+ # @return [Inttegro::Checkout::MobileMoneyDataNetwork]
30
+ TELECEL = new("telecel")
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,154 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "invoice_view"
8
+ require_relative "order_checkout_settings"
9
+ require_relative "order_created_from"
10
+ require_relative "order_customer"
11
+ require_relative "order_line_item_group"
12
+ require_relative "order_payment"
13
+ require_relative "order_status"
14
+
15
+ module Inttegro
16
+ module Checkout
17
+ # Current checkout projection. Its existing fields are published unchanged for the initial
18
+ # mobile SDK contract and may be narrowed in a future contract revision.
19
+ #
20
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
21
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
22
+ # field names and serialized enum values.
23
+ #
24
+ # @api public
25
+ #
26
+ # @!attribute [r] id
27
+ # Value of the `id` field in the Inttegro API payload.
28
+ #
29
+ # Required in the API payload. Wire name: `id`.
30
+ # @return [String]
31
+ #
32
+ # @!attribute [r] number
33
+ # Value of the `number` field in the Inttegro API payload.
34
+ #
35
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `number`.
36
+ # @return [String, nil]
37
+ #
38
+ # @!attribute [r] receipt_number
39
+ # Value of the `receipt_number` field in the Inttegro API payload.
40
+ #
41
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `receipt_number`.
42
+ # @return [String, nil]
43
+ #
44
+ # @!attribute [r] reference
45
+ # Value of the `reference` field in the Inttegro API payload.
46
+ #
47
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `reference`.
48
+ # @return [String, nil]
49
+ #
50
+ # @!attribute [r] status
51
+ # Value of the `status` field in the Inttegro API payload.
52
+ #
53
+ # Required in the API payload. Wire name: `status`.
54
+ # @return [Inttegro::Checkout::OrderStatus]
55
+ #
56
+ # @!attribute [r] initiated_at
57
+ # Value of the `initiated_at` field in the Inttegro API payload.
58
+ #
59
+ # Required in the API payload. Wire name: `initiated_at`.
60
+ # @return [Time]
61
+ #
62
+ # @!attribute [r] sealed_at
63
+ # Value of the `sealed_at` field in the Inttegro API payload.
64
+ #
65
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `sealed_at`.
66
+ # @return [Time, nil]
67
+ #
68
+ # @!attribute [r] completed_at
69
+ # Value of the `completed_at` field in the Inttegro API payload.
70
+ #
71
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `completed_at`.
72
+ # @return [Time, nil]
73
+ #
74
+ # @!attribute [r] paid_at
75
+ # Value of the `paid_at` field in the Inttegro API payload.
76
+ #
77
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `paid_at`.
78
+ # @return [Time, nil]
79
+ #
80
+ # @!attribute [r] canceled_at
81
+ # Value of the `canceled_at` field in the Inttegro API payload.
82
+ #
83
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `canceled_at`.
84
+ # @return [Time, nil]
85
+ #
86
+ # @!attribute [r] expires_at
87
+ # Value of the `expires_at` field in the Inttegro API payload.
88
+ #
89
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `expires_at`.
90
+ # @return [Time, nil]
91
+ #
92
+ # @!attribute [r] payment_due_at
93
+ # Value of the `payment_due_at` field in the Inttegro API payload.
94
+ #
95
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `payment_due_at`.
96
+ # @return [Time, nil]
97
+ #
98
+ # @!attribute [r] checkout_settings
99
+ # Value of the `checkout_settings` field in the Inttegro API payload.
100
+ #
101
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `checkout_settings`.
102
+ # @return [Inttegro::Checkout::OrderCheckoutSettings, nil]
103
+ #
104
+ # @!attribute [r] line_item_group
105
+ # Value of the `line_item_group` field in the Inttegro API payload.
106
+ #
107
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `line_item_group`.
108
+ # @return [Inttegro::Checkout::OrderLineItemGroup, nil]
109
+ #
110
+ # @!attribute [r] customer
111
+ # Value of the `customer` field in the Inttegro API payload.
112
+ #
113
+ # Required in the API payload. Wire name: `customer`.
114
+ # @return [Inttegro::Checkout::OrderCustomer]
115
+ #
116
+ # @!attribute [r] created_from
117
+ # Value of the `created_from` field in the Inttegro API payload.
118
+ #
119
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `created_from`.
120
+ # @return [Inttegro::Checkout::OrderCreatedFrom, nil]
121
+ #
122
+ # @!attribute [r] payment
123
+ # Value of the `payment` field in the Inttegro API payload.
124
+ #
125
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `payment`.
126
+ # @return [Inttegro::Checkout::OrderPayment, nil]
127
+ #
128
+ # @!attribute [r] invoice
129
+ # Value of the `invoice` field in the Inttegro API payload.
130
+ #
131
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `invoice`.
132
+ # @return [Inttegro::Checkout::InvoiceView, nil]
133
+ class Order < T::Struct
134
+ const :id, String
135
+ const :number, T.nilable(String), default: nil
136
+ const :receipt_number, T.nilable(String), default: nil
137
+ const :reference, T.nilable(String), default: nil
138
+ const :status, Inttegro::Checkout::OrderStatus
139
+ const :initiated_at, Time
140
+ const :sealed_at, T.nilable(Time), default: nil
141
+ const :completed_at, T.nilable(Time), default: nil
142
+ const :paid_at, T.nilable(Time), default: nil
143
+ const :canceled_at, T.nilable(Time), default: nil
144
+ const :expires_at, T.nilable(Time), default: nil
145
+ const :payment_due_at, T.nilable(Time), default: nil
146
+ const :checkout_settings, T.nilable(Inttegro::Checkout::OrderCheckoutSettings), default: nil
147
+ const :line_item_group, T.nilable(Inttegro::Checkout::OrderLineItemGroup), default: nil
148
+ const :customer, Inttegro::Checkout::OrderCustomer
149
+ const :created_from, T.nilable(Inttegro::Checkout::OrderCreatedFrom), default: nil
150
+ const :payment, T.nilable(Inttegro::Checkout::OrderPayment), default: nil
151
+ const :invoice, T.nilable(Inttegro::Checkout::InvoiceView), default: nil
152
+ end
153
+ end
154
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Checkout
10
+ # Typed representation of the order checkout settings object in the Inttegro API.
11
+ #
12
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
13
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
14
+ # field names and serialized enum values.
15
+ #
16
+ # @api public
17
+ #
18
+ # @!attribute [r] redirect_url
19
+ # Value of the `redirect_url` field in the Inttegro API payload.
20
+ #
21
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `redirect_url`.
22
+ # @return [String, nil]
23
+ #
24
+ # @!attribute [r] cancel_url
25
+ # Value of the `cancel_url` field in the Inttegro API payload.
26
+ #
27
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `cancel_url`.
28
+ # @return [String, nil]
29
+ class OrderCheckoutSettings < T::Struct
30
+ const :redirect_url, T.nilable(String), default: nil
31
+ const :cancel_url, T.nilable(String), default: nil
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Checkout
10
+ # Typed representation of the order created from object in the Inttegro API.
11
+ #
12
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
13
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
14
+ # field names and serialized enum values.
15
+ #
16
+ # @api public
17
+ #
18
+ # @!attribute [r] source
19
+ # Value of the `source` field in the Inttegro API payload.
20
+ #
21
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `source`.
22
+ # @return [String, nil]
23
+ #
24
+ # @!attribute [r] resource_type
25
+ # Value of the `resource_type` field in the Inttegro API payload.
26
+ #
27
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `resource_type`.
28
+ # @return [String, nil]
29
+ #
30
+ # @!attribute [r] resource_id
31
+ # Value of the `resource_id` field in the Inttegro API payload.
32
+ #
33
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `resource_id`.
34
+ # @return [String, nil]
35
+ class OrderCreatedFrom < T::Struct
36
+ const :source, T.nilable(String), default: nil
37
+ const :resource_type, T.nilable(String), default: nil
38
+ const :resource_id, T.nilable(String), default: nil
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+ require_relative "order_customer_billing_address"
8
+ require_relative "order_customer_shipping_address"
9
+
10
+ module Inttegro
11
+ module Checkout
12
+ # Typed representation of the order customer object in the Inttegro API.
13
+ #
14
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
15
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
16
+ # field names and serialized enum values.
17
+ #
18
+ # @api public
19
+ #
20
+ # @!attribute [r] id
21
+ # Value of the `id` field in the Inttegro API payload.
22
+ #
23
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `id`.
24
+ # @return [String, nil]
25
+ #
26
+ # @!attribute [r] guest
27
+ # Value of the `guest` field in the Inttegro API payload.
28
+ #
29
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `guest`.
30
+ # @return [Boolean, nil]
31
+ #
32
+ # @!attribute [r] name
33
+ # Value of the `name` field in the Inttegro API payload.
34
+ #
35
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `name`.
36
+ # @return [String, nil]
37
+ #
38
+ # @!attribute [r] email_address
39
+ # Value of the `email_address` field in the Inttegro API payload.
40
+ #
41
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `email_address`.
42
+ # @return [String, nil]
43
+ #
44
+ # @!attribute [r] phone_number
45
+ # Value of the `phone_number` field in the Inttegro API payload.
46
+ #
47
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `phone_number`.
48
+ # @return [String, nil]
49
+ #
50
+ # @!attribute [r] billing_address
51
+ # Value of the `billing_address` field in the Inttegro API payload.
52
+ #
53
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `billing_address`.
54
+ # @return [Inttegro::Checkout::OrderCustomerBillingAddress, nil]
55
+ #
56
+ # @!attribute [r] shipping_address
57
+ # Value of the `shipping_address` field in the Inttegro API payload.
58
+ #
59
+ # Optional in the API payload; omitted values default to `nil`. Wire name: `shipping_address`.
60
+ # @return [Inttegro::Checkout::OrderCustomerShippingAddress, nil]
61
+ class OrderCustomer < T::Struct
62
+ const :id, T.nilable(String), default: nil
63
+ const :guest, T.nilable(T::Boolean), default: nil
64
+ const :name, T.nilable(String), default: nil
65
+ const :email_address, T.nilable(String), default: nil
66
+ const :phone_number, T.nilable(String), default: nil
67
+ const :billing_address, T.nilable(Inttegro::Checkout::OrderCustomerBillingAddress), default: nil
68
+ const :shipping_address, T.nilable(Inttegro::Checkout::OrderCustomerShippingAddress), default: nil
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ # Generated from openapi/commerce.yml by bin/generate-openapi-types. Do not edit.
5
+
6
+ require_relative "base"
7
+
8
+ module Inttegro
9
+ module Checkout
10
+ # Typed representation of the order customer billing address object in the Inttegro API.
11
+ #
12
+ # This generated model is immutable. Construct it with `.new`, or decode a string-keyed API
13
+ # payload with `.from_hash`. `#serialize` produces a string-keyed hash using the original wire
14
+ # field names and serialized enum values.
15
+ #
16
+ # @api public
17
+ class OrderCustomerBillingAddress < T::Struct
18
+ # This object intentionally has no fields.
19
+ end
20
+ end
21
+ end