@naturalpay/sdk 1.2.6 → 1.3.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 (200) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/customers/client/Client.d.ts +50 -1
  3. package/dist/cjs/api/resources/customers/client/Client.js +50 -1
  4. package/dist/cjs/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.ts +51 -2
  5. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestRecipientsItemEmail.d.ts +2 -4
  6. package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry.d.ts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry.d.ts} +2 -2
  7. package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry.js → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry.js} +2 -2
  8. package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome.d.ts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome.d.ts} +2 -2
  9. package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome.js → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome.js} +2 -2
  10. package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship.d.ts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship.d.ts} +2 -2
  11. package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship.js → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship.js} +2 -2
  12. package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus.d.ts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus.d.ts} +2 -2
  13. package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus.js → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus.js} +2 -2
  14. package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle.d.ts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle.d.ts} +2 -2
  15. package/dist/cjs/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle.js → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle.js} +2 -2
  16. package/dist/cjs/api/resources/customers/types/CustomerInvitationAccountType.d.ts +1 -1
  17. package/dist/cjs/api/resources/customers/types/CustomerInvitationAccountType.js +1 -1
  18. package/dist/cjs/api/resources/customers/types/CustomerInvitationAddress.d.ts +1 -1
  19. package/dist/cjs/api/resources/customers/types/CustomerInvitationBeneficialOwner.d.ts +4 -4
  20. package/dist/cjs/api/resources/customers/types/CustomerInvitationBusiness.d.ts +2 -0
  21. package/dist/cjs/api/resources/customers/types/index.d.ts +5 -5
  22. package/dist/cjs/api/resources/customers/types/index.js +5 -5
  23. package/dist/cjs/api/resources/events/types/GetEventsResponseDataAttributesEventType.d.ts +1 -1
  24. package/dist/cjs/api/resources/events/types/GetEventsResponseDataAttributesEventType.js +1 -1
  25. package/dist/cjs/api/resources/events/types/ListEventsRequestEventType.d.ts +1 -1
  26. package/dist/cjs/api/resources/events/types/ListEventsRequestEventType.js +1 -1
  27. package/dist/cjs/api/resources/events/types/ListEventsResponseDataItemAttributesEventType.d.ts +1 -1
  28. package/dist/cjs/api/resources/events/types/ListEventsResponseDataItemAttributesEventType.js +1 -1
  29. package/dist/cjs/api/resources/paymentRequests/client/requests/NewPayReqParams.d.ts +1 -1
  30. package/dist/cjs/api/resources/payments/client/requests/NewPaymentParams.d.ts +1 -1
  31. package/dist/cjs/api/resources/simulations/client/Client.d.ts +1 -0
  32. package/dist/cjs/api/resources/simulations/client/Client.js +1 -0
  33. package/dist/cjs/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +3 -0
  34. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.ts +19 -0
  35. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.js +22 -0
  36. package/dist/cjs/api/resources/simulations/types/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/simulations/types/index.js +1 -0
  38. package/dist/cjs/api/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.d.ts +1 -1
  39. package/dist/cjs/api/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.js +1 -1
  40. package/dist/cjs/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
  41. package/dist/cjs/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.js +1 -1
  42. package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
  43. package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.js +1 -1
  44. package/dist/cjs/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
  45. package/dist/cjs/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.js +1 -1
  46. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.d.ts +1 -1
  47. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.js +1 -1
  48. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
  49. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.js +1 -1
  50. package/dist/cjs/api/resources/webhooks/types/WebhookEnabledEventsItem.d.ts +1 -1
  51. package/dist/cjs/api/resources/webhooks/types/WebhookEnabledEventsItem.js +1 -1
  52. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestRecipientsItemEmail.d.ts +0 -2
  53. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestRecipientsItemEmail.js +0 -2
  54. package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry.d.ts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry.d.ts} +2 -2
  55. package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry.js → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry.js} +2 -2
  56. package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome.d.ts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome.d.ts} +2 -2
  57. package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome.js → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome.js} +2 -2
  58. package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship.d.ts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship.d.ts} +2 -2
  59. package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship.js → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship.js} +2 -2
  60. package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus.d.ts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus.d.ts} +2 -2
  61. package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus.js → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus.js} +2 -2
  62. package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle.d.ts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle.d.ts} +2 -2
  63. package/dist/cjs/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle.js → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle.js} +2 -2
  64. package/dist/cjs/serialization/resources/customers/types/CustomerInvitationAddress.d.ts +2 -2
  65. package/dist/cjs/serialization/resources/customers/types/CustomerInvitationAddress.js +2 -2
  66. package/dist/cjs/serialization/resources/customers/types/CustomerInvitationBeneficialOwner.d.ts +8 -8
  67. package/dist/cjs/serialization/resources/customers/types/CustomerInvitationBeneficialOwner.js +8 -8
  68. package/dist/cjs/serialization/resources/customers/types/CustomerInvitationBusiness.d.ts +2 -0
  69. package/dist/cjs/serialization/resources/customers/types/CustomerInvitationBusiness.js +2 -0
  70. package/dist/cjs/serialization/resources/customers/types/index.d.ts +5 -5
  71. package/dist/cjs/serialization/resources/customers/types/index.js +5 -5
  72. package/dist/cjs/serialization/resources/events/types/GetEventsResponseDataAttributesEventType.d.ts +1 -1
  73. package/dist/cjs/serialization/resources/events/types/GetEventsResponseDataAttributesEventType.js +1 -1
  74. package/dist/cjs/serialization/resources/events/types/ListEventsRequestEventType.d.ts +1 -1
  75. package/dist/cjs/serialization/resources/events/types/ListEventsRequestEventType.js +1 -1
  76. package/dist/cjs/serialization/resources/events/types/ListEventsResponseDataItemAttributesEventType.d.ts +1 -1
  77. package/dist/cjs/serialization/resources/events/types/ListEventsResponseDataItemAttributesEventType.js +1 -1
  78. package/dist/cjs/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +2 -0
  79. package/dist/cjs/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.js +2 -0
  80. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.ts +7 -0
  81. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.js +56 -0
  82. package/dist/cjs/serialization/resources/simulations/types/index.d.ts +1 -0
  83. package/dist/cjs/serialization/resources/simulations/types/index.js +1 -0
  84. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.d.ts +1 -1
  85. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.js +1 -1
  86. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
  87. package/dist/cjs/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.js +1 -1
  88. package/dist/cjs/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
  89. package/dist/cjs/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.js +1 -1
  90. package/dist/cjs/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
  91. package/dist/cjs/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.js +1 -1
  92. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.d.ts +1 -1
  93. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.js +1 -1
  94. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.d.ts +1 -1
  95. package/dist/cjs/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.js +1 -1
  96. package/dist/cjs/serialization/resources/webhooks/types/WebhookEnabledEventsItem.d.ts +1 -1
  97. package/dist/cjs/serialization/resources/webhooks/types/WebhookEnabledEventsItem.js +1 -1
  98. package/dist/cjs/version.d.ts +1 -1
  99. package/dist/cjs/version.js +1 -1
  100. package/dist/esm/BaseClient.mjs +2 -2
  101. package/dist/esm/api/resources/customers/client/Client.d.mts +50 -1
  102. package/dist/esm/api/resources/customers/client/Client.mjs +50 -1
  103. package/dist/esm/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.mts +51 -2
  104. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestRecipientsItemEmail.d.mts +2 -4
  105. package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry.d.mts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry.d.mts} +2 -2
  106. package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry.mjs → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry.mjs} +1 -1
  107. package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome.d.mts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome.d.mts} +2 -2
  108. package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome.mjs → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome.mjs} +1 -1
  109. package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship.d.mts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship.d.mts} +2 -2
  110. package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship.mjs → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship.mjs} +1 -1
  111. package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus.d.mts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus.d.mts} +2 -2
  112. package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus.mjs → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus.mjs} +1 -1
  113. package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle.d.mts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle.d.mts} +2 -2
  114. package/dist/esm/api/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle.mjs → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle.mjs} +1 -1
  115. package/dist/esm/api/resources/customers/types/CustomerInvitationAccountType.d.mts +1 -1
  116. package/dist/esm/api/resources/customers/types/CustomerInvitationAccountType.mjs +1 -1
  117. package/dist/esm/api/resources/customers/types/CustomerInvitationAddress.d.mts +1 -1
  118. package/dist/esm/api/resources/customers/types/CustomerInvitationBeneficialOwner.d.mts +4 -4
  119. package/dist/esm/api/resources/customers/types/CustomerInvitationBusiness.d.mts +2 -0
  120. package/dist/esm/api/resources/customers/types/index.d.mts +5 -5
  121. package/dist/esm/api/resources/customers/types/index.mjs +5 -5
  122. package/dist/esm/api/resources/events/types/GetEventsResponseDataAttributesEventType.d.mts +1 -1
  123. package/dist/esm/api/resources/events/types/GetEventsResponseDataAttributesEventType.mjs +1 -1
  124. package/dist/esm/api/resources/events/types/ListEventsRequestEventType.d.mts +1 -1
  125. package/dist/esm/api/resources/events/types/ListEventsRequestEventType.mjs +1 -1
  126. package/dist/esm/api/resources/events/types/ListEventsResponseDataItemAttributesEventType.d.mts +1 -1
  127. package/dist/esm/api/resources/events/types/ListEventsResponseDataItemAttributesEventType.mjs +1 -1
  128. package/dist/esm/api/resources/paymentRequests/client/requests/NewPayReqParams.d.mts +1 -1
  129. package/dist/esm/api/resources/payments/client/requests/NewPaymentParams.d.mts +1 -1
  130. package/dist/esm/api/resources/simulations/client/Client.d.mts +1 -0
  131. package/dist/esm/api/resources/simulations/client/Client.mjs +1 -0
  132. package/dist/esm/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +3 -0
  133. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.mts +19 -0
  134. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.mjs +19 -0
  135. package/dist/esm/api/resources/simulations/types/index.d.mts +1 -0
  136. package/dist/esm/api/resources/simulations/types/index.mjs +1 -0
  137. package/dist/esm/api/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.d.mts +1 -1
  138. package/dist/esm/api/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.mjs +1 -1
  139. package/dist/esm/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
  140. package/dist/esm/api/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.mjs +1 -1
  141. package/dist/esm/api/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
  142. package/dist/esm/api/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.mjs +1 -1
  143. package/dist/esm/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
  144. package/dist/esm/api/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.mjs +1 -1
  145. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.d.mts +1 -1
  146. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.mjs +1 -1
  147. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
  148. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.mjs +1 -1
  149. package/dist/esm/api/resources/webhooks/types/WebhookEnabledEventsItem.d.mts +1 -1
  150. package/dist/esm/api/resources/webhooks/types/WebhookEnabledEventsItem.mjs +1 -1
  151. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestRecipientsItemEmail.d.mts +0 -2
  152. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestRecipientsItemEmail.mjs +0 -2
  153. package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry.d.mts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry.d.mts} +2 -2
  154. package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry.mjs → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry.mjs} +1 -1
  155. package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome.d.mts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome.d.mts} +2 -2
  156. package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome.mjs → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome.mjs} +1 -1
  157. package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship.d.mts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship.d.mts} +2 -2
  158. package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship.mjs → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship.mjs} +1 -1
  159. package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus.d.mts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus.d.mts} +2 -2
  160. package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus.mjs → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus.mjs} +1 -1
  161. package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle.d.mts → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle.d.mts} +2 -2
  162. package/dist/esm/serialization/resources/customers/types/{CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle.mjs → CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle.mjs} +1 -1
  163. package/dist/esm/serialization/resources/customers/types/CustomerInvitationAddress.d.mts +2 -2
  164. package/dist/esm/serialization/resources/customers/types/CustomerInvitationAddress.mjs +2 -2
  165. package/dist/esm/serialization/resources/customers/types/CustomerInvitationBeneficialOwner.d.mts +8 -8
  166. package/dist/esm/serialization/resources/customers/types/CustomerInvitationBeneficialOwner.mjs +8 -8
  167. package/dist/esm/serialization/resources/customers/types/CustomerInvitationBusiness.d.mts +2 -0
  168. package/dist/esm/serialization/resources/customers/types/CustomerInvitationBusiness.mjs +2 -0
  169. package/dist/esm/serialization/resources/customers/types/index.d.mts +5 -5
  170. package/dist/esm/serialization/resources/customers/types/index.mjs +5 -5
  171. package/dist/esm/serialization/resources/events/types/GetEventsResponseDataAttributesEventType.d.mts +1 -1
  172. package/dist/esm/serialization/resources/events/types/GetEventsResponseDataAttributesEventType.mjs +1 -1
  173. package/dist/esm/serialization/resources/events/types/ListEventsRequestEventType.d.mts +1 -1
  174. package/dist/esm/serialization/resources/events/types/ListEventsRequestEventType.mjs +1 -1
  175. package/dist/esm/serialization/resources/events/types/ListEventsResponseDataItemAttributesEventType.d.mts +1 -1
  176. package/dist/esm/serialization/resources/events/types/ListEventsResponseDataItemAttributesEventType.mjs +1 -1
  177. package/dist/esm/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +2 -0
  178. package/dist/esm/serialization/resources/simulations/client/requests/InviteCustomerSimulationsRequest.mjs +2 -0
  179. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.d.mts +7 -0
  180. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsItem.mjs +20 -0
  181. package/dist/esm/serialization/resources/simulations/types/index.d.mts +1 -0
  182. package/dist/esm/serialization/resources/simulations/types/index.mjs +1 -0
  183. package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.d.mts +1 -1
  184. package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksRequestEnabledEventsItem.mjs +1 -1
  185. package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
  186. package/dist/esm/serialization/resources/webhooks/types/CreateWebhooksResponseDataAttributesEnabledEventsItem.mjs +1 -1
  187. package/dist/esm/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
  188. package/dist/esm/serialization/resources/webhooks/types/GetWebhooksResponseDataAttributesEnabledEventsItem.mjs +1 -1
  189. package/dist/esm/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
  190. package/dist/esm/serialization/resources/webhooks/types/RemoveWebhooksResponseDataAttributesEnabledEventsItem.mjs +1 -1
  191. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.d.mts +1 -1
  192. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksRequestEnabledEventsItem.mjs +1 -1
  193. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.d.mts +1 -1
  194. package/dist/esm/serialization/resources/webhooks/types/UpdateWebhooksResponseDataAttributesEnabledEventsItem.mjs +1 -1
  195. package/dist/esm/serialization/resources/webhooks/types/WebhookEnabledEventsItem.d.mts +1 -1
  196. package/dist/esm/serialization/resources/webhooks/types/WebhookEnabledEventsItem.mjs +1 -1
  197. package/dist/esm/version.d.mts +1 -1
  198. package/dist/esm/version.mjs +1 -1
  199. package/package.json +1 -1
  200. package/reference.md +51 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@naturalpay/sdk",
46
- "X-Fern-SDK-Version": "1.2.6",
47
- "User-Agent": "@naturalpay/sdk/1.2.6",
46
+ "X-Fern-SDK-Version": "1.3.0",
47
+ "User-Agent": "@naturalpay/sdk/1.3.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Agent-ID": options === null || options === void 0 ? void 0 : options.agentId,
@@ -117,7 +117,56 @@ export declare class CustomersClient {
117
117
  * await client.customers.createInvitations({
118
118
  * recipients: [{
119
119
  * type: "email",
120
- * value: "ops@acme.com"
120
+ * value: "ops@acme.com",
121
+ * accountType: "business",
122
+ * firstName: "Morgan",
123
+ * lastName: "Lee",
124
+ * phone: "+14155550176",
125
+ * business: {
126
+ * legalName: "Acme Logistics LLC",
127
+ * displayName: "Acme Logistics",
128
+ * website: "https://acmelogistics.com",
129
+ * hasTradeName: true,
130
+ * tradeName: "Acme Freight",
131
+ * businessType: "llc",
132
+ * industry: "513210",
133
+ * stateOfIncorporation: "DE",
134
+ * incorporationDate: "2018-03-12",
135
+ * registeredAddress: {
136
+ * streetLine1: "251 Little Falls Dr",
137
+ * city: "Wilmington",
138
+ * subdivision: "DE",
139
+ * postalCode: "19808",
140
+ * country: "US"
141
+ * },
142
+ * physicalAddress: {
143
+ * streetLine1: "900 Harrison St",
144
+ * city: "San Francisco",
145
+ * subdivision: "CA",
146
+ * postalCode: "94107",
147
+ * country: "US"
148
+ * },
149
+ * sourceOfFunds: ["business_revenue"],
150
+ * countriesOfOperations: ["US", "CA"],
151
+ * beneficialOwners: [{
152
+ * firstName: "Morgan",
153
+ * lastName: "Lee",
154
+ * email: "morgan.lee@acme.com",
155
+ * phone: "+14155550176",
156
+ * dateOfBirth: "1985-09-02",
157
+ * address: {
158
+ * streetLine1: "128 Alamo Square",
159
+ * city: "San Francisco",
160
+ * subdivision: "CA",
161
+ * postalCode: "94117",
162
+ * country: "US"
163
+ * },
164
+ * ownershipPercentage: 60,
165
+ * title: "ceo",
166
+ * countryOfCitizenship: "US",
167
+ * employmentStatus: "employed"
168
+ * }]
169
+ * }
121
170
  * }],
122
171
  * agents: [{
123
172
  * agentId: "agt_3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f",
@@ -408,7 +408,56 @@ class CustomersClient {
408
408
  * await client.customers.createInvitations({
409
409
  * recipients: [{
410
410
  * type: "email",
411
- * value: "ops@acme.com"
411
+ * value: "ops@acme.com",
412
+ * accountType: "business",
413
+ * firstName: "Morgan",
414
+ * lastName: "Lee",
415
+ * phone: "+14155550176",
416
+ * business: {
417
+ * legalName: "Acme Logistics LLC",
418
+ * displayName: "Acme Logistics",
419
+ * website: "https://acmelogistics.com",
420
+ * hasTradeName: true,
421
+ * tradeName: "Acme Freight",
422
+ * businessType: "llc",
423
+ * industry: "513210",
424
+ * stateOfIncorporation: "DE",
425
+ * incorporationDate: "2018-03-12",
426
+ * registeredAddress: {
427
+ * streetLine1: "251 Little Falls Dr",
428
+ * city: "Wilmington",
429
+ * subdivision: "DE",
430
+ * postalCode: "19808",
431
+ * country: "US"
432
+ * },
433
+ * physicalAddress: {
434
+ * streetLine1: "900 Harrison St",
435
+ * city: "San Francisco",
436
+ * subdivision: "CA",
437
+ * postalCode: "94107",
438
+ * country: "US"
439
+ * },
440
+ * sourceOfFunds: ["business_revenue"],
441
+ * countriesOfOperations: ["US", "CA"],
442
+ * beneficialOwners: [{
443
+ * firstName: "Morgan",
444
+ * lastName: "Lee",
445
+ * email: "morgan.lee@acme.com",
446
+ * phone: "+14155550176",
447
+ * dateOfBirth: "1985-09-02",
448
+ * address: {
449
+ * streetLine1: "128 Alamo Square",
450
+ * city: "San Francisco",
451
+ * subdivision: "CA",
452
+ * postalCode: "94117",
453
+ * country: "US"
454
+ * },
455
+ * ownershipPercentage: 60,
456
+ * title: "ceo",
457
+ * countryOfCitizenship: "US",
458
+ * employmentStatus: "employed"
459
+ * }]
460
+ * }
412
461
  * }],
413
462
  * agents: [{
414
463
  * agentId: "agt_3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f",
@@ -4,7 +4,56 @@ import type * as Natural from "../../../../index.js";
4
4
  * {
5
5
  * recipients: [{
6
6
  * type: "email",
7
- * value: "ops@acme.com"
7
+ * value: "ops@acme.com",
8
+ * accountType: "business",
9
+ * firstName: "Morgan",
10
+ * lastName: "Lee",
11
+ * phone: "+14155550176",
12
+ * business: {
13
+ * legalName: "Acme Logistics LLC",
14
+ * displayName: "Acme Logistics",
15
+ * website: "https://acmelogistics.com",
16
+ * hasTradeName: true,
17
+ * tradeName: "Acme Freight",
18
+ * businessType: "llc",
19
+ * industry: "513210",
20
+ * stateOfIncorporation: "DE",
21
+ * incorporationDate: "2018-03-12",
22
+ * registeredAddress: {
23
+ * streetLine1: "251 Little Falls Dr",
24
+ * city: "Wilmington",
25
+ * subdivision: "DE",
26
+ * postalCode: "19808",
27
+ * country: "US"
28
+ * },
29
+ * physicalAddress: {
30
+ * streetLine1: "900 Harrison St",
31
+ * city: "San Francisco",
32
+ * subdivision: "CA",
33
+ * postalCode: "94107",
34
+ * country: "US"
35
+ * },
36
+ * sourceOfFunds: ["business_revenue"],
37
+ * countriesOfOperations: ["US", "CA"],
38
+ * beneficialOwners: [{
39
+ * firstName: "Morgan",
40
+ * lastName: "Lee",
41
+ * email: "morgan.lee@acme.com",
42
+ * phone: "+14155550176",
43
+ * dateOfBirth: "1985-09-02",
44
+ * address: {
45
+ * streetLine1: "128 Alamo Square",
46
+ * city: "San Francisco",
47
+ * subdivision: "CA",
48
+ * postalCode: "94117",
49
+ * country: "US"
50
+ * },
51
+ * ownershipPercentage: 60,
52
+ * title: "ceo",
53
+ * countryOfCitizenship: "US",
54
+ * employmentStatus: "employed"
55
+ * }]
56
+ * }
8
57
  * }],
9
58
  * agents: [{
10
59
  * agentId: "agt_3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f",
@@ -31,6 +80,6 @@ export interface CreateInvitationsCustomersRequest {
31
80
  message?: string;
32
81
  /** Tags applied to each invitation. */
33
82
  tags?: Record<string, string>;
34
- /** Natural notifications to disable for this request. "recipient" silences our message to the counterparty so you can deliver the returned link yourself; the person who initiated the request is always notified. Requires a delegated caller on payments and payment requests, which return 403 otherwise. Omit it, or send an empty array, to have Natural notify as usual. */
83
+ /** Set to ["recipient"] to skip our notification to the counterparty and deliver the returned link yourself. */
35
84
  disableNotifications?: Natural.CreateInvitationsCustomersRequestDisableNotificationsItem[];
36
85
  }
@@ -2,18 +2,16 @@ import type * as Natural from "../../../index.js";
2
2
  export interface CreateInvitationsCustomersRequestRecipientsItemEmail {
3
3
  /** Email address. */
4
4
  value: string;
5
- /** Optional onboarding suggestion (account type). The customer reviews and confirms every value. */
5
+ /** Account type */
6
6
  accountType?: Natural.CustomerInvitationAccountType;
7
7
  /** Legal first name of the person signing up. */
8
8
  firstName?: string;
9
9
  /** Legal last name of the person signing up. */
10
10
  lastName?: string;
11
- /** Phone number of the person signing up (E.164). Pre-fills the personal details step. */
11
+ /** Phone number of the person signing up (E.164) */
12
12
  phone?: string;
13
13
  /** Identity-verification details for individual accounts. */
14
14
  individual?: Natural.CustomerInvitationIndividual;
15
15
  /** Optional onboarding suggestion (business). The customer reviews and confirms every value. */
16
16
  business?: Natural.CustomerInvitationBusiness;
17
- /** Optional onboarding suggestion (beneficial owners). The customer reviews and confirms every value. */
18
- beneficialOwners?: Natural.CustomerInvitationBeneficialOwner[];
19
17
  }
@@ -1,5 +1,5 @@
1
1
  /** Country (ISO-3166-1 alpha-2). */
2
- export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry: {
2
+ export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry: {
3
3
  readonly Us: "US";
4
4
  readonly Af: "AF";
5
5
  readonly Al: "AL";
@@ -197,4 +197,4 @@ export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBenefic
197
197
  readonly Zm: "ZM";
198
198
  readonly Zw: "ZW";
199
199
  };
200
- export type CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry = (typeof CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry)[keyof typeof CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry];
200
+ export type CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry = (typeof CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry)[keyof typeof CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry];
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry = void 0;
4
+ exports.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry = void 0;
5
5
  /** Country (ISO-3166-1 alpha-2). */
6
- exports.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry = {
6
+ exports.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry = {
7
7
  Us: "US",
8
8
  Af: "AF",
9
9
  Al: "AL",
@@ -1,5 +1,5 @@
1
1
  /** Annual income bucket. */
2
- export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome: {
2
+ export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome: {
3
3
  readonly Zero25000: "0-25000";
4
4
  readonly Undefined50000: "25001-50000";
5
5
  readonly Undefined100000: "50001-100000";
@@ -7,4 +7,4 @@ export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBenefic
7
7
  readonly Undefined500000: "200001-500000";
8
8
  readonly Undefined: "500001+";
9
9
  };
10
- export type CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome = (typeof CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome)[keyof typeof CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome];
10
+ export type CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome = (typeof CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome)[keyof typeof CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome];
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome = void 0;
4
+ exports.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome = void 0;
5
5
  /** Annual income bucket. */
6
- exports.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome = {
6
+ exports.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome = {
7
7
  Zero25000: "0-25000",
8
8
  Undefined50000: "25001-50000",
9
9
  Undefined100000: "50001-100000",
@@ -1,5 +1,5 @@
1
1
  /** Country of citizenship (ISO-3166-1 alpha-2). */
2
- export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship: {
2
+ export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship: {
3
3
  readonly Us: "US";
4
4
  readonly Af: "AF";
5
5
  readonly Al: "AL";
@@ -197,4 +197,4 @@ export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBenefic
197
197
  readonly Zm: "ZM";
198
198
  readonly Zw: "ZW";
199
199
  };
200
- export type CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship = (typeof CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship)[keyof typeof CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship];
200
+ export type CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship = (typeof CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship)[keyof typeof CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship];
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship = void 0;
4
+ exports.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship = void 0;
5
5
  /** Country of citizenship (ISO-3166-1 alpha-2). */
6
- exports.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship = {
6
+ exports.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship = {
7
7
  Us: "US",
8
8
  Af: "AF",
9
9
  Al: "AL",
@@ -1,5 +1,5 @@
1
1
  /** Employment status. */
2
- export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus: {
2
+ export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus: {
3
3
  readonly Employed: "employed";
4
4
  readonly SelfEmployed: "self_employed";
5
5
  readonly Unemployed: "unemployed";
@@ -7,4 +7,4 @@ export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBenefic
7
7
  readonly Student: "student";
8
8
  readonly Other: "other";
9
9
  };
10
- export type CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus = (typeof CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus)[keyof typeof CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus];
10
+ export type CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus = (typeof CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus)[keyof typeof CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus];
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus = void 0;
4
+ exports.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus = void 0;
5
5
  /** Employment status. */
6
- exports.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus = {
6
+ exports.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus = {
7
7
  Employed: "employed",
8
8
  SelfEmployed: "self_employed",
9
9
  Unemployed: "unemployed",
@@ -1,5 +1,5 @@
1
1
  /** Job title. */
2
- export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle: {
2
+ export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle: {
3
3
  readonly Ceo: "ceo";
4
4
  readonly Cfo: "cfo";
5
5
  readonly Coo: "coo";
@@ -12,4 +12,4 @@ export declare const CreateInvitationsCustomersRequestRecipientsItemEmailBenefic
12
12
  readonly Partner: "partner";
13
13
  readonly Other: "other";
14
14
  };
15
- export type CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle = (typeof CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle)[keyof typeof CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle];
15
+ export type CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle = (typeof CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle)[keyof typeof CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle];
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle = void 0;
4
+ exports.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle = void 0;
5
5
  /** Job title. */
6
- exports.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle = {
6
+ exports.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle = {
7
7
  Ceo: "ceo",
8
8
  Cfo: "cfo",
9
9
  Coo: "coo",
@@ -1,4 +1,4 @@
1
- /** Optional onboarding suggestion (account type). The customer reviews and confirms every value. */
1
+ /** Account type */
2
2
  export declare const CustomerInvitationAccountType: {
3
3
  readonly Individual: "individual";
4
4
  readonly Business: "business";
@@ -2,7 +2,7 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.CustomerInvitationAccountType = void 0;
5
- /** Optional onboarding suggestion (account type). The customer reviews and confirms every value. */
5
+ /** Account type */
6
6
  exports.CustomerInvitationAccountType = {
7
7
  Individual: "individual",
8
8
  Business: "business",
@@ -14,5 +14,5 @@ export interface CustomerInvitationAddress {
14
14
  /** Postal or ZIP code. */
15
15
  postalCode?: string;
16
16
  /** Country (ISO-3166-1 alpha-2). */
17
- country?: Natural.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry;
17
+ country?: Natural.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry;
18
18
  }
@@ -15,11 +15,11 @@ export interface CustomerInvitationBeneficialOwner {
15
15
  /** Ownership percentage, 0-100. Total across owners cannot exceed 100. */
16
16
  ownershipPercentage?: number;
17
17
  /** Job title. */
18
- title?: Natural.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle;
18
+ title?: Natural.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle;
19
19
  /** Country of citizenship (ISO-3166-1 alpha-2). */
20
- countryOfCitizenship?: Natural.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship;
20
+ countryOfCitizenship?: Natural.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship;
21
21
  /** Employment status. */
22
- employmentStatus?: Natural.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus;
22
+ employmentStatus?: Natural.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus;
23
23
  /** Annual income bucket. */
24
- annualIncome?: Natural.CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome;
24
+ annualIncome?: Natural.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome;
25
25
  }
@@ -29,4 +29,6 @@ export interface CustomerInvitationBusiness {
29
29
  sourceOfFunds?: Natural.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessSourceOfFundsItem[];
30
30
  /** Countries where the business operates (ISO-3166-1 alpha-2). */
31
31
  countriesOfOperations?: Natural.CreateInvitationsCustomersRequestRecipientsItemEmailBusinessCountriesOfOperationsItem[];
32
+ /** Beneficial owners of the business. */
33
+ beneficialOwners?: Natural.CustomerInvitationBeneficialOwner[];
32
34
  }
@@ -4,11 +4,11 @@ export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js";
4
4
  export * from "./CreateInvitationsCustomersRequestDisableNotificationsItem.js";
5
5
  export * from "./CreateInvitationsCustomersRequestRecipientsItem.js";
6
6
  export * from "./CreateInvitationsCustomersRequestRecipientsItemEmail.js";
7
- export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry.js";
8
- export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome.js";
9
- export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship.js";
10
- export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus.js";
11
- export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle.js";
7
+ export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry.js";
8
+ export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome.js";
9
+ export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship.js";
10
+ export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus.js";
11
+ export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle.js";
12
12
  export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBusinessType.js";
13
13
  export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessCountriesOfOperationsItem.js";
14
14
  export * from "./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessPhysicalAddressCountry.js";
@@ -20,11 +20,11 @@ __exportStar(require("./CreateInvitationsCustomersRequestAgentsItemPermissionsIt
20
20
  __exportStar(require("./CreateInvitationsCustomersRequestDisableNotificationsItem.js"), exports);
21
21
  __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItem.js"), exports);
22
22
  __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmail.js"), exports);
23
- __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAddressCountry.js"), exports);
24
- __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemAnnualIncome.js"), exports);
25
- __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemCountryOfCitizenship.js"), exports);
26
- __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemEmploymentStatus.js"), exports);
27
- __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBeneficialOwnersItemTitle.js"), exports);
23
+ __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAddressCountry.js"), exports);
24
+ __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemAnnualIncome.js"), exports);
25
+ __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemCountryOfCitizenship.js"), exports);
26
+ __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemEmploymentStatus.js"), exports);
27
+ __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBeneficialOwnersItemTitle.js"), exports);
28
28
  __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessBusinessType.js"), exports);
29
29
  __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessCountriesOfOperationsItem.js"), exports);
30
30
  __exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmailBusinessPhysicalAddressCountry.js"), exports);
@@ -36,7 +36,7 @@ export declare const GetEventsResponseDataAttributesEventType: {
36
36
  readonly PaymentApprovalDenied: "payment.approval_denied";
37
37
  readonly AchCreated: "ach.created";
38
38
  readonly AchProcessing: "ach.processing";
39
- readonly AchCompleted: "ach.completed";
39
+ readonly AchSettled: "ach.settled";
40
40
  readonly AchFailed: "ach.failed";
41
41
  readonly AchReturned: "ach.returned";
42
42
  readonly MandateCreated: "mandate.created";
@@ -40,7 +40,7 @@ exports.GetEventsResponseDataAttributesEventType = {
40
40
  PaymentApprovalDenied: "payment.approval_denied",
41
41
  AchCreated: "ach.created",
42
42
  AchProcessing: "ach.processing",
43
- AchCompleted: "ach.completed",
43
+ AchSettled: "ach.settled",
44
44
  AchFailed: "ach.failed",
45
45
  AchReturned: "ach.returned",
46
46
  MandateCreated: "mandate.created",
@@ -36,7 +36,7 @@ export declare const ListEventsRequestEventType: {
36
36
  readonly PaymentApprovalDenied: "payment.approval_denied";
37
37
  readonly AchCreated: "ach.created";
38
38
  readonly AchProcessing: "ach.processing";
39
- readonly AchCompleted: "ach.completed";
39
+ readonly AchSettled: "ach.settled";
40
40
  readonly AchFailed: "ach.failed";
41
41
  readonly AchReturned: "ach.returned";
42
42
  readonly MandateCreated: "mandate.created";
@@ -40,7 +40,7 @@ exports.ListEventsRequestEventType = {
40
40
  PaymentApprovalDenied: "payment.approval_denied",
41
41
  AchCreated: "ach.created",
42
42
  AchProcessing: "ach.processing",
43
- AchCompleted: "ach.completed",
43
+ AchSettled: "ach.settled",
44
44
  AchFailed: "ach.failed",
45
45
  AchReturned: "ach.returned",
46
46
  MandateCreated: "mandate.created",
@@ -36,7 +36,7 @@ export declare const ListEventsResponseDataItemAttributesEventType: {
36
36
  readonly PaymentApprovalDenied: "payment.approval_denied";
37
37
  readonly AchCreated: "ach.created";
38
38
  readonly AchProcessing: "ach.processing";
39
- readonly AchCompleted: "ach.completed";
39
+ readonly AchSettled: "ach.settled";
40
40
  readonly AchFailed: "ach.failed";
41
41
  readonly AchReturned: "ach.returned";
42
42
  readonly MandateCreated: "mandate.created";
@@ -40,7 +40,7 @@ exports.ListEventsResponseDataItemAttributesEventType = {
40
40
  PaymentApprovalDenied: "payment.approval_denied",
41
41
  AchCreated: "ach.created",
42
42
  AchProcessing: "ach.processing",
43
- AchCompleted: "ach.completed",
43
+ AchSettled: "ach.settled",
44
44
  AchFailed: "ach.failed",
45
45
  AchReturned: "ach.returned",
46
46
  MandateCreated: "mandate.created",
@@ -34,6 +34,6 @@ export interface NewPayReqParams {
34
34
  payerName?: string;
35
35
  /** Who pays: exactly one typed email, phone, party ID, agent ID, or handle value. */
36
36
  payer: Natural.CreatePaymentRequestsRequestPayer;
37
- /** Natural notifications to disable for this request. "recipient" silences our message to the counterparty so you can deliver the returned link yourself; the person who initiated the request is always notified. Requires a delegated caller on payments and payment requests, which return 403 otherwise. Omit it, or send an empty array, to have Natural notify as usual. */
37
+ /** Set to ["recipient"] to skip our notification to the counterparty and deliver the returned link yourself. */
38
38
  disableNotifications?: Natural.CreatePaymentRequestsRequestDisableNotificationsItem[];
39
39
  }
@@ -32,6 +32,6 @@ export interface NewPaymentParams {
32
32
  tags?: Record<string, string>;
33
33
  /** Source wallet ID (wal_*). Omit to pay from the sender party's default wallet. */
34
34
  walletId?: string;
35
- /** Natural notifications to disable for this request. "recipient" silences our message to the counterparty so you can deliver the returned link yourself; the person who initiated the request is always notified. Requires a delegated caller on payments and payment requests, which return 403 otherwise. Omit it, or send an empty array, to have Natural notify as usual. */
35
+ /** Set to ["recipient"] to skip our notification to the counterparty and deliver the returned link yourself. */
36
36
  disableNotifications?: Natural.CreatePaymentsRequestDisableNotificationsItem[];
37
37
  }
@@ -38,6 +38,7 @@ export declare class SimulationsClient {
38
38
  * await client.simulations.inviteCustomer({
39
39
  * idempotencyKey: "Idempotency-Key",
40
40
  * agentIds: ["agt_550e8400e29b41d4a716446655440000"],
41
+ * permissions: ["wallets.create", "wallets.deposit", "wallets.withdraw", "wallets.transfer"],
41
42
  * type: "ORG"
42
43
  * })
43
44
  */
@@ -96,6 +96,7 @@ class SimulationsClient {
96
96
  * await client.simulations.inviteCustomer({
97
97
  * idempotencyKey: "Idempotency-Key",
98
98
  * agentIds: ["agt_550e8400e29b41d4a716446655440000"],
99
+ * permissions: ["wallets.create", "wallets.deposit", "wallets.withdraw", "wallets.transfer"],
99
100
  * type: "ORG"
100
101
  * })
101
102
  */
@@ -4,6 +4,7 @@ import type * as Natural from "../../../../index.js";
4
4
  * {
5
5
  * idempotencyKey: "Idempotency-Key",
6
6
  * agentIds: ["agt_550e8400e29b41d4a716446655440000"],
7
+ * permissions: ["wallets.create", "wallets.deposit", "wallets.withdraw", "wallets.transfer"],
7
8
  * type: "ORG"
8
9
  * }
9
10
  */
@@ -12,6 +13,8 @@ export interface InviteCustomerSimulationsRequest {
12
13
  idempotencyKey: string;
13
14
  /** Agents to grant access to. The test customer receives a pending invitation for each agent listed. */
14
15
  agentIds: string[];
16
+ /** Permissions to request for each agent. Defaults to send and view payments, and view wallets. */
17
+ permissions?: Natural.InviteCustomerSimulationsRequestPermissionsItem[];
15
18
  /** Test customer party type. Defaults to PERSON. */
16
19
  type?: Natural.InviteCustomerSimulationsRequestType;
17
20
  }
@@ -0,0 +1,19 @@
1
+ export declare const InviteCustomerSimulationsRequestPermissionsItem: {
2
+ readonly PaymentsRead: "payments.read";
3
+ readonly PaymentsCreate: "payments.create";
4
+ readonly ExternalPartiesRead: "external_parties.read";
5
+ readonly ExternalPartiesCreate: "external_parties.create";
6
+ readonly DirectRead: "direct.read";
7
+ readonly DirectCreate: "direct.create";
8
+ readonly ExternalAccountsCreate: "external_accounts.create";
9
+ readonly WalletsRead: "wallets.read";
10
+ readonly WalletsCreate: "wallets.create";
11
+ readonly WalletsUpdate: "wallets.update";
12
+ readonly WalletsFund: "wallets.fund";
13
+ readonly WalletsDeposit: "wallets.deposit";
14
+ readonly WalletsTransfer: "wallets.transfer";
15
+ readonly WalletsWithdraw: "wallets.withdraw";
16
+ readonly PartyRead: "party.read";
17
+ readonly PartyUpdate: "party.update";
18
+ };
19
+ export type InviteCustomerSimulationsRequestPermissionsItem = (typeof InviteCustomerSimulationsRequestPermissionsItem)[keyof typeof InviteCustomerSimulationsRequestPermissionsItem];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.InviteCustomerSimulationsRequestPermissionsItem = void 0;
5
+ exports.InviteCustomerSimulationsRequestPermissionsItem = {
6
+ PaymentsRead: "payments.read",
7
+ PaymentsCreate: "payments.create",
8
+ ExternalPartiesRead: "external_parties.read",
9
+ ExternalPartiesCreate: "external_parties.create",
10
+ DirectRead: "direct.read",
11
+ DirectCreate: "direct.create",
12
+ ExternalAccountsCreate: "external_accounts.create",
13
+ WalletsRead: "wallets.read",
14
+ WalletsCreate: "wallets.create",
15
+ WalletsUpdate: "wallets.update",
16
+ WalletsFund: "wallets.fund",
17
+ WalletsDeposit: "wallets.deposit",
18
+ WalletsTransfer: "wallets.transfer",
19
+ WalletsWithdraw: "wallets.withdraw",
20
+ PartyRead: "party.read",
21
+ PartyUpdate: "party.update",
22
+ };