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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +39 -3
- data/Rakefile +2 -0
- data/lib/inttegro/app/application.rb +69 -0
- data/lib/inttegro/app/base.rb +11 -0
- data/lib/inttegro/app/create_request.rb +65 -0
- data/lib/inttegro/app/create_request_relationship_policy.rb +45 -0
- data/lib/inttegro/app/create_response.rb +28 -0
- data/lib/inttegro/app/credential_owner.rb +28 -0
- data/lib/inttegro/app/looked_up.rb +69 -0
- data/lib/inttegro/app/lookup_response.rb +28 -0
- data/lib/inttegro/app/management_role.rb +27 -0
- data/lib/inttegro/app/relationship.rb +114 -0
- data/lib/inttegro/app/relationship_kind.rb +25 -0
- data/lib/inttegro/app/relationship_policy.rb +43 -0
- data/lib/inttegro/app/relationship_status.rb +34 -0
- data/lib/inttegro/app/secret_key.rb +48 -0
- data/lib/inttegro/app/update_request.rb +48 -0
- data/lib/inttegro/app/update_response.rb +28 -0
- data/lib/inttegro/app/updated.rb +62 -0
- data/lib/inttegro/balance/base.rb +17 -0
- data/lib/inttegro/balance/currency_snapshot.rb +58 -0
- data/lib/inttegro/balance/currency_snapshot_refund.rb +27 -0
- data/lib/inttegro/balance/currency_snapshot_reserved.rb +27 -0
- data/lib/inttegro/balance/lookup_request.rb +21 -0
- data/lib/inttegro/balance/snapshot.rb +28 -0
- data/lib/inttegro/balance/snapshot_response.rb +28 -0
- data/lib/inttegro/balance/value.rb +27 -0
- data/lib/inttegro/balance_transaction/amount.rb +34 -0
- data/lib/inttegro/balance_transaction/balance_transaction.rb +107 -0
- data/lib/inttegro/balance_transaction/base.rb +11 -0
- data/lib/inttegro/balance_transaction/lookup_request.rb +27 -0
- data/lib/inttegro/balance_transaction/page.rb +42 -0
- data/lib/inttegro/balance_transaction/page_request.rb +34 -0
- data/lib/inttegro/balance_transaction/page_response.rb +28 -0
- data/lib/inttegro/balance_transaction/payout_configuration.rb +35 -0
- data/lib/inttegro/balance_transaction/payout_configuration_destination.rb +27 -0
- data/lib/inttegro/balance_transaction/questions.rb +48 -0
- data/lib/inttegro/balance_transaction/response.rb +30 -0
- data/lib/inttegro/balance_transaction/type.rb +27 -0
- data/lib/inttegro/bank_account/base.rb +17 -0
- data/lib/inttegro/bank_account/created.rb +63 -0
- data/lib/inttegro/bank_account/ghana_bank_account.rb +63 -0
- data/lib/inttegro/bank_account/type.rb +24 -0
- data/lib/inttegro/bank_account/updated.rb +63 -0
- data/lib/inttegro/broadcast/base.rb +17 -0
- data/lib/inttegro/broadcast/cancel_detail.rb +120 -0
- data/lib/inttegro/broadcast/cancel_request.rb +27 -0
- data/lib/inttegro/broadcast/cancel_response.rb +28 -0
- data/lib/inttegro/broadcast/creation_detail.rb +91 -0
- data/lib/inttegro/broadcast/detail.rb +113 -0
- data/lib/inttegro/broadcast/error.rb +41 -0
- data/lib/inttegro/broadcast/lookup_request.rb +27 -0
- data/lib/inttegro/broadcast/lookup_response.rb +28 -0
- data/lib/inttegro/broadcast/request.rb +68 -0
- data/lib/inttegro/broadcast/request_request_meta.rb +27 -0
- data/lib/inttegro/broadcast/response.rb +28 -0
- data/lib/inttegro/checkout/base.rb +17 -0
- data/lib/inttegro/checkout/billing_details.rb +42 -0
- data/lib/inttegro/checkout/confirm_payment_request.rb +48 -0
- data/lib/inttegro/checkout/invoice_view.rb +79 -0
- data/lib/inttegro/checkout/invoice_view_beneficiary.rb +97 -0
- data/lib/inttegro/checkout/invoice_view_format.rb +44 -0
- data/lib/inttegro/checkout/invoice_view_format_pdf.rb +27 -0
- data/lib/inttegro/checkout/invoice_view_format_receipt.rb +27 -0
- data/lib/inttegro/checkout/invoice_view_format_web.rb +27 -0
- data/lib/inttegro/checkout/invoice_view_status.rb +39 -0
- data/lib/inttegro/checkout/mobile_money_data.rb +42 -0
- data/lib/inttegro/checkout/mobile_money_data_network.rb +34 -0
- data/lib/inttegro/checkout/order.rb +154 -0
- data/lib/inttegro/checkout/order_checkout_settings.rb +34 -0
- data/lib/inttegro/checkout/order_created_from.rb +41 -0
- data/lib/inttegro/checkout/order_customer.rb +71 -0
- data/lib/inttegro/checkout/order_customer_billing_address.rb +21 -0
- data/lib/inttegro/checkout/order_customer_shipping_address.rb +21 -0
- data/lib/inttegro/checkout/order_line_item_group.rb +36 -0
- data/lib/inttegro/checkout/order_payment.rb +160 -0
- data/lib/inttegro/checkout/order_payment_billing_details.rb +21 -0
- data/lib/inttegro/checkout/order_payment_latest_attempt.rb +21 -0
- data/lib/inttegro/checkout/order_payment_latest_error.rb +21 -0
- data/lib/inttegro/checkout/order_payment_next_action.rb +21 -0
- data/lib/inttegro/checkout/order_payment_payment_method.rb +21 -0
- data/lib/inttegro/checkout/order_reference_request.rb +27 -0
- data/lib/inttegro/checkout/order_response.rb +38 -0
- data/lib/inttegro/checkout/order_status.rb +42 -0
- data/lib/inttegro/checkout/pay_request.rb +53 -0
- data/lib/inttegro/checkout/pay_request_payment_method_data.rb +47 -0
- data/lib/inttegro/checkout/pay_request_payment_method_data_type.rb +25 -0
- data/lib/inttegro/checkout/payment_address.rb +76 -0
- data/lib/inttegro/checkout/payment_method_data.rb +45 -0
- data/lib/inttegro/checkout/payment_method_data_billing_details.rb +43 -0
- data/lib/inttegro/checkout/payment_method_data_type.rb +25 -0
- data/lib/inttegro/chime/base.rb +11 -0
- data/lib/inttegro/chime/chime.rb +99 -0
- data/lib/inttegro/chime/email_event.rb +118 -0
- data/lib/inttegro/chime/email_mailbox.rb +34 -0
- data/lib/inttegro/chime/email_message.rb +79 -0
- data/lib/inttegro/chime/email_message_input.rb +63 -0
- data/lib/inttegro/chime/email_safety_result.rb +78 -0
- data/lib/inttegro/chime/email_scanned_link.rb +56 -0
- data/lib/inttegro/chime/email_schema_kind.rb +30 -0
- data/lib/inttegro/chime/email_schema_markup.rb +36 -0
- data/lib/inttegro/chime/inline_recipient.rb +18 -0
- data/lib/inttegro/chime/inline_recipient_variant1.rb +43 -0
- data/lib/inttegro/chime/inline_recipient_variant1_phone.rb +27 -0
- data/lib/inttegro/chime/inline_recipient_variant1_type.rb +25 -0
- data/lib/inttegro/chime/inline_recipient_variant2.rb +43 -0
- data/lib/inttegro/chime/inline_recipient_variant2_email.rb +27 -0
- data/lib/inttegro/chime/inline_recipient_variant2_type.rb +25 -0
- data/lib/inttegro/chime/lookup_request.rb +27 -0
- data/lib/inttegro/chime/page.rb +42 -0
- data/lib/inttegro/chime/page_request.rb +49 -0
- data/lib/inttegro/chime/page_response.rb +28 -0
- data/lib/inttegro/chime/recipient.rb +18 -0
- data/lib/inttegro/chime/recipient_detail.rb +51 -0
- data/lib/inttegro/chime/recipient_detail_email.rb +27 -0
- data/lib/inttegro/chime/recipient_detail_phone.rb +27 -0
- data/lib/inttegro/chime/recipient_type.rb +27 -0
- data/lib/inttegro/chime/response.rb +28 -0
- data/lib/inttegro/chime/saved_customer_recipient.rb +35 -0
- data/lib/inttegro/chime/send_request.rb +82 -0
- data/lib/inttegro/chime/send_request_request_meta.rb +27 -0
- data/lib/inttegro/chime/transmission.rb +162 -0
- data/lib/inttegro/chime/transport.rb +27 -0
- data/lib/inttegro/customer/address.rb +76 -0
- data/lib/inttegro/customer/address_input.rb +76 -0
- data/lib/inttegro/customer/balance_value.rb +35 -0
- data/lib/inttegro/customer/base.rb +11 -0
- data/lib/inttegro/customer/create_request.rb +78 -0
- data/lib/inttegro/customer/customer.rb +119 -0
- data/lib/inttegro/customer/data.rb +56 -0
- data/lib/inttegro/customer/lookup_request.rb +27 -0
- data/lib/inttegro/customer/page.rb +42 -0
- data/lib/inttegro/customer/page_request.rb +34 -0
- data/lib/inttegro/customer/page_response.rb +28 -0
- data/lib/inttegro/customer/response.rb +37 -0
- data/lib/inttegro/customer/update_request.rb +92 -0
- data/lib/inttegro/enums.rb +4 -2
- data/lib/inttegro/file/actor.rb +48 -0
- data/lib/inttegro/file/actor_input.rb +48 -0
- data/lib/inttegro/file/api_error.rb +69 -0
- data/lib/inttegro/file/base.rb +11 -0
- data/lib/inttegro/file/contents_delivery_mode.rb +27 -0
- data/lib/inttegro/file/contents_request.rb +43 -0
- data/lib/inttegro/file/create_request.rb +48 -0
- data/lib/inttegro/file/delete_request.rb +27 -0
- data/lib/inttegro/file/delivery.rb +42 -0
- data/lib/inttegro/file/disposition.rb +27 -0
- data/lib/inttegro/file/file.rb +176 -0
- data/lib/inttegro/file/latest_error.rb +48 -0
- data/lib/inttegro/file/lookup_request.rb +27 -0
- data/lib/inttegro/file/media.rb +90 -0
- data/lib/inttegro/file/page.rb +42 -0
- data/lib/inttegro/file/page_request.rb +63 -0
- data/lib/inttegro/file/page_response.rb +28 -0
- data/lib/inttegro/file/party.rb +48 -0
- data/lib/inttegro/file/public_storage.rb +35 -0
- data/lib/inttegro/file/resource.rb +41 -0
- data/lib/inttegro/file/response.rb +29 -0
- data/lib/inttegro/file/scan_status.rb +33 -0
- data/lib/inttegro/file/service_health_response.rb +48 -0
- data/lib/inttegro/file/service_ready_response.rb +55 -0
- data/lib/inttegro/file/source.rb +42 -0
- data/lib/inttegro/file/source_type.rb +30 -0
- data/lib/inttegro/file/status.rb +36 -0
- data/lib/inttegro/file/storage_encoding.rb +27 -0
- data/lib/inttegro/file/upload_receipt.rb +70 -0
- data/lib/inttegro/file_link/access.rb +55 -0
- data/lib/inttegro/file_link/access_request.rb +48 -0
- data/lib/inttegro/file_link/actor.rb +48 -0
- data/lib/inttegro/file_link/base.rb +11 -0
- data/lib/inttegro/file_link/create_request.rb +66 -0
- data/lib/inttegro/file_link/creation.rb +35 -0
- data/lib/inttegro/file_link/delivery.rb +49 -0
- data/lib/inttegro/file_link/delivery_mode.rb +30 -0
- data/lib/inttegro/file_link/file_link.rb +136 -0
- data/lib/inttegro/file_link/kind.rb +24 -0
- data/lib/inttegro/file_link/lookup_request.rb +27 -0
- data/lib/inttegro/file_link/page.rb +42 -0
- data/lib/inttegro/file_link/page_request.rb +49 -0
- data/lib/inttegro/file_link/page_response.rb +28 -0
- data/lib/inttegro/file_link/response.rb +28 -0
- data/lib/inttegro/file_link/revoke_request.rb +35 -0
- data/lib/inttegro/file_link/status.rb +33 -0
- data/lib/inttegro/file_reference/base.rb +17 -0
- data/lib/inttegro/file_reference/input.rb +55 -0
- data/lib/inttegro/file_reference/reconcile_request.rb +42 -0
- data/lib/inttegro/file_reference/reconciliation.rb +27 -0
- data/lib/inttegro/financial_account/address.rb +76 -0
- data/lib/inttegro/financial_account/bank.rb +36 -0
- data/lib/inttegro/financial_account/bank_request.rb +97 -0
- data/lib/inttegro/financial_account/bank_request_bank_account.rb +36 -0
- data/lib/inttegro/financial_account/bank_request_bank_account_ghana_bank_account.rb +50 -0
- data/lib/inttegro/financial_account/bank_request_type.rb +25 -0
- data/lib/inttegro/financial_account/base.rb +11 -0
- data/lib/inttegro/financial_account/compact.rb +70 -0
- data/lib/inttegro/financial_account/connect_response.rb +28 -0
- data/lib/inttegro/financial_account/connected.rb +158 -0
- data/lib/inttegro/financial_account/create_request.rb +19 -0
- data/lib/inttegro/financial_account/create_response.rb +28 -0
- data/lib/inttegro/financial_account/created.rb +149 -0
- data/lib/inttegro/financial_account/created_address.rb +90 -0
- data/lib/inttegro/financial_account/created_bank.rb +43 -0
- data/lib/inttegro/financial_account/created_owner.rb +35 -0
- data/lib/inttegro/financial_account/details.rb +125 -0
- data/lib/inttegro/financial_account/disable_pull_response.rb +28 -0
- data/lib/inttegro/financial_account/disable_push_response.rb +28 -0
- data/lib/inttegro/financial_account/disable_request.rb +35 -0
- data/lib/inttegro/financial_account/disconnect_response.rb +28 -0
- data/lib/inttegro/financial_account/dosh_request.rb +97 -0
- data/lib/inttegro/financial_account/dosh_request_type.rb +25 -0
- data/lib/inttegro/financial_account/enable_pull_request.rb +41 -0
- data/lib/inttegro/financial_account/enable_pull_response.rb +28 -0
- data/lib/inttegro/financial_account/enable_push_response.rb +28 -0
- data/lib/inttegro/financial_account/financial_account.rb +163 -0
- data/lib/inttegro/financial_account/financial_account_page_request.rb +34 -0
- data/lib/inttegro/financial_account/id_request.rb +27 -0
- data/lib/inttegro/financial_account/lookup_response.rb +28 -0
- data/lib/inttegro/financial_account/mandate.rb +48 -0
- data/lib/inttegro/financial_account/owner.rb +35 -0
- data/lib/inttegro/financial_account/owner_input.rb +35 -0
- data/lib/inttegro/financial_account/owner_input_address.rb +76 -0
- data/lib/inttegro/financial_account/owner_update_input.rb +35 -0
- data/lib/inttegro/financial_account/owner_update_input_address.rb +76 -0
- data/lib/inttegro/financial_account/page.rb +42 -0
- data/lib/inttegro/financial_account/page_financial_accounts_request.rb +34 -0
- data/lib/inttegro/financial_account/page_response.rb +37 -0
- data/lib/inttegro/financial_account/page_response_inline.rb +28 -0
- data/lib/inttegro/financial_account/pull_configuration.rb +35 -0
- data/lib/inttegro/financial_account/push_configuration.rb +27 -0
- data/lib/inttegro/financial_account/reconnect_response.rb +28 -0
- data/lib/inttegro/financial_account/request_base.rb +88 -0
- data/lib/inttegro/financial_account/request_base_pull_configuration.rb +27 -0
- data/lib/inttegro/financial_account/request_base_push_configuration.rb +27 -0
- data/lib/inttegro/financial_account/type.rb +30 -0
- data/lib/inttegro/financial_account/update_request.rb +64 -0
- data/lib/inttegro/financial_account/update_response.rb +28 -0
- data/lib/inttegro/financial_account/updated.rb +165 -0
- data/lib/inttegro/financial_account/updated_address.rb +83 -0
- data/lib/inttegro/financial_account/updated_bank.rb +43 -0
- data/lib/inttegro/financial_account/updated_owner.rb +35 -0
- data/lib/inttegro/financial_account/updated_wallet.rb +43 -0
- data/lib/inttegro/financial_account/verification.rb +42 -0
- data/lib/inttegro/financial_account/verification_request.rb +41 -0
- data/lib/inttegro/financial_account/wallet.rb +43 -0
- data/lib/inttegro/financial_account/wallet_mobile_money.rb +35 -0
- data/lib/inttegro/financial_account/wallet_request.rb +96 -0
- data/lib/inttegro/financial_account/wallet_request_type.rb +25 -0
- data/lib/inttegro/financial_account/wallet_request_wallet.rb +36 -0
- data/lib/inttegro/financial_account/wallet_request_wallet_mobile_money.rb +35 -0
- data/lib/inttegro/financial_account/wire_page.rb +42 -0
- data/lib/inttegro/financial_account/wire_page_accounts_item.rb +85 -0
- data/lib/inttegro/generated/enums.rb +80 -642
- data/lib/inttegro/generated/models.rb +545 -3867
- data/lib/inttegro/generated/operations.rb +236 -236
- data/lib/inttegro/message_template/attachment_ids.rb +17 -0
- data/lib/inttegro/message_template/base.rb +11 -0
- data/lib/inttegro/message_template/channel.rb +27 -0
- data/lib/inttegro/message_template/create_email_request.rb +81 -0
- data/lib/inttegro/message_template/create_email_request_channel.rb +25 -0
- data/lib/inttegro/message_template/create_fields.rb +64 -0
- data/lib/inttegro/message_template/create_request.rb +18 -0
- data/lib/inttegro/message_template/create_sms_request.rb +72 -0
- data/lib/inttegro/message_template/create_sms_request_channel.rb +25 -0
- data/lib/inttegro/message_template/email_content.rb +56 -0
- data/lib/inttegro/message_template/envelope.rb +28 -0
- data/lib/inttegro/message_template/id_request.rb +27 -0
- data/lib/inttegro/message_template/mailbox.rb +34 -0
- data/lib/inttegro/message_template/message_template.rb +158 -0
- data/lib/inttegro/message_template/page.rb +42 -0
- data/lib/inttegro/message_template/page_envelope.rb +28 -0
- data/lib/inttegro/message_template/page_request.rb +64 -0
- data/lib/inttegro/message_template/preview.rb +36 -0
- data/lib/inttegro/message_template/reference.rb +35 -0
- data/lib/inttegro/message_template/render_preview_request.rb +28 -0
- data/lib/inttegro/message_template/rendered.rb +53 -0
- data/lib/inttegro/message_template/rendered_email.rb +71 -0
- data/lib/inttegro/message_template/rendered_sms.rb +27 -0
- data/lib/inttegro/message_template/safety_result.rb +78 -0
- data/lib/inttegro/message_template/scanned_link.rb +55 -0
- data/lib/inttegro/message_template/sms_content.rb +27 -0
- data/lib/inttegro/message_template/status.rb +30 -0
- data/lib/inttegro/message_template/update_request.rb +96 -0
- data/lib/inttegro/message_template/variable.rb +64 -0
- data/lib/inttegro/message_template/variable_input.rb +64 -0
- data/lib/inttegro/message_template/variable_item.rb +56 -0
- data/lib/inttegro/message_template/variable_item_input.rb +56 -0
- data/lib/inttegro/message_template/variable_item_type.rb +49 -0
- data/lib/inttegro/message_template/variable_type.rb +52 -0
- data/lib/inttegro/message_template/variables.rb +21 -0
- data/lib/inttegro/model_serialization.rb +85 -0
- data/lib/inttegro/models.rb +12 -156
- data/lib/inttegro/money/amount.rb +36 -0
- data/lib/inttegro/money/amount_params.rb +36 -0
- data/lib/inttegro/money/base.rb +17 -0
- data/lib/inttegro/money/currency.rb +37 -0
- data/lib/inttegro/money/currency_deserialization.rb +24 -0
- data/lib/inttegro/order/address.rb +76 -0
- data/lib/inttegro/order/base.rb +11 -0
- data/lib/inttegro/order/cancel_request.rb +42 -0
- data/lib/inttegro/order/checkout_settings.rb +34 -0
- data/lib/inttegro/order/complete_envelope.rb +29 -0
- data/lib/inttegro/order/complete_request.rb +36 -0
- data/lib/inttegro/order/create_existing_customer.rb +147 -0
- data/lib/inttegro/order/create_existing_customer_checkout_settings.rb +35 -0
- data/lib/inttegro/order/create_existing_customer_request_meta.rb +27 -0
- data/lib/inttegro/order/create_new_customer.rb +149 -0
- data/lib/inttegro/order/create_new_customer_checkout_settings.rb +35 -0
- data/lib/inttegro/order/create_new_customer_request_meta.rb +27 -0
- data/lib/inttegro/order/created_from.rb +42 -0
- data/lib/inttegro/order/created_from_resource_type.rb +25 -0
- data/lib/inttegro/order/customer.rb +70 -0
- data/lib/inttegro/order/discount.rb +21 -0
- data/lib/inttegro/order/discount_line_item.rb +36 -0
- data/lib/inttegro/order/discount_line_item_type.rb +24 -0
- data/lib/inttegro/order/document_delivery.rb +67 -0
- data/lib/inttegro/order/document_delivery_attempt.rb +35 -0
- data/lib/inttegro/order/document_delivery_failure.rb +35 -0
- data/lib/inttegro/order/document_delivery_request.rb +27 -0
- data/lib/inttegro/order/document_delivery_result.rb +46 -0
- data/lib/inttegro/order/document_format.rb +27 -0
- data/lib/inttegro/order/document_kind.rb +27 -0
- data/lib/inttegro/order/envelope.rb +29 -0
- data/lib/inttegro/order/fee_line_item.rb +36 -0
- data/lib/inttegro/order/fee_line_item_fee.rb +56 -0
- data/lib/inttegro/order/fee_line_item_type.rb +24 -0
- data/lib/inttegro/order/finalize_envelope.rb +29 -0
- data/lib/inttegro/order/finalize_request.rb +27 -0
- data/lib/inttegro/order/invoice.rb +35 -0
- data/lib/inttegro/order/invoice_format.rb +42 -0
- data/lib/inttegro/order/line_item.rb +20 -0
- data/lib/inttegro/order/line_item_group.rb +36 -0
- data/lib/inttegro/order/lookup_request.rb +27 -0
- data/lib/inttegro/order/order.rb +177 -0
- data/lib/inttegro/order/page.rb +42 -0
- data/lib/inttegro/order/page_envelope.rb +28 -0
- data/lib/inttegro/order/page_request.rb +42 -0
- data/lib/inttegro/order/pay_request.rb +51 -0
- data/lib/inttegro/order/payout_settings_request.rb +35 -0
- data/lib/inttegro/order/payout_settings_request_destination.rb +27 -0
- data/lib/inttegro/order/product_line_item.rb +36 -0
- data/lib/inttegro/order/product_line_item_product.rb +106 -0
- data/lib/inttegro/order/product_line_item_type.rb +24 -0
- data/lib/inttegro/order/questions.rb +53 -0
- data/lib/inttegro/order/shipping_line_item.rb +36 -0
- data/lib/inttegro/order/shipping_line_item_shipping.rb +49 -0
- data/lib/inttegro/order/shipping_line_item_type.rb +24 -0
- data/lib/inttegro/order/status.rb +42 -0
- data/lib/inttegro/order/update_request.rb +117 -0
- data/lib/inttegro/order/update_request_payment_method_data.rb +38 -0
- data/lib/inttegro/order/update_request_payment_method_data_type.rb +24 -0
- data/lib/inttegro/otp/alphabet_type.rb +30 -0
- data/lib/inttegro/otp/base.rb +17 -0
- data/lib/inttegro/otp/initiate_request.rb +91 -0
- data/lib/inttegro/otp/initiate_response.rb +28 -0
- data/lib/inttegro/otp/lookup_request.rb +27 -0
- data/lib/inttegro/otp/lookup_response.rb +28 -0
- data/lib/inttegro/otp/status.rb +39 -0
- data/lib/inttegro/otp/transaction.rb +78 -0
- data/lib/inttegro/otp/transmission.rb +57 -0
- data/lib/inttegro/otp/transmission_sent_via.rb +24 -0
- data/lib/inttegro/otp/transmission_status.rb +30 -0
- data/lib/inttegro/otp/verification.rb +36 -0
- data/lib/inttegro/otp/verification_attempt.rb +56 -0
- data/lib/inttegro/otp/verification_attempt_result.rb +35 -0
- data/lib/inttegro/otp/verification_verdict.rb +27 -0
- data/lib/inttegro/otp/verify_request.rb +41 -0
- data/lib/inttegro/payment/attempt_status.rb +42 -0
- data/lib/inttegro/payment/base.rb +11 -0
- data/lib/inttegro/payment/billing_details.rb +28 -0
- data/lib/inttegro/payment/billing_details_owner.rb +35 -0
- data/lib/inttegro/payment/confirm_request.rb +48 -0
- data/lib/inttegro/payment/confirmation_channel.rb +30 -0
- data/lib/inttegro/payment/customer.rb +70 -0
- data/lib/inttegro/payment/latest_attempt.rb +71 -0
- data/lib/inttegro/payment/latest_attempt_error.rb +27 -0
- data/lib/inttegro/payment/latest_error.rb +55 -0
- data/lib/inttegro/payment/method_snapshot_bank_account.rb +35 -0
- data/lib/inttegro/payment/method_snapshot_bank_account_ghana_bank_account.rb +56 -0
- data/lib/inttegro/payment/method_snapshot_mobile_money.rb +42 -0
- data/lib/inttegro/payment/method_snapshot_owner.rb +35 -0
- data/lib/inttegro/payment/next_action.rb +60 -0
- data/lib/inttegro/payment/next_action_authorize.rb +41 -0
- data/lib/inttegro/payment/next_action_confirm_payment.rb +64 -0
- data/lib/inttegro/payment/next_action_confirm_payment_attempt.rb +55 -0
- data/lib/inttegro/payment/next_action_confirm_payment_request.rb +63 -0
- data/lib/inttegro/payment/next_action_redirect.rb +42 -0
- data/lib/inttegro/payment/next_action_redirect_latest_visit.rb +41 -0
- data/lib/inttegro/payment/next_action_request_confirmation.rb +35 -0
- data/lib/inttegro/payment/next_action_request_confirmation_last_request.rb +64 -0
- data/lib/inttegro/payment/next_action_type.rb +36 -0
- data/lib/inttegro/payment/payment.rb +177 -0
- data/lib/inttegro/payment/payment_method.rb +95 -0
- data/lib/inttegro/payment/payout_configuration.rb +35 -0
- data/lib/inttegro/payment/payout_configuration_destination.rb +27 -0
- data/lib/inttegro/payment/questions.rb +47 -0
- data/lib/inttegro/payment/result.rb +56 -0
- data/lib/inttegro/payment/result_status.rb +36 -0
- data/lib/inttegro/payment/status.rb +48 -0
- data/lib/inttegro/payment_method/activate_request.rb +27 -0
- data/lib/inttegro/payment_method/activate_response.rb +28 -0
- data/lib/inttegro/payment_method/archive_request.rb +27 -0
- data/lib/inttegro/payment_method/archive_response.rb +28 -0
- data/lib/inttegro/payment_method/bank_account.rb +36 -0
- data/lib/inttegro/payment_method/bank_account_ghana_bank_account.rb +55 -0
- data/lib/inttegro/payment_method/base.rb +11 -0
- data/lib/inttegro/payment_method/card.rb +21 -0
- data/lib/inttegro/payment_method/data.rb +36 -0
- data/lib/inttegro/payment_method/data_mobile_money.rb +35 -0
- data/lib/inttegro/payment_method/data_type.rb +24 -0
- data/lib/inttegro/payment_method/deletion.rb +20 -0
- data/lib/inttegro/payment_method/disactivate_request.rb +27 -0
- data/lib/inttegro/payment_method/disactivate_response.rb +28 -0
- data/lib/inttegro/payment_method/get_settings_request.rb +21 -0
- data/lib/inttegro/payment_method/get_settings_response.rb +28 -0
- data/lib/inttegro/payment_method/lookup_request.rb +27 -0
- data/lib/inttegro/payment_method/lookup_response.rb +28 -0
- data/lib/inttegro/payment_method/mobile_money.rb +42 -0
- data/lib/inttegro/payment_method/owner.rb +35 -0
- data/lib/inttegro/payment_method/owner_address.rb +76 -0
- data/lib/inttegro/payment_method/owner_input.rb +35 -0
- data/lib/inttegro/payment_method/owner_input_address.rb +76 -0
- data/lib/inttegro/payment_method/page.rb +42 -0
- data/lib/inttegro/payment_method/page_request.rb +42 -0
- data/lib/inttegro/payment_method/page_response.rb +28 -0
- data/lib/inttegro/payment_method/payment_method.rb +138 -0
- data/lib/inttegro/payment_method/questions.rb +35 -0
- data/lib/inttegro/payment_method/settings.rb +49 -0
- data/lib/inttegro/payment_method/supplied.rb +62 -0
- data/lib/inttegro/payment_method/tokenize_base.rb +43 -0
- data/lib/inttegro/payment_method/tokenize_base_type.rb +25 -0
- data/lib/inttegro/payment_method/tokenize_mobile_money_request.rb +59 -0
- data/lib/inttegro/payment_method/tokenize_mobile_money_request_mobile_money.rb +36 -0
- data/lib/inttegro/payment_method/tokenize_mobile_money_request_type.rb +25 -0
- data/lib/inttegro/payment_method/tokenize_response.rb +28 -0
- data/lib/inttegro/payment_method/type.rb +33 -0
- data/lib/inttegro/payment_method/type_setting.rb +56 -0
- data/lib/inttegro/payment_method/unarchive_request.rb +27 -0
- data/lib/inttegro/payment_method/unarchive_response.rb +28 -0
- data/lib/inttegro/payment_method/update_request.rb +57 -0
- data/lib/inttegro/payment_method/update_request_owner.rb +35 -0
- data/lib/inttegro/payment_method/update_request_owner_address.rb +76 -0
- data/lib/inttegro/payment_method/update_response.rb +28 -0
- data/lib/inttegro/payment_method/verification.rb +55 -0
- data/lib/inttegro/payout/base.rb +11 -0
- data/lib/inttegro/payout/cancel_request.rb +27 -0
- data/lib/inttegro/payout/cancel_response.rb +28 -0
- data/lib/inttegro/payout/disable_automatic_request.rb +21 -0
- data/lib/inttegro/payout/disable_automatic_response.rb +28 -0
- data/lib/inttegro/payout/enable_automatic_request.rb +21 -0
- data/lib/inttegro/payout/enable_automatic_response.rb +28 -0
- data/lib/inttegro/payout/error.rb +48 -0
- data/lib/inttegro/payout/get_settings_request.rb +21 -0
- data/lib/inttegro/payout/get_settings_response.rb +28 -0
- data/lib/inttegro/payout/lookup_request.rb +27 -0
- data/lib/inttegro/payout/lookup_response.rb +28 -0
- data/lib/inttegro/payout/page.rb +42 -0
- data/lib/inttegro/payout/page_request.rb +34 -0
- data/lib/inttegro/payout/page_response.rb +28 -0
- data/lib/inttegro/payout/payout.rb +176 -0
- data/lib/inttegro/payout/set_destinations_request.rb +27 -0
- data/lib/inttegro/payout/set_destinations_response.rb +28 -0
- data/lib/inttegro/payout/settings_lookup.rb +42 -0
- data/lib/inttegro/payout/settings_lookup_schedule.rb +63 -0
- data/lib/inttegro/payout/settings_lookup_schedule_aging_spec.rb +41 -0
- data/lib/inttegro/payout/settings_mutation.rb +42 -0
- data/lib/inttegro/payout/settings_mutation_schedule.rb +70 -0
- data/lib/inttegro/payout/settings_mutation_schedule_spec.rb +48 -0
- data/lib/inttegro/payout/status.rb +42 -0
- data/lib/inttegro/price/action_request.rb +27 -0
- data/lib/inttegro/price/base.rb +11 -0
- data/lib/inttegro/price/catalog_price.rb +92 -0
- data/lib/inttegro/price/catalog_price_params.rb +49 -0
- data/lib/inttegro/price/embedded_product.rb +159 -0
- data/lib/inttegro/price/lookup_request.rb +27 -0
- data/lib/inttegro/price/page.rb +42 -0
- data/lib/inttegro/price/page_item.rb +17 -0
- data/lib/inttegro/price/page_request.rb +41 -0
- data/lib/inttegro/price/page_response.rb +37 -0
- data/lib/inttegro/price/price.rb +34 -0
- data/lib/inttegro/price/price_params.rb +36 -0
- data/lib/inttegro/price/response.rb +37 -0
- data/lib/inttegro/price/update_request.rb +41 -0
- data/lib/inttegro/product/action_request.rb +27 -0
- data/lib/inttegro/product/add_price_request.rb +49 -0
- data/lib/inttegro/product/add_price_response.rb +37 -0
- data/lib/inttegro/product/attribute.rb +34 -0
- data/lib/inttegro/product/base.rb +11 -0
- data/lib/inttegro/product/catalog_with_price_data.rb +42 -0
- data/lib/inttegro/product/catalog_with_price_reference.rb +42 -0
- data/lib/inttegro/product/create_request.rb +124 -0
- data/lib/inttegro/product/delivery.rb +21 -0
- data/lib/inttegro/product/details.rb +22 -0
- data/lib/inttegro/product/dimensions.rb +44 -0
- data/lib/inttegro/product/dimensions_custom.rb +41 -0
- data/lib/inttegro/product/dimensions_digital.rb +41 -0
- data/lib/inttegro/product/dimensions_physical.rb +76 -0
- data/lib/inttegro/product/download.rb +21 -0
- data/lib/inttegro/product/inline_details.rb +79 -0
- data/lib/inttegro/product/line_item.rb +39 -0
- data/lib/inttegro/product/line_item_type.rb +24 -0
- data/lib/inttegro/product/lookup_request.rb +27 -0
- data/lib/inttegro/product/media.rb +83 -0
- data/lib/inttegro/product/page.rb +42 -0
- data/lib/inttegro/product/page_request.rb +34 -0
- data/lib/inttegro/product/page_response.rb +28 -0
- data/lib/inttegro/product/price_summary.rb +49 -0
- data/lib/inttegro/product/product.rb +165 -0
- data/lib/inttegro/product/questions.rb +35 -0
- data/lib/inttegro/product/render.rb +21 -0
- data/lib/inttegro/product/response.rb +37 -0
- data/lib/inttegro/product/service.rb +21 -0
- data/lib/inttegro/product/set_default_unit_price_request.rb +22 -0
- data/lib/inttegro/product/shipment.rb +68 -0
- data/lib/inttegro/product/shipment_input.rb +28 -0
- data/lib/inttegro/product/shipment_input_type.rb +33 -0
- data/lib/inttegro/product/shipment_type.rb +36 -0
- data/lib/inttegro/product/stream.rb +21 -0
- data/lib/inttegro/product/type.rb +39 -0
- data/lib/inttegro/product/update_request.rb +124 -0
- data/lib/inttegro/product/update_response.rb +28 -0
- data/lib/inttegro/product/updated.rb +122 -0
- data/lib/inttegro/purchase_intent/activity.rb +122 -0
- data/lib/inttegro/purchase_intent/activity_attribution.rb +83 -0
- data/lib/inttegro/purchase_intent/activity_log.rb +28 -0
- data/lib/inttegro/purchase_intent/activity_type.rb +37 -0
- data/lib/inttegro/purchase_intent/activity_visitor.rb +97 -0
- data/lib/inttegro/purchase_intent/base.rb +11 -0
- data/lib/inttegro/purchase_intent/cancel_request.rb +34 -0
- data/lib/inttegro/purchase_intent/create_request.rb +75 -0
- data/lib/inttegro/purchase_intent/create_request_price.rb +51 -0
- data/lib/inttegro/purchase_intent/create_request_price_original.rb +35 -0
- data/lib/inttegro/purchase_intent/create_request_product.rb +34 -0
- data/lib/inttegro/purchase_intent/create_request_quantity.rb +35 -0
- data/lib/inttegro/purchase_intent/create_request_usage.rb +34 -0
- data/lib/inttegro/purchase_intent/lookup_request.rb +27 -0
- data/lib/inttegro/purchase_intent/merchant.rb +42 -0
- data/lib/inttegro/purchase_intent/original_price.rb +49 -0
- data/lib/inttegro/purchase_intent/page.rb +42 -0
- data/lib/inttegro/purchase_intent/page_request.rb +34 -0
- data/lib/inttegro/purchase_intent/page_response.rb +28 -0
- data/lib/inttegro/purchase_intent/price.rb +57 -0
- data/lib/inttegro/purchase_intent/product.rb +174 -0
- data/lib/inttegro/purchase_intent/product_attributes_item.rb +34 -0
- data/lib/inttegro/purchase_intent/purchase_intent.rb +128 -0
- data/lib/inttegro/purchase_intent/quantity.rb +36 -0
- data/lib/inttegro/purchase_intent/questions.rb +38 -0
- data/lib/inttegro/purchase_intent/response.rb +28 -0
- data/lib/inttegro/purchase_intent/status.rb +33 -0
- data/lib/inttegro/purchase_intent/update_request.rb +61 -0
- data/lib/inttegro/purchase_intent/update_request_quantity.rb +36 -0
- data/lib/inttegro/purchase_intent/usage.rb +43 -0
- data/lib/inttegro/purchase_intent/usage_order.rb +34 -0
- data/lib/inttegro/purchase_intent/variant.rb +64 -0
- data/lib/inttegro/purchase_intent/variant_axis.rb +41 -0
- data/lib/inttegro/purchase_intent/variant_set.rb +78 -0
- data/lib/inttegro/refund/base.rb +11 -0
- data/lib/inttegro/refund/cancel_request.rb +35 -0
- data/lib/inttegro/refund/create_line_item.rb +51 -0
- data/lib/inttegro/refund/create_request.rb +73 -0
- data/lib/inttegro/refund/line_item.rb +64 -0
- data/lib/inttegro/refund/lookup_request.rb +27 -0
- data/lib/inttegro/refund/page.rb +42 -0
- data/lib/inttegro/refund/page_request.rb +34 -0
- data/lib/inttegro/refund/page_response.rb +28 -0
- data/lib/inttegro/refund/reason.rb +48 -0
- data/lib/inttegro/refund/refund.rb +121 -0
- data/lib/inttegro/refund/request_meta.rb +27 -0
- data/lib/inttegro/refund/response.rb +28 -0
- data/lib/inttegro/refund/status.rb +36 -0
- data/lib/inttegro/resources/apps.rb +19 -0
- data/lib/inttegro/resources/balance_transactions.rb +13 -1
- data/lib/inttegro/resources/balances.rb +8 -1
- data/lib/inttegro/resources/broadcasts.rb +14 -2
- data/lib/inttegro/resources/chimes.rb +27 -3
- data/lib/inttegro/resources/customers.rb +21 -1
- data/lib/inttegro/resources/file_links.rb +32 -2
- data/lib/inttegro/resources/file_references.rb +9 -1
- data/lib/inttegro/resources/files.rb +30 -1
- data/lib/inttegro/resources/financial_accounts.rb +51 -1
- data/lib/inttegro/resources/keys.rb +41 -3
- data/lib/inttegro/resources/message_templates.rb +38 -2
- data/lib/inttegro/resources/orders.rb +18 -13
- data/lib/inttegro/resources/otp.rb +24 -4
- data/lib/inttegro/resources/payment_methods.rb +33 -8
- data/lib/inttegro/resources/payouts.rb +26 -14
- data/lib/inttegro/resources/prices.rb +39 -7
- data/lib/inttegro/resources/products.rb +43 -3
- data/lib/inttegro/resources/purchase_intents.rb +25 -1
- data/lib/inttegro/resources/refunds.rb +21 -1
- data/lib/inttegro/resources/schedules.rb +14 -2
- data/lib/inttegro/resources/spec.rb +8 -1
- data/lib/inttegro/resources/upload_requests.rb +37 -4
- data/lib/inttegro/schedule/base.rb +17 -0
- data/lib/inttegro/schedule/cancel_detail.rb +120 -0
- data/lib/inttegro/schedule/cancel_request.rb +27 -0
- data/lib/inttegro/schedule/cancel_response.rb +28 -0
- data/lib/inttegro/schedule/chime_request.rb +81 -0
- data/lib/inttegro/schedule/chime_request_request_meta.rb +27 -0
- data/lib/inttegro/schedule/creation_detail.rb +98 -0
- data/lib/inttegro/schedule/detail.rb +113 -0
- data/lib/inttegro/schedule/error.rb +41 -0
- data/lib/inttegro/schedule/lookup_request.rb +27 -0
- data/lib/inttegro/schedule/lookup_response.rb +28 -0
- data/lib/inttegro/schedule/payout_request.rb +48 -0
- data/lib/inttegro/schedule/payout_response.rb +28 -0
- data/lib/inttegro/schedule/response.rb +28 -0
- data/lib/inttegro/secret_key/auth_result.rb +27 -0
- data/lib/inttegro/secret_key/base.rb +11 -0
- data/lib/inttegro/secret_key/destroy_request.rb +27 -0
- data/lib/inttegro/secret_key/destroy_response.rb +29 -0
- data/lib/inttegro/secret_key/generate_request.rb +28 -0
- data/lib/inttegro/secret_key/generate_response.rb +28 -0
- data/lib/inttegro/secret_key/generated.rb +56 -0
- data/lib/inttegro/secret_key/lookup_request.rb +27 -0
- data/lib/inttegro/secret_key/lookup_response.rb +29 -0
- data/lib/inttegro/secret_key/page.rb +63 -0
- data/lib/inttegro/secret_key/page_request.rb +41 -0
- data/lib/inttegro/secret_key/page_response.rb +28 -0
- data/lib/inttegro/secret_key/secret_key.rb +98 -0
- data/lib/inttegro/secret_key/status.rb +30 -0
- data/lib/inttegro/secret_key/token_type.rb +24 -0
- data/lib/inttegro/secret_key/update_request.rb +34 -0
- data/lib/inttegro/secret_key/update_response.rb +29 -0
- data/lib/inttegro/secret_key/usage.rb +37 -0
- data/lib/inttegro/secret_key/usage_page.rb +63 -0
- data/lib/inttegro/secret_key/usage_request.rb +48 -0
- data/lib/inttegro/secret_key/usage_row.rb +42 -0
- data/lib/inttegro/shared/address.rb +83 -0
- data/lib/inttegro/shared/base.rb +17 -0
- data/lib/inttegro/shared/billing_details.rb +49 -0
- data/lib/inttegro/shared/content_safety_status.rb +30 -0
- data/lib/inttegro/shared/country_bank.rb +56 -0
- data/lib/inttegro/shared/country_bank_branch.rb +41 -0
- data/lib/inttegro/shared/country_bank_directory.rb +42 -0
- data/lib/inttegro/shared/country_specification.rb +91 -0
- data/lib/inttegro/shared/country_specifications.rb +28 -0
- data/lib/inttegro/shared/delivery_channel.rb +27 -0
- data/lib/inttegro/shared/dosh_account.rb +22 -0
- data/lib/inttegro/shared/error_envelope.rb +29 -0
- data/lib/inttegro/shared/error_payload.rb +76 -0
- data/lib/inttegro/shared/fee_details.rb +64 -0
- data/lib/inttegro/shared/fee_line_item.rb +36 -0
- data/lib/inttegro/shared/fee_line_item_type.rb +24 -0
- data/lib/inttegro/shared/financial_institution.rb +64 -0
- data/lib/inttegro/shared/financial_institution_bank.rb +56 -0
- data/lib/inttegro/shared/financial_institution_bank_branch.rb +41 -0
- data/lib/inttegro/shared/financial_institution_mobile_money_provider.rb +28 -0
- data/lib/inttegro/shared/invoice_settings.rb +51 -0
- data/lib/inttegro/shared/line_item.rb +19 -0
- data/lib/inttegro/shared/list_country_specs_request.rb +21 -0
- data/lib/inttegro/shared/mobile_money.rb +35 -0
- data/lib/inttegro/shared/mobile_money_network.rb +33 -0
- data/lib/inttegro/shared/request_confirmation_request.rb +27 -0
- data/lib/inttegro/shared/resource_supply.rb +62 -0
- data/lib/inttegro/shared/shipping.rb +28 -0
- data/lib/inttegro/shared/shipping_details.rb +50 -0
- data/lib/inttegro/shared/shipping_line_item.rb +36 -0
- data/lib/inttegro/shared/shipping_line_item_type.rb +24 -0
- data/lib/inttegro/shared/upload_fulfillment.rb +36 -0
- data/lib/inttegro/shared/upload_review_decision.rb +28 -0
- data/lib/inttegro/shared/upload_review_type.rb +27 -0
- data/lib/inttegro/upload_request/actor.rb +48 -0
- data/lib/inttegro/upload_request/attempt.rb +113 -0
- data/lib/inttegro/upload_request/attempts.rb +48 -0
- data/lib/inttegro/upload_request/attempts_request.rb +27 -0
- data/lib/inttegro/upload_request/base.rb +11 -0
- data/lib/inttegro/upload_request/cancel_request.rb +35 -0
- data/lib/inttegro/upload_request/constraints.rb +62 -0
- data/lib/inttegro/upload_request/create_request.rb +97 -0
- data/lib/inttegro/upload_request/details.rb +205 -0
- data/lib/inttegro/upload_request/display.rb +41 -0
- data/lib/inttegro/upload_request/fulfill_request.rb +27 -0
- data/lib/inttegro/upload_request/latest_error.rb +55 -0
- data/lib/inttegro/upload_request/lookup_request.rb +27 -0
- data/lib/inttegro/upload_request/page.rb +42 -0
- data/lib/inttegro/upload_request/page_request.rb +57 -0
- data/lib/inttegro/upload_request/page_response.rb +28 -0
- data/lib/inttegro/upload_request/response.rb +28 -0
- data/lib/inttegro/upload_request/review.rb +72 -0
- data/lib/inttegro/upload_request/review_attempt_by_id_request.rb +57 -0
- data/lib/inttegro/upload_request/review_attempt_by_ordinal_request.rb +57 -0
- data/lib/inttegro/upload_request/review_attempt_request.rb +18 -0
- data/lib/inttegro/upload_request/review_reason.rb +41 -0
- data/lib/inttegro/upload_request/review_reason_input.rb +41 -0
- data/lib/inttegro/upload_request/status.rb +39 -0
- data/lib/inttegro/upload_request/upload_request.rb +195 -0
- data/lib/inttegro/upload_request/validation_failure.rb +36 -0
- data/lib/inttegro/upload_request/validation_failure_error.rb +48 -0
- data/lib/inttegro/upload_request/with_attempt_response.rb +28 -0
- data/lib/inttegro/version.rb +1 -1
- data/lib/inttegro/wallet/base.rb +17 -0
- data/lib/inttegro/wallet/type.rb +24 -0
- data/rbi/inttegro/generated.rbi +82 -82
- metadata +663 -2
|
@@ -0,0 +1,45 @@
|
|
|
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"
|
|
8
|
+
require_relative "payment_method_data_billing_details"
|
|
9
|
+
require_relative "payment_method_data_type"
|
|
10
|
+
|
|
11
|
+
module Inttegro
|
|
12
|
+
module Checkout
|
|
13
|
+
# Typed representation of the payment method data 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] type
|
|
22
|
+
# Value of the `type` field in the Inttegro API payload.
|
|
23
|
+
#
|
|
24
|
+
# Required in the API payload. Wire name: `type`.
|
|
25
|
+
# @return [Inttegro::Checkout::PaymentMethodDataType]
|
|
26
|
+
#
|
|
27
|
+
# @!attribute [r] mobile_money
|
|
28
|
+
# Value of the `mobile_money` field in the Inttegro API payload.
|
|
29
|
+
#
|
|
30
|
+
# Required in the API payload. Wire name: `mobile_money`.
|
|
31
|
+
# @return [Inttegro::Checkout::MobileMoneyData]
|
|
32
|
+
#
|
|
33
|
+
# @!attribute [r] billing_details
|
|
34
|
+
# Billing details for this new payment method. They do not replace the Order customer's
|
|
35
|
+
# identity or the Order's shipping address.
|
|
36
|
+
#
|
|
37
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `billing_details`.
|
|
38
|
+
# @return [Inttegro::Checkout::PaymentMethodDataBillingDetails, nil]
|
|
39
|
+
class PaymentMethodData < T::Struct
|
|
40
|
+
const :type, Inttegro::Checkout::PaymentMethodDataType
|
|
41
|
+
const :mobile_money, Inttegro::Checkout::MobileMoneyData
|
|
42
|
+
const :billing_details, T.nilable(Inttegro::Checkout::PaymentMethodDataBillingDetails), default: nil
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
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 "payment_address"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
module Checkout
|
|
11
|
+
# Billing details for this new payment method. They do not replace the Order customer's
|
|
12
|
+
# identity or the Order's shipping address.
|
|
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] name
|
|
21
|
+
# Name of the payer associated with the new payment method.
|
|
22
|
+
#
|
|
23
|
+
# Required in the API payload. Wire name: `name`.
|
|
24
|
+
# @return [String]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] phone_number
|
|
27
|
+
# Phone number associated with the new payment method.
|
|
28
|
+
#
|
|
29
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `phone_number`.
|
|
30
|
+
# @return [String, nil]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [r] address
|
|
33
|
+
# Value of the `address` field in the Inttegro API payload.
|
|
34
|
+
#
|
|
35
|
+
# Required in the API payload. Wire name: `address`.
|
|
36
|
+
# @return [Inttegro::Checkout::PaymentAddress]
|
|
37
|
+
class PaymentMethodDataBillingDetails < T::Struct
|
|
38
|
+
const :name, String
|
|
39
|
+
const :phone_number, T.nilable(String), default: nil
|
|
40
|
+
const :address, Inttegro::Checkout::PaymentAddress
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
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::PaymentMethodDataType.
|
|
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 PaymentMethodDataType < T::Enum
|
|
18
|
+
enums do
|
|
19
|
+
# Serialized wire value: `mobile_money`.
|
|
20
|
+
# @return [Inttegro::Checkout::PaymentMethodDataType]
|
|
21
|
+
MOBILE_MONEY = new("mobile_money")
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,99 @@
|
|
|
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 "email_message"
|
|
8
|
+
require_relative "recipient_detail"
|
|
9
|
+
require_relative "transmission"
|
|
10
|
+
|
|
11
|
+
module Inttegro
|
|
12
|
+
# A notification sent to one recipient
|
|
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] created_at
|
|
21
|
+
# Value of the `created_at` field in the Inttegro API payload.
|
|
22
|
+
#
|
|
23
|
+
# Required in the API payload. Wire name: `created_at`.
|
|
24
|
+
# @return [Time]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] custom_data
|
|
27
|
+
# Merchant-defined string values attached to a resource. SDKs expose this as a semantic
|
|
28
|
+
# collection rather than a raw map.
|
|
29
|
+
#
|
|
30
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `custom_data`.
|
|
31
|
+
# @return [Hash{String => String}, nil]
|
|
32
|
+
#
|
|
33
|
+
# @!attribute [r] customer_id
|
|
34
|
+
# Value of the `customer_id` field in the Inttegro API payload.
|
|
35
|
+
#
|
|
36
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `customer_id`.
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
#
|
|
39
|
+
# @!attribute [r] email
|
|
40
|
+
# Email content, safety scan result, and system-generated schema markup for email chimes.
|
|
41
|
+
#
|
|
42
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `email`.
|
|
43
|
+
# @return [Inttegro::Chime::EmailMessage, nil]
|
|
44
|
+
#
|
|
45
|
+
# @!attribute [r] full_message
|
|
46
|
+
# Rendered SMS content. Empty for email Chimes.
|
|
47
|
+
#
|
|
48
|
+
# Required in the API payload. Wire name: `full_message`.
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
# @!attribute [r] id
|
|
52
|
+
# Value of the `id` field in the Inttegro API payload.
|
|
53
|
+
#
|
|
54
|
+
# Required in the API payload. Wire name: `id`.
|
|
55
|
+
# @return [String]
|
|
56
|
+
#
|
|
57
|
+
# @!attribute [r] idempotency_key
|
|
58
|
+
# Value of the `idempotency_key` field in the Inttegro API payload.
|
|
59
|
+
#
|
|
60
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `idempotency_key`.
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
#
|
|
63
|
+
# @!attribute [r] purpose
|
|
64
|
+
# Value of the `purpose` field in the Inttegro API payload.
|
|
65
|
+
#
|
|
66
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `purpose`.
|
|
67
|
+
# @return [String, nil]
|
|
68
|
+
#
|
|
69
|
+
# @!attribute [r] recipient
|
|
70
|
+
# Recipient information in response
|
|
71
|
+
#
|
|
72
|
+
# Required in the API payload. Wire name: `recipient`.
|
|
73
|
+
# @return [Inttegro::Chime::RecipientDetail]
|
|
74
|
+
#
|
|
75
|
+
# @!attribute [r] sender_id
|
|
76
|
+
# Value of the `sender_id` field in the Inttegro API payload.
|
|
77
|
+
#
|
|
78
|
+
# Required in the API payload. Wire name: `sender_id`.
|
|
79
|
+
# @return [String]
|
|
80
|
+
#
|
|
81
|
+
# @!attribute [r] transmission
|
|
82
|
+
# Value of the `transmission` field in the Inttegro API payload.
|
|
83
|
+
#
|
|
84
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `transmission`.
|
|
85
|
+
# @return [Inttegro::Chime::Transmission, nil]
|
|
86
|
+
class Chime
|
|
87
|
+
const :created_at, Time
|
|
88
|
+
const :custom_data, T.nilable(T::Hash[String, String]), default: nil
|
|
89
|
+
const :customer_id, T.nilable(String), default: nil
|
|
90
|
+
const :email, T.nilable(Inttegro::Chime::EmailMessage), default: nil
|
|
91
|
+
const :full_message, String
|
|
92
|
+
const :id, String
|
|
93
|
+
const :idempotency_key, T.nilable(String), default: nil
|
|
94
|
+
const :purpose, T.nilable(String), default: nil
|
|
95
|
+
const :recipient, Inttegro::Chime::RecipientDetail
|
|
96
|
+
const :sender_id, String
|
|
97
|
+
const :transmission, T.nilable(Inttegro::Chime::Transmission), default: nil
|
|
98
|
+
end
|
|
99
|
+
end
|
|
@@ -0,0 +1,118 @@
|
|
|
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
|
+
class Chime
|
|
10
|
+
# Typed representation of the email event 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] bounce_sub_type
|
|
19
|
+
# Value of the `bounce_sub_type` field in the Inttegro API payload.
|
|
20
|
+
#
|
|
21
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `bounce_sub_type`.
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
#
|
|
24
|
+
# @!attribute [r] bounce_type
|
|
25
|
+
# Value of the `bounce_type` field in the Inttegro API payload.
|
|
26
|
+
#
|
|
27
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `bounce_type`.
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
#
|
|
30
|
+
# @!attribute [r] complaint_sub_type
|
|
31
|
+
# Value of the `complaint_sub_type` field in the Inttegro API payload.
|
|
32
|
+
#
|
|
33
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `complaint_sub_type`.
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
#
|
|
36
|
+
# @!attribute [r] id
|
|
37
|
+
# Value of the `id` field in the Inttegro API payload.
|
|
38
|
+
#
|
|
39
|
+
# Required in the API payload. Wire name: `id`.
|
|
40
|
+
# @return [String]
|
|
41
|
+
#
|
|
42
|
+
# @!attribute [r] occurred_at
|
|
43
|
+
# Value of the `occurred_at` field in the Inttegro API payload.
|
|
44
|
+
#
|
|
45
|
+
# Required in the API payload. Wire name: `occurred_at`.
|
|
46
|
+
# @return [Time]
|
|
47
|
+
#
|
|
48
|
+
# @!attribute [r] provider
|
|
49
|
+
# Value of the `provider` field in the Inttegro API payload.
|
|
50
|
+
#
|
|
51
|
+
# Required in the API payload. Wire name: `provider`.
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
# @!attribute [r] provider_message_id
|
|
55
|
+
# Value of the `provider_message_id` field in the Inttegro API payload.
|
|
56
|
+
#
|
|
57
|
+
# Required in the API payload. Wire name: `provider_message_id`.
|
|
58
|
+
# @return [String]
|
|
59
|
+
#
|
|
60
|
+
# @!attribute [r] reason
|
|
61
|
+
# Value of the `reason` field in the Inttegro API payload.
|
|
62
|
+
#
|
|
63
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `reason`.
|
|
64
|
+
# @return [String, nil]
|
|
65
|
+
#
|
|
66
|
+
# @!attribute [r] reason_code
|
|
67
|
+
# Value of the `reason_code` field in the Inttegro API payload.
|
|
68
|
+
#
|
|
69
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `reason_code`.
|
|
70
|
+
# @return [String, nil]
|
|
71
|
+
#
|
|
72
|
+
# @!attribute [r] recipient
|
|
73
|
+
# Value of the `recipient` field in the Inttegro API payload.
|
|
74
|
+
#
|
|
75
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `recipient`.
|
|
76
|
+
# @return [String, nil]
|
|
77
|
+
#
|
|
78
|
+
# @!attribute [r] source
|
|
79
|
+
# Value of the `source` field in the Inttegro API payload.
|
|
80
|
+
#
|
|
81
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `source`.
|
|
82
|
+
# @return [String, nil]
|
|
83
|
+
#
|
|
84
|
+
# @!attribute [r] suppress_recipient
|
|
85
|
+
# Value of the `suppress_recipient` field in the Inttegro API payload.
|
|
86
|
+
#
|
|
87
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `suppress_recipient`.
|
|
88
|
+
# @return [Boolean, nil]
|
|
89
|
+
#
|
|
90
|
+
# @!attribute [r] temporary
|
|
91
|
+
# Value of the `temporary` field in the Inttegro API payload.
|
|
92
|
+
#
|
|
93
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `temporary`.
|
|
94
|
+
# @return [Boolean, nil]
|
|
95
|
+
#
|
|
96
|
+
# @!attribute [r] type
|
|
97
|
+
# Value of the `type` field in the Inttegro API payload.
|
|
98
|
+
#
|
|
99
|
+
# Required in the API payload. Wire name: `type`.
|
|
100
|
+
# @return [String]
|
|
101
|
+
class EmailEvent < T::Struct
|
|
102
|
+
const :bounce_sub_type, T.nilable(String), default: nil
|
|
103
|
+
const :bounce_type, T.nilable(String), default: nil
|
|
104
|
+
const :complaint_sub_type, T.nilable(String), default: nil
|
|
105
|
+
const :id, String
|
|
106
|
+
const :occurred_at, Time
|
|
107
|
+
const :provider, String
|
|
108
|
+
const :provider_message_id, String
|
|
109
|
+
const :reason, T.nilable(String), default: nil
|
|
110
|
+
const :reason_code, T.nilable(String), default: nil
|
|
111
|
+
const :recipient, T.nilable(String), default: nil
|
|
112
|
+
const :source, T.nilable(String), default: nil
|
|
113
|
+
const :suppress_recipient, T.nilable(T::Boolean), default: nil
|
|
114
|
+
const :temporary, T.nilable(T::Boolean), default: nil
|
|
115
|
+
const :type, String
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
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
|
+
class Chime
|
|
10
|
+
# Typed representation of the email mailbox 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] name
|
|
19
|
+
# Optional display name
|
|
20
|
+
#
|
|
21
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `name`.
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
#
|
|
24
|
+
# @!attribute [r] address
|
|
25
|
+
# Email address
|
|
26
|
+
#
|
|
27
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `address`.
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
class EmailMailbox < T::Struct
|
|
30
|
+
const :name, T.nilable(String), default: nil
|
|
31
|
+
const :address, T.nilable(String), default: nil
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,79 @@
|
|
|
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 "email_mailbox"
|
|
8
|
+
require_relative "email_safety_result"
|
|
9
|
+
require_relative "email_schema_markup"
|
|
10
|
+
|
|
11
|
+
module Inttegro
|
|
12
|
+
class Chime
|
|
13
|
+
# Email content, safety scan result, and system-generated schema markup for email chimes.
|
|
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] subject
|
|
22
|
+
# Email subject
|
|
23
|
+
#
|
|
24
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `subject`.
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
#
|
|
27
|
+
# @!attribute [r] text
|
|
28
|
+
# Plain-text email body
|
|
29
|
+
#
|
|
30
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `text`.
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
#
|
|
33
|
+
# @!attribute [r] html
|
|
34
|
+
# Optional HTML email body before provider-specific rendering
|
|
35
|
+
#
|
|
36
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `html`.
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
#
|
|
39
|
+
# @!attribute [r] from
|
|
40
|
+
# Value of the `from` field in the Inttegro API payload.
|
|
41
|
+
#
|
|
42
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `from`.
|
|
43
|
+
# @return [Inttegro::Chime::EmailMailbox, nil]
|
|
44
|
+
#
|
|
45
|
+
# @!attribute [r] reply_to
|
|
46
|
+
# Value of the `reply_to` field in the Inttegro API payload.
|
|
47
|
+
#
|
|
48
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `reply_to`.
|
|
49
|
+
# @return [Inttegro::Chime::EmailMailbox, nil]
|
|
50
|
+
#
|
|
51
|
+
# @!attribute [r] headers
|
|
52
|
+
# Validated provider-neutral email headers.
|
|
53
|
+
#
|
|
54
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `headers`.
|
|
55
|
+
# @return [Hash{String => String}, nil]
|
|
56
|
+
#
|
|
57
|
+
# @!attribute [r] safety
|
|
58
|
+
# Result of the email safety scan
|
|
59
|
+
#
|
|
60
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `safety`.
|
|
61
|
+
# @return [Inttegro::Chime::EmailSafetyResult, nil]
|
|
62
|
+
#
|
|
63
|
+
# @!attribute [r] schema
|
|
64
|
+
# Schema.org JSON-LD markup generated at email send time.
|
|
65
|
+
#
|
|
66
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `schema`.
|
|
67
|
+
# @return [Inttegro::Chime::EmailSchemaMarkup, nil]
|
|
68
|
+
class EmailMessage < T::Struct
|
|
69
|
+
const :subject, T.nilable(String), default: nil
|
|
70
|
+
const :text, T.nilable(String), default: nil
|
|
71
|
+
const :html, T.nilable(String), default: nil
|
|
72
|
+
const :from, T.nilable(Inttegro::Chime::EmailMailbox), default: nil
|
|
73
|
+
const :reply_to, T.nilable(Inttegro::Chime::EmailMailbox), default: nil
|
|
74
|
+
const :headers, T.nilable(T::Hash[String, String]), default: nil
|
|
75
|
+
const :safety, T.nilable(Inttegro::Chime::EmailSafetyResult), default: nil
|
|
76
|
+
const :schema, T.nilable(Inttegro::Chime::EmailSchemaMarkup), default: nil
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
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 "email_mailbox"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class Chime
|
|
11
|
+
# Email content accepted for email chimes, broadcasts, and schedules.
|
|
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] subject
|
|
20
|
+
# Email subject.
|
|
21
|
+
#
|
|
22
|
+
# Required in the API payload. Wire name: `subject`.
|
|
23
|
+
# @return [String]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] text
|
|
26
|
+
# Plain-text email body.
|
|
27
|
+
#
|
|
28
|
+
# Required in the API payload. Wire name: `text`.
|
|
29
|
+
# @return [String]
|
|
30
|
+
#
|
|
31
|
+
# @!attribute [r] html
|
|
32
|
+
# Optional HTML email body. Unsafe HTML is rejected or sanitized before delivery.
|
|
33
|
+
#
|
|
34
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `html`.
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
#
|
|
37
|
+
# @!attribute [r] from
|
|
38
|
+
# Value of the `from` field in the Inttegro API payload.
|
|
39
|
+
#
|
|
40
|
+
# Required in the API payload. Wire name: `from`.
|
|
41
|
+
# @return [Inttegro::Chime::EmailMailbox]
|
|
42
|
+
#
|
|
43
|
+
# @!attribute [r] reply_to
|
|
44
|
+
# Optional reply-to email address.
|
|
45
|
+
#
|
|
46
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `reply_to`.
|
|
47
|
+
# @return [String, nil]
|
|
48
|
+
#
|
|
49
|
+
# @!attribute [r] headers
|
|
50
|
+
# Validated provider-neutral email headers.
|
|
51
|
+
#
|
|
52
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `headers`.
|
|
53
|
+
# @return [Hash{String => String}, nil]
|
|
54
|
+
class EmailMessageInput < T::Struct
|
|
55
|
+
const :subject, String
|
|
56
|
+
const :text, String
|
|
57
|
+
const :html, T.nilable(String), default: nil
|
|
58
|
+
const :from, Inttegro::Chime::EmailMailbox
|
|
59
|
+
const :reply_to, T.nilable(String), default: nil
|
|
60
|
+
const :headers, T.nilable(T::Hash[String, String]), default: nil
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,78 @@
|
|
|
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 "../shared/content_safety_status"
|
|
8
|
+
require_relative "email_scanned_link"
|
|
9
|
+
|
|
10
|
+
module Inttegro
|
|
11
|
+
class Chime
|
|
12
|
+
# Result of the email safety scan
|
|
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] status
|
|
21
|
+
# Safety decision for the email content
|
|
22
|
+
#
|
|
23
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `status`.
|
|
24
|
+
# @return [Inttegro::Shared::ContentSafetyStatus, nil]
|
|
25
|
+
#
|
|
26
|
+
# @!attribute [r] reason_codes
|
|
27
|
+
# Machine-readable reasons for non-allowed results
|
|
28
|
+
#
|
|
29
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `reason_codes`.
|
|
30
|
+
# @return [Array<String>, nil]
|
|
31
|
+
#
|
|
32
|
+
# @!attribute [r] sanitized_html
|
|
33
|
+
# Sanitized HTML body used for provider send when present
|
|
34
|
+
#
|
|
35
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `sanitized_html`.
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
#
|
|
38
|
+
# @!attribute [r] normalized_text
|
|
39
|
+
# Normalized plain-text body used by the scanner
|
|
40
|
+
#
|
|
41
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `normalized_text`.
|
|
42
|
+
# @return [String, nil]
|
|
43
|
+
#
|
|
44
|
+
# @!attribute [r] links
|
|
45
|
+
# Value of the `links` field in the Inttegro API payload.
|
|
46
|
+
#
|
|
47
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `links`.
|
|
48
|
+
# @return [Array<Inttegro::Chime::EmailScannedLink>, nil]
|
|
49
|
+
#
|
|
50
|
+
# @!attribute [r] scanner
|
|
51
|
+
# Safety scanner identifier
|
|
52
|
+
#
|
|
53
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `scanner`.
|
|
54
|
+
# @return [String, nil]
|
|
55
|
+
#
|
|
56
|
+
# @!attribute [r] content_hash
|
|
57
|
+
# Hash of the scanned email content
|
|
58
|
+
#
|
|
59
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `content_hash`.
|
|
60
|
+
# @return [String, nil]
|
|
61
|
+
#
|
|
62
|
+
# @!attribute [r] quarantine_notes
|
|
63
|
+
# Value of the `quarantine_notes` field in the Inttegro API payload.
|
|
64
|
+
#
|
|
65
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `quarantine_notes`.
|
|
66
|
+
# @return [String, nil]
|
|
67
|
+
class EmailSafetyResult < T::Struct
|
|
68
|
+
const :status, T.nilable(Inttegro::Shared::ContentSafetyStatus), default: nil
|
|
69
|
+
const :reason_codes, T.nilable(T::Array[String]), default: nil
|
|
70
|
+
const :sanitized_html, T.nilable(String), default: nil
|
|
71
|
+
const :normalized_text, T.nilable(String), default: nil
|
|
72
|
+
const :links, T.nilable(T::Array[Inttegro::Chime::EmailScannedLink]), default: nil
|
|
73
|
+
const :scanner, T.nilable(String), default: nil
|
|
74
|
+
const :content_hash, T.nilable(String), default: nil
|
|
75
|
+
const :quarantine_notes, T.nilable(String), default: nil
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
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 "../shared/content_safety_status"
|
|
8
|
+
|
|
9
|
+
module Inttegro
|
|
10
|
+
class Chime
|
|
11
|
+
# Typed representation of the email scanned link 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] raw
|
|
20
|
+
# Value of the `raw` field in the Inttegro API payload.
|
|
21
|
+
#
|
|
22
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `raw`.
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
#
|
|
25
|
+
# @!attribute [r] scheme
|
|
26
|
+
# Value of the `scheme` field in the Inttegro API payload.
|
|
27
|
+
#
|
|
28
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `scheme`.
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
#
|
|
31
|
+
# @!attribute [r] host
|
|
32
|
+
# Value of the `host` field in the Inttegro API payload.
|
|
33
|
+
#
|
|
34
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `host`.
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
#
|
|
37
|
+
# @!attribute [r] status
|
|
38
|
+
# Value of the `status` field in the Inttegro API payload.
|
|
39
|
+
#
|
|
40
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `status`.
|
|
41
|
+
# @return [Inttegro::Shared::ContentSafetyStatus, nil]
|
|
42
|
+
#
|
|
43
|
+
# @!attribute [r] reason
|
|
44
|
+
# Value of the `reason` field in the Inttegro API payload.
|
|
45
|
+
#
|
|
46
|
+
# Optional in the API payload; omitted values default to `nil`. Wire name: `reason`.
|
|
47
|
+
# @return [String, nil]
|
|
48
|
+
class EmailScannedLink < T::Struct
|
|
49
|
+
const :raw, T.nilable(String), default: nil
|
|
50
|
+
const :scheme, T.nilable(String), default: nil
|
|
51
|
+
const :host, T.nilable(String), default: nil
|
|
52
|
+
const :status, T.nilable(Inttegro::Shared::ContentSafetyStatus), default: nil
|
|
53
|
+
const :reason, T.nilable(String), default: nil
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
class Chime
|
|
10
|
+
# Classification for the generated markup
|
|
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 EmailSchemaKind < T::Enum
|
|
17
|
+
enums do
|
|
18
|
+
# Serialized wire value: `gmail_view_action`.
|
|
19
|
+
# @return [Inttegro::Chime::EmailSchemaKind]
|
|
20
|
+
GMAIL_VIEW_ACTION = new("gmail_view_action")
|
|
21
|
+
# Serialized wire value: `schema_org_order`.
|
|
22
|
+
# @return [Inttegro::Chime::EmailSchemaKind]
|
|
23
|
+
SCHEMA_ORG_ORDER = new("schema_org_order")
|
|
24
|
+
# Serialized wire value: `schema_org_invoice`.
|
|
25
|
+
# @return [Inttegro::Chime::EmailSchemaKind]
|
|
26
|
+
SCHEMA_ORG_INVOICE = new("schema_org_invoice")
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|