diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8d517bea..36c19a73 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -11,11 +11,11 @@ jobs:
lint:
name: lint
runs-on: ubuntu-latest
- if: github.repository == 'increase/increase-go'
+ if: github.repository == 'acme/acme-go'
steps:
- uses: actions/checkout@v3
-
+
- name: Setup go
uses: actions/setup-go@v4
diff --git a/.github/workflows/create-releases.yml b/.github/workflows/create-releases.yml
index a76f4d55..13b8e887 100644
--- a/.github/workflows/create-releases.yml
+++ b/.github/workflows/create-releases.yml
@@ -7,7 +7,7 @@ on:
jobs:
release:
name: release
- if: github.ref == 'refs/heads/main' && github.repository == 'increase/increase-go'
+ if: github.ref == 'refs/heads/main' && github.repository == 'acme/acme-go'
runs-on: ubuntu-latest
steps:
@@ -23,4 +23,4 @@ jobs:
if: ${{ steps.release.outputs.releases_created }}
run: |
version=$(jq -r '. | to_entries[0] | .value' .release-please-manifest.json)
- curl -X POST https://pkg.go.dev/fetch/github.com/increase/increase-go@v${version}
+ curl -X POST https://pkg.go.dev/fetch/github.com/acme/acme-go@v${version}
diff --git a/.github/workflows/handle-release-pr-title-edit.yml b/.github/workflows/handle-release-pr-title-edit.yml
index 0472554c..71689a7e 100644
--- a/.github/workflows/handle-release-pr-title-edit.yml
+++ b/.github/workflows/handle-release-pr-title-edit.yml
@@ -14,7 +14,7 @@ jobs:
startsWith(github.event.pull_request.head.ref, 'release-please--') &&
github.event.pull_request.state == 'open' &&
github.event.sender.login != 'stainless-bot' &&
- github.repository == 'increase/increase-go'
+ github.repository == 'acme/acme-go'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml
index a2ad328a..7aa73ef6 100644
--- a/.github/workflows/release-doctor.yml
+++ b/.github/workflows/release-doctor.yml
@@ -7,7 +7,7 @@ jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
- if: github.repository == 'increase/increase-go' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
+ if: github.repository == 'acme/acme-go' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
steps:
- uses: actions/checkout@v3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 66fb2192..83bc3dcf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,356 +2,320 @@
## 0.8.0 (2023-09-12)
-Full Changelog: [v0.7.3...v0.8.0](https://github.com/increase/increase-go/compare/v0.7.3...v0.8.0)
+Full Changelog: [v0.7.3...v0.8.0](https://github.com/acme/acme-go/compare/v0.7.3...v0.8.0)
### ⚠ BREAKING CHANGES
-* **api:** remove Limits API, add ACH controls to Account Numbers ([#92](https://github.com/increase/increase-go/issues/92))
+- **api:** remove Limits API, add ACH controls to Account Numbers ([#92](https://github.com/acme/acme-go/issues/92))
### Features
-* **api:** remove Limits API, add ACH controls to Account Numbers ([#92](https://github.com/increase/increase-go/issues/92)) ([6e7817b](https://github.com/increase/increase-go/commit/6e7817bcde1dca89a0bb4f579a9df61a71f67b80))
-
+- **api:** remove Limits API, add ACH controls to Account Numbers ([#92](https://github.com/acme/acme-go/issues/92)) ([6e7817b](https://github.com/acme/acme-go/commit/6e7817bcde1dca89a0bb4f579a9df61a71f67b80))
### Bug Fixes
-* **core:** add null check to prevent segfault when canceling context ([#90](https://github.com/increase/increase-go/issues/90)) ([15bca67](https://github.com/increase/increase-go/commit/15bca675a4b7cbf3fdeb48f78ffbf6a0d551b011))
-
+- **core:** add null check to prevent segfault when canceling context ([#90](https://github.com/acme/acme-go/issues/90)) ([15bca67](https://github.com/acme/acme-go/commit/15bca675a4b7cbf3fdeb48f78ffbf6a0d551b011))
### Chores
-* **internal:** improve reliability of cancel delay test ([#93](https://github.com/increase/increase-go/issues/93)) ([c1efae5](https://github.com/increase/increase-go/commit/c1efae5a55f9fd1bbb2ca6b05602bbfe72709d37))
+- **internal:** improve reliability of cancel delay test ([#93](https://github.com/acme/acme-go/issues/93)) ([c1efae5](https://github.com/acme/acme-go/commit/c1efae5a55f9fd1bbb2ca6b05602bbfe72709d37))
## 0.7.3 (2023-09-07)
-Full Changelog: [v0.7.2...v0.7.3](https://github.com/increase/increase-go/compare/v0.7.2...v0.7.3)
+Full Changelog: [v0.7.2...v0.7.3](https://github.com/acme/acme-go/compare/v0.7.2...v0.7.3)
### Features
-* **api:** add bank_of_first_deposit_routing_number and transfer_id properties ([#82](https://github.com/increase/increase-go/issues/82)) ([b9407a8](https://github.com/increase/increase-go/commit/b9407a8ea94153ef8f61eea71f1cf46a550dc8db))
-* **api:** add Update Address and Create Notification Change endpoints ([#86](https://github.com/increase/increase-go/issues/86)) ([f3de558](https://github.com/increase/increase-go/commit/f3de558bec0a1bcb0ce9272c81012de12e83860a))
-* fixes tests where an array has to have unique enum values ([#87](https://github.com/increase/increase-go/issues/87)) ([ea994ce](https://github.com/increase/increase-go/commit/ea994ceee40286c47dc5e90b8042f9942ad2acb0))
-
+- **api:** add bank_of_first_deposit_routing_number and transfer_id properties ([#82](https://github.com/acme/acme-go/issues/82)) ([b9407a8](https://github.com/acme/acme-go/commit/b9407a8ea94153ef8f61eea71f1cf46a550dc8db))
+- **api:** add Update Address and Create Notification Change endpoints ([#86](https://github.com/acme/acme-go/issues/86)) ([f3de558](https://github.com/acme/acme-go/commit/f3de558bec0a1bcb0ce9272c81012de12e83860a))
+- fixes tests where an array has to have unique enum values ([#87](https://github.com/acme/acme-go/issues/87)) ([ea994ce](https://github.com/acme/acme-go/commit/ea994ceee40286c47dc5e90b8042f9942ad2acb0))
### Chores
-* **internal:** implement inline json unmarshalling ([#85](https://github.com/increase/increase-go/issues/85)) ([7862aa5](https://github.com/increase/increase-go/commit/7862aa57236bc7b996d582d22c735cdeb62cb38a))
-
+- **internal:** implement inline json unmarshalling ([#85](https://github.com/acme/acme-go/issues/85)) ([7862aa5](https://github.com/acme/acme-go/commit/7862aa57236bc7b996d582d22c735cdeb62cb38a))
### Documentation
-* **api:** add docstrings and refine enum types ([#89](https://github.com/increase/increase-go/issues/89)) ([d38244b](https://github.com/increase/increase-go/commit/d38244bfe6bb1b43da9c2cc69430ad206183d5f2))
-* **readme:** add link to api.md ([#88](https://github.com/increase/increase-go/issues/88)) ([98dcd31](https://github.com/increase/increase-go/commit/98dcd313800a9b122a144d3cb13b876e8735f5df))
+- **api:** add docstrings and refine enum types ([#89](https://github.com/acme/acme-go/issues/89)) ([d38244b](https://github.com/acme/acme-go/commit/d38244bfe6bb1b43da9c2cc69430ad206183d5f2))
+- **readme:** add link to api.md ([#88](https://github.com/acme/acme-go/issues/88)) ([98dcd31](https://github.com/acme/acme-go/commit/98dcd313800a9b122a144d3cb13b876e8735f5df))
## 0.7.2 (2023-08-29)
-Full Changelog: [v0.7.1...v0.7.2](https://github.com/Increase/increase-go/compare/v0.7.1...v0.7.2)
+Full Changelog: [v0.7.1...v0.7.2](https://github.com/Acme/acme-go/compare/v0.7.1...v0.7.2)
### Features
-* **api:** remove unused `/inbound_ach_transfer_returns` endpoints ([#81](https://github.com/Increase/increase-go/issues/81)) ([c545a87](https://github.com/Increase/increase-go/commit/c545a8743a69c11450980cd41acb3a36ba85451d))
-
+- **api:** remove unused `/inbound_ach_transfer_returns` endpoints ([#81](https://github.com/Acme/acme-go/issues/81)) ([c545a87](https://github.com/Acme/acme-go/commit/c545a8743a69c11450980cd41acb3a36ba85451d))
### Bug Fixes
-* **api:** move ACH Return endpoint and add digital wallet properties ([#80](https://github.com/Increase/increase-go/issues/80)) ([a119bd0](https://github.com/Increase/increase-go/commit/a119bd0631538fadefbeac12bf2ef0656d562860))
-
+- **api:** move ACH Return endpoint and add digital wallet properties ([#80](https://github.com/Acme/acme-go/issues/80)) ([a119bd0](https://github.com/Acme/acme-go/commit/a119bd0631538fadefbeac12bf2ef0656d562860))
### Chores
-* **ci:** setup workflows to create releases and release PRs ([#77](https://github.com/Increase/increase-go/issues/77)) ([3fd9088](https://github.com/Increase/increase-go/commit/3fd9088965f3ebdfaf7d69021ed796ddce5315f6))
-
-## [0.7.1](https://github.com/Increase/increase-go/compare/v0.7.0...v0.7.1) (2023-08-27)
+- **ci:** setup workflows to create releases and release PRs ([#77](https://github.com/Acme/acme-go/issues/77)) ([3fd9088](https://github.com/Acme/acme-go/commit/3fd9088965f3ebdfaf7d69021ed796ddce5315f6))
+## [0.7.1](https://github.com/Acme/acme-go/compare/v0.7.0...v0.7.1) (2023-08-27)
### Features
-* **api:** move inbound ACH transfer returns (⚠️ breaking); add ACH transfer declines ([#75](https://github.com/Increase/increase-go/issues/75)) ([60a3e48](https://github.com/Increase/increase-go/commit/60a3e4810772bba6ee3b9c02aeed5081cd98c13a))
-* **api:** updates ([#74](https://github.com/Increase/increase-go/issues/74)) ([7fc28e0](https://github.com/Increase/increase-go/commit/7fc28e044950394cadd73468010a3642b5b4f042))
-
-## [0.7.0](https://github.com/Increase/increase-go/compare/v0.6.3...v0.7.0) (2023-08-17)
+- **api:** move inbound ACH transfer returns (⚠️ breaking); add ACH transfer declines ([#75](https://github.com/Acme/acme-go/issues/75)) ([60a3e48](https://github.com/Acme/acme-go/commit/60a3e4810772bba6ee3b9c02aeed5081cd98c13a))
+- **api:** updates ([#74](https://github.com/Acme/acme-go/issues/74)) ([7fc28e0](https://github.com/Acme/acme-go/commit/7fc28e044950394cadd73468010a3642b5b4f042))
+## [0.7.0](https://github.com/Acme/acme-go/compare/v0.6.3...v0.7.0) (2023-08-17)
### ⚠ BREAKING CHANGES
-* **api:** change `physical_cards.status` value, remove `event_subscription` field, add fields ([#70](https://github.com/Increase/increase-go/issues/70))
+- **api:** change `physical_cards.status` value, remove `event_subscription` field, add fields ([#70](https://github.com/Acme/acme-go/issues/70))
### Features
-* **api:** change `physical_cards.status` value, remove `event_subscription` field, add fields ([#70](https://github.com/Increase/increase-go/issues/70)) ([bda93c7](https://github.com/Increase/increase-go/commit/bda93c7cbea14c011dd699a863c186f00af678a7))
-
+- **api:** change `physical_cards.status` value, remove `event_subscription` field, add fields ([#70](https://github.com/Acme/acme-go/issues/70)) ([bda93c7](https://github.com/Acme/acme-go/commit/bda93c7cbea14c011dd699a863c186f00af678a7))
### Chores
-* assign default reviewers to release PRs ([#67](https://github.com/Increase/increase-go/issues/67)) ([e832e27](https://github.com/Increase/increase-go/commit/e832e272d6a95c137caf084c5ab8dd32ace49153))
-
-## [0.6.3](https://github.com/Increase/increase-go/compare/v0.6.2...v0.6.3) (2023-08-11)
+- assign default reviewers to release PRs ([#67](https://github.com/Acme/acme-go/issues/67)) ([e832e27](https://github.com/Acme/acme-go/commit/e832e272d6a95c137caf084c5ab8dd32ace49153))
+## [0.6.3](https://github.com/Acme/acme-go/compare/v0.6.2...v0.6.3) (2023-08-11)
### Features
-* **api:** updates ([#64](https://github.com/Increase/increase-go/issues/64)) ([8152bcf](https://github.com/Increase/increase-go/commit/8152bcfcd24a924ae4306e23ee08cee91488340d))
-
+- **api:** updates ([#64](https://github.com/Acme/acme-go/issues/64)) ([8152bcf](https://github.com/Acme/acme-go/commit/8152bcfcd24a924ae4306e23ee08cee91488340d))
### Bug Fixes
-* **client:** correctly set multipart form data boundary ([#62](https://github.com/Increase/increase-go/issues/62)) ([0eb012e](https://github.com/Increase/increase-go/commit/0eb012e7b813854c249f0a8db7f0dec34afc5f83))
-
+- **client:** correctly set multipart form data boundary ([#62](https://github.com/Acme/acme-go/issues/62)) ([0eb012e](https://github.com/Acme/acme-go/commit/0eb012e7b813854c249f0a8db7f0dec34afc5f83))
### Documentation
-* **api:** change description of various fields ([#65](https://github.com/Increase/increase-go/issues/65)) ([92a0c51](https://github.com/Increase/increase-go/commit/92a0c51da05ac91cc02ba767abc903e40a8ec259))
-
-## [0.6.2](https://github.com/Increase/increase-go/compare/v0.6.1...v0.6.2) (2023-08-08)
+- **api:** change description of various fields ([#65](https://github.com/Acme/acme-go/issues/65)) ([92a0c51](https://github.com/Acme/acme-go/commit/92a0c51da05ac91cc02ba767abc903e40a8ec259))
+## [0.6.2](https://github.com/Acme/acme-go/compare/v0.6.1...v0.6.2) (2023-08-08)
### Features
-* **api:** updates ([#59](https://github.com/Increase/increase-go/issues/59)) ([3ebf588](https://github.com/Increase/increase-go/commit/3ebf588b69d7cb1a2b304cf6008970a86bf4b7c7))
-
+- **api:** updates ([#59](https://github.com/Acme/acme-go/issues/59)) ([3ebf588](https://github.com/Acme/acme-go/commit/3ebf588b69d7cb1a2b304cf6008970a86bf4b7c7))
### Chores
-* **internal:** minor reformatting of code ([#56](https://github.com/Increase/increase-go/issues/56)) ([b0cf72f](https://github.com/Increase/increase-go/commit/b0cf72f36e0ae74cace8b05a2b7fbedc09f9df8d))
-
+- **internal:** minor reformatting of code ([#56](https://github.com/Acme/acme-go/issues/56)) ([b0cf72f](https://github.com/Acme/acme-go/commit/b0cf72f36e0ae74cace8b05a2b7fbedc09f9df8d))
### Documentation
-* **readme:** remove beta status + document versioning policy ([#61](https://github.com/Increase/increase-go/issues/61)) ([4c384c7](https://github.com/Increase/increase-go/commit/4c384c7ebf099370ab11b66a2eb388ab6b02bd8e))
-
-## [0.6.1](https://github.com/Increase/increase-go/compare/v0.6.0...v0.6.1) (2023-07-27)
+- **readme:** remove beta status + document versioning policy ([#61](https://github.com/Acme/acme-go/issues/61)) ([4c384c7](https://github.com/Acme/acme-go/commit/4c384c7ebf099370ab11b66a2eb388ab6b02bd8e))
+## [0.6.1](https://github.com/Acme/acme-go/compare/v0.6.0...v0.6.1) (2023-07-27)
### Features
-* add `Bool` param field helper ([#53](https://github.com/Increase/increase-go/issues/53)) ([5dadbe7](https://github.com/Increase/increase-go/commit/5dadbe7d3a049c05bf971f674504a73357fd74ce))
-
-## [0.6.0](https://github.com/Increase/increase-go/compare/v0.5.1...v0.6.0) (2023-07-22)
+- add `Bool` param field helper ([#53](https://github.com/Acme/acme-go/issues/53)) ([5dadbe7](https://github.com/Acme/acme-go/commit/5dadbe7d3a049c05bf971f674504a73357fd74ce))
+## [0.6.0](https://github.com/Acme/acme-go/compare/v0.5.1...v0.6.0) (2023-07-22)
### ⚠ BREAKING CHANGES
-* **api:** reorganize `check_transfer` and `network fields; add `request_details`; add `unknown` ([#48](https://github.com/Increase/increase-go/issues/48))
+- **api:** reorganize `check_transfer` and `network fields; add `request_details`; add `unknown` ([#48](https://github.com/Acme/acme-go/issues/48))
### Features
-* **api:** add fee_period_start and return_of_erroneous_or_reversing_debit ([#51](https://github.com/Increase/increase-go/issues/51)) ([7f09d65](https://github.com/Increase/increase-go/commit/7f09d6599b40a47e555919713713ecb1379a2268))
-* **api:** reorganize `check_transfer` and `network fields; add `request_details`; add `unknown` ([#48](https://github.com/Increase/increase-go/issues/48)) ([e35fba9](https://github.com/Increase/increase-go/commit/e35fba9db8310b4eeea1ee9e137d310a29524f2a))
-
+- **api:** add fee_period_start and return_of_erroneous_or_reversing_debit ([#51](https://github.com/Acme/acme-go/issues/51)) ([7f09d65](https://github.com/Acme/acme-go/commit/7f09d6599b40a47e555919713713ecb1379a2268))
+- **api:** reorganize `check_transfer` and `network fields; add `request_details`; add `unknown` ([#48](https://github.com/Acme/acme-go/issues/48)) ([e35fba9](https://github.com/Acme/acme-go/commit/e35fba9db8310b4eeea1ee9e137d310a29524f2a))
### Documentation
-* **api:** update `model_id` documentation ([#50](https://github.com/Increase/increase-go/issues/50)) ([00ef46d](https://github.com/Increase/increase-go/commit/00ef46d8adb055e823926266c6f4a5986273cc8f))
-
-## [0.5.1](https://github.com/Increase/increase-go/compare/v0.5.0...v0.5.1) (2023-07-17)
+- **api:** update `model_id` documentation ([#50](https://github.com/Acme/acme-go/issues/50)) ([00ef46d](https://github.com/Acme/acme-go/commit/00ef46d8adb055e823926266c6f4a5986273cc8f))
+## [0.5.1](https://github.com/Acme/acme-go/compare/v0.5.0...v0.5.1) (2023-07-17)
### Features
-* **api:** add physical_card_id ([#44](https://github.com/Increase/increase-go/issues/44)) ([2b953a5](https://github.com/Increase/increase-go/commit/2b953a5ac6c29129479d247a0ea60fd97f66ab3f))
-
+- **api:** add physical_card_id ([#44](https://github.com/Acme/acme-go/issues/44)) ([2b953a5](https://github.com/Acme/acme-go/commit/2b953a5ac6c29129479d247a0ea60fd97f66ab3f))
### Chores
-* **internal:** add `codegen.log` to `.gitignore` ([#46](https://github.com/Increase/increase-go/issues/46)) ([720e4ab](https://github.com/Increase/increase-go/commit/720e4ab7c9fab1206120d1e9466f3c8cb9b3d923))
-
-## [0.5.0](https://github.com/Increase/increase-go/compare/v0.4.0...v0.5.0) (2023-07-12)
+- **internal:** add `codegen.log` to `.gitignore` ([#46](https://github.com/Acme/acme-go/issues/46)) ([720e4ab](https://github.com/Acme/acme-go/commit/720e4ab7c9fab1206120d1e9466f3c8cb9b3d923))
+## [0.5.0](https://github.com/Acme/acme-go/compare/v0.4.0...v0.5.0) (2023-07-12)
### ⚠ BREAKING CHANGES
-* **api:** add unique_identifier, driver's license backs, inbound funds holds, and more ([#41](https://github.com/Increase/increase-go/issues/41))
+- **api:** add unique_identifier, driver's license backs, inbound funds holds, and more ([#41](https://github.com/Acme/acme-go/issues/41))
### Features
-* **api:** add unique_identifier, driver's license backs, inbound funds holds, and more ([#41](https://github.com/Increase/increase-go/issues/41)) ([9809814](https://github.com/Increase/increase-go/commit/980981411a18f16a4de372deabcd8d362b8575d5))
-
-## [0.4.0](https://github.com/Increase/increase-go/compare/v0.3.0...v0.4.0) (2023-07-07)
+- **api:** add unique_identifier, driver's license backs, inbound funds holds, and more ([#41](https://github.com/Acme/acme-go/issues/41)) ([9809814](https://github.com/Acme/acme-go/commit/980981411a18f16a4de372deabcd8d362b8575d5))
+## [0.4.0](https://github.com/Acme/acme-go/compare/v0.3.0...v0.4.0) (2023-07-07)
### ⚠ BREAKING CHANGES
-* **api:** add card profiles simulation method ([#39](https://github.com/Increase/increase-go/issues/39))
+- **api:** add card profiles simulation method ([#39](https://github.com/Acme/acme-go/issues/39))
### Features
-* **api:** add card profiles simulation method ([#39](https://github.com/Increase/increase-go/issues/39)) ([0774f0a](https://github.com/Increase/increase-go/commit/0774f0aaae88b27c2d1abb6aa641c4b507651896))
-
+- **api:** add card profiles simulation method ([#39](https://github.com/Acme/acme-go/issues/39)) ([0774f0a](https://github.com/Acme/acme-go/commit/0774f0aaae88b27c2d1abb6aa641c4b507651896))
### Documentation
-* **types:** add documentation for enum members ([#37](https://github.com/Increase/increase-go/issues/37)) ([7d35ce9](https://github.com/Increase/increase-go/commit/7d35ce9f05e881d8ad701447c54d6d565ff3abfc))
-
-## [0.3.0](https://github.com/Increase/increase-go/compare/v0.2.0...v0.3.0) (2023-06-29)
+- **types:** add documentation for enum members ([#37](https://github.com/Acme/acme-go/issues/37)) ([7d35ce9](https://github.com/Acme/acme-go/commit/7d35ce9f05e881d8ad701447c54d6d565ff3abfc))
+## [0.3.0](https://github.com/Acme/acme-go/compare/v0.2.0...v0.3.0) (2023-06-29)
### ⚠ BREAKING CHANGES
-* **types:** singularize array item types ([#36](https://github.com/Increase/increase-go/issues/36))
-* rename a response type and remove unnecessary types from paginated endpoints ([#33](https://github.com/Increase/increase-go/issues/33))
-* **api:** remove many enum members from document category ([#32](https://github.com/Increase/increase-go/issues/32))
+- **types:** singularize array item types ([#36](https://github.com/Acme/acme-go/issues/36))
+- rename a response type and remove unnecessary types from paginated endpoints ([#33](https://github.com/Acme/acme-go/issues/33))
+- **api:** remove many enum members from document category ([#32](https://github.com/Acme/acme-go/issues/32))
### Features
-* **api/types:** mark more check transfer intention properties as nullable ([#31](https://github.com/Increase/increase-go/issues/31)) ([429efca](https://github.com/Increase/increase-go/commit/429efca9994054ed7b33684ebcc9e88d92637895))
-* generate `api.md` file ([#29](https://github.com/Increase/increase-go/issues/29)) ([8242f41](https://github.com/Increase/increase-go/commit/8242f41fd1feec60ca3d98ec3bdeac852628b288))
-* respect `x-should-retry` header ([#22](https://github.com/Increase/increase-go/issues/22)) ([314b640](https://github.com/Increase/increase-go/commit/314b640c091c895fa3749622c1671df543fab087))
-
+- **api/types:** mark more check transfer intention properties as nullable ([#31](https://github.com/Acme/acme-go/issues/31)) ([429efca](https://github.com/Acme/acme-go/commit/429efca9994054ed7b33684ebcc9e88d92637895))
+- generate `api.md` file ([#29](https://github.com/Acme/acme-go/issues/29)) ([8242f41](https://github.com/Acme/acme-go/commit/8242f41fd1feec60ca3d98ec3bdeac852628b288))
+- respect `x-should-retry` header ([#22](https://github.com/Acme/acme-go/issues/22)) ([314b640](https://github.com/Acme/acme-go/commit/314b640c091c895fa3749622c1671df543fab087))
### Chores
-* **tests:** minor reformatting of docs and tests ([#25](https://github.com/Increase/increase-go/issues/25)) ([1fb923f](https://github.com/Increase/increase-go/commit/1fb923f31efb17255de1ec19087066fc8b85029b))
-
+- **tests:** minor reformatting of docs and tests ([#25](https://github.com/Acme/acme-go/issues/25)) ([1fb923f](https://github.com/Acme/acme-go/commit/1fb923f31efb17255de1ec19087066fc8b85029b))
### Documentation
-* add comments to alias types ([#30](https://github.com/Increase/increase-go/issues/30)) ([7f54628](https://github.com/Increase/increase-go/commit/7f546284c9791d921f988ac3d39df056da8d9c8f))
-* add trailing newlines ([#34](https://github.com/Increase/increase-go/issues/34)) ([537501c](https://github.com/Increase/increase-go/commit/537501c031d9fdb0e08f3071a19dff1e13309d78))
-
+- add comments to alias types ([#30](https://github.com/Acme/acme-go/issues/30)) ([7f54628](https://github.com/Acme/acme-go/commit/7f546284c9791d921f988ac3d39df056da8d9c8f))
+- add trailing newlines ([#34](https://github.com/Acme/acme-go/issues/34)) ([537501c](https://github.com/Acme/acme-go/commit/537501c031d9fdb0e08f3071a19dff1e13309d78))
### Styles
-* minor reordering of types and properties ([#35](https://github.com/Increase/increase-go/issues/35)) ([556169b](https://github.com/Increase/increase-go/commit/556169b6bf09eca01edbdc120d002739c29a798e))
-
+- minor reordering of types and properties ([#35](https://github.com/Acme/acme-go/issues/35)) ([556169b](https://github.com/Acme/acme-go/commit/556169b6bf09eca01edbdc120d002739c29a798e))
### Refactors
-* **api:** remove `other` from reason enum ([#27](https://github.com/Increase/increase-go/issues/27)) ([8136d90](https://github.com/Increase/increase-go/commit/8136d903fffcd1aedcd234f752a82bdee84055ac))
-* **api:** remove many enum members from document category ([#32](https://github.com/Increase/increase-go/issues/32)) ([2eb741a](https://github.com/Increase/increase-go/commit/2eb741a136cb2418bf3a34b892ee35bdd1b2f32b))
-* **api:** remove unused properties and enum members ([#24](https://github.com/Increase/increase-go/issues/24)) ([6a450bb](https://github.com/Increase/increase-go/commit/6a450bb2600eeaad489b5c363d1adc0d3337e0af))
-* improve `time.Time` encoding and decoding ([#20](https://github.com/Increase/increase-go/issues/20)) ([4bde6e9](https://github.com/Increase/increase-go/commit/4bde6e9b7d2b6a6bad2fb4ae074bd8a1b47167b5))
-* rename a response type and remove unnecessary types from paginated endpoints ([#33](https://github.com/Increase/increase-go/issues/33)) ([0b8dacd](https://github.com/Increase/increase-go/commit/0b8dacd07acfc3b42c2b1022a5035f1103eace4a))
-* **types:** singularize array item types ([#36](https://github.com/Increase/increase-go/issues/36)) ([67ed591](https://github.com/Increase/increase-go/commit/67ed5914941faa47bd4794ea6c0aef1308a1b0d0))
-
-## [0.2.0](https://github.com/Increase/increase-go/compare/v0.1.1...v0.2.0) (2023-06-13)
+- **api:** remove `other` from reason enum ([#27](https://github.com/Acme/acme-go/issues/27)) ([8136d90](https://github.com/Acme/acme-go/commit/8136d903fffcd1aedcd234f752a82bdee84055ac))
+- **api:** remove many enum members from document category ([#32](https://github.com/Acme/acme-go/issues/32)) ([2eb741a](https://github.com/Acme/acme-go/commit/2eb741a136cb2418bf3a34b892ee35bdd1b2f32b))
+- **api:** remove unused properties and enum members ([#24](https://github.com/Acme/acme-go/issues/24)) ([6a450bb](https://github.com/Acme/acme-go/commit/6a450bb2600eeaad489b5c363d1adc0d3337e0af))
+- improve `time.Time` encoding and decoding ([#20](https://github.com/Acme/acme-go/issues/20)) ([4bde6e9](https://github.com/Acme/acme-go/commit/4bde6e9b7d2b6a6bad2fb4ae074bd8a1b47167b5))
+- rename a response type and remove unnecessary types from paginated endpoints ([#33](https://github.com/Acme/acme-go/issues/33)) ([0b8dacd](https://github.com/Acme/acme-go/commit/0b8dacd07acfc3b42c2b1022a5035f1103eace4a))
+- **types:** singularize array item types ([#36](https://github.com/Acme/acme-go/issues/36)) ([67ed591](https://github.com/Acme/acme-go/commit/67ed5914941faa47bd4794ea6c0aef1308a1b0d0))
+## [0.2.0](https://github.com/Acme/acme-go/compare/v0.1.1...v0.2.0) (2023-06-13)
### ⚠ BREAKING CHANGES
-* **api:** rename return reason enum member ([#16](https://github.com/Increase/increase-go/issues/16))
+- **api:** rename return reason enum member ([#16](https://github.com/Acme/acme-go/issues/16))
### Features
-* implement middleware ([#17](https://github.com/Increase/increase-go/issues/17)) ([a2e8992](https://github.com/Increase/increase-go/commit/a2e8992e0f603921eace035b57673e7f2fe657f8))
-* make tests give better error message on missing prism server ([#14](https://github.com/Increase/increase-go/issues/14)) ([092b4e3](https://github.com/Increase/increase-go/commit/092b4e3d5e779662a438ab12fd54caa7de2be553))
-
+- implement middleware ([#17](https://github.com/Acme/acme-go/issues/17)) ([a2e8992](https://github.com/Acme/acme-go/commit/a2e8992e0f603921eace035b57673e7f2fe657f8))
+- make tests give better error message on missing prism server ([#14](https://github.com/Acme/acme-go/issues/14)) ([092b4e3](https://github.com/Acme/acme-go/commit/092b4e3d5e779662a438ab12fd54caa7de2be553))
### Chores
-* add docstrings to field helpers, error struct, enums, and more ([#12](https://github.com/Increase/increase-go/issues/12)) ([89fc73e](https://github.com/Increase/increase-go/commit/89fc73ea340d8e49625cac6f180f57e50e60c242))
-* **internal:** add more comments ([#10](https://github.com/Increase/increase-go/issues/10)) ([33a658b](https://github.com/Increase/increase-go/commit/33a658b232891c9ef4af1416a1768942d943ebe9))
-* **internal:** remove unused check-test-server script ([#13](https://github.com/Increase/increase-go/issues/13)) ([f67f682](https://github.com/Increase/increase-go/commit/f67f682c55ad09bbd2a7322d9f7b6a96a10cfae6))
-
+- add docstrings to field helpers, error struct, enums, and more ([#12](https://github.com/Acme/acme-go/issues/12)) ([89fc73e](https://github.com/Acme/acme-go/commit/89fc73ea340d8e49625cac6f180f57e50e60c242))
+- **internal:** add more comments ([#10](https://github.com/Acme/acme-go/issues/10)) ([33a658b](https://github.com/Acme/acme-go/commit/33a658b232891c9ef4af1416a1768942d943ebe9))
+- **internal:** remove unused check-test-server script ([#13](https://github.com/Acme/acme-go/issues/13)) ([f67f682](https://github.com/Acme/acme-go/commit/f67f682c55ad09bbd2a7322d9f7b6a96a10cfae6))
### Refactors
-* **api:** rename return reason enum member ([#16](https://github.com/Increase/increase-go/issues/16)) ([5fe33f5](https://github.com/Increase/increase-go/commit/5fe33f518020a3a6d22327d443b0507a7ffea412))
-
+- **api:** rename return reason enum member ([#16](https://github.com/Acme/acme-go/issues/16)) ([5fe33f5](https://github.com/Acme/acme-go/commit/5fe33f518020a3a6d22327d443b0507a7ffea412))
### Documentation
-* point to github repo instead of email contact ([#18](https://github.com/Increase/increase-go/issues/18)) ([a945477](https://github.com/Increase/increase-go/commit/a9454774268c89988317484fb9b0207675de34e1))
-
-## [0.1.1](https://github.com/Increase/increase-go/compare/v0.1.0...v0.1.1) (2023-06-09)
+- point to github repo instead of email contact ([#18](https://github.com/Acme/acme-go/issues/18)) ([a945477](https://github.com/Acme/acme-go/commit/a9454774268c89988317484fb9b0207675de34e1))
+## [0.1.1](https://github.com/Acme/acme-go/compare/v0.1.0...v0.1.1) (2023-06-09)
### Features
-* **api:** add new endpoints + properties + enums ([#7](https://github.com/Increase/increase-go/issues/7)) ([52481ec](https://github.com/Increase/increase-go/commit/52481ecdf53674a35b7fbbfaab432e7b74be1468))
-
-## [0.1.0](https://github.com/Increase/increase-go/compare/v0.0.1...v0.1.0) (2023-05-31)
+- **api:** add new endpoints + properties + enums ([#7](https://github.com/Acme/acme-go/issues/7)) ([52481ec](https://github.com/Acme/acme-go/commit/52481ecdf53674a35b7fbbfaab432e7b74be1468))
+## [0.1.0](https://github.com/Acme/acme-go/compare/v0.0.1...v0.1.0) (2023-05-31)
### ⚠ BREAKING CHANGES
-* rename `.JSON.Extras` -> `.JSON.ExtraFields`
-* rename `field.Field` -> `param.Field`
-* make JSON structs private, rename Metadata->Field, improve docs
-* correct various identifier names
-* **api:** replace notification_of_change with a list, and add merchant_acceptor_id
-* rename param types
+- rename `.JSON.Extras` -> `.JSON.ExtraFields`
+- rename `field.Field` -> `param.Field`
+- make JSON structs private, rename Metadata->Field, improve docs
+- correct various identifier names
+- **api:** replace notification_of_change with a list, and add merchant_acceptor_id
+- rename param types
### Features
-* add custom `String()` function on model structs ([5b0d022](https://github.com/Increase/increase-go/commit/5b0d022e7d651f3b28c1c3d37bef152c96213997))
-* add custom serialization code to models ([76c9fb8](https://github.com/Increase/increase-go/commit/76c9fb844bce4d18c90d3885723af19df206ba16))
-* add deprecated methods ([3747a6a](https://github.com/Increase/increase-go/commit/3747a6a2533ec0394fc653f7c0c7f2407d9efe2f))
-* add support for encoding/decoding embedded structs ([fb63bc1](https://github.com/Increase/increase-go/commit/fb63bc1206a778f854ca29d9058dfc99e01ab1ce))
-* adjust README examples ([e539be4](https://github.com/Increase/increase-go/commit/e539be4ef818aee89f9a3760ad7e6b2af8af1bd1))
-* **api:** add `at_time` property for balance lookups ([301c656](https://github.com/Increase/increase-go/commit/301c6567c72b30ef96da5aca7f37fb93d3588db6))
-* **api:** add `collection_receivable` to transaction source category enum ([a8ac578](https://github.com/Increase/increase-go/commit/a8ac5788336aeeeaa7ae1c9214df8b09ff1d5dea))
-* **api:** add `expires_at` property ([b4ccd08](https://github.com/Increase/increase-go/commit/b4ccd08a3c1c3a42fa57d73bde08d3917925ef0e))
-* **api:** add `Simulations.CheckTransfers.Return()` method ([a5cfea0](https://github.com/Increase/increase-go/commit/a5cfea0d536d5961605238eb4871fd5ef76cedd7))
-* **api:** add bookkeeping accounts, entries, and entry sets, and several other changes ([0730e45](https://github.com/Increase/increase-go/commit/0730e453a6e0c793ea5e95a69e5dd64c04b9e460))
-* **api:** add new endpoints ([bd59552](https://github.com/Increase/increase-go/commit/bd59552251c7edb9ee834ff9e5af86ea5d3af59a))
-* **api:** add new endpoints, several params, fields, enum members, and documentation updates ([b2f9d37](https://github.com/Increase/increase-go/commit/b2f9d37b3a562b148d6f5420d2257616974cf89c))
-* **api:** add new enum members ([80dcdaf](https://github.com/Increase/increase-go/commit/80dcdaf5c30530229847134d910b4bfac2b14120))
-* **api:** add new fields ([ed68c93](https://github.com/Increase/increase-go/commit/ed68c93cbf4b6a33d2eb3605bc9c0a5a4860183a))
-* **api:** add new methods ([28484ce](https://github.com/Increase/increase-go/commit/28484ce6bdf4edc3ce6ac7b83c737c823bd5abd8))
-* **api:** add optional `pending_transaction_id` field to pending transaction ([636be67](https://github.com/Increase/increase-go/commit/636be6753839bf0a9d6a287b661af4988ed5d56c))
-* **api:** add wire decline object ([3ca48ea](https://github.com/Increase/increase-go/commit/3ca48ea9ab3e2f219a69a0a98d5bf0642b79d83b))
-* **api:** enum updates ([8a95d0f](https://github.com/Increase/increase-go/commit/8a95d0ff3f3498429cd708ac93237b92a631f100))
-* **api:** make routeType an enum & add ACHTransfer.effectiveDate ([2cbf686](https://github.com/Increase/increase-go/commit/2cbf686956ee22804d47f8de0979fb5d9b4f6683))
-* **api:** make routeType an enum & add ACHTransfer.effectiveDate ([2cbf686](https://github.com/Increase/increase-go/commit/2cbf686956ee22804d47f8de0979fb5d9b4f6683))
-* **api:** remove CardSettlementTransactionID ([46f3d6a](https://github.com/Increase/increase-go/commit/46f3d6ad39c7c7b07c2a2df00e2f7dc8cab67037))
-* **api:** replace notification_of_change with a list, and add merchant_acceptor_id ([8391622](https://github.com/Increase/increase-go/commit/8391622117ac5ecde7cdc235a660d616ea7269e6))
-* **api:** updates ([f9c3b7f](https://github.com/Increase/increase-go/commit/f9c3b7f85159a9c2892dbb524542e6c759f54741))
-* **api:** updates ([c9a5d96](https://github.com/Increase/increase-go/commit/c9a5d96e7ff4afbbab701d8e0a0a8ba391d2d28b))
-* **api:** updates ([95f71fc](https://github.com/Increase/increase-go/commit/95f71fc7fb4ecc71814bb1dd142b9eb491d86cd7))
-* **api:** updates ([94fd784](https://github.com/Increase/increase-go/commit/94fd784c80f34df6fbf22653a734eada8caf8c3c))
-* better errors ([e12a285](https://github.com/Increase/increase-go/commit/e12a28545d4a17cf84b5812209cfab2f74132072))
-* **docs:** include version references in the README ([fc28185](https://github.com/Increase/increase-go/commit/fc28185fbc2c00e516204b073217dc03f6b8838e))
-* **docs:** updates ([708e9b0](https://github.com/Increase/increase-go/commit/708e9b092cb5bdb770e73480351dab1d60972817))
-* elaborate readme and improve doc comments ([d8b752d](https://github.com/Increase/increase-go/commit/d8b752d74db778ab0b839ea5faaa62fcd5d3fed6))
-* elaborate readme and improve doc comments ([d8b752d](https://github.com/Increase/increase-go/commit/d8b752d74db778ab0b839ea5faaa62fcd5d3fed6))
-* generate Go tests ([19d4874](https://github.com/Increase/increase-go/commit/19d4874a6a5dcf95330834f472821db359cf7a2a))
-* implement auto-retry ([00fcc4f](https://github.com/Increase/increase-go/commit/00fcc4f39f42af7074d84c04813dff0275657347))
-* implement bikesheds ([5f57aac](https://github.com/Increase/increase-go/commit/5f57aac2216086f9ad3ef6512144595e3495f13a))
-* implement file uploads ([0246753](https://github.com/Increase/increase-go/commit/0246753c8e4584f55bbd0245a4aef982ca25fac8))
-* implement improved auto-pagination ([2b8fd25](https://github.com/Increase/increase-go/commit/2b8fd256f22edde7c70b417cdf6adbb0d4fe9622))
-* implement unions ([ee3bd0f](https://github.com/Increase/increase-go/commit/ee3bd0ffae121ab811d63ff3bbc6802d6cfb057c))
-* implement unions ([ee3bd0f](https://github.com/Increase/increase-go/commit/ee3bd0ffae121ab811d63ff3bbc6802d6cfb057c))
-* improve docs and add new property ([3975526](https://github.com/Increase/increase-go/commit/39755268a0c07b5a37cb3aff14d8b7a95ce46370))
-* lift fields helpers to main class ([52cd758](https://github.com/Increase/increase-go/commit/52cd758ceb8feb4f546ab9861501b9f10c10b345))
-* move all resources to the services package ([88c63b8](https://github.com/Increase/increase-go/commit/88c63b8ecbba2770a00a3fdb4f832980a2555714))
-* move to value receivers for getters ([ee23b76](https://github.com/Increase/increase-go/commit/ee23b76979ea4d1e8e01ffd50f7c54d49a354a16))
-* prune unused models in requests ([1347220](https://github.com/Increase/increase-go/commit/1347220a93a7b4bb4b716d655824a4d393e034cb))
-* read options from environment and use auth headers ([8969b12](https://github.com/Increase/increase-go/commit/8969b1204129a3980fb6640a6c51160d124802be))
-* refactor code to use functional options in a separate options package ([47e68b6](https://github.com/Increase/increase-go/commit/47e68b61f9b951ab2ad2d24b851b26db7bff7e61))
-* send package version in X-Stainless-Package-Version ([385b3b1](https://github.com/Increase/increase-go/commit/385b3b10421fe582c21cdca7641fbf5a71dd18a9))
-* separate types into params/responses packages ([dedbd12](https://github.com/Increase/increase-go/commit/dedbd124cb65f38f00c8ce358347781b2b588d09))
-* serialize request bodies ([2fd8a40](https://github.com/Increase/increase-go/commit/2fd8a40a82f388b4844bc36e2f5292525575b40f))
-* serialize/deserialize time as time.Time ([26cc80e](https://github.com/Increase/increase-go/commit/26cc80e61b9c6e0c0caa17ade22b4abf3d36e0f2))
-* simplify request bodies ([800252a](https://github.com/Increase/increase-go/commit/800252a284c7d099e55ecb9a0291ccc1c12a0bfb))
-* split types file into smaller files based on resources ([c565382](https://github.com/Increase/increase-go/commit/c56538258709a342bab57ab7eaa5ce360611583b))
-* update and fix tests ([8932b42](https://github.com/Increase/increase-go/commit/8932b425d776dcddb15f2d7465bd778072ad1f57))
-* update docs ([11de847](https://github.com/Increase/increase-go/commit/11de847403ffe5c849d14fa24d1efd35cbca977d))
-
+- add custom `String()` function on model structs ([5b0d022](https://github.com/Acme/acme-go/commit/5b0d022e7d651f3b28c1c3d37bef152c96213997))
+- add custom serialization code to models ([76c9fb8](https://github.com/Acme/acme-go/commit/76c9fb844bce4d18c90d3885723af19df206ba16))
+- add deprecated methods ([3747a6a](https://github.com/Acme/acme-go/commit/3747a6a2533ec0394fc653f7c0c7f2407d9efe2f))
+- add support for encoding/decoding embedded structs ([fb63bc1](https://github.com/Acme/acme-go/commit/fb63bc1206a778f854ca29d9058dfc99e01ab1ce))
+- adjust README examples ([e539be4](https://github.com/Acme/acme-go/commit/e539be4ef818aee89f9a3760ad7e6b2af8af1bd1))
+- **api:** add `at_time` property for balance lookups ([301c656](https://github.com/Acme/acme-go/commit/301c6567c72b30ef96da5aca7f37fb93d3588db6))
+- **api:** add `collection_receivable` to transaction source category enum ([a8ac578](https://github.com/Acme/acme-go/commit/a8ac5788336aeeeaa7ae1c9214df8b09ff1d5dea))
+- **api:** add `expires_at` property ([b4ccd08](https://github.com/Acme/acme-go/commit/b4ccd08a3c1c3a42fa57d73bde08d3917925ef0e))
+- **api:** add `Simulations.CheckTransfers.Return()` method ([a5cfea0](https://github.com/Acme/acme-go/commit/a5cfea0d536d5961605238eb4871fd5ef76cedd7))
+- **api:** add bookkeeping accounts, entries, and entry sets, and several other changes ([0730e45](https://github.com/Acme/acme-go/commit/0730e453a6e0c793ea5e95a69e5dd64c04b9e460))
+- **api:** add new endpoints ([bd59552](https://github.com/Acme/acme-go/commit/bd59552251c7edb9ee834ff9e5af86ea5d3af59a))
+- **api:** add new endpoints, several params, fields, enum members, and documentation updates ([b2f9d37](https://github.com/Acme/acme-go/commit/b2f9d37b3a562b148d6f5420d2257616974cf89c))
+- **api:** add new enum members ([80dcdaf](https://github.com/Acme/acme-go/commit/80dcdaf5c30530229847134d910b4bfac2b14120))
+- **api:** add new fields ([ed68c93](https://github.com/Acme/acme-go/commit/ed68c93cbf4b6a33d2eb3605bc9c0a5a4860183a))
+- **api:** add new methods ([28484ce](https://github.com/Acme/acme-go/commit/28484ce6bdf4edc3ce6ac7b83c737c823bd5abd8))
+- **api:** add optional `pending_transaction_id` field to pending transaction ([636be67](https://github.com/Acme/acme-go/commit/636be6753839bf0a9d6a287b661af4988ed5d56c))
+- **api:** add wire decline object ([3ca48ea](https://github.com/Acme/acme-go/commit/3ca48ea9ab3e2f219a69a0a98d5bf0642b79d83b))
+- **api:** enum updates ([8a95d0f](https://github.com/Acme/acme-go/commit/8a95d0ff3f3498429cd708ac93237b92a631f100))
+- **api:** make routeType an enum & add ACHTransfer.effectiveDate ([2cbf686](https://github.com/Acme/acme-go/commit/2cbf686956ee22804d47f8de0979fb5d9b4f6683))
+- **api:** make routeType an enum & add ACHTransfer.effectiveDate ([2cbf686](https://github.com/Acme/acme-go/commit/2cbf686956ee22804d47f8de0979fb5d9b4f6683))
+- **api:** remove CardSettlementTransactionID ([46f3d6a](https://github.com/Acme/acme-go/commit/46f3d6ad39c7c7b07c2a2df00e2f7dc8cab67037))
+- **api:** replace notification_of_change with a list, and add merchant_acceptor_id ([8391622](https://github.com/Acme/acme-go/commit/8391622117ac5ecde7cdc235a660d616ea7269e6))
+- **api:** updates ([f9c3b7f](https://github.com/Acme/acme-go/commit/f9c3b7f85159a9c2892dbb524542e6c759f54741))
+- **api:** updates ([c9a5d96](https://github.com/Acme/acme-go/commit/c9a5d96e7ff4afbbab701d8e0a0a8ba391d2d28b))
+- **api:** updates ([95f71fc](https://github.com/Acme/acme-go/commit/95f71fc7fb4ecc71814bb1dd142b9eb491d86cd7))
+- **api:** updates ([94fd784](https://github.com/Acme/acme-go/commit/94fd784c80f34df6fbf22653a734eada8caf8c3c))
+- better errors ([e12a285](https://github.com/Acme/acme-go/commit/e12a28545d4a17cf84b5812209cfab2f74132072))
+- **docs:** include version references in the README ([fc28185](https://github.com/Acme/acme-go/commit/fc28185fbc2c00e516204b073217dc03f6b8838e))
+- **docs:** updates ([708e9b0](https://github.com/Acme/acme-go/commit/708e9b092cb5bdb770e73480351dab1d60972817))
+- elaborate readme and improve doc comments ([d8b752d](https://github.com/Acme/acme-go/commit/d8b752d74db778ab0b839ea5faaa62fcd5d3fed6))
+- elaborate readme and improve doc comments ([d8b752d](https://github.com/Acme/acme-go/commit/d8b752d74db778ab0b839ea5faaa62fcd5d3fed6))
+- generate Go tests ([19d4874](https://github.com/Acme/acme-go/commit/19d4874a6a5dcf95330834f472821db359cf7a2a))
+- implement auto-retry ([00fcc4f](https://github.com/Acme/acme-go/commit/00fcc4f39f42af7074d84c04813dff0275657347))
+- implement bikesheds ([5f57aac](https://github.com/Acme/acme-go/commit/5f57aac2216086f9ad3ef6512144595e3495f13a))
+- implement file uploads ([0246753](https://github.com/Acme/acme-go/commit/0246753c8e4584f55bbd0245a4aef982ca25fac8))
+- implement improved auto-pagination ([2b8fd25](https://github.com/Acme/acme-go/commit/2b8fd256f22edde7c70b417cdf6adbb0d4fe9622))
+- implement unions ([ee3bd0f](https://github.com/Acme/acme-go/commit/ee3bd0ffae121ab811d63ff3bbc6802d6cfb057c))
+- implement unions ([ee3bd0f](https://github.com/Acme/acme-go/commit/ee3bd0ffae121ab811d63ff3bbc6802d6cfb057c))
+- improve docs and add new property ([3975526](https://github.com/Acme/acme-go/commit/39755268a0c07b5a37cb3aff14d8b7a95ce46370))
+- lift fields helpers to main class ([52cd758](https://github.com/Acme/acme-go/commit/52cd758ceb8feb4f546ab9861501b9f10c10b345))
+- move all resources to the services package ([88c63b8](https://github.com/Acme/acme-go/commit/88c63b8ecbba2770a00a3fdb4f832980a2555714))
+- move to value receivers for getters ([ee23b76](https://github.com/Acme/acme-go/commit/ee23b76979ea4d1e8e01ffd50f7c54d49a354a16))
+- prune unused models in requests ([1347220](https://github.com/Acme/acme-go/commit/1347220a93a7b4bb4b716d655824a4d393e034cb))
+- read options from environment and use auth headers ([8969b12](https://github.com/Acme/acme-go/commit/8969b1204129a3980fb6640a6c51160d124802be))
+- refactor code to use functional options in a separate options package ([47e68b6](https://github.com/Acme/acme-go/commit/47e68b61f9b951ab2ad2d24b851b26db7bff7e61))
+- send package version in X-Stainless-Package-Version ([385b3b1](https://github.com/Acme/acme-go/commit/385b3b10421fe582c21cdca7641fbf5a71dd18a9))
+- separate types into params/responses packages ([dedbd12](https://github.com/Acme/acme-go/commit/dedbd124cb65f38f00c8ce358347781b2b588d09))
+- serialize request bodies ([2fd8a40](https://github.com/Acme/acme-go/commit/2fd8a40a82f388b4844bc36e2f5292525575b40f))
+- serialize/deserialize time as time.Time ([26cc80e](https://github.com/Acme/acme-go/commit/26cc80e61b9c6e0c0caa17ade22b4abf3d36e0f2))
+- simplify request bodies ([800252a](https://github.com/Acme/acme-go/commit/800252a284c7d099e55ecb9a0291ccc1c12a0bfb))
+- split types file into smaller files based on resources ([c565382](https://github.com/Acme/acme-go/commit/c56538258709a342bab57ab7eaa5ce360611583b))
+- update and fix tests ([8932b42](https://github.com/Acme/acme-go/commit/8932b425d776dcddb15f2d7465bd778072ad1f57))
+- update docs ([11de847](https://github.com/Acme/acme-go/commit/11de847403ffe5c849d14fa24d1efd35cbca977d))
### Bug Fixes
-* change unknown type generation to `interface{}` ([d6204a9](https://github.com/Increase/increase-go/commit/d6204a9efc808da3de2101487189af98f8929553))
-* **client:** pass settings to query marshalling ([fd96af5](https://github.com/Increase/increase-go/commit/fd96af5119e4163e2fb716d6868af68ee79c30dc))
-* compile errors and failing tests ([f9651ff](https://github.com/Increase/increase-go/commit/f9651ffc6f50062ff2980c7732e5a9caa78f2e35))
-* correct various identifier names ([5e11e46](https://github.com/Increase/increase-go/commit/5e11e468fe5ac0e73a53efb6c4594ee99f7bf93a))
-* error that can occur during pagination when there are zero items in the response ([7c0f1f5](https://github.com/Increase/increase-go/commit/7c0f1f5c7807ec6c6d50650b8f977f5d1305a70b))
-* error that can occur during pagination when there are zero items in the response ([7c0f1f5](https://github.com/Increase/increase-go/commit/7c0f1f5c7807ec6c6d50650b8f977f5d1305a70b))
-* fix struct encoding order ([7f182a7](https://github.com/Increase/increase-go/commit/7f182a72920c4e816d3ce430106432a09df40f90))
-* pagination return non-nil on error ([4bf8b95](https://github.com/Increase/increase-go/commit/4bf8b95c0895d7c6b47239b29b21e2df51021a6c))
-* pagination return non-nil on error ([4bf8b95](https://github.com/Increase/increase-go/commit/4bf8b95c0895d7c6b47239b29b21e2df51021a6c))
-* prefix names of types and files for nested resources ([937e0f0](https://github.com/Increase/increase-go/commit/937e0f0d731503cf0a6ba33ae74022c3e6473912))
-* resolve accidental duplications and type errors ([169dd19](https://github.com/Increase/increase-go/commit/169dd19438bb55d9cccc8c34157db667be031787))
-* segfault when getting next page if request has no body ([647d9b7](https://github.com/Increase/increase-go/commit/647d9b748a7c932fe8767eddec9cd1b0feb87f56))
-* segfault when getting next page if request has no body ([647d9b7](https://github.com/Increase/increase-go/commit/647d9b748a7c932fe8767eddec9cd1b0feb87f56))
-* segfault when getting next page if request has no body ([8018f9c](https://github.com/Increase/increase-go/commit/8018f9c43a2b3a7672ed35f3a82f673010618b89))
-* update outdate docs in README ([0d434eb](https://github.com/Increase/increase-go/commit/0d434eb68bd408ce15e669508b8ff94b59b27680))
-* use default baseurl ([a9230ab](https://github.com/Increase/increase-go/commit/a9230ab6b174f5f56731e8ec36b0018635ec74ed))
-
+- change unknown type generation to `interface{}` ([d6204a9](https://github.com/Acme/acme-go/commit/d6204a9efc808da3de2101487189af98f8929553))
+- **client:** pass settings to query marshalling ([fd96af5](https://github.com/Acme/acme-go/commit/fd96af5119e4163e2fb716d6868af68ee79c30dc))
+- compile errors and failing tests ([f9651ff](https://github.com/Acme/acme-go/commit/f9651ffc6f50062ff2980c7732e5a9caa78f2e35))
+- correct various identifier names ([5e11e46](https://github.com/Acme/acme-go/commit/5e11e468fe5ac0e73a53efb6c4594ee99f7bf93a))
+- error that can occur during pagination when there are zero items in the response ([7c0f1f5](https://github.com/Acme/acme-go/commit/7c0f1f5c7807ec6c6d50650b8f977f5d1305a70b))
+- error that can occur during pagination when there are zero items in the response ([7c0f1f5](https://github.com/Acme/acme-go/commit/7c0f1f5c7807ec6c6d50650b8f977f5d1305a70b))
+- fix struct encoding order ([7f182a7](https://github.com/Acme/acme-go/commit/7f182a72920c4e816d3ce430106432a09df40f90))
+- pagination return non-nil on error ([4bf8b95](https://github.com/Acme/acme-go/commit/4bf8b95c0895d7c6b47239b29b21e2df51021a6c))
+- pagination return non-nil on error ([4bf8b95](https://github.com/Acme/acme-go/commit/4bf8b95c0895d7c6b47239b29b21e2df51021a6c))
+- prefix names of types and files for nested resources ([937e0f0](https://github.com/Acme/acme-go/commit/937e0f0d731503cf0a6ba33ae74022c3e6473912))
+- resolve accidental duplications and type errors ([169dd19](https://github.com/Acme/acme-go/commit/169dd19438bb55d9cccc8c34157db667be031787))
+- segfault when getting next page if request has no body ([647d9b7](https://github.com/Acme/acme-go/commit/647d9b748a7c932fe8767eddec9cd1b0feb87f56))
+- segfault when getting next page if request has no body ([647d9b7](https://github.com/Acme/acme-go/commit/647d9b748a7c932fe8767eddec9cd1b0feb87f56))
+- segfault when getting next page if request has no body ([8018f9c](https://github.com/Acme/acme-go/commit/8018f9c43a2b3a7672ed35f3a82f673010618b89))
+- update outdate docs in README ([0d434eb](https://github.com/Acme/acme-go/commit/0d434eb68bd408ce15e669508b8ff94b59b27680))
+- use default baseurl ([a9230ab](https://github.com/Acme/acme-go/commit/a9230ab6b174f5f56731e8ec36b0018635ec74ed))
### Refactors
-* change package structure ([4cbf9d4](https://github.com/Increase/increase-go/commit/4cbf9d4a38e00f8d48852488975ba4cfdfad7885))
-* make JSON structs private, rename Metadata->Field, improve docs ([d0b8800](https://github.com/Increase/increase-go/commit/d0b88007c5ca00ceb1443d756508673ceabb7814))
-* rename `.JSON.Extras` -> `.JSON.ExtraFields` ([1cb21b3](https://github.com/Increase/increase-go/commit/1cb21b39cced017c7cbef4a1017e0b412c158ae9))
-* rename `field.Field` -> `param.Field` ([a823b52](https://github.com/Increase/increase-go/commit/a823b5257e84ab372027070d2c6c7eae92544c69))
-* rename param types ([3de39d4](https://github.com/Increase/increase-go/commit/3de39d4ecab7aa82dc61be3265ebf852f1c27e58))
+- change package structure ([4cbf9d4](https://github.com/Acme/acme-go/commit/4cbf9d4a38e00f8d48852488975ba4cfdfad7885))
+- make JSON structs private, rename Metadata->Field, improve docs ([d0b8800](https://github.com/Acme/acme-go/commit/d0b88007c5ca00ceb1443d756508673ceabb7814))
+- rename `.JSON.Extras` -> `.JSON.ExtraFields` ([1cb21b3](https://github.com/Acme/acme-go/commit/1cb21b39cced017c7cbef4a1017e0b412c158ae9))
+- rename `field.Field` -> `param.Field` ([a823b52](https://github.com/Acme/acme-go/commit/a823b5257e84ab372027070d2c6c7eae92544c69))
+- rename param types ([3de39d4](https://github.com/Acme/acme-go/commit/3de39d4ecab7aa82dc61be3265ebf852f1c27e58))
diff --git a/LICENSE b/LICENSE
index 40970ef6..5119b228 100644
--- a/LICENSE
+++ b/LICENSE
@@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
- Copyright 2023 Increase
+ Copyright 2023 Acme
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/PROMPT.md b/PROMPT.md
index b4d3f7fe..4175798d 100644
--- a/PROMPT.md
+++ b/PROMPT.md
@@ -2,7 +2,7 @@ This is an exercise in improving an API client library, just as you might
do at Stainless.
A contributor has been trying to add support for idempotency to the Stainless
-Go client library for Increase. They've got some WIP code as shown in this
+Go client library for Acme. They've got some WIP code as shown in this
repo.
But some tests are failing now, and they're not sure why, or what to do next.
@@ -12,7 +12,7 @@ Your task is to figure out what's wrong and to improve idempotency support in
this library.
You may use outside resources like Google and may also ask questions of
-your interviewer. Please don't look in the production increase-go code though,
+your interviewer. Please don't look in the production acme-go code though,
that might give away the answer too quickly!
You can run tests with this command:
diff --git a/README.md b/README.md
index 65cc0f34..dd1d0228 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@
-# Increase Go API Library
+# Acme Go API Library
-
+
-The Increase Go library provides convenient access to [the Increase REST
-API](https://increase.com/documentation) from applications written in Go.
+The Acme Go library provides convenient access to [the Acme REST
+API](https://acme.com/documentation) from applications written in Go.
## Installation
@@ -11,7 +11,7 @@ API](https://increase.com/documentation) from applications written in Go.
```go
import (
- "github.com/increase/increase-go" // imported as increase
+ "github.com/acme/acme-go" // imported as acme
)
```
@@ -22,7 +22,7 @@ Or to pin the version:
```sh
-go get -u 'github.com/increase/increase-go@v0.8.0'
+go get -u 'github.com/acme/acme-go@v0.8.0'
```
@@ -33,7 +33,7 @@ This library requires Go 1.18+.
## Usage
-The full API of this library can be found in [api.md](https://www.github.com/increase/increase-go/blob/main/api.md).
+The full API of this library can be found in [api.md](https://www.github.com/acme/acme-go/blob/main/api.md).
```go
package main
@@ -41,17 +41,17 @@ package main
import (
"context"
"fmt"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/option"
)
func main() {
- client := increase.NewClient(
- option.WithAPIKey("My API Key"), // defaults to os.LookupEnv("INCREASE_API_KEY")
+ client := acme.NewClient(
+ option.WithAPIKey("My API Key"), // defaults to os.LookupEnv("ACME_API_KEY")
option.WithEnvironmentSandbox(), // defaults to option.WithEnvironmentProduction()
)
- account, err := client.Accounts.New(context.TODO(), increase.AccountNewParams{
- Name: increase.F("My First Increase Account"),
+ account, err := client.Accounts.New(context.TODO(), acme.AccountNewParams{
+ Name: acme.F("My First Acme Account"),
})
if err != nil {
panic(err.Error())
@@ -75,18 +75,18 @@ To send a null, use `Null[T]()`, and to send a nonconforming value, use `Raw[T](
```go
params := FooParams{
- Name: increase.F("hello"),
+ Name: acme.F("hello"),
// Explicitly send `"description": null`
- Description: increase.Null[string](),
+ Description: acme.Null[string](),
- Point: increase.F(increase.Point{
- X: increase.Int(0),
- Y: increase.Int(1),
+ Point: acme.F(acme.Point{
+ X: acme.Int(0),
+ Y: acme.Int(1),
// In cases where the API specifies a given type,
// but you want to send something else, use `Raw`:
- Z: increase.Raw[int64](0.01), // sends a float
+ Z: acme.Raw[int64](0.01), // sends a float
}),
}
```
@@ -140,7 +140,7 @@ This library uses the functional options pattern. Functions defined in the
requests. For example:
```go
-client := increase.NewClient(
+client := acme.NewClient(
// Adds a header to every request made by the client
option.WithHeader("X-Some-Header", "custom_header_info"),
)
@@ -153,7 +153,7 @@ client.Accounts.New(context.TODO(), ...,
)
```
-The full list of request options is [here](https://pkg.go.dev/github.com/increase/increase-go/option).
+The full list of request options is [here](https://pkg.go.dev/github.com/acme/acme-go/option).
### Pagination
@@ -162,7 +162,7 @@ This library provides some conveniences for working with paginated list endpoint
You can use `.ListAutoPaging()` methods to iterate through items across all pages:
```go
-iter := client.Accounts.ListAutoPaging(context.TODO(), increase.AccountListParams{})
+iter := client.Accounts.ListAutoPaging(context.TODO(), acme.AccountListParams{})
// Automatically fetches more pages as needed.
for iter.Next() {
account := iter.Current()
@@ -177,7 +177,7 @@ Or you can use simple `.List()` methods to fetch a single page and receive a sta
with additional helper methods like `.GetNextPage()`, e.g.:
```go
-page, err := client.Accounts.List(context.TODO(), increase.AccountListParams{})
+page, err := client.Accounts.List(context.TODO(), acme.AccountListParams{})
for page != nil {
for _, account := range page.Data {
fmt.Printf("%+v\n", account)
@@ -192,18 +192,18 @@ if err != nil {
### Errors
When the API returns a non-success status code, we return an error with type
-`*increase.Error`. This contains the `StatusCode`, `*http.Request`, and
+`*acme.Error`. This contains the `StatusCode`, `*http.Request`, and
`*http.Response` values of the request, as well as the JSON of the error body
(much like other response objects in the SDK).
To handle errors, we recommend that you use the `errors.As` pattern:
```go
-_, err := client.Accounts.New(context.TODO(), increase.AccountNewParams{
- Name: increase.F("New Account!"),
+_, err := client.Accounts.New(context.TODO(), acme.AccountNewParams{
+ Name: acme.F("New Account!"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
println(string(apierr.DumpRequest(true))) // Prints the serialized HTTP request
println(string(apierr.DumpResponse(true))) // Prints the serialized HTTP response
@@ -232,8 +232,8 @@ ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel()
client.Accounts.List(
ctx,
- increase.AccountListParams{
- Status: increase.F(increase.AccountListParamsStatusOpen),
+ acme.AccountListParams{
+ Status: acme.F(acme.AccountListParamsStatusOpen),
},
// This sets the per-retry timeout
option.WithRequestTimeout(20*time.Second),
@@ -250,15 +250,15 @@ You can use the `WithMaxRetries` option to configure or disable this:
```go
// Configure the default for all requests:
-client := increase.NewClient(
+client := acme.NewClient(
option.WithMaxRetries(0), // default is 2
)
// Override per-request:
client.Accounts.New(
context.TODO(),
- increase.AccountNewParams{
- Name: increase.F("Jack"),
+ acme.AccountNewParams{
+ Name: acme.F("Jack"),
},
option.WithMaxRetries(5),
)
@@ -285,7 +285,7 @@ func Logger(req *http.Request, next option.MiddlewareNext) (res *http.Response,
return res, err
}
-client := increase.NewClient(
+client := acme.NewClient(
option.WithMiddleware(Logger),
)
```
@@ -310,13 +310,12 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
-We are keen for your feedback; please open an [issue](https://www.github.com/increase/increase-go/issues) with questions, bugs, or suggestions.
+We are keen for your feedback; please open an [issue](https://www.github.com/acme/acme-go/issues) with questions, bugs, or suggestions.
## Development
The project should build with:
-
```sh
make
```
diff --git a/account.go b/account.go
index d1638a2b..02d3fc2b 100644
--- a/account.go
+++ b/account.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// AccountService contains methods and other services that help with interacting
-// with the increase API. Note, unlike clients, this service does not read
+// with the acme API. Note, unlike clients, this service does not read
// variables from the environment automatically. You should not instantiate this
// service directly, and instead use the [NewAccountService] method instead.
type AccountService struct {
@@ -97,7 +97,7 @@ func (r *AccountService) Close(ctx context.Context, accountID string, opts ...op
return
}
-// Accounts are your bank accounts with Increase. They store money, receive
+// Accounts are your bank accounts with Acme. They store money, receive
// transfers, and send payments. They earn interest and have depository insurance.
type Account struct {
// The Account identifier.
diff --git a/account_test.go b/account_test.go
index e8b926d9..03e2d72d 100644
--- a/account_test.go
+++ b/account_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestAccountNewWithOptionalParams(t *testing.T) {
@@ -22,18 +22,18 @@ func TestAccountNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Accounts.New(context.TODO(), increase.AccountNewParams{
- Name: increase.F("New Account!"),
- EntityID: increase.F("entity_n8y8tnk2p9339ti393yi"),
- InformationalEntityID: increase.F("string"),
- ProgramID: increase.F("program_i2v2os4mwza1oetokh9i"),
+ _, err := client.Accounts.New(context.TODO(), acme.AccountNewParams{
+ Name: acme.F("New Account!"),
+ EntityID: acme.F("entity_n8y8tnk2p9339ti393yi"),
+ InformationalEntityID: acme.F("string"),
+ ProgramID: acme.F("program_i2v2os4mwza1oetokh9i"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -49,13 +49,13 @@ func TestAccountGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Accounts.Get(context.TODO(), "account_in71c4amph0vgo2qllky")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -71,19 +71,19 @@ func TestAccountUpdateWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Accounts.Update(
context.TODO(),
"account_in71c4amph0vgo2qllky",
- increase.AccountUpdateParams{
- Name: increase.F("My renamed account"),
+ acme.AccountUpdateParams{
+ Name: acme.F("My renamed account"),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -99,25 +99,25 @@ func TestAccountListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Accounts.List(context.TODO(), increase.AccountListParams{
- CreatedAt: increase.F(increase.AccountListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.Accounts.List(context.TODO(), acme.AccountListParams{
+ CreatedAt: acme.F(acme.AccountListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- EntityID: increase.F("string"),
- InformationalEntityID: increase.F("string"),
- Limit: increase.F(int64(1)),
- Status: increase.F(increase.AccountListParamsStatusOpen),
+ Cursor: acme.F("string"),
+ EntityID: acme.F("string"),
+ InformationalEntityID: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ Status: acme.F(acme.AccountListParamsStatusOpen),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -133,19 +133,19 @@ func TestAccountBalanceWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Accounts.Balance(
context.TODO(),
"account_in71c4amph0vgo2qllky",
- increase.AccountBalanceParams{
- AtTime: increase.F(time.Now()),
+ acme.AccountBalanceParams{
+ AtTime: acme.F(time.Now()),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -162,13 +162,13 @@ func TestAccountClose(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Accounts.Close(context.TODO(), "account_in71c4amph0vgo2qllky")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/accountnumber.go b/accountnumber.go
index 7b03f210..9833cc7c 100644
--- a/accountnumber.go
+++ b/accountnumber.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// AccountNumberService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewAccountNumberService] method
// instead.
@@ -168,7 +168,7 @@ const (
// Properties related to how this Account Number should handle inbound check
// withdrawls.
type AccountNumberInboundChecks struct {
- // How Increase should process checks with this account number printed on them.
+ // How Acme should process checks with this account number printed on them.
Status AccountNumberInboundChecksStatus `json:"status,required"`
JSON accountNumberInboundChecksJSON `json:"-"`
}
@@ -185,7 +185,7 @@ func (r *AccountNumberInboundChecks) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
-// How Increase should process checks with this account number printed on them.
+// How Acme should process checks with this account number printed on them.
type AccountNumberInboundChecksStatus string
const (
@@ -258,7 +258,7 @@ const (
// Options related to how this Account Number should handle inbound check
// withdrawls.
type AccountNumberNewParamsInboundChecks struct {
- // How Increase should process checks with this account number printed on them.
+ // How Acme should process checks with this account number printed on them.
Status param.Field[AccountNumberNewParamsInboundChecksStatus] `json:"status,required"`
}
@@ -266,7 +266,7 @@ func (r AccountNumberNewParamsInboundChecks) MarshalJSON() (data []byte, err err
return apijson.MarshalRoot(r)
}
-// How Increase should process checks with this account number printed on them.
+// How Acme should process checks with this account number printed on them.
type AccountNumberNewParamsInboundChecksStatus string
const (
diff --git a/accountnumber_test.go b/accountnumber_test.go
index c72d9389..cda492bb 100644
--- a/accountnumber_test.go
+++ b/accountnumber_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestAccountNumberNewWithOptionalParams(t *testing.T) {
@@ -22,22 +22,22 @@ func TestAccountNumberNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.AccountNumbers.New(context.TODO(), increase.AccountNumberNewParams{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
- Name: increase.F("Rent payments"),
- InboundACH: increase.F(increase.AccountNumberNewParamsInboundACH{
- DebitStatus: increase.F(increase.AccountNumberNewParamsInboundACHDebitStatusAllowed),
+ _, err := client.AccountNumbers.New(context.TODO(), acme.AccountNumberNewParams{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
+ Name: acme.F("Rent payments"),
+ InboundACH: acme.F(acme.AccountNumberNewParamsInboundACH{
+ DebitStatus: acme.F(acme.AccountNumberNewParamsInboundACHDebitStatusAllowed),
}),
- InboundChecks: increase.F(increase.AccountNumberNewParamsInboundChecks{
- Status: increase.F(increase.AccountNumberNewParamsInboundChecksStatusAllowed),
+ InboundChecks: acme.F(acme.AccountNumberNewParamsInboundChecks{
+ Status: acme.F(acme.AccountNumberNewParamsInboundChecksStatusAllowed),
}),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -53,13 +53,13 @@ func TestAccountNumberGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.AccountNumbers.Get(context.TODO(), "account_number_v18nkfqm6afpsrvy82b2")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -75,23 +75,23 @@ func TestAccountNumberUpdateWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.AccountNumbers.Update(
context.TODO(),
"account_number_v18nkfqm6afpsrvy82b2",
- increase.AccountNumberUpdateParams{
- InboundACH: increase.F(increase.AccountNumberUpdateParamsInboundACH{
- DebitStatus: increase.F(increase.AccountNumberUpdateParamsInboundACHDebitStatusBlocked),
+ acme.AccountNumberUpdateParams{
+ InboundACH: acme.F(acme.AccountNumberUpdateParamsInboundACH{
+ DebitStatus: acme.F(acme.AccountNumberUpdateParamsInboundACHDebitStatusBlocked),
}),
- Name: increase.F("x"),
- Status: increase.F(increase.AccountNumberUpdateParamsStatusDisabled),
+ Name: acme.F("x"),
+ Status: acme.F(acme.AccountNumberUpdateParamsStatusDisabled),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -107,24 +107,24 @@ func TestAccountNumberListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.AccountNumbers.List(context.TODO(), increase.AccountNumberListParams{
- AccountID: increase.F("string"),
- CreatedAt: increase.F(increase.AccountNumberListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.AccountNumbers.List(context.TODO(), acme.AccountNumberListParams{
+ AccountID: acme.F("string"),
+ CreatedAt: acme.F(acme.AccountNumberListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- Status: increase.F(increase.AccountNumberListParamsStatusActive),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ Status: acme.F(acme.AccountNumberListParamsStatusActive),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/accountstatement.go b/accountstatement.go
index 25e44a6c..7c251219 100644
--- a/accountstatement.go
+++ b/accountstatement.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// AccountStatementService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewAccountStatementService] method
// instead.
diff --git a/accountstatement_test.go b/accountstatement_test.go
index 764f0ec3..81d4a3c1 100644
--- a/accountstatement_test.go
+++ b/accountstatement_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestAccountStatementGet(t *testing.T) {
@@ -22,13 +22,13 @@ func TestAccountStatementGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.AccountStatements.Get(context.TODO(), "account_statement_lkc03a4skm2k7f38vj15")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -44,23 +44,23 @@ func TestAccountStatementListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.AccountStatements.List(context.TODO(), increase.AccountStatementListParams{
- AccountID: increase.F("string"),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- StatementPeriodStart: increase.F(increase.AccountStatementListParamsStatementPeriodStart{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.AccountStatements.List(context.TODO(), acme.AccountStatementListParams{
+ AccountID: acme.F("string"),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ StatementPeriodStart: acme.F(acme.AccountStatementListParamsStatementPeriodStart{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/accounttransfer.go b/accounttransfer.go
index 338daddb..97cf5310 100644
--- a/accounttransfer.go
+++ b/accounttransfer.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// AccountTransferService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewAccountTransferService] method
// instead.
@@ -90,7 +90,7 @@ func (r *AccountTransferService) Cancel(ctx context.Context, accountTransferID s
return
}
-// Account transfers move funds between your own accounts at Increase.
+// Account transfers move funds between your own accounts at Acme.
type AccountTransfer struct {
// The account transfer's identifier.
ID string `json:"id,required"`
@@ -121,7 +121,7 @@ type AccountTransfer struct {
Network AccountTransferNetwork `json:"network,required"`
// The ID for the pending transaction representing the transfer. A pending
// transaction is created when the transfer
- // [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals)
+ // [requires approval](https://acme.com/documentation/transfer-approvals#transfer-approvals)
// by someone else in your organization.
PendingTransactionID string `json:"pending_transaction_id,required,nullable"`
// The lifecycle status of the transfer.
diff --git a/accounttransfer_test.go b/accounttransfer_test.go
index 944182df..e5a30fbd 100644
--- a/accounttransfer_test.go
+++ b/accounttransfer_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestAccountTransferNewWithOptionalParams(t *testing.T) {
@@ -22,20 +22,20 @@ func TestAccountTransferNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.AccountTransfers.New(context.TODO(), increase.AccountTransferNewParams{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
- Amount: increase.F(int64(100)),
- Description: increase.F("Creating liquidity"),
- DestinationAccountID: increase.F("account_uf16sut2ct5bevmq3eh"),
- RequireApproval: increase.F(true),
- UniqueIdentifier: increase.F("x"),
+ _, err := client.AccountTransfers.New(context.TODO(), acme.AccountTransferNewParams{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
+ Amount: acme.F(int64(100)),
+ Description: acme.F("Creating liquidity"),
+ DestinationAccountID: acme.F("account_uf16sut2ct5bevmq3eh"),
+ RequireApproval: acme.F(true),
+ UniqueIdentifier: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -51,13 +51,13 @@ func TestAccountTransferGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.AccountTransfers.Get(context.TODO(), "account_transfer_7k9qe1ysdgqztnt63l7n")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -73,24 +73,24 @@ func TestAccountTransferListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.AccountTransfers.List(context.TODO(), increase.AccountTransferListParams{
- AccountID: increase.F("string"),
- CreatedAt: increase.F(increase.AccountTransferListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.AccountTransfers.List(context.TODO(), acme.AccountTransferListParams{
+ AccountID: acme.F("string"),
+ CreatedAt: acme.F(acme.AccountTransferListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- UniqueIdentifier: increase.F("x"),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ UniqueIdentifier: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -106,13 +106,13 @@ func TestAccountTransferApprove(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.AccountTransfers.Approve(context.TODO(), "account_transfer_7k9qe1ysdgqztnt63l7n")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -128,13 +128,13 @@ func TestAccountTransferCancel(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.AccountTransfers.Cancel(context.TODO(), "account_transfer_7k9qe1ysdgqztnt63l7n")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/achprenotification.go b/achprenotification.go
index eaf1cb40..ae92031e 100644
--- a/achprenotification.go
+++ b/achprenotification.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// ACHPrenotificationService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewACHPrenotificationService] method
// instead.
diff --git a/achprenotification_test.go b/achprenotification_test.go
index 8d9c7bcf..70fbd446 100644
--- a/achprenotification_test.go
+++ b/achprenotification_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestACHPrenotificationNewWithOptionalParams(t *testing.T) {
@@ -22,26 +22,26 @@ func TestACHPrenotificationNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.ACHPrenotifications.New(context.TODO(), increase.ACHPrenotificationNewParams{
- AccountNumber: increase.F("987654321"),
- RoutingNumber: increase.F("101050001"),
- Addendum: increase.F("x"),
- CompanyDescriptiveDate: increase.F("x"),
- CompanyDiscretionaryData: increase.F("x"),
- CompanyEntryDescription: increase.F("x"),
- CompanyName: increase.F("x"),
- CreditDebitIndicator: increase.F(increase.ACHPrenotificationNewParamsCreditDebitIndicatorCredit),
- EffectiveDate: increase.F(time.Now()),
- IndividualID: increase.F("x"),
- IndividualName: increase.F("x"),
- StandardEntryClassCode: increase.F(increase.ACHPrenotificationNewParamsStandardEntryClassCodeCorporateCreditOrDebit),
+ _, err := client.ACHPrenotifications.New(context.TODO(), acme.ACHPrenotificationNewParams{
+ AccountNumber: acme.F("987654321"),
+ RoutingNumber: acme.F("101050001"),
+ Addendum: acme.F("x"),
+ CompanyDescriptiveDate: acme.F("x"),
+ CompanyDiscretionaryData: acme.F("x"),
+ CompanyEntryDescription: acme.F("x"),
+ CompanyName: acme.F("x"),
+ CreditDebitIndicator: acme.F(acme.ACHPrenotificationNewParamsCreditDebitIndicatorCredit),
+ EffectiveDate: acme.F(time.Now()),
+ IndividualID: acme.F("x"),
+ IndividualName: acme.F("x"),
+ StandardEntryClassCode: acme.F(acme.ACHPrenotificationNewParamsStandardEntryClassCodeCorporateCreditOrDebit),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -57,13 +57,13 @@ func TestACHPrenotificationGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.ACHPrenotifications.Get(context.TODO(), "ach_prenotification_ubjf9qqsxl3obbcn1u34")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -79,22 +79,22 @@ func TestACHPrenotificationListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.ACHPrenotifications.List(context.TODO(), increase.ACHPrenotificationListParams{
- CreatedAt: increase.F(increase.ACHPrenotificationListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.ACHPrenotifications.List(context.TODO(), acme.ACHPrenotificationListParams{
+ CreatedAt: acme.F(acme.ACHPrenotificationListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/achtransfer.go b/achtransfer.go
index 64b43b17..65f51df1 100644
--- a/achtransfer.go
+++ b/achtransfer.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// ACHTransferService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewACHTransferService] method
// instead.
@@ -90,7 +90,7 @@ func (r *ACHTransferService) Cancel(ctx context.Context, achTransferID string, o
return
}
-// ACH transfers move funds between your Increase account and any other account
+// ACH transfers move funds between your Acme account and any other account
// accessible by the Automated Clearing House (ACH).
type ACHTransfer struct {
// The ACH transfer's identifier.
@@ -101,7 +101,7 @@ type ACHTransfer struct {
AccountNumber string `json:"account_number,required"`
// After the transfer is acknowledged by FedACH, this will contain supplemental
// details. The Federal Reserve sends an acknowledgement message for each file that
- // Increase submits.
+ // Acme submits.
Acknowledgement ACHTransferAcknowledgement `json:"acknowledgement,required,nullable"`
// Additional information that will be sent to the recipient.
Addendum string `json:"addendum,required,nullable"`
@@ -148,7 +148,7 @@ type ACHTransfer struct {
NotificationsOfChange []ACHTransferNotificationsOfChange `json:"notifications_of_change,required"`
// The ID for the pending transaction representing the transfer. A pending
// transaction is created when the transfer
- // [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals)
+ // [requires approval](https://acme.com/documentation/transfer-approvals#transfer-approvals)
// by someone else in your organization.
PendingTransactionID string `json:"pending_transaction_id,required,nullable"`
// If your transfer is returned, this will contain details of the return.
@@ -162,7 +162,7 @@ type ACHTransfer struct {
// The lifecycle status of the transfer.
Status ACHTransferStatus `json:"status,required"`
// After the transfer is submitted to FedACH, this will contain supplemental
- // details. Increase batches transfers and submits a file to the Federal Reserve
+ // details. Acme batches transfers and submits a file to the Federal Reserve
// roughly every 30 minutes. The Federal Reserve processes ACH transfers during
// weekdays according to their
// [posted schedule](https://www.frbservices.org/resources/resource-centers/same-day-ach/fedach-processing-schedule.html).
@@ -220,7 +220,7 @@ func (r *ACHTransfer) UnmarshalJSON(data []byte) (err error) {
// After the transfer is acknowledged by FedACH, this will contain supplemental
// details. The Federal Reserve sends an acknowledgement message for each file that
-// Increase submits.
+// Acme submits.
type ACHTransferAcknowledgement struct {
// When the Federal Reserve acknowledged the submitted file containing this
// transfer.
@@ -408,7 +408,7 @@ type ACHTransferReturn struct {
// The three character ACH return code, in the range R01 to R85.
RawReturnReasonCode string `json:"raw_return_reason_code,required"`
// Why the ACH Transfer was returned. This reason code is sent by the receiving
- // bank back to Increase.
+ // bank back to Acme.
ReturnReasonCode ACHTransferReturnReturnReasonCode `json:"return_reason_code,required"`
// The identifier of the Transaction associated with this return.
TransactionID string `json:"transaction_id,required"`
@@ -434,7 +434,7 @@ func (r *ACHTransferReturn) UnmarshalJSON(data []byte) (err error) {
}
// Why the ACH Transfer was returned. This reason code is sent by the receiving
-// bank back to Increase.
+// bank back to Acme.
type ACHTransferReturnReturnReasonCode string
const (
@@ -645,7 +645,7 @@ const (
ACHTransferStatusPendingApproval ACHTransferStatus = "pending_approval"
// The transfer has been canceled.
ACHTransferStatusCanceled ACHTransferStatus = "canceled"
- // The transfer is pending review by Increase.
+ // The transfer is pending review by Acme.
ACHTransferStatusPendingReviewing ACHTransferStatus = "pending_reviewing"
// The transfer is pending submission to the Federal Reserve.
ACHTransferStatusPendingSubmission ACHTransferStatus = "pending_submission"
@@ -653,14 +653,14 @@ const (
ACHTransferStatusSubmitted ACHTransferStatus = "submitted"
// The transfer has been returned.
ACHTransferStatusReturned ACHTransferStatus = "returned"
- // The transfer requires attention from an Increase operator.
+ // The transfer requires attention from an Acme operator.
ACHTransferStatusRequiresAttention ACHTransferStatus = "requires_attention"
// The transfer has been rejected.
ACHTransferStatusRejected ACHTransferStatus = "rejected"
)
// After the transfer is submitted to FedACH, this will contain supplemental
-// details. Increase batches transfers and submits a file to the Federal Reserve
+// details. Acme batches transfers and submits a file to the Federal Reserve
// roughly every 30 minutes. The Federal Reserve processes ACH transfers during
// weekdays according to their
// [posted schedule](https://www.frbservices.org/resources/resource-centers/same-day-ach/fedach-processing-schedule.html).
@@ -681,7 +681,7 @@ type ACHTransferSubmission struct {
// bank. Along with the amount, date, and originating routing number, this can be
// used to identify the ACH transfer at the receiving bank. ACH trace numbers are
// not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
JSON achTransferSubmissionJSON `json:"-"`
}
@@ -710,7 +710,7 @@ const (
)
type ACHTransferNewParams struct {
- // The Increase identifier for the account that will send the transfer.
+ // The Acme identifier for the account that will send the transfer.
AccountID param.Field[string] `json:"account_id,required"`
// The transfer amount in cents. A positive amount originates a credit transfer
// pushing funds to the receiving account. A negative amount originates a debit
diff --git a/achtransfer_test.go b/achtransfer_test.go
index 7b3951c1..bc380c99 100644
--- a/achtransfer_test.go
+++ b/achtransfer_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestACHTransferNewWithOptionalParams(t *testing.T) {
@@ -22,32 +22,32 @@ func TestACHTransferNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.ACHTransfers.New(context.TODO(), increase.ACHTransferNewParams{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
- Amount: increase.F(int64(100)),
- StatementDescriptor: increase.F("New ACH transfer"),
- AccountNumber: increase.F("987654321"),
- Addendum: increase.F("x"),
- CompanyDescriptiveDate: increase.F("x"),
- CompanyDiscretionaryData: increase.F("x"),
- CompanyEntryDescription: increase.F("x"),
- CompanyName: increase.F("x"),
- EffectiveDate: increase.F(time.Now()),
- ExternalAccountID: increase.F("string"),
- Funding: increase.F(increase.ACHTransferNewParamsFundingChecking),
- IndividualID: increase.F("x"),
- IndividualName: increase.F("x"),
- RequireApproval: increase.F(true),
- RoutingNumber: increase.F("101050001"),
- StandardEntryClassCode: increase.F(increase.ACHTransferNewParamsStandardEntryClassCodeCorporateCreditOrDebit),
- UniqueIdentifier: increase.F("x"),
+ _, err := client.ACHTransfers.New(context.TODO(), acme.ACHTransferNewParams{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
+ Amount: acme.F(int64(100)),
+ StatementDescriptor: acme.F("New ACH transfer"),
+ AccountNumber: acme.F("987654321"),
+ Addendum: acme.F("x"),
+ CompanyDescriptiveDate: acme.F("x"),
+ CompanyDiscretionaryData: acme.F("x"),
+ CompanyEntryDescription: acme.F("x"),
+ CompanyName: acme.F("x"),
+ EffectiveDate: acme.F(time.Now()),
+ ExternalAccountID: acme.F("string"),
+ Funding: acme.F(acme.ACHTransferNewParamsFundingChecking),
+ IndividualID: acme.F("x"),
+ IndividualName: acme.F("x"),
+ RequireApproval: acme.F(true),
+ RoutingNumber: acme.F("101050001"),
+ StandardEntryClassCode: acme.F(acme.ACHTransferNewParamsStandardEntryClassCodeCorporateCreditOrDebit),
+ UniqueIdentifier: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -63,13 +63,13 @@ func TestACHTransferGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.ACHTransfers.Get(context.TODO(), "ach_transfer_uoxatyh3lt5evrsdvo7q")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -85,25 +85,25 @@ func TestACHTransferListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.ACHTransfers.List(context.TODO(), increase.ACHTransferListParams{
- AccountID: increase.F("string"),
- CreatedAt: increase.F(increase.ACHTransferListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.ACHTransfers.List(context.TODO(), acme.ACHTransferListParams{
+ AccountID: acme.F("string"),
+ CreatedAt: acme.F(acme.ACHTransferListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- ExternalAccountID: increase.F("string"),
- Limit: increase.F(int64(1)),
- UniqueIdentifier: increase.F("x"),
+ Cursor: acme.F("string"),
+ ExternalAccountID: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ UniqueIdentifier: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -119,13 +119,13 @@ func TestACHTransferApprove(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.ACHTransfers.Approve(context.TODO(), "ach_transfer_uoxatyh3lt5evrsdvo7q")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -141,13 +141,13 @@ func TestACHTransferCancel(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.ACHTransfers.Cancel(context.TODO(), "ach_transfer_uoxatyh3lt5evrsdvo7q")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/aliases.go b/aliases.go
index 27f2ff12..e6f2e8bb 100644
--- a/aliases.go
+++ b/aliases.go
@@ -1,9 +1,9 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
- "github.com/increase/increase-go/internal/apierror"
+ "github.com/acme/acme-go/internal/apierror"
)
type Error = apierror.Error
diff --git a/api.md b/api.md
index 74e0127f..4935d9ba 100644
--- a/api.md
+++ b/api.md
@@ -2,463 +2,463 @@
Response Types:
-- increase.Account
-- increase.BalanceLookup
+- acme.Account
+- acme.BalanceLookup
Methods:
-- client.Accounts.New(ctx context.Context, body increase.AccountNewParams) (increase.Account, error)
-- client.Accounts.Get(ctx context.Context, accountID string) (increase.Account, error)
-- client.Accounts.Update(ctx context.Context, accountID string, body increase.AccountUpdateParams) (increase.Account, error)
-- client.Accounts.List(ctx context.Context, query increase.AccountListParams) (increase.Page[increase.Account], error)
-- client.Accounts.Balance(ctx context.Context, accountID string, query increase.AccountBalanceParams) (increase.BalanceLookup, error)
-- client.Accounts.Close(ctx context.Context, accountID string) (increase.Account, error)
+- client.Accounts.New(ctx context.Context, body acme.AccountNewParams) (acme.Account, error)
+- client.Accounts.Get(ctx context.Context, accountID string) (acme.Account, error)
+- client.Accounts.Update(ctx context.Context, accountID string, body acme.AccountUpdateParams) (acme.Account, error)
+- client.Accounts.List(ctx context.Context, query acme.AccountListParams) (acme.Page[acme.Account], error)
+- client.Accounts.Balance(ctx context.Context, accountID string, query acme.AccountBalanceParams) (acme.BalanceLookup, error)
+- client.Accounts.Close(ctx context.Context, accountID string) (acme.Account, error)
# AccountNumbers
Response Types:
-- increase.AccountNumber
+- acme.AccountNumber
Methods:
-- client.AccountNumbers.New(ctx context.Context, body increase.AccountNumberNewParams) (increase.AccountNumber, error)
-- client.AccountNumbers.Get(ctx context.Context, accountNumberID string) (increase.AccountNumber, error)
-- client.AccountNumbers.Update(ctx context.Context, accountNumberID string, body increase.AccountNumberUpdateParams) (increase.AccountNumber, error)
-- client.AccountNumbers.List(ctx context.Context, query increase.AccountNumberListParams) (increase.Page[increase.AccountNumber], error)
+- client.AccountNumbers.New(ctx context.Context, body acme.AccountNumberNewParams) (acme.AccountNumber, error)
+- client.AccountNumbers.Get(ctx context.Context, accountNumberID string) (acme.AccountNumber, error)
+- client.AccountNumbers.Update(ctx context.Context, accountNumberID string, body acme.AccountNumberUpdateParams) (acme.AccountNumber, error)
+- client.AccountNumbers.List(ctx context.Context, query acme.AccountNumberListParams) (acme.Page[acme.AccountNumber], error)
# BookkeepingAccounts
Response Types:
-- increase.BookkeepingAccount
-- increase.BookkeepingBalanceLookup
+- acme.BookkeepingAccount
+- acme.BookkeepingBalanceLookup
Methods:
-- client.BookkeepingAccounts.New(ctx context.Context, body increase.BookkeepingAccountNewParams) (increase.BookkeepingAccount, error)
-- client.BookkeepingAccounts.Update(ctx context.Context, bookkeepingAccountID string, body increase.BookkeepingAccountUpdateParams) (increase.BookkeepingAccount, error)
-- client.BookkeepingAccounts.List(ctx context.Context, query increase.BookkeepingAccountListParams) (increase.Page[increase.BookkeepingAccount], error)
-- client.BookkeepingAccounts.Balance(ctx context.Context, bookkeepingAccountID string, query increase.BookkeepingAccountBalanceParams) (increase.BookkeepingBalanceLookup, error)
+- client.BookkeepingAccounts.New(ctx context.Context, body acme.BookkeepingAccountNewParams) (acme.BookkeepingAccount, error)
+- client.BookkeepingAccounts.Update(ctx context.Context, bookkeepingAccountID string, body acme.BookkeepingAccountUpdateParams) (acme.BookkeepingAccount, error)
+- client.BookkeepingAccounts.List(ctx context.Context, query acme.BookkeepingAccountListParams) (acme.Page[acme.BookkeepingAccount], error)
+- client.BookkeepingAccounts.Balance(ctx context.Context, bookkeepingAccountID string, query acme.BookkeepingAccountBalanceParams) (acme.BookkeepingBalanceLookup, error)
# BookkeepingEntrySets
Response Types:
-- increase.BookkeepingEntrySet
+- acme.BookkeepingEntrySet
Methods:
-- client.BookkeepingEntrySets.New(ctx context.Context, body increase.BookkeepingEntrySetNewParams) (increase.BookkeepingEntrySet, error)
-- client.BookkeepingEntrySets.Get(ctx context.Context, bookkeepingEntrySetID string) (increase.BookkeepingEntrySet, error)
-- client.BookkeepingEntrySets.List(ctx context.Context, query increase.BookkeepingEntrySetListParams) (increase.Page[increase.BookkeepingEntrySet], error)
+- client.BookkeepingEntrySets.New(ctx context.Context, body acme.BookkeepingEntrySetNewParams) (acme.BookkeepingEntrySet, error)
+- client.BookkeepingEntrySets.Get(ctx context.Context, bookkeepingEntrySetID string) (acme.BookkeepingEntrySet, error)
+- client.BookkeepingEntrySets.List(ctx context.Context, query acme.BookkeepingEntrySetListParams) (acme.Page[acme.BookkeepingEntrySet], error)
# BookkeepingEntries
Response Types:
-- increase.BookkeepingEntry
+- acme.BookkeepingEntry
Methods:
-- client.BookkeepingEntries.Get(ctx context.Context, bookkeepingEntryID string) (increase.BookkeepingEntry, error)
-- client.BookkeepingEntries.List(ctx context.Context, query increase.BookkeepingEntryListParams) (increase.Page[increase.BookkeepingEntry], error)
+- client.BookkeepingEntries.Get(ctx context.Context, bookkeepingEntryID string) (acme.BookkeepingEntry, error)
+- client.BookkeepingEntries.List(ctx context.Context, query acme.BookkeepingEntryListParams) (acme.Page[acme.BookkeepingEntry], error)
# RealTimeDecisions
Response Types:
-- increase.RealTimeDecision
+- acme.RealTimeDecision
Methods:
-- client.RealTimeDecisions.Get(ctx context.Context, realTimeDecisionID string) (increase.RealTimeDecision, error)
-- client.RealTimeDecisions.Action(ctx context.Context, realTimeDecisionID string, body increase.RealTimeDecisionActionParams) (increase.RealTimeDecision, error)
+- client.RealTimeDecisions.Get(ctx context.Context, realTimeDecisionID string) (acme.RealTimeDecision, error)
+- client.RealTimeDecisions.Action(ctx context.Context, realTimeDecisionID string, body acme.RealTimeDecisionActionParams) (acme.RealTimeDecision, error)
# RealTimePaymentsTransfers
Response Types:
-- increase.RealTimePaymentsTransfer
+- acme.RealTimePaymentsTransfer
Methods:
-- client.RealTimePaymentsTransfers.New(ctx context.Context, body increase.RealTimePaymentsTransferNewParams) (increase.RealTimePaymentsTransfer, error)
-- client.RealTimePaymentsTransfers.Get(ctx context.Context, realTimePaymentsTransferID string) (increase.RealTimePaymentsTransfer, error)
-- client.RealTimePaymentsTransfers.List(ctx context.Context, query increase.RealTimePaymentsTransferListParams) (increase.Page[increase.RealTimePaymentsTransfer], error)
+- client.RealTimePaymentsTransfers.New(ctx context.Context, body acme.RealTimePaymentsTransferNewParams) (acme.RealTimePaymentsTransfer, error)
+- client.RealTimePaymentsTransfers.Get(ctx context.Context, realTimePaymentsTransferID string) (acme.RealTimePaymentsTransfer, error)
+- client.RealTimePaymentsTransfers.List(ctx context.Context, query acme.RealTimePaymentsTransferListParams) (acme.Page[acme.RealTimePaymentsTransfer], error)
# Cards
Response Types:
-- increase.Card
-- increase.CardDetails
+- acme.Card
+- acme.CardDetails
Methods:
-- client.Cards.New(ctx context.Context, body increase.CardNewParams) (increase.Card, error)
-- client.Cards.Get(ctx context.Context, cardID string) (increase.Card, error)
-- client.Cards.Update(ctx context.Context, cardID string, body increase.CardUpdateParams) (increase.Card, error)
-- client.Cards.List(ctx context.Context, query increase.CardListParams) (increase.Page[increase.Card], error)
-- client.Cards.GetSensitiveDetails(ctx context.Context, cardID string) (increase.CardDetails, error)
+- client.Cards.New(ctx context.Context, body acme.CardNewParams) (acme.Card, error)
+- client.Cards.Get(ctx context.Context, cardID string) (acme.Card, error)
+- client.Cards.Update(ctx context.Context, cardID string, body acme.CardUpdateParams) (acme.Card, error)
+- client.Cards.List(ctx context.Context, query acme.CardListParams) (acme.Page[acme.Card], error)
+- client.Cards.GetSensitiveDetails(ctx context.Context, cardID string) (acme.CardDetails, error)
# CardDisputes
Response Types:
-- increase.CardDispute
+- acme.CardDispute
Methods:
-- client.CardDisputes.New(ctx context.Context, body increase.CardDisputeNewParams) (increase.CardDispute, error)
-- client.CardDisputes.Get(ctx context.Context, cardDisputeID string) (increase.CardDispute, error)
-- client.CardDisputes.List(ctx context.Context, query increase.CardDisputeListParams) (increase.Page[increase.CardDispute], error)
+- client.CardDisputes.New(ctx context.Context, body acme.CardDisputeNewParams) (acme.CardDispute, error)
+- client.CardDisputes.Get(ctx context.Context, cardDisputeID string) (acme.CardDispute, error)
+- client.CardDisputes.List(ctx context.Context, query acme.CardDisputeListParams) (acme.Page[acme.CardDispute], error)
# CardProfiles
Response Types:
-- increase.CardProfile
+- acme.CardProfile
Methods:
-- client.CardProfiles.New(ctx context.Context, body increase.CardProfileNewParams) (increase.CardProfile, error)
-- client.CardProfiles.Get(ctx context.Context, cardProfileID string) (increase.CardProfile, error)
-- client.CardProfiles.List(ctx context.Context, query increase.CardProfileListParams) (increase.Page[increase.CardProfile], error)
-- client.CardProfiles.Archive(ctx context.Context, cardProfileID string) (increase.CardProfile, error)
+- client.CardProfiles.New(ctx context.Context, body acme.CardProfileNewParams) (acme.CardProfile, error)
+- client.CardProfiles.Get(ctx context.Context, cardProfileID string) (acme.CardProfile, error)
+- client.CardProfiles.List(ctx context.Context, query acme.CardProfileListParams) (acme.Page[acme.CardProfile], error)
+- client.CardProfiles.Archive(ctx context.Context, cardProfileID string) (acme.CardProfile, error)
# CardPurchaseSupplements
Response Types:
-- increase.CardPurchaseSupplement
+- acme.CardPurchaseSupplement
Methods:
-- client.CardPurchaseSupplements.Get(ctx context.Context, cardPurchaseSupplementID string) (increase.CardPurchaseSupplement, error)
-- client.CardPurchaseSupplements.List(ctx context.Context, query increase.CardPurchaseSupplementListParams) (increase.Page[increase.CardPurchaseSupplement], error)
+- client.CardPurchaseSupplements.Get(ctx context.Context, cardPurchaseSupplementID string) (acme.CardPurchaseSupplement, error)
+- client.CardPurchaseSupplements.List(ctx context.Context, query acme.CardPurchaseSupplementListParams) (acme.Page[acme.CardPurchaseSupplement], error)
# ExternalAccounts
Response Types:
-- increase.ExternalAccount
+- acme.ExternalAccount
Methods:
-- client.ExternalAccounts.New(ctx context.Context, body increase.ExternalAccountNewParams) (increase.ExternalAccount, error)
-- client.ExternalAccounts.Get(ctx context.Context, externalAccountID string) (increase.ExternalAccount, error)
-- client.ExternalAccounts.Update(ctx context.Context, externalAccountID string, body increase.ExternalAccountUpdateParams) (increase.ExternalAccount, error)
-- client.ExternalAccounts.List(ctx context.Context, query increase.ExternalAccountListParams) (increase.Page[increase.ExternalAccount], error)
+- client.ExternalAccounts.New(ctx context.Context, body acme.ExternalAccountNewParams) (acme.ExternalAccount, error)
+- client.ExternalAccounts.Get(ctx context.Context, externalAccountID string) (acme.ExternalAccount, error)
+- client.ExternalAccounts.Update(ctx context.Context, externalAccountID string, body acme.ExternalAccountUpdateParams) (acme.ExternalAccount, error)
+- client.ExternalAccounts.List(ctx context.Context, query acme.ExternalAccountListParams) (acme.Page[acme.ExternalAccount], error)
# Exports
Response Types:
-- increase.Export
+- acme.Export
Methods:
-- client.Exports.New(ctx context.Context, body increase.ExportNewParams) (increase.Export, error)
-- client.Exports.Get(ctx context.Context, exportID string) (increase.Export, error)
-- client.Exports.List(ctx context.Context, query increase.ExportListParams) (increase.Page[increase.Export], error)
+- client.Exports.New(ctx context.Context, body acme.ExportNewParams) (acme.Export, error)
+- client.Exports.Get(ctx context.Context, exportID string) (acme.Export, error)
+- client.Exports.List(ctx context.Context, query acme.ExportListParams) (acme.Page[acme.Export], error)
# DigitalWalletTokens
Response Types:
-- increase.DigitalWalletToken
+- acme.DigitalWalletToken
Methods:
-- client.DigitalWalletTokens.Get(ctx context.Context, digitalWalletTokenID string) (increase.DigitalWalletToken, error)
-- client.DigitalWalletTokens.List(ctx context.Context, query increase.DigitalWalletTokenListParams) (increase.Page[increase.DigitalWalletToken], error)
+- client.DigitalWalletTokens.Get(ctx context.Context, digitalWalletTokenID string) (acme.DigitalWalletToken, error)
+- client.DigitalWalletTokens.List(ctx context.Context, query acme.DigitalWalletTokenListParams) (acme.Page[acme.DigitalWalletToken], error)
# Transactions
Response Types:
-- increase.Transaction
+- acme.Transaction
Methods:
-- client.Transactions.Get(ctx context.Context, transactionID string) (increase.Transaction, error)
-- client.Transactions.List(ctx context.Context, query increase.TransactionListParams) (increase.Page[increase.Transaction], error)
+- client.Transactions.Get(ctx context.Context, transactionID string) (acme.Transaction, error)
+- client.Transactions.List(ctx context.Context, query acme.TransactionListParams) (acme.Page[acme.Transaction], error)
# PendingTransactions
Response Types:
-- increase.PendingTransaction
+- acme.PendingTransaction
Methods:
-- client.PendingTransactions.Get(ctx context.Context, pendingTransactionID string) (increase.PendingTransaction, error)
-- client.PendingTransactions.List(ctx context.Context, query increase.PendingTransactionListParams) (increase.Page[increase.PendingTransaction], error)
+- client.PendingTransactions.Get(ctx context.Context, pendingTransactionID string) (acme.PendingTransaction, error)
+- client.PendingTransactions.List(ctx context.Context, query acme.PendingTransactionListParams) (acme.Page[acme.PendingTransaction], error)
# Programs
Response Types:
-- increase.Program
+- acme.Program
Methods:
-- client.Programs.Get(ctx context.Context, programID string) (increase.Program, error)
-- client.Programs.List(ctx context.Context, query increase.ProgramListParams) (increase.Page[increase.Program], error)
+- client.Programs.Get(ctx context.Context, programID string) (acme.Program, error)
+- client.Programs.List(ctx context.Context, query acme.ProgramListParams) (acme.Page[acme.Program], error)
# DeclinedTransactions
Response Types:
-- increase.DeclinedTransaction
+- acme.DeclinedTransaction
Methods:
-- client.DeclinedTransactions.Get(ctx context.Context, declinedTransactionID string) (increase.DeclinedTransaction, error)
-- client.DeclinedTransactions.List(ctx context.Context, query increase.DeclinedTransactionListParams) (increase.Page[increase.DeclinedTransaction], error)
+- client.DeclinedTransactions.Get(ctx context.Context, declinedTransactionID string) (acme.DeclinedTransaction, error)
+- client.DeclinedTransactions.List(ctx context.Context, query acme.DeclinedTransactionListParams) (acme.Page[acme.DeclinedTransaction], error)
# AccountTransfers
Response Types:
-- increase.AccountTransfer
+- acme.AccountTransfer
Methods:
-- client.AccountTransfers.New(ctx context.Context, body increase.AccountTransferNewParams) (increase.AccountTransfer, error)
-- client.AccountTransfers.Get(ctx context.Context, accountTransferID string) (increase.AccountTransfer, error)
-- client.AccountTransfers.List(ctx context.Context, query increase.AccountTransferListParams) (increase.Page[increase.AccountTransfer], error)
-- client.AccountTransfers.Approve(ctx context.Context, accountTransferID string) (increase.AccountTransfer, error)
-- client.AccountTransfers.Cancel(ctx context.Context, accountTransferID string) (increase.AccountTransfer, error)
+- client.AccountTransfers.New(ctx context.Context, body acme.AccountTransferNewParams) (acme.AccountTransfer, error)
+- client.AccountTransfers.Get(ctx context.Context, accountTransferID string) (acme.AccountTransfer, error)
+- client.AccountTransfers.List(ctx context.Context, query acme.AccountTransferListParams) (acme.Page[acme.AccountTransfer], error)
+- client.AccountTransfers.Approve(ctx context.Context, accountTransferID string) (acme.AccountTransfer, error)
+- client.AccountTransfers.Cancel(ctx context.Context, accountTransferID string) (acme.AccountTransfer, error)
# ACHTransfers
Response Types:
-- increase.ACHTransfer
+- acme.ACHTransfer
Methods:
-- client.ACHTransfers.New(ctx context.Context, body increase.ACHTransferNewParams) (increase.ACHTransfer, error)
-- client.ACHTransfers.Get(ctx context.Context, achTransferID string) (increase.ACHTransfer, error)
-- client.ACHTransfers.List(ctx context.Context, query increase.ACHTransferListParams) (increase.Page[increase.ACHTransfer], error)
-- client.ACHTransfers.Approve(ctx context.Context, achTransferID string) (increase.ACHTransfer, error)
-- client.ACHTransfers.Cancel(ctx context.Context, achTransferID string) (increase.ACHTransfer, error)
+- client.ACHTransfers.New(ctx context.Context, body acme.ACHTransferNewParams) (acme.ACHTransfer, error)
+- client.ACHTransfers.Get(ctx context.Context, achTransferID string) (acme.ACHTransfer, error)
+- client.ACHTransfers.List(ctx context.Context, query acme.ACHTransferListParams) (acme.Page[acme.ACHTransfer], error)
+- client.ACHTransfers.Approve(ctx context.Context, achTransferID string) (acme.ACHTransfer, error)
+- client.ACHTransfers.Cancel(ctx context.Context, achTransferID string) (acme.ACHTransfer, error)
# ACHPrenotifications
Response Types:
-- increase.ACHPrenotification
+- acme.ACHPrenotification
Methods:
-- client.ACHPrenotifications.New(ctx context.Context, body increase.ACHPrenotificationNewParams) (increase.ACHPrenotification, error)
-- client.ACHPrenotifications.Get(ctx context.Context, achPrenotificationID string) (increase.ACHPrenotification, error)
-- client.ACHPrenotifications.List(ctx context.Context, query increase.ACHPrenotificationListParams) (increase.Page[increase.ACHPrenotification], error)
+- client.ACHPrenotifications.New(ctx context.Context, body acme.ACHPrenotificationNewParams) (acme.ACHPrenotification, error)
+- client.ACHPrenotifications.Get(ctx context.Context, achPrenotificationID string) (acme.ACHPrenotification, error)
+- client.ACHPrenotifications.List(ctx context.Context, query acme.ACHPrenotificationListParams) (acme.Page[acme.ACHPrenotification], error)
# Documents
Response Types:
-- increase.Document
+- acme.Document
Methods:
-- client.Documents.Get(ctx context.Context, documentID string) (increase.Document, error)
-- client.Documents.List(ctx context.Context, query increase.DocumentListParams) (increase.Page[increase.Document], error)
+- client.Documents.Get(ctx context.Context, documentID string) (acme.Document, error)
+- client.Documents.List(ctx context.Context, query acme.DocumentListParams) (acme.Page[acme.Document], error)
# WireTransfers
Response Types:
-- increase.WireTransfer
+- acme.WireTransfer
Methods:
-- client.WireTransfers.New(ctx context.Context, body increase.WireTransferNewParams) (increase.WireTransfer, error)
-- client.WireTransfers.Get(ctx context.Context, wireTransferID string) (increase.WireTransfer, error)
-- client.WireTransfers.List(ctx context.Context, query increase.WireTransferListParams) (increase.Page[increase.WireTransfer], error)
-- client.WireTransfers.Approve(ctx context.Context, wireTransferID string) (increase.WireTransfer, error)
-- client.WireTransfers.Cancel(ctx context.Context, wireTransferID string) (increase.WireTransfer, error)
-- client.WireTransfers.Reverse(ctx context.Context, wireTransferID string) (increase.WireTransfer, error)
-- client.WireTransfers.Submit(ctx context.Context, wireTransferID string) (increase.WireTransfer, error)
+- client.WireTransfers.New(ctx context.Context, body acme.WireTransferNewParams) (acme.WireTransfer, error)
+- client.WireTransfers.Get(ctx context.Context, wireTransferID string) (acme.WireTransfer, error)
+- client.WireTransfers.List(ctx context.Context, query acme.WireTransferListParams) (acme.Page[acme.WireTransfer], error)
+- client.WireTransfers.Approve(ctx context.Context, wireTransferID string) (acme.WireTransfer, error)
+- client.WireTransfers.Cancel(ctx context.Context, wireTransferID string) (acme.WireTransfer, error)
+- client.WireTransfers.Reverse(ctx context.Context, wireTransferID string) (acme.WireTransfer, error)
+- client.WireTransfers.Submit(ctx context.Context, wireTransferID string) (acme.WireTransfer, error)
# CheckTransfers
Response Types:
-- increase.CheckTransfer
+- acme.CheckTransfer
Methods:
-- client.CheckTransfers.New(ctx context.Context, body increase.CheckTransferNewParams) (increase.CheckTransfer, error)
-- client.CheckTransfers.Get(ctx context.Context, checkTransferID string) (increase.CheckTransfer, error)
-- client.CheckTransfers.List(ctx context.Context, query increase.CheckTransferListParams) (increase.Page[increase.CheckTransfer], error)
-- client.CheckTransfers.Approve(ctx context.Context, checkTransferID string) (increase.CheckTransfer, error)
-- client.CheckTransfers.Cancel(ctx context.Context, checkTransferID string) (increase.CheckTransfer, error)
-- client.CheckTransfers.StopPayment(ctx context.Context, checkTransferID string, body increase.CheckTransferStopPaymentParams) (increase.CheckTransfer, error)
+- client.CheckTransfers.New(ctx context.Context, body acme.CheckTransferNewParams) (acme.CheckTransfer, error)
+- client.CheckTransfers.Get(ctx context.Context, checkTransferID string) (acme.CheckTransfer, error)
+- client.CheckTransfers.List(ctx context.Context, query acme.CheckTransferListParams) (acme.Page[acme.CheckTransfer], error)
+- client.CheckTransfers.Approve(ctx context.Context, checkTransferID string) (acme.CheckTransfer, error)
+- client.CheckTransfers.Cancel(ctx context.Context, checkTransferID string) (acme.CheckTransfer, error)
+- client.CheckTransfers.StopPayment(ctx context.Context, checkTransferID string, body acme.CheckTransferStopPaymentParams) (acme.CheckTransfer, error)
# Entities
Response Types:
-- increase.Entity
+- acme.Entity
Methods:
-- client.Entities.New(ctx context.Context, body increase.EntityNewParams) (increase.Entity, error)
-- client.Entities.Get(ctx context.Context, entityID string) (increase.Entity, error)
-- client.Entities.List(ctx context.Context, query increase.EntityListParams) (increase.Page[increase.Entity], error)
-- client.Entities.Archive(ctx context.Context, entityID string) (increase.Entity, error)
-- client.Entities.UpdateAddress(ctx context.Context, entityID string, body increase.EntityUpdateAddressParams) (increase.Entity, error)
+- client.Entities.New(ctx context.Context, body acme.EntityNewParams) (acme.Entity, error)
+- client.Entities.Get(ctx context.Context, entityID string) (acme.Entity, error)
+- client.Entities.List(ctx context.Context, query acme.EntityListParams) (acme.Page[acme.Entity], error)
+- client.Entities.Archive(ctx context.Context, entityID string) (acme.Entity, error)
+- client.Entities.UpdateAddress(ctx context.Context, entityID string, body acme.EntityUpdateAddressParams) (acme.Entity, error)
## BeneficialOwners
Methods:
-- client.Entities.BeneficialOwners.New(ctx context.Context, body increase.EntityBeneficialOwnerNewParams) (increase.Entity, error)
-- client.Entities.BeneficialOwners.Archive(ctx context.Context, body increase.EntityBeneficialOwnerArchiveParams) (increase.Entity, error)
-- client.Entities.BeneficialOwners.UpdateAddress(ctx context.Context, body increase.EntityBeneficialOwnerUpdateAddressParams) (increase.Entity, error)
+- client.Entities.BeneficialOwners.New(ctx context.Context, body acme.EntityBeneficialOwnerNewParams) (acme.Entity, error)
+- client.Entities.BeneficialOwners.Archive(ctx context.Context, body acme.EntityBeneficialOwnerArchiveParams) (acme.Entity, error)
+- client.Entities.BeneficialOwners.UpdateAddress(ctx context.Context, body acme.EntityBeneficialOwnerUpdateAddressParams) (acme.Entity, error)
## SupplementalDocuments
Response Types:
-- increase.SupplementalDocument
+- acme.SupplementalDocument
Methods:
-- client.Entities.SupplementalDocuments.New(ctx context.Context, entityID string, body increase.EntitySupplementalDocumentNewParams) (increase.Entity, error)
-- client.Entities.SupplementalDocuments.List(ctx context.Context, query increase.EntitySupplementalDocumentListParams) (increase.Page[increase.SupplementalDocument], error)
+- client.Entities.SupplementalDocuments.New(ctx context.Context, entityID string, body acme.EntitySupplementalDocumentNewParams) (acme.Entity, error)
+- client.Entities.SupplementalDocuments.List(ctx context.Context, query acme.EntitySupplementalDocumentListParams) (acme.Page[acme.SupplementalDocument], error)
# InboundACHTransfers
Response Types:
-- increase.InboundACHTransfer
+- acme.InboundACHTransfer
Methods:
-- client.InboundACHTransfers.Get(ctx context.Context, inboundACHTransferID string) (increase.InboundACHTransfer, error)
-- client.InboundACHTransfers.List(ctx context.Context, query increase.InboundACHTransferListParams) (increase.Page[increase.InboundACHTransfer], error)
-- client.InboundACHTransfers.Decline(ctx context.Context, inboundACHTransferID string) (increase.InboundACHTransfer, error)
-- client.InboundACHTransfers.NotificationOfChange(ctx context.Context, inboundACHTransferID string, body increase.InboundACHTransferNotificationOfChangeParams) (increase.InboundACHTransfer, error)
-- client.InboundACHTransfers.TransferReturn(ctx context.Context, inboundACHTransferID string, body increase.InboundACHTransferTransferReturnParams) (increase.InboundACHTransfer, error)
+- client.InboundACHTransfers.Get(ctx context.Context, inboundACHTransferID string) (acme.InboundACHTransfer, error)
+- client.InboundACHTransfers.List(ctx context.Context, query acme.InboundACHTransferListParams) (acme.Page[acme.InboundACHTransfer], error)
+- client.InboundACHTransfers.Decline(ctx context.Context, inboundACHTransferID string) (acme.InboundACHTransfer, error)
+- client.InboundACHTransfers.NotificationOfChange(ctx context.Context, inboundACHTransferID string, body acme.InboundACHTransferNotificationOfChangeParams) (acme.InboundACHTransfer, error)
+- client.InboundACHTransfers.TransferReturn(ctx context.Context, inboundACHTransferID string, body acme.InboundACHTransferTransferReturnParams) (acme.InboundACHTransfer, error)
# InboundWireDrawdownRequests
Response Types:
-- increase.InboundWireDrawdownRequest
+- acme.InboundWireDrawdownRequest
Methods:
-- client.InboundWireDrawdownRequests.Get(ctx context.Context, inboundWireDrawdownRequestID string) (increase.InboundWireDrawdownRequest, error)
-- client.InboundWireDrawdownRequests.List(ctx context.Context, query increase.InboundWireDrawdownRequestListParams) (increase.Page[increase.InboundWireDrawdownRequest], error)
+- client.InboundWireDrawdownRequests.Get(ctx context.Context, inboundWireDrawdownRequestID string) (acme.InboundWireDrawdownRequest, error)
+- client.InboundWireDrawdownRequests.List(ctx context.Context, query acme.InboundWireDrawdownRequestListParams) (acme.Page[acme.InboundWireDrawdownRequest], error)
# WireDrawdownRequests
Response Types:
-- increase.WireDrawdownRequest
+- acme.WireDrawdownRequest
Methods:
-- client.WireDrawdownRequests.New(ctx context.Context, body increase.WireDrawdownRequestNewParams) (increase.WireDrawdownRequest, error)
-- client.WireDrawdownRequests.Get(ctx context.Context, wireDrawdownRequestID string) (increase.WireDrawdownRequest, error)
-- client.WireDrawdownRequests.List(ctx context.Context, query increase.WireDrawdownRequestListParams) (increase.Page[increase.WireDrawdownRequest], error)
+- client.WireDrawdownRequests.New(ctx context.Context, body acme.WireDrawdownRequestNewParams) (acme.WireDrawdownRequest, error)
+- client.WireDrawdownRequests.Get(ctx context.Context, wireDrawdownRequestID string) (acme.WireDrawdownRequest, error)
+- client.WireDrawdownRequests.List(ctx context.Context, query acme.WireDrawdownRequestListParams) (acme.Page[acme.WireDrawdownRequest], error)
# Events
Response Types:
-- increase.Event
+- acme.Event
Methods:
-- client.Events.Get(ctx context.Context, eventID string) (increase.Event, error)
-- client.Events.List(ctx context.Context, query increase.EventListParams) (increase.Page[increase.Event], error)
+- client.Events.Get(ctx context.Context, eventID string) (acme.Event, error)
+- client.Events.List(ctx context.Context, query acme.EventListParams) (acme.Page[acme.Event], error)
# EventSubscriptions
Response Types:
-- increase.EventSubscription
+- acme.EventSubscription
Methods:
-- client.EventSubscriptions.New(ctx context.Context, body increase.EventSubscriptionNewParams) (increase.EventSubscription, error)
-- client.EventSubscriptions.Get(ctx context.Context, eventSubscriptionID string) (increase.EventSubscription, error)
-- client.EventSubscriptions.Update(ctx context.Context, eventSubscriptionID string, body increase.EventSubscriptionUpdateParams) (increase.EventSubscription, error)
-- client.EventSubscriptions.List(ctx context.Context, query increase.EventSubscriptionListParams) (increase.Page[increase.EventSubscription], error)
+- client.EventSubscriptions.New(ctx context.Context, body acme.EventSubscriptionNewParams) (acme.EventSubscription, error)
+- client.EventSubscriptions.Get(ctx context.Context, eventSubscriptionID string) (acme.EventSubscription, error)
+- client.EventSubscriptions.Update(ctx context.Context, eventSubscriptionID string, body acme.EventSubscriptionUpdateParams) (acme.EventSubscription, error)
+- client.EventSubscriptions.List(ctx context.Context, query acme.EventSubscriptionListParams) (acme.Page[acme.EventSubscription], error)
# Files
Response Types:
-- increase.File
+- acme.File
Methods:
-- client.Files.New(ctx context.Context, body increase.FileNewParams) (increase.File, error)
-- client.Files.Get(ctx context.Context, fileID string) (increase.File, error)
-- client.Files.List(ctx context.Context, query increase.FileListParams) (increase.Page[increase.File], error)
+- client.Files.New(ctx context.Context, body acme.FileNewParams) (acme.File, error)
+- client.Files.Get(ctx context.Context, fileID string) (acme.File, error)
+- client.Files.List(ctx context.Context, query acme.FileListParams) (acme.Page[acme.File], error)
# Groups
Response Types:
-- increase.Group
+- acme.Group
Methods:
-- client.Groups.GetDetails(ctx context.Context) (increase.Group, error)
+- client.Groups.GetDetails(ctx context.Context) (acme.Group, error)
# OauthConnections
Response Types:
-- increase.OauthConnection
+- acme.OauthConnection
Methods:
-- client.OauthConnections.Get(ctx context.Context, oauthConnectionID string) (increase.OauthConnection, error)
-- client.OauthConnections.List(ctx context.Context, query increase.OauthConnectionListParams) (increase.Page[increase.OauthConnection], error)
+- client.OauthConnections.Get(ctx context.Context, oauthConnectionID string) (acme.OauthConnection, error)
+- client.OauthConnections.List(ctx context.Context, query acme.OauthConnectionListParams) (acme.Page[acme.OauthConnection], error)
# CheckDeposits
Response Types:
-- increase.CheckDeposit
+- acme.CheckDeposit
Methods:
-- client.CheckDeposits.New(ctx context.Context, body increase.CheckDepositNewParams) (increase.CheckDeposit, error)
-- client.CheckDeposits.Get(ctx context.Context, checkDepositID string) (increase.CheckDeposit, error)
-- client.CheckDeposits.List(ctx context.Context, query increase.CheckDepositListParams) (increase.Page[increase.CheckDeposit], error)
+- client.CheckDeposits.New(ctx context.Context, body acme.CheckDepositNewParams) (acme.CheckDeposit, error)
+- client.CheckDeposits.Get(ctx context.Context, checkDepositID string) (acme.CheckDeposit, error)
+- client.CheckDeposits.List(ctx context.Context, query acme.CheckDepositListParams) (acme.Page[acme.CheckDeposit], error)
# RoutingNumbers
Response Types:
-- increase.RoutingNumber
+- acme.RoutingNumber
Methods:
-- client.RoutingNumbers.List(ctx context.Context, query increase.RoutingNumberListParams) (increase.Page[increase.RoutingNumber], error)
+- client.RoutingNumbers.List(ctx context.Context, query acme.RoutingNumberListParams) (acme.Page[acme.RoutingNumber], error)
# AccountStatements
Response Types:
-- increase.AccountStatement
+- acme.AccountStatement
Methods:
-- client.AccountStatements.Get(ctx context.Context, accountStatementID string) (increase.AccountStatement, error)
-- client.AccountStatements.List(ctx context.Context, query increase.AccountStatementListParams) (increase.Page[increase.AccountStatement], error)
+- client.AccountStatements.Get(ctx context.Context, accountStatementID string) (acme.AccountStatement, error)
+- client.AccountStatements.List(ctx context.Context, query acme.AccountStatementListParams) (acme.Page[acme.AccountStatement], error)
# Simulations
@@ -466,165 +466,165 @@ Methods:
Methods:
-- client.Simulations.AccountTransfers.Complete(ctx context.Context, accountTransferID string) (increase.AccountTransfer, error)
+- client.Simulations.AccountTransfers.Complete(ctx context.Context, accountTransferID string) (acme.AccountTransfer, error)
## AccountStatements
Methods:
-- client.Simulations.AccountStatements.New(ctx context.Context, body increase.SimulationAccountStatementNewParams) (increase.AccountStatement, error)
+- client.Simulations.AccountStatements.New(ctx context.Context, body acme.SimulationAccountStatementNewParams) (acme.AccountStatement, error)
## ACHTransfers
Response Types:
-- increase.ACHTransferSimulation
+- acme.ACHTransferSimulation
Methods:
-- client.Simulations.ACHTransfers.NewInbound(ctx context.Context, body increase.SimulationACHTransferNewInboundParams) (increase.ACHTransferSimulation, error)
-- client.Simulations.ACHTransfers.Return(ctx context.Context, achTransferID string, body increase.SimulationACHTransferReturnParams) (increase.ACHTransfer, error)
-- client.Simulations.ACHTransfers.Submit(ctx context.Context, achTransferID string) (increase.ACHTransfer, error)
+- client.Simulations.ACHTransfers.NewInbound(ctx context.Context, body acme.SimulationACHTransferNewInboundParams) (acme.ACHTransferSimulation, error)
+- client.Simulations.ACHTransfers.Return(ctx context.Context, achTransferID string, body acme.SimulationACHTransferReturnParams) (acme.ACHTransfer, error)
+- client.Simulations.ACHTransfers.Submit(ctx context.Context, achTransferID string) (acme.ACHTransfer, error)
## CardDisputes
Methods:
-- client.Simulations.CardDisputes.Action(ctx context.Context, cardDisputeID string, body increase.SimulationCardDisputeActionParams) (increase.CardDispute, error)
+- client.Simulations.CardDisputes.Action(ctx context.Context, cardDisputeID string, body acme.SimulationCardDisputeActionParams) (acme.CardDispute, error)
## CardProfiles
Methods:
-- client.Simulations.CardProfiles.Approve(ctx context.Context, cardProfileID string) (increase.CardProfile, error)
+- client.Simulations.CardProfiles.Approve(ctx context.Context, cardProfileID string) (acme.CardProfile, error)
## CardRefunds
Methods:
-- client.Simulations.CardRefunds.New(ctx context.Context, body increase.SimulationCardRefundNewParams) (increase.Transaction, error)
+- client.Simulations.CardRefunds.New(ctx context.Context, body acme.SimulationCardRefundNewParams) (acme.Transaction, error)
## CheckTransfers
Methods:
-- client.Simulations.CheckTransfers.Deposit(ctx context.Context, checkTransferID string) (increase.CheckTransfer, error)
-- client.Simulations.CheckTransfers.Mail(ctx context.Context, checkTransferID string) (increase.CheckTransfer, error)
+- client.Simulations.CheckTransfers.Deposit(ctx context.Context, checkTransferID string) (acme.CheckTransfer, error)
+- client.Simulations.CheckTransfers.Mail(ctx context.Context, checkTransferID string) (acme.CheckTransfer, error)
## Documents
Methods:
-- client.Simulations.Documents.New(ctx context.Context, body increase.SimulationDocumentNewParams) (increase.Document, error)
+- client.Simulations.Documents.New(ctx context.Context, body acme.SimulationDocumentNewParams) (acme.Document, error)
## DigitalWalletTokenRequests
Response Types:
-- increase.SimulationDigitalWalletTokenRequestNewResponse
+- acme.SimulationDigitalWalletTokenRequestNewResponse
Methods:
-- client.Simulations.DigitalWalletTokenRequests.New(ctx context.Context, body increase.SimulationDigitalWalletTokenRequestNewParams) (increase.SimulationDigitalWalletTokenRequestNewResponse, error)
+- client.Simulations.DigitalWalletTokenRequests.New(ctx context.Context, body acme.SimulationDigitalWalletTokenRequestNewParams) (acme.SimulationDigitalWalletTokenRequestNewResponse, error)
## CheckDeposits
Methods:
-- client.Simulations.CheckDeposits.Reject(ctx context.Context, checkDepositID string) (increase.CheckDeposit, error)
-- client.Simulations.CheckDeposits.Return(ctx context.Context, checkDepositID string) (increase.CheckDeposit, error)
-- client.Simulations.CheckDeposits.Submit(ctx context.Context, checkDepositID string) (increase.CheckDeposit, error)
+- client.Simulations.CheckDeposits.Reject(ctx context.Context, checkDepositID string) (acme.CheckDeposit, error)
+- client.Simulations.CheckDeposits.Return(ctx context.Context, checkDepositID string) (acme.CheckDeposit, error)
+- client.Simulations.CheckDeposits.Submit(ctx context.Context, checkDepositID string) (acme.CheckDeposit, error)
## Programs
Methods:
-- client.Simulations.Programs.New(ctx context.Context, body increase.SimulationProgramNewParams) (increase.Program, error)
+- client.Simulations.Programs.New(ctx context.Context, body acme.SimulationProgramNewParams) (acme.Program, error)
## InboundWireDrawdownRequests
Methods:
-- client.Simulations.InboundWireDrawdownRequests.New(ctx context.Context, body increase.SimulationInboundWireDrawdownRequestNewParams) (increase.InboundWireDrawdownRequest, error)
+- client.Simulations.InboundWireDrawdownRequests.New(ctx context.Context, body acme.SimulationInboundWireDrawdownRequestNewParams) (acme.InboundWireDrawdownRequest, error)
## InboundFundsHolds
Response Types:
-- increase.SimulationInboundFundsHoldReleaseResponse
+- acme.SimulationInboundFundsHoldReleaseResponse
Methods:
-- client.Simulations.InboundFundsHolds.Release(ctx context.Context, inboundFundsHoldID string) (increase.SimulationInboundFundsHoldReleaseResponse, error)
+- client.Simulations.InboundFundsHolds.Release(ctx context.Context, inboundFundsHoldID string) (acme.SimulationInboundFundsHoldReleaseResponse, error)
## InterestPayments
Response Types:
-- increase.InterestPaymentSimulationResult
+- acme.InterestPaymentSimulationResult
Methods:
-- client.Simulations.InterestPayments.New(ctx context.Context, body increase.SimulationInterestPaymentNewParams) (increase.InterestPaymentSimulationResult, error)
+- client.Simulations.InterestPayments.New(ctx context.Context, body acme.SimulationInterestPaymentNewParams) (acme.InterestPaymentSimulationResult, error)
## WireTransfers
Response Types:
-- increase.WireTransferSimulation
+- acme.WireTransferSimulation
Methods:
-- client.Simulations.WireTransfers.NewInbound(ctx context.Context, body increase.SimulationWireTransferNewInboundParams) (increase.WireTransferSimulation, error)
+- client.Simulations.WireTransfers.NewInbound(ctx context.Context, body acme.SimulationWireTransferNewInboundParams) (acme.WireTransferSimulation, error)
## Cards
Response Types:
-- increase.CardAuthorizationSimulation
+- acme.CardAuthorizationSimulation
Methods:
-- client.Simulations.Cards.Authorize(ctx context.Context, body increase.SimulationCardAuthorizeParams) (increase.CardAuthorizationSimulation, error)
-- client.Simulations.Cards.Settlement(ctx context.Context, body increase.SimulationCardSettlementParams) (increase.Transaction, error)
+- client.Simulations.Cards.Authorize(ctx context.Context, body acme.SimulationCardAuthorizeParams) (acme.CardAuthorizationSimulation, error)
+- client.Simulations.Cards.Settlement(ctx context.Context, body acme.SimulationCardSettlementParams) (acme.Transaction, error)
## RealTimePaymentsTransfers
Response Types:
-- increase.InboundRealTimePaymentsTransferSimulationResult
+- acme.InboundRealTimePaymentsTransferSimulationResult
Methods:
-- client.Simulations.RealTimePaymentsTransfers.Complete(ctx context.Context, realTimePaymentsTransferID string, body increase.SimulationRealTimePaymentsTransferCompleteParams) (increase.RealTimePaymentsTransfer, error)
-- client.Simulations.RealTimePaymentsTransfers.NewInbound(ctx context.Context, body increase.SimulationRealTimePaymentsTransferNewInboundParams) (increase.InboundRealTimePaymentsTransferSimulationResult, error)
+- client.Simulations.RealTimePaymentsTransfers.Complete(ctx context.Context, realTimePaymentsTransferID string, body acme.SimulationRealTimePaymentsTransferCompleteParams) (acme.RealTimePaymentsTransfer, error)
+- client.Simulations.RealTimePaymentsTransfers.NewInbound(ctx context.Context, body acme.SimulationRealTimePaymentsTransferNewInboundParams) (acme.InboundRealTimePaymentsTransferSimulationResult, error)
## PhysicalCards
Methods:
-- client.Simulations.PhysicalCards.ShipmentAdvance(ctx context.Context, physicalCardID string, body increase.SimulationPhysicalCardShipmentAdvanceParams) (increase.PhysicalCard, error)
+- client.Simulations.PhysicalCards.ShipmentAdvance(ctx context.Context, physicalCardID string, body acme.SimulationPhysicalCardShipmentAdvanceParams) (acme.PhysicalCard, error)
# PhysicalCards
Response Types:
-- increase.PhysicalCard
+- acme.PhysicalCard
Methods:
-- client.PhysicalCards.New(ctx context.Context, body increase.PhysicalCardNewParams) (increase.PhysicalCard, error)
-- client.PhysicalCards.Get(ctx context.Context, physicalCardID string) (increase.PhysicalCard, error)
-- client.PhysicalCards.Update(ctx context.Context, physicalCardID string, body increase.PhysicalCardUpdateParams) (increase.PhysicalCard, error)
-- client.PhysicalCards.List(ctx context.Context, query increase.PhysicalCardListParams) (increase.Page[increase.PhysicalCard], error)
+- client.PhysicalCards.New(ctx context.Context, body acme.PhysicalCardNewParams) (acme.PhysicalCard, error)
+- client.PhysicalCards.Get(ctx context.Context, physicalCardID string) (acme.PhysicalCard, error)
+- client.PhysicalCards.Update(ctx context.Context, physicalCardID string, body acme.PhysicalCardUpdateParams) (acme.PhysicalCard, error)
+- client.PhysicalCards.List(ctx context.Context, query acme.PhysicalCardListParams) (acme.Page[acme.PhysicalCard], error)
# CardPayments
Response Types:
-- increase.CardPayment
+- acme.CardPayment
Methods:
-- client.CardPayments.Get(ctx context.Context, cardPaymentID string) (increase.CardPayment, error)
-- client.CardPayments.List(ctx context.Context, query increase.CardPaymentListParams) (increase.Page[increase.CardPayment], error)
+- client.CardPayments.Get(ctx context.Context, cardPaymentID string) (acme.CardPayment, error)
+- client.CardPayments.List(ctx context.Context, query acme.CardPaymentListParams) (acme.Page[acme.CardPayment], error)
diff --git a/bookkeepingaccount.go b/bookkeepingaccount.go
index b7df5475..ab325d23 100644
--- a/bookkeepingaccount.go
+++ b/bookkeepingaccount.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// BookkeepingAccountService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewBookkeepingAccountService] method
// instead.
@@ -84,7 +84,7 @@ func (r *BookkeepingAccountService) Balance(ctx context.Context, bookkeepingAcco
// Accounts are T-accounts. They can store accounting entries. Your compliance
// setup might require annotating money movements using this API. Learn more in our
-// [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
+// [guide to Bookkeeping](https://acme.com/documentation/bookkeeping#bookkeeping).
type BookkeepingAccount struct {
// The account identifier.
ID string `json:"id,required"`
@@ -123,7 +123,7 @@ func (r *BookkeepingAccount) UnmarshalJSON(data []byte) (err error) {
type BookkeepingAccountComplianceCategory string
const (
- // A cash in an commingled Increase Account.
+ // A cash in an commingled Acme Account.
BookkeepingAccountComplianceCategoryCommingledCash BookkeepingAccountComplianceCategory = "commingled_cash"
// A customer balance.
BookkeepingAccountComplianceCategoryCustomerBalance BookkeepingAccountComplianceCategory = "customer_balance"
@@ -192,7 +192,7 @@ func (r BookkeepingAccountNewParams) MarshalJSON() (data []byte, err error) {
type BookkeepingAccountNewParamsComplianceCategory string
const (
- // A cash in an commingled Increase Account.
+ // A cash in an commingled Acme Account.
BookkeepingAccountNewParamsComplianceCategoryCommingledCash BookkeepingAccountNewParamsComplianceCategory = "commingled_cash"
// A customer balance.
BookkeepingAccountNewParamsComplianceCategoryCustomerBalance BookkeepingAccountNewParamsComplianceCategory = "customer_balance"
diff --git a/bookkeepingaccount_test.go b/bookkeepingaccount_test.go
index 7af0198a..169c4c4a 100644
--- a/bookkeepingaccount_test.go
+++ b/bookkeepingaccount_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestBookkeepingAccountNewWithOptionalParams(t *testing.T) {
@@ -22,18 +22,18 @@ func TestBookkeepingAccountNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.BookkeepingAccounts.New(context.TODO(), increase.BookkeepingAccountNewParams{
- Name: increase.F("New Account!"),
- AccountID: increase.F("string"),
- ComplianceCategory: increase.F(increase.BookkeepingAccountNewParamsComplianceCategoryCommingledCash),
- EntityID: increase.F("string"),
+ _, err := client.BookkeepingAccounts.New(context.TODO(), acme.BookkeepingAccountNewParams{
+ Name: acme.F("New Account!"),
+ AccountID: acme.F("string"),
+ ComplianceCategory: acme.F(acme.BookkeepingAccountNewParamsComplianceCategoryCommingledCash),
+ EntityID: acme.F("string"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -49,19 +49,19 @@ func TestBookkeepingAccountUpdate(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.BookkeepingAccounts.Update(
context.TODO(),
"bookkeeping_account_e37p1f1iuocw5intf35v",
- increase.BookkeepingAccountUpdateParams{
- Name: increase.F("Deprecated Account"),
+ acme.BookkeepingAccountUpdateParams{
+ Name: acme.F("Deprecated Account"),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -77,16 +77,16 @@ func TestBookkeepingAccountListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.BookkeepingAccounts.List(context.TODO(), increase.BookkeepingAccountListParams{
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ _, err := client.BookkeepingAccounts.List(context.TODO(), acme.BookkeepingAccountListParams{
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -102,19 +102,19 @@ func TestBookkeepingAccountBalanceWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.BookkeepingAccounts.Balance(
context.TODO(),
"bookkeeping_account_e37p1f1iuocw5intf35v",
- increase.BookkeepingAccountBalanceParams{
- AtTime: increase.F(time.Now()),
+ acme.BookkeepingAccountBalanceParams{
+ AtTime: acme.F(time.Now()),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/bookkeepingentry.go b/bookkeepingentry.go
index b41dc819..40b10681 100644
--- a/bookkeepingentry.go
+++ b/bookkeepingentry.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// BookkeepingEntryService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewBookkeepingEntryService] method
// instead.
@@ -68,7 +68,7 @@ func (r *BookkeepingEntryService) ListAutoPaging(ctx context.Context, query Book
// Entries are T-account entries recording debits and credits. Your compliance
// setup might require annotating money movements using this API. Learn more in our
-// [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
+// [guide to Bookkeeping](https://acme.com/documentation/bookkeeping#bookkeeping).
type BookkeepingEntry struct {
// The entry identifier.
ID string `json:"id,required"`
diff --git a/bookkeepingentry_test.go b/bookkeepingentry_test.go
index 95b5aa8e..f712e3c5 100644
--- a/bookkeepingentry_test.go
+++ b/bookkeepingentry_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestBookkeepingEntryGet(t *testing.T) {
@@ -21,13 +21,13 @@ func TestBookkeepingEntryGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.BookkeepingEntries.Get(context.TODO(), "bookkeeping_entry_ctjpajsj3ks2blx10375")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -43,16 +43,16 @@ func TestBookkeepingEntryListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.BookkeepingEntries.List(context.TODO(), increase.BookkeepingEntryListParams{
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ _, err := client.BookkeepingEntries.List(context.TODO(), acme.BookkeepingEntryListParams{
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/bookkeepingentryset.go b/bookkeepingentryset.go
index b16ae313..5a07165c 100644
--- a/bookkeepingentryset.go
+++ b/bookkeepingentryset.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// BookkeepingEntrySetService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewBookkeepingEntrySetService]
// method instead.
@@ -77,7 +77,7 @@ func (r *BookkeepingEntrySetService) ListAutoPaging(ctx context.Context, query B
// Entry Sets are accounting entries that are transactionally applied. Your
// compliance setup might require annotating money movements using this API. Learn
// more in our
-// [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
+// [guide to Bookkeeping](https://acme.com/documentation/bookkeeping#bookkeeping).
type BookkeepingEntrySet struct {
// The entry set identifier.
ID string `json:"id,required"`
diff --git a/bookkeepingentryset_test.go b/bookkeepingentryset_test.go
index 9ee98265..526b9dfb 100644
--- a/bookkeepingentryset_test.go
+++ b/bookkeepingentryset_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestBookkeepingEntrySetNewWithOptionalParams(t *testing.T) {
@@ -22,23 +22,23 @@ func TestBookkeepingEntrySetNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.BookkeepingEntrySets.New(context.TODO(), increase.BookkeepingEntrySetNewParams{
- Entries: increase.F([]increase.BookkeepingEntrySetNewParamsEntry{{
- AccountID: increase.F("bookkeeping_account_9husfpw68pzmve9dvvc7"),
- Amount: increase.F(int64(100)),
+ _, err := client.BookkeepingEntrySets.New(context.TODO(), acme.BookkeepingEntrySetNewParams{
+ Entries: acme.F([]acme.BookkeepingEntrySetNewParamsEntry{{
+ AccountID: acme.F("bookkeeping_account_9husfpw68pzmve9dvvc7"),
+ Amount: acme.F(int64(100)),
}, {
- AccountID: increase.F("bookkeeping_account_t2obldz1rcu15zr54umg"),
- Amount: increase.F(int64(-100)),
+ AccountID: acme.F("bookkeeping_account_t2obldz1rcu15zr54umg"),
+ Amount: acme.F(int64(-100)),
}}),
- Date: increase.F(time.Now()),
- TransactionID: increase.F("transaction_uyrp7fld2ium70oa7oi"),
+ Date: acme.F(time.Now()),
+ TransactionID: acme.F("transaction_uyrp7fld2ium70oa7oi"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -54,13 +54,13 @@ func TestBookkeepingEntrySetGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.BookkeepingEntrySets.Get(context.TODO(), "bookkeeping_entry_set_n80c6wr2p8gtc6p4ingf")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -76,17 +76,17 @@ func TestBookkeepingEntrySetListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.BookkeepingEntrySets.List(context.TODO(), increase.BookkeepingEntrySetListParams{
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- TransactionID: increase.F("string"),
+ _, err := client.BookkeepingEntrySets.List(context.TODO(), acme.BookkeepingEntrySetListParams{
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ TransactionID: acme.F("string"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/card.go b/card.go
index 9461811e..f3b11c08 100644
--- a/card.go
+++ b/card.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// CardService contains methods and other services that help with interacting with
-// the increase API. Note, unlike clients, this service does not read variables
+// the acme API. Note, unlike clients, this service does not read variables
// from the environment automatically. You should not instantiate this service
// directly, and instead use the [NewCardService] method instead.
type CardService struct {
diff --git a/card_test.go b/card_test.go
index 371cdb54..4c0b3212 100644
--- a/card_test.go
+++ b/card_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestCardNewWithOptionalParams(t *testing.T) {
@@ -22,29 +22,29 @@ func TestCardNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Cards.New(context.TODO(), increase.CardNewParams{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
- BillingAddress: increase.F(increase.CardNewParamsBillingAddress{
- Line1: increase.F("x"),
- Line2: increase.F("x"),
- City: increase.F("x"),
- State: increase.F("x"),
- PostalCode: increase.F("x"),
+ _, err := client.Cards.New(context.TODO(), acme.CardNewParams{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
+ BillingAddress: acme.F(acme.CardNewParamsBillingAddress{
+ Line1: acme.F("x"),
+ Line2: acme.F("x"),
+ City: acme.F("x"),
+ State: acme.F("x"),
+ PostalCode: acme.F("x"),
}),
- Description: increase.F("Card for Ian Crease"),
- DigitalWallet: increase.F(increase.CardNewParamsDigitalWallet{
- Email: increase.F("x"),
- Phone: increase.F("x"),
- CardProfileID: increase.F("string"),
+ Description: acme.F("Card for Ian Crease"),
+ DigitalWallet: acme.F(acme.CardNewParamsDigitalWallet{
+ Email: acme.F("x"),
+ Phone: acme.F("x"),
+ CardProfileID: acme.F("string"),
}),
- EntityID: increase.F("string"),
+ EntityID: acme.F("string"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -60,13 +60,13 @@ func TestCardGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Cards.Get(context.TODO(), "card_oubs0hwk5rn6knuecxg2")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -82,33 +82,33 @@ func TestCardUpdateWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Cards.Update(
context.TODO(),
"card_oubs0hwk5rn6knuecxg2",
- increase.CardUpdateParams{
- BillingAddress: increase.F(increase.CardUpdateParamsBillingAddress{
- Line1: increase.F("x"),
- Line2: increase.F("x"),
- City: increase.F("x"),
- State: increase.F("x"),
- PostalCode: increase.F("x"),
+ acme.CardUpdateParams{
+ BillingAddress: acme.F(acme.CardUpdateParamsBillingAddress{
+ Line1: acme.F("x"),
+ Line2: acme.F("x"),
+ City: acme.F("x"),
+ State: acme.F("x"),
+ PostalCode: acme.F("x"),
}),
- Description: increase.F("New description"),
- DigitalWallet: increase.F(increase.CardUpdateParamsDigitalWallet{
- Email: increase.F("x"),
- Phone: increase.F("x"),
- CardProfileID: increase.F("string"),
+ Description: acme.F("New description"),
+ DigitalWallet: acme.F(acme.CardUpdateParamsDigitalWallet{
+ Email: acme.F("x"),
+ Phone: acme.F("x"),
+ CardProfileID: acme.F("string"),
}),
- EntityID: increase.F("string"),
- Status: increase.F(increase.CardUpdateParamsStatusActive),
+ EntityID: acme.F("string"),
+ Status: acme.F(acme.CardUpdateParamsStatusActive),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -124,23 +124,23 @@ func TestCardListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Cards.List(context.TODO(), increase.CardListParams{
- AccountID: increase.F("string"),
- CreatedAt: increase.F(increase.CardListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.Cards.List(context.TODO(), acme.CardListParams{
+ AccountID: acme.F("string"),
+ CreatedAt: acme.F(acme.CardListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -156,13 +156,13 @@ func TestCardGetSensitiveDetails(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Cards.GetSensitiveDetails(context.TODO(), "card_oubs0hwk5rn6knuecxg2")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/carddispute.go b/carddispute.go
index 7466f052..2fa9d8bc 100644
--- a/carddispute.go
+++ b/carddispute.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// CardDisputeService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewCardDisputeService] method
// instead.
diff --git a/carddispute_test.go b/carddispute_test.go
index 3fbea0c1..93a5906b 100644
--- a/carddispute_test.go
+++ b/carddispute_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestCardDisputeNew(t *testing.T) {
@@ -22,16 +22,16 @@ func TestCardDisputeNew(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.CardDisputes.New(context.TODO(), increase.CardDisputeNewParams{
- DisputedTransactionID: increase.F("transaction_uyrp7fld2ium70oa7oi"),
- Explanation: increase.F("Unauthorized recurring transaction."),
+ _, err := client.CardDisputes.New(context.TODO(), acme.CardDisputeNewParams{
+ DisputedTransactionID: acme.F("transaction_uyrp7fld2ium70oa7oi"),
+ Explanation: acme.F("Unauthorized recurring transaction."),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -47,13 +47,13 @@ func TestCardDisputeGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.CardDisputes.Get(context.TODO(), "card_dispute_h9sc95nbl1cgltpp7men")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -69,25 +69,25 @@ func TestCardDisputeListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.CardDisputes.List(context.TODO(), increase.CardDisputeListParams{
- CreatedAt: increase.F(increase.CardDisputeListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.CardDisputes.List(context.TODO(), acme.CardDisputeListParams{
+ CreatedAt: acme.F(acme.CardDisputeListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- Status: increase.F(increase.CardDisputeListParamsStatus{
- In: increase.F([]increase.CardDisputeListParamsStatusIn{increase.CardDisputeListParamsStatusInPendingReviewing, increase.CardDisputeListParamsStatusInAccepted, increase.CardDisputeListParamsStatusInRejected}),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ Status: acme.F(acme.CardDisputeListParamsStatus{
+ In: acme.F([]acme.CardDisputeListParamsStatusIn{acme.CardDisputeListParamsStatusInPendingReviewing, acme.CardDisputeListParamsStatusInAccepted, acme.CardDisputeListParamsStatusInRejected}),
}),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/cardpayment.go b/cardpayment.go
index 8ee2faa1..0ba186f9 100644
--- a/cardpayment.go
+++ b/cardpayment.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// CardPaymentService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewCardPaymentService] method
// instead.
@@ -941,7 +941,7 @@ const (
CardPaymentElementsCardDeclineReasonInsufficientFunds CardPaymentElementsCardDeclineReason = "insufficient_funds"
// The given CVV2 did not match the card's value.
CardPaymentElementsCardDeclineReasonCvv2Mismatch CardPaymentElementsCardDeclineReason = "cvv2_mismatch"
- // The attempted card transaction is not allowed per Increase's terms.
+ // The attempted card transaction is not allowed per Acme's terms.
CardPaymentElementsCardDeclineReasonTransactionNotAllowed CardPaymentElementsCardDeclineReason = "transaction_not_allowed"
// The transaction was blocked by a Limit.
CardPaymentElementsCardDeclineReasonBreachesLimit CardPaymentElementsCardDeclineReason = "breaches_limit"
@@ -957,7 +957,7 @@ const (
// exist.
CardPaymentElementsCardDeclineReasonMissingOriginalAuthorization CardPaymentElementsCardDeclineReason = "missing_original_authorization"
// The transaction was suspected to be fraudulent. Please reach out to
- // support@increase.com for more information.
+ // support@acme.com for more information.
CardPaymentElementsCardDeclineReasonSuspectedFraud CardPaymentElementsCardDeclineReason = "suspected_fraud"
)
diff --git a/cardpayment_test.go b/cardpayment_test.go
index 8816603f..81918c0c 100644
--- a/cardpayment_test.go
+++ b/cardpayment_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestCardPaymentGet(t *testing.T) {
@@ -22,13 +22,13 @@ func TestCardPaymentGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.CardPayments.Get(context.TODO(), "card_payment_nd3k2kacrqjli8482ave")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -44,24 +44,24 @@ func TestCardPaymentListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.CardPayments.List(context.TODO(), increase.CardPaymentListParams{
- AccountID: increase.F("string"),
- CardID: increase.F("string"),
- CreatedAt: increase.F(increase.CardPaymentListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.CardPayments.List(context.TODO(), acme.CardPaymentListParams{
+ AccountID: acme.F("string"),
+ CardID: acme.F("string"),
+ CreatedAt: acme.F(acme.CardPaymentListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/cardprofile.go b/cardprofile.go
index a29a13c2..0e1c1efb 100644
--- a/cardprofile.go
+++ b/cardprofile.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// CardProfileService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewCardProfileService] method
// instead.
@@ -84,7 +84,7 @@ func (r *CardProfileService) Archive(ctx context.Context, cardProfileID string,
// This contains artwork and metadata relating to a Card's appearance in digital
// wallet apps like Apple Pay and Google Pay. For more information, see our guide
-// on [digital card artwork](https://increase.com/documentation/card-art).
+// on [digital card artwork](https://acme.com/documentation/card-art).
type CardProfile struct {
// The Card Profile identifier.
ID string `json:"id,required"`
@@ -96,7 +96,7 @@ type CardProfile struct {
// How Cards should appear in digital wallets such as Apple Pay. Different wallets
// will use these values to render card artwork appropriately for their app.
DigitalWallets CardProfileDigitalWallets `json:"digital_wallets,required"`
- // Whether this Card Profile is the default for all cards in its Increase group.
+ // Whether this Card Profile is the default for all cards in its Acme group.
IsDefault bool `json:"is_default,required"`
// How physical cards should be designed and shipped.
PhysicalCards CardProfilePhysicalCards `json:"physical_cards,required,nullable"`
@@ -231,9 +231,9 @@ const (
CardProfilePhysicalCardsStatusNotEligible CardProfilePhysicalCardsStatus = "not_eligible"
// There is an issue with the Physical Card Profile preventing it from use.
CardProfilePhysicalCardsStatusRejected CardProfilePhysicalCardsStatus = "rejected"
- // The Card Profile has not yet been processed by Increase.
+ // The Card Profile has not yet been processed by Acme.
CardProfilePhysicalCardsStatusPendingCreating CardProfilePhysicalCardsStatus = "pending_creating"
- // The card profile is awaiting review by Increase.
+ // The card profile is awaiting review by Acme.
CardProfilePhysicalCardsStatusPendingReviewing CardProfilePhysicalCardsStatus = "pending_reviewing"
// The card profile is awaiting submission to the fulfillment provider.
CardProfilePhysicalCardsStatusPendingSubmitting CardProfilePhysicalCardsStatus = "pending_submitting"
@@ -246,7 +246,7 @@ const (
type CardProfileStatus string
const (
- // The Card Profile is awaiting review from Increase and/or processing by card
+ // The Card Profile is awaiting review from Acme and/or processing by card
// networks.
CardProfileStatusPending CardProfileStatus = "pending"
// There is an issue with the Card Profile preventing it from use.
@@ -373,9 +373,9 @@ const (
CardProfileListParamsPhysicalCardsStatusInNotEligible CardProfileListParamsPhysicalCardsStatusIn = "not_eligible"
// There is an issue with the Physical Card Profile preventing it from use.
CardProfileListParamsPhysicalCardsStatusInRejected CardProfileListParamsPhysicalCardsStatusIn = "rejected"
- // The Card Profile has not yet been processed by Increase.
+ // The Card Profile has not yet been processed by Acme.
CardProfileListParamsPhysicalCardsStatusInPendingCreating CardProfileListParamsPhysicalCardsStatusIn = "pending_creating"
- // The card profile is awaiting review by Increase.
+ // The card profile is awaiting review by Acme.
CardProfileListParamsPhysicalCardsStatusInPendingReviewing CardProfileListParamsPhysicalCardsStatusIn = "pending_reviewing"
// The card profile is awaiting submission to the fulfillment provider.
CardProfileListParamsPhysicalCardsStatusInPendingSubmitting CardProfileListParamsPhysicalCardsStatusIn = "pending_submitting"
@@ -403,7 +403,7 @@ func (r CardProfileListParamsStatus) URLQuery() (v url.Values) {
type CardProfileListParamsStatusIn string
const (
- // The Card Profile is awaiting review from Increase and/or processing by card
+ // The Card Profile is awaiting review from Acme and/or processing by card
// networks.
CardProfileListParamsStatusInPending CardProfileListParamsStatusIn = "pending"
// There is an issue with the Card Profile preventing it from use.
diff --git a/cardprofile_test.go b/cardprofile_test.go
index 1867a04b..a61b2955 100644
--- a/cardprofile_test.go
+++ b/cardprofile_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestCardProfileNewWithOptionalParams(t *testing.T) {
@@ -21,34 +21,34 @@ func TestCardProfileNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.CardProfiles.New(context.TODO(), increase.CardProfileNewParams{
- Description: increase.F("My Card Profile"),
- DigitalWallets: increase.F(increase.CardProfileNewParamsDigitalWallets{
- TextColor: increase.F(increase.CardProfileNewParamsDigitalWalletsTextColor{
- Red: increase.F(int64(26)),
- Green: increase.F(int64(43)),
- Blue: increase.F(int64(59)),
+ _, err := client.CardProfiles.New(context.TODO(), acme.CardProfileNewParams{
+ Description: acme.F("My Card Profile"),
+ DigitalWallets: acme.F(acme.CardProfileNewParamsDigitalWallets{
+ TextColor: acme.F(acme.CardProfileNewParamsDigitalWalletsTextColor{
+ Red: acme.F(int64(26)),
+ Green: acme.F(int64(43)),
+ Blue: acme.F(int64(59)),
}),
- IssuerName: increase.F("MyBank"),
- CardDescription: increase.F("MyBank Signature Card"),
- ContactWebsite: increase.F("https://example.com"),
- ContactEmail: increase.F("user@example.com"),
- ContactPhone: increase.F("+18885551212"),
- BackgroundImageFileID: increase.F("file_1ai913suu1zfn1pdetru"),
- AppIconFileID: increase.F("file_8zxqkwlh43wo144u8yec"),
+ IssuerName: acme.F("MyBank"),
+ CardDescription: acme.F("MyBank Signature Card"),
+ ContactWebsite: acme.F("https://example.com"),
+ ContactEmail: acme.F("user@example.com"),
+ ContactPhone: acme.F("+18885551212"),
+ BackgroundImageFileID: acme.F("file_1ai913suu1zfn1pdetru"),
+ AppIconFileID: acme.F("file_8zxqkwlh43wo144u8yec"),
}),
- PhysicalCards: increase.F(increase.CardProfileNewParamsPhysicalCards{
- ContactPhone: increase.F("x"),
- FrontImageFileID: increase.F("string"),
- CarrierImageFileID: increase.F("string"),
+ PhysicalCards: acme.F(acme.CardProfileNewParamsPhysicalCards{
+ ContactPhone: acme.F("x"),
+ FrontImageFileID: acme.F("string"),
+ CarrierImageFileID: acme.F("string"),
}),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -64,13 +64,13 @@ func TestCardProfileGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.CardProfiles.Get(context.TODO(), "card_profile_cox5y73lob2eqly18piy")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -86,22 +86,22 @@ func TestCardProfileListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.CardProfiles.List(context.TODO(), increase.CardProfileListParams{
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- PhysicalCardsStatus: increase.F(increase.CardProfileListParamsPhysicalCardsStatus{
- In: increase.F([]increase.CardProfileListParamsPhysicalCardsStatusIn{increase.CardProfileListParamsPhysicalCardsStatusInNotEligible, increase.CardProfileListParamsPhysicalCardsStatusInRejected, increase.CardProfileListParamsPhysicalCardsStatusInPendingCreating}),
+ _, err := client.CardProfiles.List(context.TODO(), acme.CardProfileListParams{
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ PhysicalCardsStatus: acme.F(acme.CardProfileListParamsPhysicalCardsStatus{
+ In: acme.F([]acme.CardProfileListParamsPhysicalCardsStatusIn{acme.CardProfileListParamsPhysicalCardsStatusInNotEligible, acme.CardProfileListParamsPhysicalCardsStatusInRejected, acme.CardProfileListParamsPhysicalCardsStatusInPendingCreating}),
}),
- Status: increase.F(increase.CardProfileListParamsStatus{
- In: increase.F([]increase.CardProfileListParamsStatusIn{increase.CardProfileListParamsStatusInPending, increase.CardProfileListParamsStatusInRejected, increase.CardProfileListParamsStatusInActive}),
+ Status: acme.F(acme.CardProfileListParamsStatus{
+ In: acme.F([]acme.CardProfileListParamsStatusIn{acme.CardProfileListParamsStatusInPending, acme.CardProfileListParamsStatusInRejected, acme.CardProfileListParamsStatusInActive}),
}),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -117,13 +117,13 @@ func TestCardProfileArchive(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.CardProfiles.Archive(context.TODO(), "card_profile_cox5y73lob2eqly18piy")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/cardpurchasesupplement.go b/cardpurchasesupplement.go
index 17d6af0c..478f8209 100644
--- a/cardpurchasesupplement.go
+++ b/cardpurchasesupplement.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// CardPurchaseSupplementService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewCardPurchaseSupplementService]
// method instead.
diff --git a/cardpurchasesupplement_test.go b/cardpurchasesupplement_test.go
index 79f54594..5ad2e4af 100644
--- a/cardpurchasesupplement_test.go
+++ b/cardpurchasesupplement_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestCardPurchaseSupplementGet(t *testing.T) {
@@ -22,13 +22,13 @@ func TestCardPurchaseSupplementGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.CardPurchaseSupplements.Get(context.TODO(), "card_purchase_supplement_ijuc45iym4jchnh2sfk3")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -44,23 +44,23 @@ func TestCardPurchaseSupplementListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.CardPurchaseSupplements.List(context.TODO(), increase.CardPurchaseSupplementListParams{
- CardPaymentID: increase.F("string"),
- CreatedAt: increase.F(increase.CardPurchaseSupplementListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.CardPurchaseSupplements.List(context.TODO(), acme.CardPurchaseSupplementListParams{
+ CardPaymentID: acme.F("string"),
+ CreatedAt: acme.F(acme.CardPurchaseSupplementListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/checkdeposit.go b/checkdeposit.go
index cc1cd86b..b13dfb72 100644
--- a/checkdeposit.go
+++ b/checkdeposit.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// CheckDepositService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewCheckDepositService] method
// instead.
@@ -90,10 +90,10 @@ type CheckDeposit struct {
CreatedAt time.Time `json:"created_at,required" format:"date-time"`
// The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the deposit.
Currency CheckDepositCurrency `json:"currency,required"`
- // If your deposit is successfully parsed and accepted by Increase, this will
+ // If your deposit is successfully parsed and accepted by Acme, this will
// contain details of the parsed check.
DepositAcceptance CheckDepositDepositAcceptance `json:"deposit_acceptance,required,nullable"`
- // If your deposit is rejected by Increase, this will contain details as to why it
+ // If your deposit is rejected by Acme, this will contain details as to why it
// was rejected.
DepositRejection CheckDepositDepositRejection `json:"deposit_rejection,required,nullable"`
// If your deposit is returned, this will contain details as to why it was
@@ -152,7 +152,7 @@ const (
CheckDepositCurrencyUsd CheckDepositCurrency = "USD"
)
-// If your deposit is successfully parsed and accepted by Increase, this will
+// If your deposit is successfully parsed and accepted by Acme, this will
// contain details of the parsed check.
type CheckDepositDepositAcceptance struct {
// The account number printed on the check.
@@ -213,7 +213,7 @@ const (
CheckDepositDepositAcceptanceCurrencyUsd CheckDepositDepositAcceptanceCurrency = "USD"
)
-// If your deposit is rejected by Increase, this will contain details as to why it
+// If your deposit is rejected by Acme, this will contain details as to why it
// was rejected.
type CheckDepositDepositRejection struct {
// The rejected amount in the minor unit of check's currency. For dollars, for
diff --git a/checkdeposit_test.go b/checkdeposit_test.go
index 078f6a3e..fe32f803 100644
--- a/checkdeposit_test.go
+++ b/checkdeposit_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestCheckDepositNew(t *testing.T) {
@@ -22,19 +22,19 @@ func TestCheckDepositNew(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.CheckDeposits.New(context.TODO(), increase.CheckDepositNewParams{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
- Amount: increase.F(int64(1000)),
- BackImageFileID: increase.F("file_26khfk98mzfz90a11oqx"),
- Currency: increase.F("USD"),
- FrontImageFileID: increase.F("file_hkv175ovmc2tb2v2zbrm"),
+ _, err := client.CheckDeposits.New(context.TODO(), acme.CheckDepositNewParams{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
+ Amount: acme.F(int64(1000)),
+ BackImageFileID: acme.F("file_26khfk98mzfz90a11oqx"),
+ Currency: acme.F("USD"),
+ FrontImageFileID: acme.F("file_hkv175ovmc2tb2v2zbrm"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -50,13 +50,13 @@ func TestCheckDepositGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.CheckDeposits.Get(context.TODO(), "check_deposit_instruction_q2shv7x9qhevfm71kor8")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -72,23 +72,23 @@ func TestCheckDepositListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.CheckDeposits.List(context.TODO(), increase.CheckDepositListParams{
- AccountID: increase.F("string"),
- CreatedAt: increase.F(increase.CheckDepositListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.CheckDeposits.List(context.TODO(), acme.CheckDepositListParams{
+ AccountID: acme.F("string"),
+ CreatedAt: acme.F(acme.CheckDepositListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/checktransfer.go b/checktransfer.go
index 972eb721..23f8ae2a 100644
--- a/checktransfer.go
+++ b/checktransfer.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// CheckTransferService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewCheckTransferService] method
// instead.
@@ -98,7 +98,7 @@ func (r *CheckTransferService) StopPayment(ctx context.Context, checkTransferID
return
}
-// Check Transfers move funds from your Increase account by mailing a physical
+// Check Transfers move funds from your Acme account by mailing a physical
// check.
type CheckTransfer struct {
// The Check transfer's identifier.
@@ -125,17 +125,17 @@ type CheckTransfer struct {
Currency CheckTransferCurrency `json:"currency,required"`
// After a check transfer is deposited, this will contain supplemental details.
Deposit CheckTransferDeposit `json:"deposit,required,nullable"`
- // Whether Increase will print and mail the check or if you will do it yourself.
+ // Whether Acme will print and mail the check or if you will do it yourself.
FulfillmentMethod CheckTransferFulfillmentMethod `json:"fulfillment_method,required"`
- // If the check has been mailed by Increase, this will contain details of the
+ // If the check has been mailed by Acme, this will contain details of the
// shipment.
Mailing CheckTransferMailing `json:"mailing,required,nullable"`
// The ID for the pending transaction representing the transfer. A pending
// transaction is created when the transfer
- // [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals)
+ // [requires approval](https://acme.com/documentation/transfer-approvals#transfer-approvals)
// by someone else in your organization.
PendingTransactionID string `json:"pending_transaction_id,required,nullable"`
- // Details relating to the physical check that Increase will print and mail. Will
+ // Details relating to the physical check that Acme will print and mail. Will
// be present if and only if `fulfillment_method` is equal to `physical_check`.
PhysicalCheck CheckTransferPhysicalCheck `json:"physical_check,required,nullable"`
// The routing number printed on the check.
@@ -308,19 +308,19 @@ const (
CheckTransferDepositTypeCheckTransferDeposit CheckTransferDepositType = "check_transfer_deposit"
)
-// Whether Increase will print and mail the check or if you will do it yourself.
+// Whether Acme will print and mail the check or if you will do it yourself.
type CheckTransferFulfillmentMethod string
const (
- // Increase will print and mail a physical check.
+ // Acme will print and mail a physical check.
CheckTransferFulfillmentMethodPhysicalCheck CheckTransferFulfillmentMethod = "physical_check"
- // Increase will not print a check; you are responsible for printing and mailing a
+ // Acme will not print a check; you are responsible for printing and mailing a
// check with the provided account number, routing number, check number, and
// amount.
CheckTransferFulfillmentMethodThirdParty CheckTransferFulfillmentMethod = "third_party"
)
-// If the check has been mailed by Increase, this will contain details of the
+// If the check has been mailed by Acme, this will contain details of the
// shipment.
type CheckTransferMailing struct {
// The ID of the file corresponding to an image of the check that was mailed, if
@@ -345,10 +345,10 @@ func (r *CheckTransferMailing) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
-// Details relating to the physical check that Increase will print and mail. Will
+// Details relating to the physical check that Acme will print and mail. Will
// be present if and only if `fulfillment_method` is equal to `physical_check`.
type CheckTransferPhysicalCheck struct {
- // Details for where Increase will mail the check.
+ // Details for where Acme will mail the check.
MailingAddress CheckTransferPhysicalCheckMailingAddress `json:"mailing_address,required"`
// The descriptor that will be printed on the memo field on the check.
Memo string `json:"memo,required,nullable"`
@@ -377,7 +377,7 @@ func (r *CheckTransferPhysicalCheck) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
-// Details for where Increase will mail the check.
+// Details for where Acme will mail the check.
type CheckTransferPhysicalCheckMailingAddress struct {
// The city of the check's destination.
City string `json:"city,required,nullable"`
@@ -467,7 +467,7 @@ const (
CheckTransferStatusStopped CheckTransferStatus = "stopped"
// The transfer has been rejected.
CheckTransferStatusRejected CheckTransferStatus = "rejected"
- // The transfer requires attention from an Increase operator.
+ // The transfer requires attention from an Acme operator.
CheckTransferStatusRequiresAttention CheckTransferStatus = "requires_attention"
)
@@ -507,9 +507,9 @@ type CheckTransferStopPaymentRequestReason string
const (
// The check could not be delivered.
CheckTransferStopPaymentRequestReasonMailDeliveryFailed CheckTransferStopPaymentRequestReason = "mail_delivery_failed"
- // The check was canceled by an Increase operator who will provide details
+ // The check was canceled by an Acme operator who will provide details
// out-of-band.
- CheckTransferStopPaymentRequestReasonRejectedByIncrease CheckTransferStopPaymentRequestReason = "rejected_by_increase"
+ CheckTransferStopPaymentRequestReasonRejectedByAcme CheckTransferStopPaymentRequestReason = "rejected_by_acme"
// The check was stopped for another reason.
CheckTransferStopPaymentRequestReasonUnknown CheckTransferStopPaymentRequestReason = "unknown"
)
@@ -554,9 +554,9 @@ type CheckTransferNewParams struct {
AccountID param.Field[string] `json:"account_id,required"`
// The transfer amount in cents.
Amount param.Field[int64] `json:"amount,required"`
- // Whether Increase will print and mail the check or if you will do it yourself.
+ // Whether Acme will print and mail the check or if you will do it yourself.
FulfillmentMethod param.Field[CheckTransferNewParamsFulfillmentMethod] `json:"fulfillment_method"`
- // Details relating to the physical check that Increase will print and mail. This
+ // Details relating to the physical check that Acme will print and mail. This
// is required if `fulfillment_method` is equal to `physical_check`. It must not be
// included if any other `fulfillment_method` is provided.
PhysicalCheck param.Field[CheckTransferNewParamsPhysicalCheck] `json:"physical_check"`
@@ -575,23 +575,23 @@ func (r CheckTransferNewParams) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
-// Whether Increase will print and mail the check or if you will do it yourself.
+// Whether Acme will print and mail the check or if you will do it yourself.
type CheckTransferNewParamsFulfillmentMethod string
const (
- // Increase will print and mail a physical check.
+ // Acme will print and mail a physical check.
CheckTransferNewParamsFulfillmentMethodPhysicalCheck CheckTransferNewParamsFulfillmentMethod = "physical_check"
- // Increase will not print a check; you are responsible for printing and mailing a
+ // Acme will not print a check; you are responsible for printing and mailing a
// check with the provided account number, routing number, check number, and
// amount.
CheckTransferNewParamsFulfillmentMethodThirdParty CheckTransferNewParamsFulfillmentMethod = "third_party"
)
-// Details relating to the physical check that Increase will print and mail. This
+// Details relating to the physical check that Acme will print and mail. This
// is required if `fulfillment_method` is equal to `physical_check`. It must not be
// included if any other `fulfillment_method` is provided.
type CheckTransferNewParamsPhysicalCheck struct {
- // Details for where Increase will mail the check.
+ // Details for where Acme will mail the check.
MailingAddress param.Field[CheckTransferNewParamsPhysicalCheckMailingAddress] `json:"mailing_address,required"`
// The descriptor that will be printed on the memo field on the check.
Memo param.Field[string] `json:"memo,required"`
@@ -608,7 +608,7 @@ func (r CheckTransferNewParamsPhysicalCheck) MarshalJSON() (data []byte, err err
return apijson.MarshalRoot(r)
}
-// Details for where Increase will mail the check.
+// Details for where Acme will mail the check.
type CheckTransferNewParamsPhysicalCheckMailingAddress struct {
// The city component of the check's destination address.
City param.Field[string] `json:"city,required"`
diff --git a/checktransfer_test.go b/checktransfer_test.go
index 3a2d6878..306a8b00 100644
--- a/checktransfer_test.go
+++ b/checktransfer_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestCheckTransferNewWithOptionalParams(t *testing.T) {
@@ -22,41 +22,41 @@ func TestCheckTransferNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.CheckTransfers.New(context.TODO(), increase.CheckTransferNewParams{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
- Amount: increase.F(int64(1000)),
- FulfillmentMethod: increase.F(increase.CheckTransferNewParamsFulfillmentMethodPhysicalCheck),
- PhysicalCheck: increase.F(increase.CheckTransferNewParamsPhysicalCheck{
- Memo: increase.F("Check payment"),
- Note: increase.F("x"),
- RecipientName: increase.F("Ian Crease"),
- MailingAddress: increase.F(increase.CheckTransferNewParamsPhysicalCheckMailingAddress{
- Name: increase.F("Ian Crease"),
- Line1: increase.F("33 Liberty Street"),
- Line2: increase.F("x"),
- City: increase.F("New York"),
- State: increase.F("NY"),
- PostalCode: increase.F("10045"),
+ _, err := client.CheckTransfers.New(context.TODO(), acme.CheckTransferNewParams{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
+ Amount: acme.F(int64(1000)),
+ FulfillmentMethod: acme.F(acme.CheckTransferNewParamsFulfillmentMethodPhysicalCheck),
+ PhysicalCheck: acme.F(acme.CheckTransferNewParamsPhysicalCheck{
+ Memo: acme.F("Check payment"),
+ Note: acme.F("x"),
+ RecipientName: acme.F("Ian Crease"),
+ MailingAddress: acme.F(acme.CheckTransferNewParamsPhysicalCheckMailingAddress{
+ Name: acme.F("Ian Crease"),
+ Line1: acme.F("33 Liberty Street"),
+ Line2: acme.F("x"),
+ City: acme.F("New York"),
+ State: acme.F("NY"),
+ PostalCode: acme.F("10045"),
}),
- ReturnAddress: increase.F(increase.CheckTransferNewParamsPhysicalCheckReturnAddress{
- Name: increase.F("Ian Crease"),
- Line1: increase.F("33 Liberty Street"),
- Line2: increase.F("x"),
- City: increase.F("New York"),
- State: increase.F("NY"),
- PostalCode: increase.F("10045"),
+ ReturnAddress: acme.F(acme.CheckTransferNewParamsPhysicalCheckReturnAddress{
+ Name: acme.F("Ian Crease"),
+ Line1: acme.F("33 Liberty Street"),
+ Line2: acme.F("x"),
+ City: acme.F("New York"),
+ State: acme.F("NY"),
+ PostalCode: acme.F("10045"),
}),
}),
- RequireApproval: increase.F(true),
- SourceAccountNumberID: increase.F("account_number_v18nkfqm6afpsrvy82b2"),
- UniqueIdentifier: increase.F("x"),
+ RequireApproval: acme.F(true),
+ SourceAccountNumberID: acme.F("account_number_v18nkfqm6afpsrvy82b2"),
+ UniqueIdentifier: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -72,13 +72,13 @@ func TestCheckTransferGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.CheckTransfers.Get(context.TODO(), "check_transfer_30b43acfu9vw8fyc4f5")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -94,24 +94,24 @@ func TestCheckTransferListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.CheckTransfers.List(context.TODO(), increase.CheckTransferListParams{
- AccountID: increase.F("string"),
- CreatedAt: increase.F(increase.CheckTransferListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.CheckTransfers.List(context.TODO(), acme.CheckTransferListParams{
+ AccountID: acme.F("string"),
+ CreatedAt: acme.F(acme.CheckTransferListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- UniqueIdentifier: increase.F("x"),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ UniqueIdentifier: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -127,13 +127,13 @@ func TestCheckTransferApprove(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.CheckTransfers.Approve(context.TODO(), "check_transfer_30b43acfu9vw8fyc4f5")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -149,13 +149,13 @@ func TestCheckTransferCancel(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.CheckTransfers.Cancel(context.TODO(), "check_transfer_30b43acfu9vw8fyc4f5")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -172,19 +172,19 @@ func TestCheckTransferStopPaymentWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.CheckTransfers.StopPayment(
context.TODO(),
"check_transfer_30b43acfu9vw8fyc4f5",
- increase.CheckTransferStopPaymentParams{
- Reason: increase.F(increase.CheckTransferStopPaymentParamsReasonMailDeliveryFailed),
+ acme.CheckTransferStopPaymentParams{
+ Reason: acme.F(acme.CheckTransferStopPaymentParamsReasonMailDeliveryFailed),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/client.go b/client.go
index b419d749..d713954c 100644
--- a/client.go
+++ b/client.go
@@ -1,15 +1,15 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"os"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/option"
)
// Client creates a struct with services and top level methods that help with
-// interacting with the increase API. You should not instantiate this client
+// interacting with the acme API. You should not instantiate this client
// directly, and instead use the [NewClient] method instead.
type Client struct {
Options []option.RequestOption
@@ -55,12 +55,12 @@ type Client struct {
}
// NewClient generates a new client with the default option read from the
-// environment (INCREASE_API_KEY). The option passed in as arguments are applied
+// environment (ACME_API_KEY). The option passed in as arguments are applied
// after these default arguments, and all option will be passed down to the
// services and requests that this client makes.
func NewClient(opts ...option.RequestOption) (r *Client) {
defaults := []option.RequestOption{option.WithEnvironmentProduction()}
- if o, ok := os.LookupEnv("INCREASE_API_KEY"); ok {
+ if o, ok := os.LookupEnv("ACME_API_KEY"); ok {
defaults = append(defaults, option.WithAPIKey(o))
}
opts = append(defaults, opts...)
diff --git a/client_test.go b/client_test.go
index cc7f7db9..35d036a4 100644
--- a/client_test.go
+++ b/client_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -10,9 +10,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestContextCancel(t *testing.T) {
@@ -23,14 +23,14 @@ func TestContextCancel(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
cancelCtx, cancel := context.WithCancel(context.Background())
cancel()
- res, err := client.Accounts.New(cancelCtx, increase.AccountNewParams{
- Name: increase.F("My First Increase Account"),
+ res, err := client.Accounts.New(cancelCtx, acme.AccountNewParams{
+ Name: acme.F("My First Acme Account"),
})
if err == nil || res != nil {
t.Error("Expected there to be a cancel error and for the response to be nil")
@@ -53,7 +53,7 @@ func TestContextCancelDelay(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
option.WithHTTPClient(&http.Client{Transport: &neverTransport{}}),
@@ -63,8 +63,8 @@ func TestContextCancelDelay(t *testing.T) {
time.Sleep(time.Millisecond * time.Duration(2))
cancel()
}()
- res, err := client.Accounts.New(cancelCtx, increase.AccountNewParams{
- Name: increase.F("My First Increase Account"),
+ res, err := client.Accounts.New(cancelCtx, acme.AccountNewParams{
+ Name: acme.F("My First Acme Account"),
})
if err == nil || res != nil {
t.Error("expected there to be a cancel error and for the response to be nil")
@@ -88,13 +88,13 @@ func TestContextDeadline(t *testing.T) {
defer cancel()
go func() {
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
option.WithHTTPClient(&http.Client{Transport: &neverTransport{}}),
)
- res, err := client.Accounts.New(deadlineCtx, increase.AccountNewParams{
- Name: increase.F("My First Increase Account"),
+ res, err := client.Accounts.New(deadlineCtx, acme.AccountNewParams{
+ Name: acme.F("My First Acme Account"),
})
if err == nil || res != nil {
t.Error("expected there to be a deadline error and for the response to be nil")
diff --git a/declinedtransaction.go b/declinedtransaction.go
index ec8f6864..ddd3f283 100644
--- a/declinedtransaction.go
+++ b/declinedtransaction.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// DeclinedTransactionService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewDeclinedTransactionService]
// method instead.
@@ -263,7 +263,7 @@ const (
DeclinedTransactionSourceACHDeclineReasonACHRouteCanceled DeclinedTransactionSourceACHDeclineReason = "ach_route_canceled"
// The account number is disabled.
DeclinedTransactionSourceACHDeclineReasonACHRouteDisabled DeclinedTransactionSourceACHDeclineReason = "ach_route_disabled"
- // The transaction would cause an Increase limit to be exceeded.
+ // The transaction would cause an Acme limit to be exceeded.
DeclinedTransactionSourceACHDeclineReasonBreachesLimit DeclinedTransactionSourceACHDeclineReason = "breaches_limit"
// A credit was refused. This is a reasonable default reason for decline of
// credits.
@@ -285,7 +285,7 @@ const (
DeclinedTransactionSourceACHDeclineReasonNoACHRoute DeclinedTransactionSourceACHDeclineReason = "no_ach_route"
// The originating financial institution asked for this transfer to be returned.
DeclinedTransactionSourceACHDeclineReasonOriginatorRequest DeclinedTransactionSourceACHDeclineReason = "originator_request"
- // The transaction is not allowed per Increase's terms.
+ // The transaction is not allowed per Acme's terms.
DeclinedTransactionSourceACHDeclineReasonTransactionNotAllowed DeclinedTransactionSourceACHDeclineReason = "transaction_not_allowed"
// The user initiated the decline.
DeclinedTransactionSourceACHDeclineReasonUserInitiated DeclinedTransactionSourceACHDeclineReason = "user_initiated"
@@ -590,7 +590,7 @@ const (
DeclinedTransactionSourceCardDeclineReasonInsufficientFunds DeclinedTransactionSourceCardDeclineReason = "insufficient_funds"
// The given CVV2 did not match the card's value.
DeclinedTransactionSourceCardDeclineReasonCvv2Mismatch DeclinedTransactionSourceCardDeclineReason = "cvv2_mismatch"
- // The attempted card transaction is not allowed per Increase's terms.
+ // The attempted card transaction is not allowed per Acme's terms.
DeclinedTransactionSourceCardDeclineReasonTransactionNotAllowed DeclinedTransactionSourceCardDeclineReason = "transaction_not_allowed"
// The transaction was blocked by a Limit.
DeclinedTransactionSourceCardDeclineReasonBreachesLimit DeclinedTransactionSourceCardDeclineReason = "breaches_limit"
@@ -606,7 +606,7 @@ const (
// exist.
DeclinedTransactionSourceCardDeclineReasonMissingOriginalAuthorization DeclinedTransactionSourceCardDeclineReason = "missing_original_authorization"
// The transaction was suspected to be fraudulent. Please reach out to
- // support@increase.com for more information.
+ // support@acme.com for more information.
DeclinedTransactionSourceCardDeclineReasonSuspectedFraud DeclinedTransactionSourceCardDeclineReason = "suspected_fraud"
)
@@ -804,9 +804,9 @@ const (
// The amount the receiving bank is attempting to deposit does not match the amount
// on the check.
DeclinedTransactionSourceCheckDeclineReasonAmountMismatch DeclinedTransactionSourceCheckDeclineReason = "amount_mismatch"
- // The check attempting to be deposited does not belong to Increase.
+ // The check attempting to be deposited does not belong to Acme.
DeclinedTransactionSourceCheckDeclineReasonNotOurItem DeclinedTransactionSourceCheckDeclineReason = "not_our_item"
- // The account number on the check does not exist at Increase.
+ // The account number on the check does not exist at Acme.
DeclinedTransactionSourceCheckDeclineReasonNoAccountNumberFound DeclinedTransactionSourceCheckDeclineReason = "no_account_number_found"
)
@@ -977,7 +977,7 @@ type DeclinedTransactionSourceInternationalACHDecline struct {
ReceiverStateOrProvince string `json:"receiver_state_or_province,required,nullable"`
// A portion of the receiver address. This may be incomplete.
ReceiverStreetAddress string `json:"receiver_street_address,required"`
- // The name of the receiver of the transfer. This is not verified by Increase.
+ // The name of the receiver of the transfer. This is not verified by Acme.
ReceivingCompanyOrIndividualName string `json:"receiving_company_or_individual_name,required"`
// The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
// country code of the receiving bank country.
@@ -995,7 +995,7 @@ type DeclinedTransactionSourceInternationalACHDecline struct {
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
JSON declinedTransactionSourceInternationalACHDeclineJSON `json:"-"`
}
@@ -1166,7 +1166,7 @@ type DeclinedTransactionSourceWireDecline struct {
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the declined transaction.
+ // An Acme-constructed description of the declined transaction.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -1239,7 +1239,7 @@ const (
DeclinedTransactionSourceWireDeclineReasonGroupLocked DeclinedTransactionSourceWireDeclineReason = "group_locked"
// The beneficiary account number does not exist.
DeclinedTransactionSourceWireDeclineReasonNoAccountNumber DeclinedTransactionSourceWireDeclineReason = "no_account_number"
- // The transaction is not allowed per Increase's terms.
+ // The transaction is not allowed per Acme's terms.
DeclinedTransactionSourceWireDeclineReasonTransactionNotAllowed DeclinedTransactionSourceWireDeclineReason = "transaction_not_allowed"
)
diff --git a/declinedtransaction_test.go b/declinedtransaction_test.go
index 384484c8..827b2d88 100644
--- a/declinedtransaction_test.go
+++ b/declinedtransaction_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestDeclinedTransactionGet(t *testing.T) {
@@ -22,13 +22,13 @@ func TestDeclinedTransactionGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.DeclinedTransactions.Get(context.TODO(), "declined_transaction_17jbn0yyhvkt4v4ooym8")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -44,27 +44,27 @@ func TestDeclinedTransactionListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.DeclinedTransactions.List(context.TODO(), increase.DeclinedTransactionListParams{
- AccountID: increase.F("string"),
- Category: increase.F(increase.DeclinedTransactionListParamsCategory{
- In: increase.F([]increase.DeclinedTransactionListParamsCategoryIn{increase.DeclinedTransactionListParamsCategoryInACHDecline, increase.DeclinedTransactionListParamsCategoryInCardDecline, increase.DeclinedTransactionListParamsCategoryInCheckDecline}),
+ _, err := client.DeclinedTransactions.List(context.TODO(), acme.DeclinedTransactionListParams{
+ AccountID: acme.F("string"),
+ Category: acme.F(acme.DeclinedTransactionListParamsCategory{
+ In: acme.F([]acme.DeclinedTransactionListParamsCategoryIn{acme.DeclinedTransactionListParamsCategoryInACHDecline, acme.DeclinedTransactionListParamsCategoryInCardDecline, acme.DeclinedTransactionListParamsCategoryInCheckDecline}),
}),
- CreatedAt: increase.F(increase.DeclinedTransactionListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ CreatedAt: acme.F(acme.DeclinedTransactionListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- RouteID: increase.F("string"),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ RouteID: acme.F("string"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/digitalwallettoken.go b/digitalwallettoken.go
index 2bfa9de4..b02a8593 100644
--- a/digitalwallettoken.go
+++ b/digitalwallettoken.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// DigitalWalletTokenService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewDigitalWalletTokenService] method
// instead.
diff --git a/digitalwallettoken_test.go b/digitalwallettoken_test.go
index 221580a4..ad8998e6 100644
--- a/digitalwallettoken_test.go
+++ b/digitalwallettoken_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestDigitalWalletTokenGet(t *testing.T) {
@@ -22,13 +22,13 @@ func TestDigitalWalletTokenGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.DigitalWalletTokens.Get(context.TODO(), "digital_wallet_token_izi62go3h51p369jrie0")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -44,23 +44,23 @@ func TestDigitalWalletTokenListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.DigitalWalletTokens.List(context.TODO(), increase.DigitalWalletTokenListParams{
- CardID: increase.F("string"),
- CreatedAt: increase.F(increase.DigitalWalletTokenListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.DigitalWalletTokens.List(context.TODO(), acme.DigitalWalletTokenListParams{
+ CardID: acme.F("string"),
+ CreatedAt: acme.F(acme.DigitalWalletTokenListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/document.go b/document.go
index d99b3d04..915dcf3d 100644
--- a/document.go
+++ b/document.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// DocumentService contains methods and other services that help with interacting
-// with the increase API. Note, unlike clients, this service does not read
+// with the acme API. Note, unlike clients, this service does not read
// variables from the environment automatically. You should not instantiate this
// service directly, and instead use the [NewDocumentService] method instead.
type DocumentService struct {
@@ -65,7 +65,7 @@ func (r *DocumentService) ListAutoPaging(ctx context.Context, query DocumentList
return shared.NewPageAutoPager(r.List(ctx, query, opts...))
}
-// Increase generates certain documents / forms automatically for your application;
+// Acme generates certain documents / forms automatically for your application;
// they can be listed here. Currently the only supported document type is IRS Form
// 1099-INT.
type Document struct {
diff --git a/document_test.go b/document_test.go
index c35cf9ff..4c0cf851 100644
--- a/document_test.go
+++ b/document_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestDocumentGet(t *testing.T) {
@@ -22,13 +22,13 @@ func TestDocumentGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Documents.Get(context.TODO(), "document_qjtqc6s4c14ve2q89izm")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -44,26 +44,26 @@ func TestDocumentListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Documents.List(context.TODO(), increase.DocumentListParams{
- Category: increase.F(increase.DocumentListParamsCategory{
- In: increase.F([]increase.DocumentListParamsCategoryIn{increase.DocumentListParamsCategoryInForm1099Int, increase.DocumentListParamsCategoryInProofOfAuthorization, increase.DocumentListParamsCategoryInCompanyInformation}),
+ _, err := client.Documents.List(context.TODO(), acme.DocumentListParams{
+ Category: acme.F(acme.DocumentListParamsCategory{
+ In: acme.F([]acme.DocumentListParamsCategoryIn{acme.DocumentListParamsCategoryInForm1099Int, acme.DocumentListParamsCategoryInProofOfAuthorization, acme.DocumentListParamsCategoryInCompanyInformation}),
}),
- CreatedAt: increase.F(increase.DocumentListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ CreatedAt: acme.F(acme.DocumentListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- EntityID: increase.F("string"),
- Limit: increase.F(int64(1)),
+ Cursor: acme.F("string"),
+ EntityID: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/entity.go b/entity.go
index d85b20e8..74f21e12 100644
--- a/entity.go
+++ b/entity.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// EntityService contains methods and other services that help with interacting
-// with the increase API. Note, unlike clients, this service does not read
+// with the acme API. Note, unlike clients, this service does not read
// variables from the environment automatically. You should not instantiate this
// service directly, and instead use the [NewEntityService] method instead.
type EntityService struct {
diff --git a/entity_test.go b/entity_test.go
index aacb5aa7..e8ec97b1 100644
--- a/entity_test.go
+++ b/entity_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestEntityNewWithOptionalParams(t *testing.T) {
@@ -22,365 +22,365 @@ func TestEntityNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Entities.New(context.TODO(), increase.EntityNewParams{
- Structure: increase.F(increase.EntityNewParamsStructureCorporation),
- Corporation: increase.F(increase.EntityNewParamsCorporation{
- Name: increase.F("National Phonograph Company"),
- Website: increase.F("https://example.com"),
- TaxIdentifier: increase.F("602214076"),
- IncorporationState: increase.F("NY"),
- Address: increase.F(increase.EntityNewParamsCorporationAddress{
- Line1: increase.F("33 Liberty Street"),
- Line2: increase.F("x"),
- City: increase.F("New York"),
- State: increase.F("NY"),
- Zip: increase.F("10045"),
+ _, err := client.Entities.New(context.TODO(), acme.EntityNewParams{
+ Structure: acme.F(acme.EntityNewParamsStructureCorporation),
+ Corporation: acme.F(acme.EntityNewParamsCorporation{
+ Name: acme.F("National Phonograph Company"),
+ Website: acme.F("https://example.com"),
+ TaxIdentifier: acme.F("602214076"),
+ IncorporationState: acme.F("NY"),
+ Address: acme.F(acme.EntityNewParamsCorporationAddress{
+ Line1: acme.F("33 Liberty Street"),
+ Line2: acme.F("x"),
+ City: acme.F("New York"),
+ State: acme.F("NY"),
+ Zip: acme.F("10045"),
}),
- BeneficialOwners: increase.F([]increase.EntityNewParamsCorporationBeneficialOwner{{
- Individual: increase.F(increase.EntityNewParamsCorporationBeneficialOwnersIndividual{
- Name: increase.F("Ian Crease"),
- DateOfBirth: increase.F(time.Now()),
- Address: increase.F(increase.EntityNewParamsCorporationBeneficialOwnersIndividualAddress{
- Line1: increase.F("33 Liberty Street"),
- Line2: increase.F("x"),
- City: increase.F("New York"),
- State: increase.F("NY"),
- Zip: increase.F("10045"),
+ BeneficialOwners: acme.F([]acme.EntityNewParamsCorporationBeneficialOwner{{
+ Individual: acme.F(acme.EntityNewParamsCorporationBeneficialOwnersIndividual{
+ Name: acme.F("Ian Crease"),
+ DateOfBirth: acme.F(time.Now()),
+ Address: acme.F(acme.EntityNewParamsCorporationBeneficialOwnersIndividualAddress{
+ Line1: acme.F("33 Liberty Street"),
+ Line2: acme.F("x"),
+ City: acme.F("New York"),
+ State: acme.F("NY"),
+ Zip: acme.F("10045"),
}),
- ConfirmedNoUsTaxID: increase.F(true),
- Identification: increase.F(increase.EntityNewParamsCorporationBeneficialOwnersIndividualIdentification{
- Method: increase.F(increase.EntityNewParamsCorporationBeneficialOwnersIndividualIdentificationMethodSocialSecurityNumber),
- Number: increase.F("078051120"),
- Passport: increase.F(increase.EntityNewParamsCorporationBeneficialOwnersIndividualIdentificationPassport{
- FileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- Country: increase.F("x"),
+ ConfirmedNoUsTaxID: acme.F(true),
+ Identification: acme.F(acme.EntityNewParamsCorporationBeneficialOwnersIndividualIdentification{
+ Method: acme.F(acme.EntityNewParamsCorporationBeneficialOwnersIndividualIdentificationMethodSocialSecurityNumber),
+ Number: acme.F("078051120"),
+ Passport: acme.F(acme.EntityNewParamsCorporationBeneficialOwnersIndividualIdentificationPassport{
+ FileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ Country: acme.F("x"),
}),
- DriversLicense: increase.F(increase.EntityNewParamsCorporationBeneficialOwnersIndividualIdentificationDriversLicense{
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- State: increase.F("x"),
+ DriversLicense: acme.F(acme.EntityNewParamsCorporationBeneficialOwnersIndividualIdentificationDriversLicense{
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ State: acme.F("x"),
}),
- Other: increase.F(increase.EntityNewParamsCorporationBeneficialOwnersIndividualIdentificationOther{
- Country: increase.F("x"),
- Description: increase.F("x"),
- ExpirationDate: increase.F(time.Now()),
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
+ Other: acme.F(acme.EntityNewParamsCorporationBeneficialOwnersIndividualIdentificationOther{
+ Country: acme.F("x"),
+ Description: acme.F("x"),
+ ExpirationDate: acme.F(time.Now()),
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
}),
}),
}),
- CompanyTitle: increase.F("CEO"),
- Prongs: increase.F([]increase.EntityNewParamsCorporationBeneficialOwnersProng{increase.EntityNewParamsCorporationBeneficialOwnersProngControl}),
+ CompanyTitle: acme.F("CEO"),
+ Prongs: acme.F([]acme.EntityNewParamsCorporationBeneficialOwnersProng{acme.EntityNewParamsCorporationBeneficialOwnersProngControl}),
}}),
}),
- Description: increase.F("x"),
- Joint: increase.F(increase.EntityNewParamsJoint{
- Name: increase.F("x"),
- Individuals: increase.F([]increase.EntityNewParamsJointIndividual{{
- Name: increase.F("x"),
- DateOfBirth: increase.F(time.Now()),
- Address: increase.F(increase.EntityNewParamsJointIndividualsAddress{
- Line1: increase.F("x"),
- Line2: increase.F("x"),
- City: increase.F("x"),
- State: increase.F("x"),
- Zip: increase.F("x"),
+ Description: acme.F("x"),
+ Joint: acme.F(acme.EntityNewParamsJoint{
+ Name: acme.F("x"),
+ Individuals: acme.F([]acme.EntityNewParamsJointIndividual{{
+ Name: acme.F("x"),
+ DateOfBirth: acme.F(time.Now()),
+ Address: acme.F(acme.EntityNewParamsJointIndividualsAddress{
+ Line1: acme.F("x"),
+ Line2: acme.F("x"),
+ City: acme.F("x"),
+ State: acme.F("x"),
+ Zip: acme.F("x"),
}),
- ConfirmedNoUsTaxID: increase.F(true),
- Identification: increase.F(increase.EntityNewParamsJointIndividualsIdentification{
- Method: increase.F(increase.EntityNewParamsJointIndividualsIdentificationMethodSocialSecurityNumber),
- Number: increase.F("xxxx"),
- Passport: increase.F(increase.EntityNewParamsJointIndividualsIdentificationPassport{
- FileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- Country: increase.F("x"),
+ ConfirmedNoUsTaxID: acme.F(true),
+ Identification: acme.F(acme.EntityNewParamsJointIndividualsIdentification{
+ Method: acme.F(acme.EntityNewParamsJointIndividualsIdentificationMethodSocialSecurityNumber),
+ Number: acme.F("xxxx"),
+ Passport: acme.F(acme.EntityNewParamsJointIndividualsIdentificationPassport{
+ FileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ Country: acme.F("x"),
}),
- DriversLicense: increase.F(increase.EntityNewParamsJointIndividualsIdentificationDriversLicense{
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- State: increase.F("x"),
+ DriversLicense: acme.F(acme.EntityNewParamsJointIndividualsIdentificationDriversLicense{
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ State: acme.F("x"),
}),
- Other: increase.F(increase.EntityNewParamsJointIndividualsIdentificationOther{
- Country: increase.F("x"),
- Description: increase.F("x"),
- ExpirationDate: increase.F(time.Now()),
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
+ Other: acme.F(acme.EntityNewParamsJointIndividualsIdentificationOther{
+ Country: acme.F("x"),
+ Description: acme.F("x"),
+ ExpirationDate: acme.F(time.Now()),
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
}),
}),
}, {
- Name: increase.F("x"),
- DateOfBirth: increase.F(time.Now()),
- Address: increase.F(increase.EntityNewParamsJointIndividualsAddress{
- Line1: increase.F("x"),
- Line2: increase.F("x"),
- City: increase.F("x"),
- State: increase.F("x"),
- Zip: increase.F("x"),
+ Name: acme.F("x"),
+ DateOfBirth: acme.F(time.Now()),
+ Address: acme.F(acme.EntityNewParamsJointIndividualsAddress{
+ Line1: acme.F("x"),
+ Line2: acme.F("x"),
+ City: acme.F("x"),
+ State: acme.F("x"),
+ Zip: acme.F("x"),
}),
- ConfirmedNoUsTaxID: increase.F(true),
- Identification: increase.F(increase.EntityNewParamsJointIndividualsIdentification{
- Method: increase.F(increase.EntityNewParamsJointIndividualsIdentificationMethodSocialSecurityNumber),
- Number: increase.F("xxxx"),
- Passport: increase.F(increase.EntityNewParamsJointIndividualsIdentificationPassport{
- FileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- Country: increase.F("x"),
+ ConfirmedNoUsTaxID: acme.F(true),
+ Identification: acme.F(acme.EntityNewParamsJointIndividualsIdentification{
+ Method: acme.F(acme.EntityNewParamsJointIndividualsIdentificationMethodSocialSecurityNumber),
+ Number: acme.F("xxxx"),
+ Passport: acme.F(acme.EntityNewParamsJointIndividualsIdentificationPassport{
+ FileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ Country: acme.F("x"),
}),
- DriversLicense: increase.F(increase.EntityNewParamsJointIndividualsIdentificationDriversLicense{
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- State: increase.F("x"),
+ DriversLicense: acme.F(acme.EntityNewParamsJointIndividualsIdentificationDriversLicense{
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ State: acme.F("x"),
}),
- Other: increase.F(increase.EntityNewParamsJointIndividualsIdentificationOther{
- Country: increase.F("x"),
- Description: increase.F("x"),
- ExpirationDate: increase.F(time.Now()),
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
+ Other: acme.F(acme.EntityNewParamsJointIndividualsIdentificationOther{
+ Country: acme.F("x"),
+ Description: acme.F("x"),
+ ExpirationDate: acme.F(time.Now()),
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
}),
}),
}, {
- Name: increase.F("x"),
- DateOfBirth: increase.F(time.Now()),
- Address: increase.F(increase.EntityNewParamsJointIndividualsAddress{
- Line1: increase.F("x"),
- Line2: increase.F("x"),
- City: increase.F("x"),
- State: increase.F("x"),
- Zip: increase.F("x"),
+ Name: acme.F("x"),
+ DateOfBirth: acme.F(time.Now()),
+ Address: acme.F(acme.EntityNewParamsJointIndividualsAddress{
+ Line1: acme.F("x"),
+ Line2: acme.F("x"),
+ City: acme.F("x"),
+ State: acme.F("x"),
+ Zip: acme.F("x"),
}),
- ConfirmedNoUsTaxID: increase.F(true),
- Identification: increase.F(increase.EntityNewParamsJointIndividualsIdentification{
- Method: increase.F(increase.EntityNewParamsJointIndividualsIdentificationMethodSocialSecurityNumber),
- Number: increase.F("xxxx"),
- Passport: increase.F(increase.EntityNewParamsJointIndividualsIdentificationPassport{
- FileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- Country: increase.F("x"),
+ ConfirmedNoUsTaxID: acme.F(true),
+ Identification: acme.F(acme.EntityNewParamsJointIndividualsIdentification{
+ Method: acme.F(acme.EntityNewParamsJointIndividualsIdentificationMethodSocialSecurityNumber),
+ Number: acme.F("xxxx"),
+ Passport: acme.F(acme.EntityNewParamsJointIndividualsIdentificationPassport{
+ FileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ Country: acme.F("x"),
}),
- DriversLicense: increase.F(increase.EntityNewParamsJointIndividualsIdentificationDriversLicense{
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- State: increase.F("x"),
+ DriversLicense: acme.F(acme.EntityNewParamsJointIndividualsIdentificationDriversLicense{
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ State: acme.F("x"),
}),
- Other: increase.F(increase.EntityNewParamsJointIndividualsIdentificationOther{
- Country: increase.F("x"),
- Description: increase.F("x"),
- ExpirationDate: increase.F(time.Now()),
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
+ Other: acme.F(acme.EntityNewParamsJointIndividualsIdentificationOther{
+ Country: acme.F("x"),
+ Description: acme.F("x"),
+ ExpirationDate: acme.F(time.Now()),
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
}),
}),
}}),
}),
- NaturalPerson: increase.F(increase.EntityNewParamsNaturalPerson{
- Name: increase.F("x"),
- DateOfBirth: increase.F(time.Now()),
- Address: increase.F(increase.EntityNewParamsNaturalPersonAddress{
- Line1: increase.F("x"),
- Line2: increase.F("x"),
- City: increase.F("x"),
- State: increase.F("x"),
- Zip: increase.F("x"),
+ NaturalPerson: acme.F(acme.EntityNewParamsNaturalPerson{
+ Name: acme.F("x"),
+ DateOfBirth: acme.F(time.Now()),
+ Address: acme.F(acme.EntityNewParamsNaturalPersonAddress{
+ Line1: acme.F("x"),
+ Line2: acme.F("x"),
+ City: acme.F("x"),
+ State: acme.F("x"),
+ Zip: acme.F("x"),
}),
- ConfirmedNoUsTaxID: increase.F(true),
- Identification: increase.F(increase.EntityNewParamsNaturalPersonIdentification{
- Method: increase.F(increase.EntityNewParamsNaturalPersonIdentificationMethodSocialSecurityNumber),
- Number: increase.F("xxxx"),
- Passport: increase.F(increase.EntityNewParamsNaturalPersonIdentificationPassport{
- FileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- Country: increase.F("x"),
+ ConfirmedNoUsTaxID: acme.F(true),
+ Identification: acme.F(acme.EntityNewParamsNaturalPersonIdentification{
+ Method: acme.F(acme.EntityNewParamsNaturalPersonIdentificationMethodSocialSecurityNumber),
+ Number: acme.F("xxxx"),
+ Passport: acme.F(acme.EntityNewParamsNaturalPersonIdentificationPassport{
+ FileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ Country: acme.F("x"),
}),
- DriversLicense: increase.F(increase.EntityNewParamsNaturalPersonIdentificationDriversLicense{
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- State: increase.F("x"),
+ DriversLicense: acme.F(acme.EntityNewParamsNaturalPersonIdentificationDriversLicense{
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ State: acme.F("x"),
}),
- Other: increase.F(increase.EntityNewParamsNaturalPersonIdentificationOther{
- Country: increase.F("x"),
- Description: increase.F("x"),
- ExpirationDate: increase.F(time.Now()),
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
+ Other: acme.F(acme.EntityNewParamsNaturalPersonIdentificationOther{
+ Country: acme.F("x"),
+ Description: acme.F("x"),
+ ExpirationDate: acme.F(time.Now()),
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
}),
}),
}),
- Relationship: increase.F(increase.EntityNewParamsRelationshipAffiliated),
- SupplementalDocuments: increase.F([]increase.EntityNewParamsSupplementalDocument{{
- FileID: increase.F("file_makxrc67oh9l6sg7w9yc"),
+ Relationship: acme.F(acme.EntityNewParamsRelationshipAffiliated),
+ SupplementalDocuments: acme.F([]acme.EntityNewParamsSupplementalDocument{{
+ FileID: acme.F("file_makxrc67oh9l6sg7w9yc"),
}}),
- Trust: increase.F(increase.EntityNewParamsTrust{
- Name: increase.F("x"),
- Category: increase.F(increase.EntityNewParamsTrustCategoryRevocable),
- TaxIdentifier: increase.F("x"),
- FormationState: increase.F("x"),
- Address: increase.F(increase.EntityNewParamsTrustAddress{
- Line1: increase.F("x"),
- Line2: increase.F("x"),
- City: increase.F("x"),
- State: increase.F("x"),
- Zip: increase.F("x"),
+ Trust: acme.F(acme.EntityNewParamsTrust{
+ Name: acme.F("x"),
+ Category: acme.F(acme.EntityNewParamsTrustCategoryRevocable),
+ TaxIdentifier: acme.F("x"),
+ FormationState: acme.F("x"),
+ Address: acme.F(acme.EntityNewParamsTrustAddress{
+ Line1: acme.F("x"),
+ Line2: acme.F("x"),
+ City: acme.F("x"),
+ State: acme.F("x"),
+ Zip: acme.F("x"),
}),
- FormationDocumentFileID: increase.F("string"),
- Trustees: increase.F([]increase.EntityNewParamsTrustTrustee{{
- Structure: increase.F(increase.EntityNewParamsTrustTrusteesStructureIndividual),
- Individual: increase.F(increase.EntityNewParamsTrustTrusteesIndividual{
- Name: increase.F("x"),
- DateOfBirth: increase.F(time.Now()),
- Address: increase.F(increase.EntityNewParamsTrustTrusteesIndividualAddress{
- Line1: increase.F("x"),
- Line2: increase.F("x"),
- City: increase.F("x"),
- State: increase.F("x"),
- Zip: increase.F("x"),
+ FormationDocumentFileID: acme.F("string"),
+ Trustees: acme.F([]acme.EntityNewParamsTrustTrustee{{
+ Structure: acme.F(acme.EntityNewParamsTrustTrusteesStructureIndividual),
+ Individual: acme.F(acme.EntityNewParamsTrustTrusteesIndividual{
+ Name: acme.F("x"),
+ DateOfBirth: acme.F(time.Now()),
+ Address: acme.F(acme.EntityNewParamsTrustTrusteesIndividualAddress{
+ Line1: acme.F("x"),
+ Line2: acme.F("x"),
+ City: acme.F("x"),
+ State: acme.F("x"),
+ Zip: acme.F("x"),
}),
- ConfirmedNoUsTaxID: increase.F(true),
- Identification: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentification{
- Method: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentificationMethodSocialSecurityNumber),
- Number: increase.F("xxxx"),
- Passport: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentificationPassport{
- FileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- Country: increase.F("x"),
+ ConfirmedNoUsTaxID: acme.F(true),
+ Identification: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentification{
+ Method: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentificationMethodSocialSecurityNumber),
+ Number: acme.F("xxxx"),
+ Passport: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentificationPassport{
+ FileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ Country: acme.F("x"),
}),
- DriversLicense: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentificationDriversLicense{
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- State: increase.F("x"),
+ DriversLicense: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentificationDriversLicense{
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ State: acme.F("x"),
}),
- Other: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentificationOther{
- Country: increase.F("x"),
- Description: increase.F("x"),
- ExpirationDate: increase.F(time.Now()),
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
+ Other: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentificationOther{
+ Country: acme.F("x"),
+ Description: acme.F("x"),
+ ExpirationDate: acme.F(time.Now()),
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
}),
}),
}),
}, {
- Structure: increase.F(increase.EntityNewParamsTrustTrusteesStructureIndividual),
- Individual: increase.F(increase.EntityNewParamsTrustTrusteesIndividual{
- Name: increase.F("x"),
- DateOfBirth: increase.F(time.Now()),
- Address: increase.F(increase.EntityNewParamsTrustTrusteesIndividualAddress{
- Line1: increase.F("x"),
- Line2: increase.F("x"),
- City: increase.F("x"),
- State: increase.F("x"),
- Zip: increase.F("x"),
+ Structure: acme.F(acme.EntityNewParamsTrustTrusteesStructureIndividual),
+ Individual: acme.F(acme.EntityNewParamsTrustTrusteesIndividual{
+ Name: acme.F("x"),
+ DateOfBirth: acme.F(time.Now()),
+ Address: acme.F(acme.EntityNewParamsTrustTrusteesIndividualAddress{
+ Line1: acme.F("x"),
+ Line2: acme.F("x"),
+ City: acme.F("x"),
+ State: acme.F("x"),
+ Zip: acme.F("x"),
}),
- ConfirmedNoUsTaxID: increase.F(true),
- Identification: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentification{
- Method: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentificationMethodSocialSecurityNumber),
- Number: increase.F("xxxx"),
- Passport: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentificationPassport{
- FileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- Country: increase.F("x"),
+ ConfirmedNoUsTaxID: acme.F(true),
+ Identification: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentification{
+ Method: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentificationMethodSocialSecurityNumber),
+ Number: acme.F("xxxx"),
+ Passport: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentificationPassport{
+ FileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ Country: acme.F("x"),
}),
- DriversLicense: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentificationDriversLicense{
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- State: increase.F("x"),
+ DriversLicense: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentificationDriversLicense{
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ State: acme.F("x"),
}),
- Other: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentificationOther{
- Country: increase.F("x"),
- Description: increase.F("x"),
- ExpirationDate: increase.F(time.Now()),
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
+ Other: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentificationOther{
+ Country: acme.F("x"),
+ Description: acme.F("x"),
+ ExpirationDate: acme.F(time.Now()),
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
}),
}),
}),
}, {
- Structure: increase.F(increase.EntityNewParamsTrustTrusteesStructureIndividual),
- Individual: increase.F(increase.EntityNewParamsTrustTrusteesIndividual{
- Name: increase.F("x"),
- DateOfBirth: increase.F(time.Now()),
- Address: increase.F(increase.EntityNewParamsTrustTrusteesIndividualAddress{
- Line1: increase.F("x"),
- Line2: increase.F("x"),
- City: increase.F("x"),
- State: increase.F("x"),
- Zip: increase.F("x"),
+ Structure: acme.F(acme.EntityNewParamsTrustTrusteesStructureIndividual),
+ Individual: acme.F(acme.EntityNewParamsTrustTrusteesIndividual{
+ Name: acme.F("x"),
+ DateOfBirth: acme.F(time.Now()),
+ Address: acme.F(acme.EntityNewParamsTrustTrusteesIndividualAddress{
+ Line1: acme.F("x"),
+ Line2: acme.F("x"),
+ City: acme.F("x"),
+ State: acme.F("x"),
+ Zip: acme.F("x"),
}),
- ConfirmedNoUsTaxID: increase.F(true),
- Identification: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentification{
- Method: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentificationMethodSocialSecurityNumber),
- Number: increase.F("xxxx"),
- Passport: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentificationPassport{
- FileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- Country: increase.F("x"),
+ ConfirmedNoUsTaxID: acme.F(true),
+ Identification: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentification{
+ Method: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentificationMethodSocialSecurityNumber),
+ Number: acme.F("xxxx"),
+ Passport: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentificationPassport{
+ FileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ Country: acme.F("x"),
}),
- DriversLicense: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentificationDriversLicense{
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- State: increase.F("x"),
+ DriversLicense: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentificationDriversLicense{
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ State: acme.F("x"),
}),
- Other: increase.F(increase.EntityNewParamsTrustTrusteesIndividualIdentificationOther{
- Country: increase.F("x"),
- Description: increase.F("x"),
- ExpirationDate: increase.F(time.Now()),
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
+ Other: acme.F(acme.EntityNewParamsTrustTrusteesIndividualIdentificationOther{
+ Country: acme.F("x"),
+ Description: acme.F("x"),
+ ExpirationDate: acme.F(time.Now()),
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
}),
}),
}),
}}),
- Grantor: increase.F(increase.EntityNewParamsTrustGrantor{
- Name: increase.F("x"),
- DateOfBirth: increase.F(time.Now()),
- Address: increase.F(increase.EntityNewParamsTrustGrantorAddress{
- Line1: increase.F("x"),
- Line2: increase.F("x"),
- City: increase.F("x"),
- State: increase.F("x"),
- Zip: increase.F("x"),
+ Grantor: acme.F(acme.EntityNewParamsTrustGrantor{
+ Name: acme.F("x"),
+ DateOfBirth: acme.F(time.Now()),
+ Address: acme.F(acme.EntityNewParamsTrustGrantorAddress{
+ Line1: acme.F("x"),
+ Line2: acme.F("x"),
+ City: acme.F("x"),
+ State: acme.F("x"),
+ Zip: acme.F("x"),
}),
- ConfirmedNoUsTaxID: increase.F(true),
- Identification: increase.F(increase.EntityNewParamsTrustGrantorIdentification{
- Method: increase.F(increase.EntityNewParamsTrustGrantorIdentificationMethodSocialSecurityNumber),
- Number: increase.F("xxxx"),
- Passport: increase.F(increase.EntityNewParamsTrustGrantorIdentificationPassport{
- FileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- Country: increase.F("x"),
+ ConfirmedNoUsTaxID: acme.F(true),
+ Identification: acme.F(acme.EntityNewParamsTrustGrantorIdentification{
+ Method: acme.F(acme.EntityNewParamsTrustGrantorIdentificationMethodSocialSecurityNumber),
+ Number: acme.F("xxxx"),
+ Passport: acme.F(acme.EntityNewParamsTrustGrantorIdentificationPassport{
+ FileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ Country: acme.F("x"),
}),
- DriversLicense: increase.F(increase.EntityNewParamsTrustGrantorIdentificationDriversLicense{
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- State: increase.F("x"),
+ DriversLicense: acme.F(acme.EntityNewParamsTrustGrantorIdentificationDriversLicense{
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ State: acme.F("x"),
}),
- Other: increase.F(increase.EntityNewParamsTrustGrantorIdentificationOther{
- Country: increase.F("x"),
- Description: increase.F("x"),
- ExpirationDate: increase.F(time.Now()),
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
+ Other: acme.F(acme.EntityNewParamsTrustGrantorIdentificationOther{
+ Country: acme.F("x"),
+ Description: acme.F("x"),
+ ExpirationDate: acme.F(time.Now()),
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
}),
}),
}),
}),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -396,13 +396,13 @@ func TestEntityGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Entities.Get(context.TODO(), "entity_n8y8tnk2p9339ti393yi")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -418,25 +418,25 @@ func TestEntityListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Entities.List(context.TODO(), increase.EntityListParams{
- CreatedAt: increase.F(increase.EntityListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.Entities.List(context.TODO(), acme.EntityListParams{
+ CreatedAt: acme.F(acme.EntityListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- Status: increase.F(increase.EntityListParamsStatus{
- In: increase.F([]increase.EntityListParamsStatusIn{increase.EntityListParamsStatusInActive, increase.EntityListParamsStatusInArchived, increase.EntityListParamsStatusInDisabled}),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ Status: acme.F(acme.EntityListParamsStatus{
+ In: acme.F([]acme.EntityListParamsStatusIn{acme.EntityListParamsStatusInActive, acme.EntityListParamsStatusInArchived, acme.EntityListParamsStatusInDisabled}),
}),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -452,13 +452,13 @@ func TestEntityArchive(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Entities.Archive(context.TODO(), "entity_n8y8tnk2p9339ti393yi")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -474,25 +474,25 @@ func TestEntityUpdateAddressWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Entities.UpdateAddress(
context.TODO(),
"entity_n8y8tnk2p9339ti393yi",
- increase.EntityUpdateAddressParams{
- Address: increase.F(increase.EntityUpdateAddressParamsAddress{
- Line1: increase.F("33 Liberty Street"),
- Line2: increase.F("Unit 2"),
- City: increase.F("New York"),
- State: increase.F("NY"),
- Zip: increase.F("10045"),
+ acme.EntityUpdateAddressParams{
+ Address: acme.F(acme.EntityUpdateAddressParamsAddress{
+ Line1: acme.F("33 Liberty Street"),
+ Line2: acme.F("Unit 2"),
+ City: acme.F("New York"),
+ State: acme.F("NY"),
+ Zip: acme.F("10045"),
}),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/entitybeneficialowner.go b/entitybeneficialowner.go
index d63c4b32..ba212ae8 100644
--- a/entitybeneficialowner.go
+++ b/entitybeneficialowner.go
@@ -1,20 +1,20 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"net/http"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// EntityBeneficialOwnerService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewEntityBeneficialOwnerService]
// method instead.
diff --git a/entitybeneficialowner_test.go b/entitybeneficialowner_test.go
index fb5ca7d4..6c4aebbb 100644
--- a/entitybeneficialowner_test.go
+++ b/entitybeneficialowner_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestEntityBeneficialOwnerNewWithOptionalParams(t *testing.T) {
@@ -22,53 +22,53 @@ func TestEntityBeneficialOwnerNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Entities.BeneficialOwners.New(context.TODO(), increase.EntityBeneficialOwnerNewParams{
- BeneficialOwner: increase.F(increase.EntityBeneficialOwnerNewParamsBeneficialOwner{
- Individual: increase.F(increase.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividual{
- Name: increase.F("Ian Crease"),
- DateOfBirth: increase.F(time.Now()),
- Address: increase.F(increase.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividualAddress{
- Line1: increase.F("33 Liberty Street"),
- Line2: increase.F("x"),
- City: increase.F("New York"),
- State: increase.F("NY"),
- Zip: increase.F("10045"),
+ _, err := client.Entities.BeneficialOwners.New(context.TODO(), acme.EntityBeneficialOwnerNewParams{
+ BeneficialOwner: acme.F(acme.EntityBeneficialOwnerNewParamsBeneficialOwner{
+ Individual: acme.F(acme.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividual{
+ Name: acme.F("Ian Crease"),
+ DateOfBirth: acme.F(time.Now()),
+ Address: acme.F(acme.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividualAddress{
+ Line1: acme.F("33 Liberty Street"),
+ Line2: acme.F("x"),
+ City: acme.F("New York"),
+ State: acme.F("NY"),
+ Zip: acme.F("10045"),
}),
- ConfirmedNoUsTaxID: increase.F(true),
- Identification: increase.F(increase.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividualIdentification{
- Method: increase.F(increase.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividualIdentificationMethodSocialSecurityNumber),
- Number: increase.F("078051120"),
- Passport: increase.F(increase.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividualIdentificationPassport{
- FileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- Country: increase.F("x"),
+ ConfirmedNoUsTaxID: acme.F(true),
+ Identification: acme.F(acme.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividualIdentification{
+ Method: acme.F(acme.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividualIdentificationMethodSocialSecurityNumber),
+ Number: acme.F("078051120"),
+ Passport: acme.F(acme.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividualIdentificationPassport{
+ FileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ Country: acme.F("x"),
}),
- DriversLicense: increase.F(increase.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividualIdentificationDriversLicense{
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
- ExpirationDate: increase.F(time.Now()),
- State: increase.F("x"),
+ DriversLicense: acme.F(acme.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividualIdentificationDriversLicense{
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
+ ExpirationDate: acme.F(time.Now()),
+ State: acme.F("x"),
}),
- Other: increase.F(increase.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividualIdentificationOther{
- Country: increase.F("x"),
- Description: increase.F("x"),
- ExpirationDate: increase.F(time.Now()),
- FileID: increase.F("string"),
- BackFileID: increase.F("string"),
+ Other: acme.F(acme.EntityBeneficialOwnerNewParamsBeneficialOwnerIndividualIdentificationOther{
+ Country: acme.F("x"),
+ Description: acme.F("x"),
+ ExpirationDate: acme.F(time.Now()),
+ FileID: acme.F("string"),
+ BackFileID: acme.F("string"),
}),
}),
}),
- CompanyTitle: increase.F("CEO"),
- Prongs: increase.F([]increase.EntityBeneficialOwnerNewParamsBeneficialOwnerProng{increase.EntityBeneficialOwnerNewParamsBeneficialOwnerProngControl}),
+ CompanyTitle: acme.F("CEO"),
+ Prongs: acme.F([]acme.EntityBeneficialOwnerNewParamsBeneficialOwnerProng{acme.EntityBeneficialOwnerNewParamsBeneficialOwnerProngControl}),
}),
- EntityID: increase.F("entity_n8y8tnk2p9339ti393yi"),
+ EntityID: acme.F("entity_n8y8tnk2p9339ti393yi"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -84,16 +84,16 @@ func TestEntityBeneficialOwnerArchive(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Entities.BeneficialOwners.Archive(context.TODO(), increase.EntityBeneficialOwnerArchiveParams{
- BeneficialOwnerID: increase.F("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"),
- EntityID: increase.F("entity_n8y8tnk2p9339ti393yi"),
+ _, err := client.Entities.BeneficialOwners.Archive(context.TODO(), acme.EntityBeneficialOwnerArchiveParams{
+ BeneficialOwnerID: acme.F("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"),
+ EntityID: acme.F("entity_n8y8tnk2p9339ti393yi"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -109,23 +109,23 @@ func TestEntityBeneficialOwnerUpdateAddressWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Entities.BeneficialOwners.UpdateAddress(context.TODO(), increase.EntityBeneficialOwnerUpdateAddressParams{
- Address: increase.F(increase.EntityBeneficialOwnerUpdateAddressParamsAddress{
- Line1: increase.F("33 Liberty Street"),
- Line2: increase.F("Unit 2"),
- City: increase.F("New York"),
- State: increase.F("NY"),
- Zip: increase.F("10045"),
+ _, err := client.Entities.BeneficialOwners.UpdateAddress(context.TODO(), acme.EntityBeneficialOwnerUpdateAddressParams{
+ Address: acme.F(acme.EntityBeneficialOwnerUpdateAddressParamsAddress{
+ Line1: acme.F("33 Liberty Street"),
+ Line2: acme.F("Unit 2"),
+ City: acme.F("New York"),
+ State: acme.F("NY"),
+ Zip: acme.F("10045"),
}),
- BeneficialOwnerID: increase.F("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"),
- EntityID: increase.F("entity_n8y8tnk2p9339ti393yi"),
+ BeneficialOwnerID: acme.F("entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7"),
+ EntityID: acme.F("entity_n8y8tnk2p9339ti393yi"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/entitysupplementaldocument.go b/entitysupplementaldocument.go
index 9654224f..5fb85459 100644
--- a/entitysupplementaldocument.go
+++ b/entitysupplementaldocument.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// EntitySupplementalDocumentService contains methods and other services that help
-// with interacting with the increase API. Note, unlike clients, this service does
+// with interacting with the acme API. Note, unlike clients, this service does
// not read variables from the environment automatically. You should not
// instantiate this service directly, and instead use the
// [NewEntitySupplementalDocumentService] method instead.
diff --git a/entitysupplementaldocument_test.go b/entitysupplementaldocument_test.go
index b92eb448..89032d03 100644
--- a/entitysupplementaldocument_test.go
+++ b/entitysupplementaldocument_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestEntitySupplementalDocumentNew(t *testing.T) {
@@ -21,19 +21,19 @@ func TestEntitySupplementalDocumentNew(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Entities.SupplementalDocuments.New(
context.TODO(),
"entity_n8y8tnk2p9339ti393yi",
- increase.EntitySupplementalDocumentNewParams{
- FileID: increase.F("file_makxrc67oh9l6sg7w9yc"),
+ acme.EntitySupplementalDocumentNewParams{
+ FileID: acme.F("file_makxrc67oh9l6sg7w9yc"),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -49,17 +49,17 @@ func TestEntitySupplementalDocumentListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Entities.SupplementalDocuments.List(context.TODO(), increase.EntitySupplementalDocumentListParams{
- EntityID: increase.F("string"),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ _, err := client.Entities.SupplementalDocuments.List(context.TODO(), acme.EntitySupplementalDocumentListParams{
+ EntityID: acme.F("string"),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/event.go b/event.go
index 693dfb0f..bb9874ca 100644
--- a/event.go
+++ b/event.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// EventService contains methods and other services that help with interacting with
-// the increase API. Note, unlike clients, this service does not read variables
+// the acme API. Note, unlike clients, this service does not read variables
// from the environment automatically. You should not instantiate this service
// directly, and instead use the [NewEventService] method instead.
type EventService struct {
@@ -65,10 +65,10 @@ func (r *EventService) ListAutoPaging(ctx context.Context, query EventListParams
return shared.NewPageAutoPager(r.List(ctx, query, opts...))
}
-// Events are records of things that happened to objects at Increase. Events are
+// Events are records of things that happened to objects at Acme. Events are
// accessible via the List Events endpoint and can be delivered to your application
// via webhooks. For more information, see our
-// [webhooks guide](https://increase.com/documentation/webhooks).
+// [webhooks guide](https://acme.com/documentation/webhooks).
type Event struct {
// The Event identifier.
ID string `json:"id,required"`
@@ -188,7 +188,7 @@ const (
EventCategoryFileCreated EventCategory = "file.created"
// Occurs whenever a Group is updated.
EventCategoryGroupUpdated EventCategory = "group.updated"
- // Increase may send webhooks with this category to see if a webhook endpoint is
+ // Acme may send webhooks with this category to see if a webhook endpoint is
// working properly.
EventCategoryGroupHeartbeat EventCategory = "group.heartbeat"
// Occurs whenever an Inbound ACH Transfer is created.
@@ -377,7 +377,7 @@ const (
EventListParamsCategoryInFileCreated EventListParamsCategoryIn = "file.created"
// Occurs whenever a Group is updated.
EventListParamsCategoryInGroupUpdated EventListParamsCategoryIn = "group.updated"
- // Increase may send webhooks with this category to see if a webhook endpoint is
+ // Acme may send webhooks with this category to see if a webhook endpoint is
// working properly.
EventListParamsCategoryInGroupHeartbeat EventListParamsCategoryIn = "group.heartbeat"
// Occurs whenever an Inbound ACH Transfer is created.
diff --git a/event_test.go b/event_test.go
index c7ce517b..14446f9b 100644
--- a/event_test.go
+++ b/event_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestEventGet(t *testing.T) {
@@ -22,13 +22,13 @@ func TestEventGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Events.Get(context.TODO(), "event_001dzz0r20rzr4zrhrr1364hy80")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -44,26 +44,26 @@ func TestEventListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Events.List(context.TODO(), increase.EventListParams{
- AssociatedObjectID: increase.F("string"),
- Category: increase.F(increase.EventListParamsCategory{
- In: increase.F([]increase.EventListParamsCategoryIn{increase.EventListParamsCategoryInAccountCreated, increase.EventListParamsCategoryInAccountUpdated, increase.EventListParamsCategoryInAccountNumberCreated}),
+ _, err := client.Events.List(context.TODO(), acme.EventListParams{
+ AssociatedObjectID: acme.F("string"),
+ Category: acme.F(acme.EventListParamsCategory{
+ In: acme.F([]acme.EventListParamsCategoryIn{acme.EventListParamsCategoryInAccountCreated, acme.EventListParamsCategoryInAccountUpdated, acme.EventListParamsCategoryInAccountNumberCreated}),
}),
- CreatedAt: increase.F(increase.EventListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ CreatedAt: acme.F(acme.EventListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/eventsubscription.go b/eventsubscription.go
index a838f3a0..a7518904 100644
--- a/eventsubscription.go
+++ b/eventsubscription.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// EventSubscriptionService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewEventSubscriptionService] method
// instead.
@@ -85,9 +85,9 @@ func (r *EventSubscriptionService) ListAutoPaging(ctx context.Context, query Eve
// Webhooks are event notifications we send to you by HTTPS POST requests. Event
// Subscriptions are how you configure your application to listen for them. You can
// create an Event Subscription through your
-// [developer dashboard](https://dashboard.increase.com/developers/webhooks) or the
+// [developer dashboard](https://dashboard.acme.com/developers/webhooks) or the
// API. For more information, see our
-// [webhooks guide](https://increase.com/documentation/webhooks).
+// [webhooks guide](https://acme.com/documentation/webhooks).
type EventSubscription struct {
// The event subscription identifier.
ID string `json:"id,required"`
@@ -208,7 +208,7 @@ const (
EventSubscriptionSelectedEventCategoryFileCreated EventSubscriptionSelectedEventCategory = "file.created"
// Occurs whenever a Group is updated.
EventSubscriptionSelectedEventCategoryGroupUpdated EventSubscriptionSelectedEventCategory = "group.updated"
- // Increase may send webhooks with this category to see if a webhook endpoint is
+ // Acme may send webhooks with this category to see if a webhook endpoint is
// working properly.
EventSubscriptionSelectedEventCategoryGroupHeartbeat EventSubscriptionSelectedEventCategory = "group.heartbeat"
// Occurs whenever an Inbound ACH Transfer is created.
@@ -393,7 +393,7 @@ const (
EventSubscriptionNewParamsSelectedEventCategoryFileCreated EventSubscriptionNewParamsSelectedEventCategory = "file.created"
// Occurs whenever a Group is updated.
EventSubscriptionNewParamsSelectedEventCategoryGroupUpdated EventSubscriptionNewParamsSelectedEventCategory = "group.updated"
- // Increase may send webhooks with this category to see if a webhook endpoint is
+ // Acme may send webhooks with this category to see if a webhook endpoint is
// working properly.
EventSubscriptionNewParamsSelectedEventCategoryGroupHeartbeat EventSubscriptionNewParamsSelectedEventCategory = "group.heartbeat"
// Occurs whenever an Inbound ACH Transfer is created.
diff --git a/eventsubscription_test.go b/eventsubscription_test.go
index 368b403e..80a25bf4 100644
--- a/eventsubscription_test.go
+++ b/eventsubscription_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestEventSubscriptionNewWithOptionalParams(t *testing.T) {
@@ -21,17 +21,17 @@ func TestEventSubscriptionNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.EventSubscriptions.New(context.TODO(), increase.EventSubscriptionNewParams{
- URL: increase.F("https://website.com/webhooks"),
- SelectedEventCategory: increase.F(increase.EventSubscriptionNewParamsSelectedEventCategoryAccountCreated),
- SharedSecret: increase.F("x"),
+ _, err := client.EventSubscriptions.New(context.TODO(), acme.EventSubscriptionNewParams{
+ URL: acme.F("https://website.com/webhooks"),
+ SelectedEventCategory: acme.F(acme.EventSubscriptionNewParamsSelectedEventCategoryAccountCreated),
+ SharedSecret: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -47,13 +47,13 @@ func TestEventSubscriptionGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.EventSubscriptions.Get(context.TODO(), "event_subscription_001dzz0r20rcdxgb013zqb8m04g")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -69,19 +69,19 @@ func TestEventSubscriptionUpdateWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.EventSubscriptions.Update(
context.TODO(),
"event_subscription_001dzz0r20rcdxgb013zqb8m04g",
- increase.EventSubscriptionUpdateParams{
- Status: increase.F(increase.EventSubscriptionUpdateParamsStatusActive),
+ acme.EventSubscriptionUpdateParams{
+ Status: acme.F(acme.EventSubscriptionUpdateParamsStatusActive),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -97,16 +97,16 @@ func TestEventSubscriptionListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.EventSubscriptions.List(context.TODO(), increase.EventSubscriptionListParams{
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ _, err := client.EventSubscriptions.List(context.TODO(), acme.EventSubscriptionListParams{
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/examples/basic/main.go b/examples/basic/main.go
index e972f0f3..b22427df 100644
--- a/examples/basic/main.go
+++ b/examples/basic/main.go
@@ -4,13 +4,13 @@ import (
"context"
"fmt"
- "github.com/increase/increase-go"
+ "github.com/acme/acme-go"
)
func main() {
- client := increase.NewClient()
- page, err := client.Cards.List(context.TODO(), increase.CardListParams{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
+ client := acme.NewClient()
+ page, err := client.Cards.List(context.TODO(), acme.CardListParams{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
})
for page != nil {
fmt.Printf("%+#v %+#v\n", page, err)
diff --git a/examples/errors/main.go b/examples/errors/main.go
index 82690891..d58effff 100644
--- a/examples/errors/main.go
+++ b/examples/errors/main.go
@@ -5,20 +5,20 @@ import (
"errors"
"fmt"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/option"
)
func main() {
- client := increase.NewClient(option.WithAPIKey("bad_api_key"))
- _, err := client.Cards.List(context.TODO(), increase.CardListParams{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
+ client := acme.NewClient(option.WithAPIKey("bad_api_key"))
+ _, err := client.Cards.List(context.TODO(), acme.CardListParams{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
})
if err == nil {
panic("expected an error with an invalid API key")
}
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
fmt.Printf("%+#v\n", apierr)
println(apierr.Error())
diff --git a/export.go b/export.go
index 3090b110..14086bd4 100644
--- a/export.go
+++ b/export.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// ExportService contains methods and other services that help with interacting
-// with the increase API. Note, unlike clients, this service does not read
+// with the acme API. Note, unlike clients, this service does not read
// variables from the environment automatically. You should not instantiate this
// service directly, and instead use the [NewExportService] method instead.
type ExportService struct {
@@ -73,11 +73,11 @@ func (r *ExportService) ListAutoPaging(ctx context.Context, query ExportListPara
return shared.NewPageAutoPager(r.List(ctx, query, opts...))
}
-// Exports are batch summaries of your Increase data. You can make them from the
+// Exports are batch summaries of your Acme data. You can make them from the
// API or dashboard. Since they can take a while, they are generated
// asynchronously. We send a webhook when they are ready. For more information,
// please read our
-// [Exports documentation](https://increase.com/documentation/exports).
+// [Exports documentation](https://acme.com/documentation/exports).
type Export struct {
// The Export identifier.
ID string `json:"id,required"`
@@ -139,11 +139,11 @@ const (
type ExportStatus string
const (
- // Increase is generating the export.
+ // Acme is generating the export.
ExportStatusPending ExportStatus = "pending"
// The export has been successfully generated.
ExportStatusComplete ExportStatus = "complete"
- // The export failed to generate. Increase will reach out to you to resolve the
+ // The export failed to generate. Acme will reach out to you to resolve the
// issue.
ExportStatusFailed ExportStatus = "failed"
)
diff --git a/export_test.go b/export_test.go
index a6412242..d58265bb 100644
--- a/export_test.go
+++ b/export_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestExportNewWithOptionalParams(t *testing.T) {
@@ -22,56 +22,56 @@ func TestExportNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Exports.New(context.TODO(), increase.ExportNewParams{
- Category: increase.F(increase.ExportNewParamsCategoryTransactionCsv),
- AccountStatementOfx: increase.F(increase.ExportNewParamsAccountStatementOfx{
- AccountID: increase.F("string"),
- CreatedAt: increase.F(increase.ExportNewParamsAccountStatementOfxCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.Exports.New(context.TODO(), acme.ExportNewParams{
+ Category: acme.F(acme.ExportNewParamsCategoryTransactionCsv),
+ AccountStatementOfx: acme.F(acme.ExportNewParamsAccountStatementOfx{
+ AccountID: acme.F("string"),
+ CreatedAt: acme.F(acme.ExportNewParamsAccountStatementOfxCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
}),
- BalanceCsv: increase.F(increase.ExportNewParamsBalanceCsv{
- AccountID: increase.F("string"),
- CreatedAt: increase.F(increase.ExportNewParamsBalanceCsvCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ BalanceCsv: acme.F(acme.ExportNewParamsBalanceCsv{
+ AccountID: acme.F("string"),
+ CreatedAt: acme.F(acme.ExportNewParamsBalanceCsvCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
}),
- BookkeepingAccountBalanceCsv: increase.F(increase.ExportNewParamsBookkeepingAccountBalanceCsv{
- BookkeepingAccountID: increase.F("string"),
- CreatedAt: increase.F(increase.ExportNewParamsBookkeepingAccountBalanceCsvCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ BookkeepingAccountBalanceCsv: acme.F(acme.ExportNewParamsBookkeepingAccountBalanceCsv{
+ BookkeepingAccountID: acme.F("string"),
+ CreatedAt: acme.F(acme.ExportNewParamsBookkeepingAccountBalanceCsvCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
}),
- EntityCsv: increase.F(increase.ExportNewParamsEntityCsv{
- Status: increase.F(increase.ExportNewParamsEntityCsvStatus{
- In: increase.F([]increase.ExportNewParamsEntityCsvStatusIn{increase.ExportNewParamsEntityCsvStatusInActive, increase.ExportNewParamsEntityCsvStatusInArchived, increase.ExportNewParamsEntityCsvStatusInDisabled}),
+ EntityCsv: acme.F(acme.ExportNewParamsEntityCsv{
+ Status: acme.F(acme.ExportNewParamsEntityCsvStatus{
+ In: acme.F([]acme.ExportNewParamsEntityCsvStatusIn{acme.ExportNewParamsEntityCsvStatusInActive, acme.ExportNewParamsEntityCsvStatusInArchived, acme.ExportNewParamsEntityCsvStatusInDisabled}),
}),
}),
- TransactionCsv: increase.F(increase.ExportNewParamsTransactionCsv{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
- CreatedAt: increase.F(increase.ExportNewParamsTransactionCsvCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ TransactionCsv: acme.F(acme.ExportNewParamsTransactionCsv{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
+ CreatedAt: acme.F(acme.ExportNewParamsTransactionCsvCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
}),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -87,13 +87,13 @@ func TestExportGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Exports.Get(context.TODO(), "export_8s4m48qz3bclzje0zwh9")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -109,16 +109,16 @@ func TestExportListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Exports.List(context.TODO(), increase.ExportListParams{
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ _, err := client.Exports.List(context.TODO(), acme.ExportListParams{
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/externalaccount.go b/externalaccount.go
index 86463461..18d26745 100644
--- a/externalaccount.go
+++ b/externalaccount.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// ExternalAccountService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewExternalAccountService] method
// instead.
@@ -83,7 +83,7 @@ func (r *ExternalAccountService) ListAutoPaging(ctx context.Context, query Exter
}
// External Accounts represent accounts at financial institutions other than
-// Increase. You can use this API to store their details for reuse.
+// Acme. You can use this API to store their details for reuse.
type ExternalAccount struct {
// The External Account's identifier.
ID string `json:"id,required"`
diff --git a/externalaccount_test.go b/externalaccount_test.go
index 2b191c3e..a4e52155 100644
--- a/externalaccount_test.go
+++ b/externalaccount_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestExternalAccountNewWithOptionalParams(t *testing.T) {
@@ -21,18 +21,18 @@ func TestExternalAccountNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.ExternalAccounts.New(context.TODO(), increase.ExternalAccountNewParams{
- AccountNumber: increase.F("987654321"),
- Description: increase.F("Landlord"),
- RoutingNumber: increase.F("101050001"),
- Funding: increase.F(increase.ExternalAccountNewParamsFundingChecking),
+ _, err := client.ExternalAccounts.New(context.TODO(), acme.ExternalAccountNewParams{
+ AccountNumber: acme.F("987654321"),
+ Description: acme.F("Landlord"),
+ RoutingNumber: acme.F("101050001"),
+ Funding: acme.F(acme.ExternalAccountNewParamsFundingChecking),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -48,13 +48,13 @@ func TestExternalAccountGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.ExternalAccounts.Get(context.TODO(), "external_account_ukk55lr923a3ac0pp7iv")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -70,20 +70,20 @@ func TestExternalAccountUpdateWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.ExternalAccounts.Update(
context.TODO(),
"external_account_ukk55lr923a3ac0pp7iv",
- increase.ExternalAccountUpdateParams{
- Description: increase.F("New description"),
- Status: increase.F(increase.ExternalAccountUpdateParamsStatusActive),
+ acme.ExternalAccountUpdateParams{
+ Description: acme.F("New description"),
+ Status: acme.F(acme.ExternalAccountUpdateParamsStatusActive),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -99,20 +99,20 @@ func TestExternalAccountListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.ExternalAccounts.List(context.TODO(), increase.ExternalAccountListParams{
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- RoutingNumber: increase.F("xxxxxxxxx"),
- Status: increase.F(increase.ExternalAccountListParamsStatus{
- In: increase.F([]increase.ExternalAccountListParamsStatusIn{increase.ExternalAccountListParamsStatusInActive, increase.ExternalAccountListParamsStatusInArchived}),
+ _, err := client.ExternalAccounts.List(context.TODO(), acme.ExternalAccountListParams{
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ RoutingNumber: acme.F("xxxxxxxxx"),
+ Status: acme.F(acme.ExternalAccountListParamsStatus{
+ In: acme.F([]acme.ExternalAccountListParamsStatusIn{acme.ExternalAccountListParamsStatusInActive, acme.ExternalAccountListParamsStatusInArchived}),
}),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/field.go b/field.go
index 770bd40e..2641e526 100644
--- a/field.go
+++ b/field.go
@@ -1,14 +1,14 @@
-package increase
+package acme
import (
- "github.com/increase/increase-go/internal/param"
+ "github.com/acme/acme-go/internal/param"
)
// F is a param field helper used to initialize a [param.Field] generic struct.
// This helps specify null, zero values, and overrides, as well as normal values.
// You can read more about this in our [README].
//
-// [README]: https://pkg.go.dev/github.com/increase/increase-go#readme-request-fields
+// [README]: https://pkg.go.dev/github.com/acme/acme-go#readme-request-fields
func F[T any](value T) param.Field[T] { return param.Field[T]{Value: value, Present: true} }
// Null is a param field helper which explciitly sends null to the API.
diff --git a/file.go b/file.go
index 48e7729b..619aeea9 100644
--- a/file.go
+++ b/file.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"bytes"
@@ -12,17 +12,17 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apiform"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apiform"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// FileService contains methods and other services that help with interacting with
-// the increase API. Note, unlike clients, this service does not read variables
+// the acme API. Note, unlike clients, this service does not read variables
// from the environment automatically. You should not instantiate this service
// directly, and instead use the [NewFileService] method instead.
type FileService struct {
@@ -38,7 +38,7 @@ func NewFileService(opts ...option.RequestOption) (r *FileService) {
return
}
-// To upload a file to Increase, you'll need to send a request of Content-Type
+// To upload a file to Acme, you'll need to send a request of Content-Type
// `multipart/form-data`. The request should contain the file you would like to
// upload, as well as the parameters for creating a file.
func (r *FileService) New(ctx context.Context, body FileNewParams, opts ...option.RequestOption) (res *File, err error) {
@@ -79,9 +79,9 @@ func (r *FileService) ListAutoPaging(ctx context.Context, query FileListParams,
return shared.NewPageAutoPager(r.List(ctx, query, opts...))
}
-// Files are objects that represent a file hosted on Increase's servers. The file
+// Files are objects that represent a file hosted on Acme's servers. The file
// may have been uploaded by you (for example, when uploading a check image) or it
-// may have been created by Increase (for example, an autogenerated statement PDF).
+// may have been created by Acme (for example, an autogenerated statement PDF).
type File struct {
// The File's identifier.
ID string `json:"id,required"`
@@ -89,12 +89,12 @@ type File struct {
CreatedAt time.Time `json:"created_at,required" format:"date-time"`
// A description of the File.
Description string `json:"description,required,nullable"`
- // Whether the File was generated by Increase or by you and sent to Increase.
+ // Whether the File was generated by Acme or by you and sent to Acme.
Direction FileDirection `json:"direction,required"`
// A URL from where the File can be downloaded at this point in time. The location
// of this URL may change over time.
DownloadURL string `json:"download_url,required,nullable"`
- // The filename that was provided upon upload or generated by Increase.
+ // The filename that was provided upon upload or generated by Acme.
Filename string `json:"filename,required,nullable"`
// The MIME type of the file.
MimeType string `json:"mime_type,required"`
@@ -127,14 +127,14 @@ func (r *File) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
-// Whether the File was generated by Increase or by you and sent to Increase.
+// Whether the File was generated by Acme or by you and sent to Acme.
type FileDirection string
const (
- // This File was sent by you to Increase.
- FileDirectionToIncrease FileDirection = "to_increase"
- // This File was generated by Increase.
- FileDirectionFromIncrease FileDirection = "from_increase"
+ // This File was sent by you to Acme.
+ FileDirectionToAcme FileDirection = "to_acme"
+ // This File was generated by Acme.
+ FileDirectionFromAcme FileDirection = "from_acme"
)
// What the File will be used for. We may add additional possible values for this
@@ -155,8 +155,8 @@ const (
FilePurposeFormSS4 FilePurpose = "form_ss_4"
// An image of a government-issued ID.
FilePurposeIdentityDocument FilePurpose = "identity_document"
- // A statement generated by Increase.
- FilePurposeIncreaseStatement FilePurpose = "increase_statement"
+ // A statement generated by Acme.
+ FilePurposeAcmeStatement FilePurpose = "acme_statement"
// A file purpose not covered by any of the other cases.
FilePurposeOther FilePurpose = "other"
// A legal document forming a trust.
@@ -175,7 +175,7 @@ const (
// An image representing the entirety of the carrier used for a physical card. This
// must be a 2550x3300 pixel PNG with no other color but black.
FilePurposePhysicalCardCarrier FilePurpose = "physical_card_carrier"
- // A document requested by Increase.
+ // A document requested by Acme.
FilePurposeDocumentRequest FilePurpose = "document_request"
// A supplemental document associated an an Entity.
FilePurposeEntitySupplementalDocument FilePurpose = "entity_supplemental_document"
@@ -196,7 +196,7 @@ type FileNewParams struct {
// [RFC 7578](https://datatracker.ietf.org/doc/html/rfc7578) which defines file
// transfers for the multipart/form-data protocol.
File param.Field[io.Reader] `json:"file,required" format:"binary"`
- // What the File will be used for in Increase's systems.
+ // What the File will be used for in Acme's systems.
Purpose param.Field[FileNewParamsPurpose] `json:"purpose,required"`
// The description you choose to give the File.
Description param.Field[string] `json:"description"`
@@ -217,7 +217,7 @@ func (r FileNewParams) MarshalMultipart() (data []byte, contentType string, err
return buf.Bytes(), writer.FormDataContentType(), nil
}
-// What the File will be used for in Increase's systems.
+// What the File will be used for in Acme's systems.
type FileNewParamsPurpose string
const (
@@ -247,7 +247,7 @@ const (
// An image representing the entirety of the carrier used for a physical card. This
// must be a 2550x3300 pixel PNG with no other color but black.
FileNewParamsPurposePhysicalCardCarrier FileNewParamsPurpose = "physical_card_carrier"
- // A document requested by Increase.
+ // A document requested by Acme.
FileNewParamsPurposeDocumentRequest FileNewParamsPurpose = "document_request"
// A supplemental document associated an an Entity.
FileNewParamsPurposeEntitySupplementalDocument FileNewParamsPurpose = "entity_supplemental_document"
@@ -324,8 +324,8 @@ const (
FileListParamsPurposeInFormSS4 FileListParamsPurposeIn = "form_ss_4"
// An image of a government-issued ID.
FileListParamsPurposeInIdentityDocument FileListParamsPurposeIn = "identity_document"
- // A statement generated by Increase.
- FileListParamsPurposeInIncreaseStatement FileListParamsPurposeIn = "increase_statement"
+ // A statement generated by Acme.
+ FileListParamsPurposeInAcmeStatement FileListParamsPurposeIn = "acme_statement"
// A file purpose not covered by any of the other cases.
FileListParamsPurposeInOther FileListParamsPurposeIn = "other"
// A legal document forming a trust.
@@ -344,7 +344,7 @@ const (
// An image representing the entirety of the carrier used for a physical card. This
// must be a 2550x3300 pixel PNG with no other color but black.
FileListParamsPurposeInPhysicalCardCarrier FileListParamsPurposeIn = "physical_card_carrier"
- // A document requested by Increase.
+ // A document requested by Acme.
FileListParamsPurposeInDocumentRequest FileListParamsPurposeIn = "document_request"
// A supplemental document associated an an Entity.
FileListParamsPurposeInEntitySupplementalDocument FileListParamsPurposeIn = "entity_supplemental_document"
diff --git a/file_test.go b/file_test.go
index ea42abd6..5b031e7b 100644
--- a/file_test.go
+++ b/file_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"bytes"
@@ -11,9 +11,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestFileNewWithOptionalParams(t *testing.T) {
@@ -24,17 +24,17 @@ func TestFileNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Files.New(context.TODO(), increase.FileNewParams{
- File: increase.F(io.Reader(bytes.NewBuffer([]byte("some file contents")))),
- Purpose: increase.F(increase.FileNewParamsPurposeCheckImageFront),
- Description: increase.F("x"),
+ _, err := client.Files.New(context.TODO(), acme.FileNewParams{
+ File: acme.F(io.Reader(bytes.NewBuffer([]byte("some file contents")))),
+ Purpose: acme.F(acme.FileNewParamsPurposeCheckImageFront),
+ Description: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -50,13 +50,13 @@ func TestFileGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Files.Get(context.TODO(), "file_makxrc67oh9l6sg7w9yc")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -72,25 +72,25 @@ func TestFileListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Files.List(context.TODO(), increase.FileListParams{
- CreatedAt: increase.F(increase.FileListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.Files.List(context.TODO(), acme.FileListParams{
+ CreatedAt: acme.F(acme.FileListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- Purpose: increase.F(increase.FileListParamsPurpose{
- In: increase.F([]increase.FileListParamsPurposeIn{increase.FileListParamsPurposeInCheckImageFront, increase.FileListParamsPurposeInCheckImageBack, increase.FileListParamsPurposeInMailedCheckImage}),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ Purpose: acme.F(acme.FileListParamsPurpose{
+ In: acme.F([]acme.FileListParamsPurposeIn{acme.FileListParamsPurposeInCheckImageFront, acme.FileListParamsPurposeInCheckImageBack, acme.FileListParamsPurposeInMailedCheckImage}),
}),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/go.mod b/go.mod
index 049cb064..c498c9f5 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/increase/increase-go
+module github.com/acme/acme-go
go 1.19
diff --git a/group.go b/group.go
index f8c45638..76b1c0f4 100644
--- a/group.go
+++ b/group.go
@@ -1,19 +1,19 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"net/http"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// GroupService contains methods and other services that help with interacting with
-// the increase API. Note, unlike clients, this service does not read variables
+// the acme API. Note, unlike clients, this service does not read variables
// from the environment automatically. You should not instantiate this service
// directly, and instead use the [NewGroupService] method instead.
type GroupService struct {
@@ -37,7 +37,7 @@ func (r *GroupService) GetDetails(ctx context.Context, opts ...option.RequestOpt
return
}
-// Groups represent organizations using Increase. You can retrieve information
+// Groups represent organizations using Acme. You can retrieve information
// about your own organization via the API, or (more commonly) OAuth platforms can
// retrieve information about the organizations that have granted them access.
type Group struct {
diff --git a/group_test.go b/group_test.go
index 57a9d749..09af4123 100644
--- a/group_test.go
+++ b/group_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestGroupGetDetails(t *testing.T) {
@@ -21,13 +21,13 @@ func TestGroupGetDetails(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Groups.GetDetails(context.TODO())
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/inboundachtransfer.go b/inboundachtransfer.go
index b5952877..8ed2d894 100644
--- a/inboundachtransfer.go
+++ b/inboundachtransfer.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// InboundACHTransferService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewInboundACHTransferService] method
// instead.
@@ -90,7 +90,7 @@ func (r *InboundACHTransferService) TransferReturn(ctx context.Context, inboundA
return
}
-// An Inbound ACH Transfer is an ACH transfer initiated outside of Increase to your
+// An Inbound ACH Transfer is an ACH transfer initiated outside of Acme to your
// account.
type InboundACHTransfer struct {
// The inbound ach transfer's identifier.
@@ -295,7 +295,7 @@ const (
InboundACHTransferDeclineReasonACHRouteCanceled InboundACHTransferDeclineReason = "ach_route_canceled"
// The account number is disabled.
InboundACHTransferDeclineReasonACHRouteDisabled InboundACHTransferDeclineReason = "ach_route_disabled"
- // The transaction would cause an Increase limit to be exceeded.
+ // The transaction would cause an Acme limit to be exceeded.
InboundACHTransferDeclineReasonBreachesLimit InboundACHTransferDeclineReason = "breaches_limit"
// A credit was refused. This is a reasonable default reason for decline of
// credits.
@@ -317,7 +317,7 @@ const (
InboundACHTransferDeclineReasonNoACHRoute InboundACHTransferDeclineReason = "no_ach_route"
// The originating financial institution asked for this transfer to be returned.
InboundACHTransferDeclineReasonOriginatorRequest InboundACHTransferDeclineReason = "originator_request"
- // The transaction is not allowed per Increase's terms.
+ // The transaction is not allowed per Acme's terms.
InboundACHTransferDeclineReasonTransactionNotAllowed InboundACHTransferDeclineReason = "transaction_not_allowed"
// The user initiated the decline.
InboundACHTransferDeclineReasonUserInitiated InboundACHTransferDeclineReason = "user_initiated"
diff --git a/inboundachtransfer_test.go b/inboundachtransfer_test.go
index ae8dc32d..75ea5cd6 100644
--- a/inboundachtransfer_test.go
+++ b/inboundachtransfer_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestInboundACHTransferGet(t *testing.T) {
@@ -22,13 +22,13 @@ func TestInboundACHTransferGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.InboundACHTransfers.Get(context.TODO(), "inbound_ach_transfer_tdrwqr3fq9gnnq49odev")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -44,24 +44,24 @@ func TestInboundACHTransferListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.InboundACHTransfers.List(context.TODO(), increase.InboundACHTransferListParams{
- AccountID: increase.F("string"),
- CreatedAt: increase.F(increase.InboundACHTransferListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.InboundACHTransfers.List(context.TODO(), acme.InboundACHTransferListParams{
+ AccountID: acme.F("string"),
+ CreatedAt: acme.F(acme.InboundACHTransferListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- Status: increase.F(increase.InboundACHTransferListParamsStatusPending),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ Status: acme.F(acme.InboundACHTransferListParamsStatusPending),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -77,13 +77,13 @@ func TestInboundACHTransferDecline(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.InboundACHTransfers.Decline(context.TODO(), "inbound_ach_transfer_tdrwqr3fq9gnnq49odev")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -99,20 +99,20 @@ func TestInboundACHTransferNotificationOfChangeWithOptionalParams(t *testing.T)
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.InboundACHTransfers.NotificationOfChange(
context.TODO(),
"inbound_ach_transfer_tdrwqr3fq9gnnq49odev",
- increase.InboundACHTransferNotificationOfChangeParams{
- UpdatedAccountNumber: increase.F("987654321"),
- UpdatedRoutingNumber: increase.F("101050001"),
+ acme.InboundACHTransferNotificationOfChangeParams{
+ UpdatedAccountNumber: acme.F("987654321"),
+ UpdatedRoutingNumber: acme.F("101050001"),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -128,19 +128,19 @@ func TestInboundACHTransferTransferReturn(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.InboundACHTransfers.TransferReturn(
context.TODO(),
"inbound_ach_transfer_tdrwqr3fq9gnnq49odev",
- increase.InboundACHTransferTransferReturnParams{
- Reason: increase.F(increase.InboundACHTransferTransferReturnParamsReasonPaymentStopped),
+ acme.InboundACHTransferTransferReturnParams{
+ Reason: acme.F(acme.InboundACHTransferTransferReturnParamsReasonPaymentStopped),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/inboundwiredrawdownrequest.go b/inboundwiredrawdownrequest.go
index 1728ba4b..756674b9 100644
--- a/inboundwiredrawdownrequest.go
+++ b/inboundwiredrawdownrequest.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -8,16 +8,16 @@ import (
"net/http"
"net/url"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// InboundWireDrawdownRequestService contains methods and other services that help
-// with interacting with the increase API. Note, unlike clients, this service does
+// with interacting with the acme API. Note, unlike clients, this service does
// not read variables from the environment automatically. You should not
// instantiate this service directly, and instead use the
// [NewInboundWireDrawdownRequestService] method instead.
@@ -67,7 +67,7 @@ func (r *InboundWireDrawdownRequestService) ListAutoPaging(ctx context.Context,
// Inbound wire drawdown requests are requests from someone else to send them a
// wire. This feature is in beta; reach out to
-// [support@increase.com](mailto:support@increase.com) to learn more.
+// [support@acme.com](mailto:support@acme.com) to learn more.
type InboundWireDrawdownRequest struct {
// The Wire drawdown request identifier.
ID string `json:"id,required"`
diff --git a/inboundwiredrawdownrequest_test.go b/inboundwiredrawdownrequest_test.go
index 3f321568..e73cccea 100644
--- a/inboundwiredrawdownrequest_test.go
+++ b/inboundwiredrawdownrequest_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestInboundWireDrawdownRequestGet(t *testing.T) {
@@ -21,13 +21,13 @@ func TestInboundWireDrawdownRequestGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.InboundWireDrawdownRequests.Get(context.TODO(), "inbound_wire_drawdown_request_u5a92ikqhz1ytphn799e")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -43,16 +43,16 @@ func TestInboundWireDrawdownRequestListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.InboundWireDrawdownRequests.List(context.TODO(), increase.InboundWireDrawdownRequestListParams{
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ _, err := client.InboundWireDrawdownRequests.List(context.TODO(), acme.InboundWireDrawdownRequestListParams{
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/integration_test.go b/integration_test.go
index daf0a059..833d55cb 100644
--- a/integration_test.go
+++ b/integration_test.go
@@ -2,7 +2,7 @@
// and intermittent errors. We have a few tests here to better exercise
// those code paths in the client.
-package increase_test
+package acme_test
import (
"context"
@@ -10,9 +10,9 @@ import (
"math/rand"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
// Test that we can succesfully paginate through a list endpoint.
@@ -26,14 +26,14 @@ func TestAutoPaginationIntegration(t *testing.T) {
if !testutil.CheckIntegrationServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey(apiKey),
)
cds := make(map[string]bool)
- iter := client.CheckDeposits.ListAutoPaging(context.TODO(), increase.CheckDepositListParams{
- Limit: increase.F(int64(2)),
+ iter := client.CheckDeposits.ListAutoPaging(context.TODO(), acme.CheckDepositListParams{
+ Limit: acme.F(int64(2)),
})
for iter.Next() {
cd := iter.Current()
@@ -63,23 +63,23 @@ func TestNewIdempotentlyIntegration(t *testing.T) {
if !testutil.CheckIntegrationServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey(apiKey),
)
accountID := fmt.Sprintf("account_%08d", rand.Int())
- _, err := client.CheckDeposits.New(context.TODO(), increase.CheckDepositNewParams{
- AccountID: increase.F(accountID),
- Amount: increase.F(int64(42)),
- Currency: increase.F("USD"),
- FrontImageFileID: increase.F(fmt.Sprintf("file_%08d", rand.Int())),
- BackImageFileID: increase.F(fmt.Sprintf("file_%08d", rand.Int())),
+ _, err := client.CheckDeposits.New(context.TODO(), acme.CheckDepositNewParams{
+ AccountID: acme.F(accountID),
+ Amount: acme.F(int64(42)),
+ Currency: acme.F("USD"),
+ FrontImageFileID: acme.F(fmt.Sprintf("file_%08d", rand.Int())),
+ BackImageFileID: acme.F(fmt.Sprintf("file_%08d", rand.Int())),
})
if err != nil {
t.Fatalf("err should be nil: %s", err.Error())
}
- iter := client.CheckDeposits.ListAutoPaging(context.TODO(), increase.CheckDepositListParams{})
+ iter := client.CheckDeposits.ListAutoPaging(context.TODO(), acme.CheckDepositListParams{})
accountIDSeen := 0
for iter.Next() {
if accountID == iter.Current().AccountID {
diff --git a/internal/apierror/apierror.go b/internal/apierror/apierror.go
index 7aaf697f..ae6991a1 100644
--- a/internal/apierror/apierror.go
+++ b/internal/apierror/apierror.go
@@ -8,7 +8,7 @@ import (
"net/http"
"net/http/httputil"
- "github.com/increase/increase-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apijson"
)
// Error represents an error that originates from the API, i.e. when a request is
diff --git a/internal/apiform/encoder.go b/internal/apiform/encoder.go
index f7583e06..e7063c2a 100644
--- a/internal/apiform/encoder.go
+++ b/internal/apiform/encoder.go
@@ -11,7 +11,7 @@ import (
"sync"
"time"
- "github.com/increase/increase-go/internal/param"
+ "github.com/acme/acme-go/internal/param"
)
var encoders sync.Map // map[encoderEntry]encoderFunc
diff --git a/internal/apijson/encoder.go b/internal/apijson/encoder.go
index 93a7a00f..fa5ce074 100644
--- a/internal/apijson/encoder.go
+++ b/internal/apijson/encoder.go
@@ -12,7 +12,7 @@ import (
"github.com/tidwall/sjson"
- "github.com/increase/increase-go/internal/param"
+ "github.com/acme/acme-go/internal/param"
)
var encoders sync.Map // map[encoderEntry]encoderFunc
diff --git a/internal/apijson/field_test.go b/internal/apijson/field_test.go
index dc975979..76dadc9e 100644
--- a/internal/apijson/field_test.go
+++ b/internal/apijson/field_test.go
@@ -4,7 +4,7 @@ import (
"testing"
"time"
- "github.com/increase/increase-go/internal/param"
+ "github.com/acme/acme-go/internal/param"
)
type Struct struct {
diff --git a/internal/apiquery/encoder.go b/internal/apiquery/encoder.go
index b7e16bf3..06c84f83 100644
--- a/internal/apiquery/encoder.go
+++ b/internal/apiquery/encoder.go
@@ -9,7 +9,7 @@ import (
"sync"
"time"
- "github.com/increase/increase-go/internal/param"
+ "github.com/acme/acme-go/internal/param"
)
var encoders sync.Map // map[reflect.Type]encoderFunc
diff --git a/internal/requestconfig/requestconfig.go b/internal/requestconfig/requestconfig.go
index f66b4480..a77e2c8f 100644
--- a/internal/requestconfig/requestconfig.go
+++ b/internal/requestconfig/requestconfig.go
@@ -18,10 +18,10 @@ import (
"time"
"github.com/google/uuid"
- "github.com/increase/increase-go/internal"
- "github.com/increase/increase-go/internal/apierror"
- "github.com/increase/increase-go/internal/apiform"
- "github.com/increase/increase-go/internal/apiquery"
+ "github.com/acme/acme-go/internal"
+ "github.com/acme/acme-go/internal/apierror"
+ "github.com/acme/acme-go/internal/apiform"
+ "github.com/acme/acme-go/internal/apiquery"
)
func getNormalizedOS() string {
diff --git a/internal/shared/pagination.go b/internal/shared/pagination.go
index 9e9fdfb4..a62d164b 100644
--- a/internal/shared/pagination.go
+++ b/internal/shared/pagination.go
@@ -5,9 +5,9 @@ package shared
import (
"net/http"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// A list of Account objects.
diff --git a/oauthconnection.go b/oauthconnection.go
index 4a24b59d..020c2f6a 100644
--- a/oauthconnection.go
+++ b/oauthconnection.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// OauthConnectionService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewOauthConnectionService] method
// instead.
diff --git a/oauthconnection_test.go b/oauthconnection_test.go
index 28a93c34..838d4183 100644
--- a/oauthconnection_test.go
+++ b/oauthconnection_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestOauthConnectionGet(t *testing.T) {
@@ -21,13 +21,13 @@ func TestOauthConnectionGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.OauthConnections.Get(context.TODO(), "connection_dauknoksyr4wilz4e6my")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -43,16 +43,16 @@ func TestOauthConnectionListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.OauthConnections.List(context.TODO(), increase.OauthConnectionListParams{
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ _, err := client.OauthConnections.List(context.TODO(), acme.OauthConnectionListParams{
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/option/requestoption.go b/option/requestoption.go
index 7d85ef6f..7b1c42e7 100644
--- a/option/requestoption.go
+++ b/option/requestoption.go
@@ -9,11 +9,11 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/requestconfig"
"github.com/tidwall/sjson"
)
-// RequestOption is an option for the requests made by the increase API Client
+// RequestOption is an option for the requests made by the acme API Client
// which can be supplied to clients, services, and methods. You can read more about this functional
// options pattern in our [README].
//
@@ -185,14 +185,14 @@ func WithRequestTimeout(dur time.Duration) RequestOption {
// environment to be the "production" environment. An environment specifies which base URL
// to use by default.
func WithEnvironmentProduction() RequestOption {
- return WithBaseURL("https://api.increase.com/")
+ return WithBaseURL("https://api.acme.com/")
}
// WithEnvironmentSandbox returns a RequestOption that sets the current
// environment to be the "sandbox" environment. An environment specifies which base URL
// to use by default.
func WithEnvironmentSandbox() RequestOption {
- return WithBaseURL("https://sandbox.increase.com/")
+ return WithBaseURL("https://sandbox.acme.com/")
}
// WithAPIKey returns a RequestOption that sets the client setting "api_key".
diff --git a/paginationauto_test.go b/paginationauto_test.go
index e34348c7..019069d4 100644
--- a/paginationauto_test.go
+++ b/paginationauto_test.go
@@ -1,15 +1,15 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestAutoPagination(t *testing.T) {
@@ -20,11 +20,11 @@ func TestAutoPagination(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- iter := client.Accounts.ListAutoPaging(context.TODO(), increase.AccountListParams{})
+ iter := client.Accounts.ListAutoPaging(context.TODO(), acme.AccountListParams{})
// Prism mock isn't going to give us real pagination
for i := 0; i < 3 && iter.Next(); i++ {
account := iter.Current()
diff --git a/paginationmanual_test.go b/paginationmanual_test.go
index 67385b74..77417f5b 100644
--- a/paginationmanual_test.go
+++ b/paginationmanual_test.go
@@ -1,15 +1,15 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestManualPagination(t *testing.T) {
@@ -20,11 +20,11 @@ func TestManualPagination(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- page, err := client.Accounts.List(context.TODO(), increase.AccountListParams{})
+ page, err := client.Accounts.List(context.TODO(), acme.AccountListParams{})
if err != nil {
t.Fatalf("err should be nil: %s", err.Error())
}
diff --git a/pendingtransaction.go b/pendingtransaction.go
index 1f86ea58..a591d212 100644
--- a/pendingtransaction.go
+++ b/pendingtransaction.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// PendingTransactionService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewPendingTransactionService] method
// instead.
diff --git a/pendingtransaction_test.go b/pendingtransaction_test.go
index 36fe6c4e..d624d3f1 100644
--- a/pendingtransaction_test.go
+++ b/pendingtransaction_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestPendingTransactionGet(t *testing.T) {
@@ -22,13 +22,13 @@ func TestPendingTransactionGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.PendingTransactions.Get(context.TODO(), "pending_transaction_k1sfetcau2qbvjbzgju4")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -44,31 +44,31 @@ func TestPendingTransactionListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.PendingTransactions.List(context.TODO(), increase.PendingTransactionListParams{
- AccountID: increase.F("string"),
- Category: increase.F(increase.PendingTransactionListParamsCategory{
- In: increase.F([]increase.PendingTransactionListParamsCategoryIn{increase.PendingTransactionListParamsCategoryInAccountTransferInstruction, increase.PendingTransactionListParamsCategoryInACHTransferInstruction, increase.PendingTransactionListParamsCategoryInCardAuthorization}),
+ _, err := client.PendingTransactions.List(context.TODO(), acme.PendingTransactionListParams{
+ AccountID: acme.F("string"),
+ Category: acme.F(acme.PendingTransactionListParamsCategory{
+ In: acme.F([]acme.PendingTransactionListParamsCategoryIn{acme.PendingTransactionListParamsCategoryInAccountTransferInstruction, acme.PendingTransactionListParamsCategoryInACHTransferInstruction, acme.PendingTransactionListParamsCategoryInCardAuthorization}),
}),
- CreatedAt: increase.F(increase.PendingTransactionListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ CreatedAt: acme.F(acme.PendingTransactionListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- RouteID: increase.F("string"),
- SourceID: increase.F("string"),
- Status: increase.F(increase.PendingTransactionListParamsStatus{
- In: increase.F([]increase.PendingTransactionListParamsStatusIn{increase.PendingTransactionListParamsStatusInPending, increase.PendingTransactionListParamsStatusInComplete}),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ RouteID: acme.F("string"),
+ SourceID: acme.F("string"),
+ Status: acme.F(acme.PendingTransactionListParamsStatus{
+ In: acme.F([]acme.PendingTransactionListParamsStatusIn{acme.PendingTransactionListParamsStatusInPending, acme.PendingTransactionListParamsStatusInComplete}),
}),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/physicalcard.go b/physicalcard.go
index 80f91144..96ff73ad 100644
--- a/physicalcard.go
+++ b/physicalcard.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// PhysicalCardService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewPhysicalCardService] method
// instead.
@@ -85,7 +85,7 @@ func (r *PhysicalCardService) ListAutoPaging(ctx context.Context, query Physical
// Custom physical Visa cards that are shipped to your customers. The artwork is
// configurable by a connected [Card Profile](/documentation/api#card-profiles).
// The same Card can be used for multiple Physical Cards. Printing cards incurs a
-// fee. Please contact [support@increase.com](mailto:support@increase.com) for
+// fee. Please contact [support@acme.com](mailto:support@acme.com) for
// pricing!
type PhysicalCard struct {
// The physical card identifier.
diff --git a/physicalcard_test.go b/physicalcard_test.go
index bec9dd55..4b32ca00 100644
--- a/physicalcard_test.go
+++ b/physicalcard_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestPhysicalCardNew(t *testing.T) {
@@ -22,33 +22,33 @@ func TestPhysicalCardNew(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.PhysicalCards.New(context.TODO(), increase.PhysicalCardNewParams{
- CardID: increase.F("card_oubs0hwk5rn6knuecxg2"),
- CardProfileID: increase.F("card_profile_cox5y73lob2eqly18piy"),
- Cardholder: increase.F(increase.PhysicalCardNewParamsCardholder{
- FirstName: increase.F("Ian"),
- LastName: increase.F("Crease"),
+ _, err := client.PhysicalCards.New(context.TODO(), acme.PhysicalCardNewParams{
+ CardID: acme.F("card_oubs0hwk5rn6knuecxg2"),
+ CardProfileID: acme.F("card_profile_cox5y73lob2eqly18piy"),
+ Cardholder: acme.F(acme.PhysicalCardNewParamsCardholder{
+ FirstName: acme.F("Ian"),
+ LastName: acme.F("Crease"),
}),
- Shipment: increase.F(increase.PhysicalCardNewParamsShipment{
- Method: increase.F(increase.PhysicalCardNewParamsShipmentMethodUsps),
- Address: increase.F(increase.PhysicalCardNewParamsShipmentAddress{
- Name: increase.F("Ian Crease"),
- Line1: increase.F("33 Liberty Street"),
- Line2: increase.F("Unit 2"),
- Line3: increase.F("x"),
- PhoneNumber: increase.F("x"),
- City: increase.F("New York"),
- State: increase.F("NY"),
- PostalCode: increase.F("10045"),
+ Shipment: acme.F(acme.PhysicalCardNewParamsShipment{
+ Method: acme.F(acme.PhysicalCardNewParamsShipmentMethodUsps),
+ Address: acme.F(acme.PhysicalCardNewParamsShipmentAddress{
+ Name: acme.F("Ian Crease"),
+ Line1: acme.F("33 Liberty Street"),
+ Line2: acme.F("Unit 2"),
+ Line3: acme.F("x"),
+ PhoneNumber: acme.F("x"),
+ City: acme.F("New York"),
+ State: acme.F("NY"),
+ PostalCode: acme.F("10045"),
}),
}),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -64,13 +64,13 @@ func TestPhysicalCardGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.PhysicalCards.Get(context.TODO(), "physical_card_ode8duyq5v2ynhjoharl")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -86,19 +86,19 @@ func TestPhysicalCardUpdate(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.PhysicalCards.Update(
context.TODO(),
"physical_card_ode8duyq5v2ynhjoharl",
- increase.PhysicalCardUpdateParams{
- Status: increase.F(increase.PhysicalCardUpdateParamsStatusDisabled),
+ acme.PhysicalCardUpdateParams{
+ Status: acme.F(acme.PhysicalCardUpdateParamsStatusDisabled),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -114,23 +114,23 @@ func TestPhysicalCardListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.PhysicalCards.List(context.TODO(), increase.PhysicalCardListParams{
- CardID: increase.F("string"),
- CreatedAt: increase.F(increase.PhysicalCardListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.PhysicalCards.List(context.TODO(), acme.PhysicalCardListParams{
+ CardID: acme.F("string"),
+ CreatedAt: acme.F(acme.PhysicalCardListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/prism/package-lock.json b/prism/package-lock.json
index 5a1a2d5a..fb54e687 100644
--- a/prism/package-lock.json
+++ b/prism/package-lock.json
@@ -1,11 +1,11 @@
{
- "name": "bug-squash-increase-go",
+ "name": "bug-squash-acme-go",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
- "name": "bug-squash-increase-go",
+ "name": "bug-squash-acme-go",
"version": "1.0.0",
"license": "ISC",
"devDependencies": {
diff --git a/prism/package.json b/prism/package.json
index 797d34d6..ae47d3a2 100644
--- a/prism/package.json
+++ b/prism/package.json
@@ -1,7 +1,7 @@
{
- "name": "bug-squash-increase-go",
+ "name": "bug-squash-acme-go",
"version": "1.0.0",
- "description": "",
+ "description": "",
"main": "index.js",
"directories": {
"example": "examples"
diff --git a/program.go b/program.go
index 6847025c..36c4c961 100644
--- a/program.go
+++ b/program.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// ProgramService contains methods and other services that help with interacting
-// with the increase API. Note, unlike clients, this service does not read
+// with the acme API. Note, unlike clients, this service does not read
// variables from the environment automatically. You should not instantiate this
// service directly, and instead use the [NewProgramService] method instead.
type ProgramService struct {
diff --git a/program_test.go b/program_test.go
index f691d6d9..a8fae444 100644
--- a/program_test.go
+++ b/program_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestProgramGet(t *testing.T) {
@@ -21,13 +21,13 @@ func TestProgramGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Programs.Get(context.TODO(), "program_i2v2os4mwza1oetokh9i")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -43,16 +43,16 @@ func TestProgramListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Programs.List(context.TODO(), increase.ProgramListParams{
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ _, err := client.Programs.List(context.TODO(), acme.ProgramListParams{
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/realtimedecision.go b/realtimedecision.go
index 64c819b8..0a79e57c 100644
--- a/realtimedecision.go
+++ b/realtimedecision.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -8,14 +8,14 @@ import (
"net/http"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// RealTimeDecisionService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewRealTimeDecisionService] method
// instead.
@@ -50,7 +50,7 @@ func (r *RealTimeDecisionService) Action(ctx context.Context, realTimeDecisionID
// Real Time Decisions are created when your application needs to take action in
// real-time to some event such as a card authorization. Real time decisions are
-// currently in beta; please contact support@increase.com if you're interested in
+// currently in beta; please contact support@acme.com if you're interested in
// trying them out!
type RealTimeDecision struct {
// The Real-Time Decision identifier.
@@ -400,7 +400,7 @@ type RealTimeDecisionCardAuthorizationRequestDetailsCategory string
const (
// A regular, standalone authorization.
RealTimeDecisionCardAuthorizationRequestDetailsCategoryInitialAuthorization RealTimeDecisionCardAuthorizationRequestDetailsCategory = "initial_authorization"
- // An incremental request to increase the amount of an existing authorization.
+ // An incremental request to acme the amount of an existing authorization.
RealTimeDecisionCardAuthorizationRequestDetailsCategoryIncrementalAuthorization RealTimeDecisionCardAuthorizationRequestDetailsCategory = "incremental_authorization"
)
diff --git a/realtimedecision_test.go b/realtimedecision_test.go
index 2fe7d754..cffcc6d8 100644
--- a/realtimedecision_test.go
+++ b/realtimedecision_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestRealTimeDecisionGet(t *testing.T) {
@@ -21,13 +21,13 @@ func TestRealTimeDecisionGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.RealTimeDecisions.Get(context.TODO(), "real_time_decision_j76n2e810ezcg3zh5qtn")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -43,34 +43,34 @@ func TestRealTimeDecisionActionWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.RealTimeDecisions.Action(
context.TODO(),
"real_time_decision_j76n2e810ezcg3zh5qtn",
- increase.RealTimeDecisionActionParams{
- CardAuthorization: increase.F(increase.RealTimeDecisionActionParamsCardAuthorization{
- Decision: increase.F(increase.RealTimeDecisionActionParamsCardAuthorizationDecisionApprove),
+ acme.RealTimeDecisionActionParams{
+ CardAuthorization: acme.F(acme.RealTimeDecisionActionParamsCardAuthorization{
+ Decision: acme.F(acme.RealTimeDecisionActionParamsCardAuthorizationDecisionApprove),
}),
- DigitalWalletAuthentication: increase.F(increase.RealTimeDecisionActionParamsDigitalWalletAuthentication{
- Result: increase.F(increase.RealTimeDecisionActionParamsDigitalWalletAuthenticationResultSuccess),
+ DigitalWalletAuthentication: acme.F(acme.RealTimeDecisionActionParamsDigitalWalletAuthentication{
+ Result: acme.F(acme.RealTimeDecisionActionParamsDigitalWalletAuthenticationResultSuccess),
}),
- DigitalWalletToken: increase.F(increase.RealTimeDecisionActionParamsDigitalWalletToken{
- Approval: increase.F(increase.RealTimeDecisionActionParamsDigitalWalletTokenApproval{
- CardProfileID: increase.F("string"),
- Phone: increase.F("x"),
- Email: increase.F("x"),
+ DigitalWalletToken: acme.F(acme.RealTimeDecisionActionParamsDigitalWalletToken{
+ Approval: acme.F(acme.RealTimeDecisionActionParamsDigitalWalletTokenApproval{
+ CardProfileID: acme.F("string"),
+ Phone: acme.F("x"),
+ Email: acme.F("x"),
}),
- Decline: increase.F(increase.RealTimeDecisionActionParamsDigitalWalletTokenDecline{
- Reason: increase.F("x"),
+ Decline: acme.F(acme.RealTimeDecisionActionParamsDigitalWalletTokenDecline{
+ Reason: acme.F("x"),
}),
}),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/realtimepaymentstransfer.go b/realtimepaymentstransfer.go
index efa7645d..c8ec6c04 100644
--- a/realtimepaymentstransfer.go
+++ b/realtimepaymentstransfer.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// RealTimePaymentsTransferService contains methods and other services that help
-// with interacting with the increase API. Note, unlike clients, this service does
+// with interacting with the acme API. Note, unlike clients, this service does
// not read variables from the environment automatically. You should not
// instantiate this service directly, and instead use the
// [NewRealTimePaymentsTransferService] method instead.
@@ -74,7 +74,7 @@ func (r *RealTimePaymentsTransferService) ListAutoPaging(ctx context.Context, qu
return shared.NewPageAutoPager(r.List(ctx, query, opts...))
}
-// Real-Time Payments transfers move funds, within seconds, between your Increase
+// Real-Time Payments transfers move funds, within seconds, between your Acme
// account and any other account on the Real-Time Payments network.
type RealTimePaymentsTransfer struct {
// The Real-Time Payments Transfer's identifier.
@@ -106,7 +106,7 @@ type RealTimePaymentsTransfer struct {
ExternalAccountID string `json:"external_account_id,required,nullable"`
// The ID for the pending transaction representing the transfer. A pending
// transaction is created when the transfer
- // [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals)
+ // [requires approval](https://acme.com/documentation/transfer-approvals#transfer-approvals)
// by someone else in your organization.
PendingTransactionID string `json:"pending_transaction_id,required,nullable"`
// If the transfer is rejected by Real-Time Payments or the destination financial
@@ -322,7 +322,7 @@ const (
// The destination financial institution is currently signed off of Real-Time
// Payments. Corresponds to the Real-Time Payments reason code `9910`.
RealTimePaymentsTransferRejectionRejectReasonCodeInstructedAgentSignedOff RealTimePaymentsTransferRejectionRejectReasonCode = "instructed_agent_signed_off"
- // The transfer was rejected due to an internal Increase issue. We have been
+ // The transfer was rejected due to an internal Acme issue. We have been
// notified.
RealTimePaymentsTransferRejectionRejectReasonCodeProcessingError RealTimePaymentsTransferRejectionRejectReasonCode = "processing_error"
// Some other error or issue has occurred.
@@ -346,7 +346,7 @@ const (
RealTimePaymentsTransferStatusComplete RealTimePaymentsTransferStatus = "complete"
// The transfer was rejected by the network or the recipient's bank.
RealTimePaymentsTransferStatusRejected RealTimePaymentsTransferStatus = "rejected"
- // The transfer requires attention from an Increase operator.
+ // The transfer requires attention from an Acme operator.
RealTimePaymentsTransferStatusRequiresAttention RealTimePaymentsTransferStatus = "requires_attention"
)
diff --git a/realtimepaymentstransfer_test.go b/realtimepaymentstransfer_test.go
index c41dea65..1cc91dd2 100644
--- a/realtimepaymentstransfer_test.go
+++ b/realtimepaymentstransfer_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestRealTimePaymentsTransferNewWithOptionalParams(t *testing.T) {
@@ -22,23 +22,23 @@ func TestRealTimePaymentsTransferNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.RealTimePaymentsTransfers.New(context.TODO(), increase.RealTimePaymentsTransferNewParams{
- Amount: increase.F(int64(100)),
- CreditorName: increase.F("Ian Crease"),
- RemittanceInformation: increase.F("Invoice 29582"),
- SourceAccountNumberID: increase.F("account_number_v18nkfqm6afpsrvy82b2"),
- DestinationAccountNumber: increase.F("987654321"),
- DestinationRoutingNumber: increase.F("101050001"),
- ExternalAccountID: increase.F("string"),
- RequireApproval: increase.F(true),
- UniqueIdentifier: increase.F("x"),
+ _, err := client.RealTimePaymentsTransfers.New(context.TODO(), acme.RealTimePaymentsTransferNewParams{
+ Amount: acme.F(int64(100)),
+ CreditorName: acme.F("Ian Crease"),
+ RemittanceInformation: acme.F("Invoice 29582"),
+ SourceAccountNumberID: acme.F("account_number_v18nkfqm6afpsrvy82b2"),
+ DestinationAccountNumber: acme.F("987654321"),
+ DestinationRoutingNumber: acme.F("101050001"),
+ ExternalAccountID: acme.F("string"),
+ RequireApproval: acme.F(true),
+ UniqueIdentifier: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -54,13 +54,13 @@ func TestRealTimePaymentsTransferGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.RealTimePaymentsTransfers.Get(context.TODO(), "real_time_payments_transfer_iyuhl5kdn7ssmup83mvq")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -76,25 +76,25 @@ func TestRealTimePaymentsTransferListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.RealTimePaymentsTransfers.List(context.TODO(), increase.RealTimePaymentsTransferListParams{
- AccountID: increase.F("string"),
- CreatedAt: increase.F(increase.RealTimePaymentsTransferListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.RealTimePaymentsTransfers.List(context.TODO(), acme.RealTimePaymentsTransferListParams{
+ AccountID: acme.F("string"),
+ CreatedAt: acme.F(acme.RealTimePaymentsTransferListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- ExternalAccountID: increase.F("string"),
- Limit: increase.F(int64(1)),
- UniqueIdentifier: increase.F("x"),
+ Cursor: acme.F("string"),
+ ExternalAccountID: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ UniqueIdentifier: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/routingnumber.go b/routingnumber.go
index 69cb5ef2..e85db677 100644
--- a/routingnumber.go
+++ b/routingnumber.go
@@ -1,22 +1,22 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"net/http"
"net/url"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// RoutingNumberService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewRoutingNumberService] method
// instead.
diff --git a/routingnumber_test.go b/routingnumber_test.go
index 496f5122..4ef43294 100644
--- a/routingnumber_test.go
+++ b/routingnumber_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestRoutingNumberListWithOptionalParams(t *testing.T) {
@@ -21,17 +21,17 @@ func TestRoutingNumberListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.RoutingNumbers.List(context.TODO(), increase.RoutingNumberListParams{
- RoutingNumber: increase.F("xxxxxxxxx"),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ _, err := client.RoutingNumbers.List(context.TODO(), acme.RoutingNumberListParams{
+ RoutingNumber: acme.F("xxxxxxxxx"),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/scripts/integration_server.go b/scripts/integration_server.go
index 5464f518..d86b5475 100644
--- a/scripts/integration_server.go
+++ b/scripts/integration_server.go
@@ -11,8 +11,8 @@ import (
"strconv"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/shared"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/shared"
)
func check(err error) {
@@ -21,7 +21,7 @@ func check(err error) {
}
}
-func sendError(w http.ResponseWriter, error *increase.Error) {
+func sendError(w http.ResponseWriter, error *acme.Error) {
errorB, err := json.Marshal(error)
if err != nil {
panic(err)
@@ -39,8 +39,8 @@ func rootFunc(w http.ResponseWriter, r *http.Request) {
func checkAuthorization(w http.ResponseWriter, r *http.Request) bool {
if r.Header.Get("Authorization") != "Bearer sk_test_1234567890" {
- error := &increase.Error{
- Detail: "See https://increase.com/documentation/api#authorization-and-testing",
+ error := &acme.Error{
+ Detail: "See https://acme.com/documentation/api#authorization-and-testing",
Status: 403,
Title: "Incorrect or missing Authorization",
Type: "insufficient_permissions_error",
@@ -96,7 +96,7 @@ func checkIdempotency(w http.ResponseWriter, r *http.Request) bool {
mismatch = true
}
if mismatch {
- error := &increase.Error{
+ error := &acme.Error{
Detail: "Idempotency token reused with dissimilar request",
Status: 422,
Title: "Invalid idempotency configuration",
@@ -115,12 +115,12 @@ func checkIdempotency(w http.ResponseWriter, r *http.Request) bool {
}
var checkDepositNextID = 0
-var allCheckDeposits []*increase.CheckDeposit
+var allCheckDeposits []*acme.CheckDeposit
func init() {
- allCheckDeposits = make([]*increase.CheckDeposit, 5)
+ allCheckDeposits = make([]*acme.CheckDeposit, 5)
for i := 0; i < 5; i++ {
- allCheckDeposits[i] = &increase.CheckDeposit{
+ allCheckDeposits[i] = &acme.CheckDeposit{
ID: fmt.Sprintf("check_deposit_%08d", checkDepositNextID),
CreatedAt: time.Now(),
AccountID: fmt.Sprintf("account_%08d", rand.Int()),
@@ -168,7 +168,7 @@ func getCheckDepositsFunc(w http.ResponseWriter, r *http.Request) {
nextCursor = (allCheckDeposits[end]).ID
}
data := allCheckDeposits[start : end+1]
- page := &shared.Page[*increase.CheckDeposit]{
+ page := &shared.Page[*acme.CheckDeposit]{
Data: data,
NextCursor: nextCursor,
}
@@ -201,7 +201,7 @@ func postCheckDepositsFunc(w http.ResponseWriter, r *http.Request) {
check(err)
// Simulate processing create request.
- cd := &increase.CheckDeposit{}
+ cd := &acme.CheckDeposit{}
err = json.Unmarshal(body, cd)
cd.ID = fmt.Sprintf("check_deposit_%08d", checkDepositNextID)
checkDepositNextID += 1
diff --git a/simulation.go b/simulation.go
index 85a729aa..cd34a4cf 100644
--- a/simulation.go
+++ b/simulation.go
@@ -1,13 +1,13 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/option"
)
// SimulationService contains methods and other services that help with interacting
-// with the increase API. Note, unlike clients, this service does not read
+// with the acme API. Note, unlike clients, this service does not read
// variables from the environment automatically. You should not instantiate this
// service directly, and instead use the [NewSimulationService] method instead.
type SimulationService struct {
diff --git a/simulationaccountstatement.go b/simulationaccountstatement.go
index 10dca5ff..470ef4b8 100644
--- a/simulationaccountstatement.go
+++ b/simulationaccountstatement.go
@@ -1,19 +1,19 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"net/http"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationAccountStatementService contains methods and other services that help
-// with interacting with the increase API. Note, unlike clients, this service does
+// with interacting with the acme API. Note, unlike clients, this service does
// not read variables from the environment automatically. You should not
// instantiate this service directly, and instead use the
// [NewSimulationAccountStatementService] method instead.
diff --git a/simulationaccountstatement_test.go b/simulationaccountstatement_test.go
index a20972be..411b76b0 100644
--- a/simulationaccountstatement_test.go
+++ b/simulationaccountstatement_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationAccountStatementNew(t *testing.T) {
@@ -21,15 +21,15 @@ func TestSimulationAccountStatementNew(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Simulations.AccountStatements.New(context.TODO(), increase.SimulationAccountStatementNewParams{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
+ _, err := client.Simulations.AccountStatements.New(context.TODO(), acme.SimulationAccountStatementNewParams{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationaccounttransfer.go b/simulationaccounttransfer.go
index 49a08cac..8bf2a957 100644
--- a/simulationaccounttransfer.go
+++ b/simulationaccounttransfer.go
@@ -1,18 +1,18 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"fmt"
"net/http"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationAccountTransferService contains methods and other services that help
-// with interacting with the increase API. Note, unlike clients, this service does
+// with interacting with the acme API. Note, unlike clients, this service does
// not read variables from the environment automatically. You should not
// instantiate this service directly, and instead use the
// [NewSimulationAccountTransferService] method instead.
diff --git a/simulationaccounttransfer_test.go b/simulationaccounttransfer_test.go
index 968f3526..249217a9 100644
--- a/simulationaccounttransfer_test.go
+++ b/simulationaccounttransfer_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationAccountTransferComplete(t *testing.T) {
@@ -22,13 +22,13 @@ func TestSimulationAccountTransferComplete(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.AccountTransfers.Complete(context.TODO(), "account_transfer_7k9qe1ysdgqztnt63l7n")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationachtransfer.go b/simulationachtransfer.go
index 5013becb..5d2e2fa8 100644
--- a/simulationachtransfer.go
+++ b/simulationachtransfer.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -8,14 +8,14 @@ import (
"net/http"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationACHTransferService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewSimulationACHTransferService]
// method instead.
@@ -33,11 +33,11 @@ func NewSimulationACHTransferService(opts ...option.RequestOption) (r *Simulatio
}
// Simulates an inbound ACH transfer to your account. This imitates initiating a
-// transfer to an Increase account from a different financial institution. The
+// transfer to an Acme account from a different financial institution. The
// transfer may be either a credit or a debit depending on if the `amount` is
// positive or negative. The result of calling this API will contain the created
// transfer. You can pass a `resolve_at` parameter to allow for a window to
-// [action on the Inbound ACH Transfer](https://increase.com/documentation/inbound-ach-transfers#inbound-ach-transfers).
+// [action on the Inbound ACH Transfer](https://acme.com/documentation/inbound-ach-transfers#inbound-ach-transfers).
// Alternatively, if you don't pass the `resolve_at` parameter the result will
// contain either a [Transaction](#transactions) or a
// [Declined Transaction](#declined-transactions) depending on whether or not the
@@ -61,7 +61,7 @@ func (r *SimulationACHTransferService) Return(ctx context.Context, achTransferID
// Simulates the submission of an [ACH Transfer](#ach-transfers) to the Federal
// Reserve. This transfer must first have a `status` of `pending_approval` or
-// `pending_submission`. In production, Increase submits ACH Transfers to the
+// `pending_submission`. In production, Acme submits ACH Transfers to the
// Federal Reserve three times per day on weekdays. Since sandbox ACH Transfers are
// not submitted to the Federal Reserve, this endpoint allows you to skip that
// delay and transition the ACH Transfer to a status of `submitted`.
@@ -303,7 +303,7 @@ const (
ACHTransferSimulationDeclinedTransactionSourceACHDeclineReasonACHRouteCanceled ACHTransferSimulationDeclinedTransactionSourceACHDeclineReason = "ach_route_canceled"
// The account number is disabled.
ACHTransferSimulationDeclinedTransactionSourceACHDeclineReasonACHRouteDisabled ACHTransferSimulationDeclinedTransactionSourceACHDeclineReason = "ach_route_disabled"
- // The transaction would cause an Increase limit to be exceeded.
+ // The transaction would cause an Acme limit to be exceeded.
ACHTransferSimulationDeclinedTransactionSourceACHDeclineReasonBreachesLimit ACHTransferSimulationDeclinedTransactionSourceACHDeclineReason = "breaches_limit"
// A credit was refused. This is a reasonable default reason for decline of
// credits.
@@ -325,7 +325,7 @@ const (
ACHTransferSimulationDeclinedTransactionSourceACHDeclineReasonNoACHRoute ACHTransferSimulationDeclinedTransactionSourceACHDeclineReason = "no_ach_route"
// The originating financial institution asked for this transfer to be returned.
ACHTransferSimulationDeclinedTransactionSourceACHDeclineReasonOriginatorRequest ACHTransferSimulationDeclinedTransactionSourceACHDeclineReason = "originator_request"
- // The transaction is not allowed per Increase's terms.
+ // The transaction is not allowed per Acme's terms.
ACHTransferSimulationDeclinedTransactionSourceACHDeclineReasonTransactionNotAllowed ACHTransferSimulationDeclinedTransactionSourceACHDeclineReason = "transaction_not_allowed"
// The user initiated the decline.
ACHTransferSimulationDeclinedTransactionSourceACHDeclineReasonUserInitiated ACHTransferSimulationDeclinedTransactionSourceACHDeclineReason = "user_initiated"
@@ -634,7 +634,7 @@ const (
ACHTransferSimulationDeclinedTransactionSourceCardDeclineReasonInsufficientFunds ACHTransferSimulationDeclinedTransactionSourceCardDeclineReason = "insufficient_funds"
// The given CVV2 did not match the card's value.
ACHTransferSimulationDeclinedTransactionSourceCardDeclineReasonCvv2Mismatch ACHTransferSimulationDeclinedTransactionSourceCardDeclineReason = "cvv2_mismatch"
- // The attempted card transaction is not allowed per Increase's terms.
+ // The attempted card transaction is not allowed per Acme's terms.
ACHTransferSimulationDeclinedTransactionSourceCardDeclineReasonTransactionNotAllowed ACHTransferSimulationDeclinedTransactionSourceCardDeclineReason = "transaction_not_allowed"
// The transaction was blocked by a Limit.
ACHTransferSimulationDeclinedTransactionSourceCardDeclineReasonBreachesLimit ACHTransferSimulationDeclinedTransactionSourceCardDeclineReason = "breaches_limit"
@@ -650,7 +650,7 @@ const (
// exist.
ACHTransferSimulationDeclinedTransactionSourceCardDeclineReasonMissingOriginalAuthorization ACHTransferSimulationDeclinedTransactionSourceCardDeclineReason = "missing_original_authorization"
// The transaction was suspected to be fraudulent. Please reach out to
- // support@increase.com for more information.
+ // support@acme.com for more information.
ACHTransferSimulationDeclinedTransactionSourceCardDeclineReasonSuspectedFraud ACHTransferSimulationDeclinedTransactionSourceCardDeclineReason = "suspected_fraud"
)
@@ -850,9 +850,9 @@ const (
// The amount the receiving bank is attempting to deposit does not match the amount
// on the check.
ACHTransferSimulationDeclinedTransactionSourceCheckDeclineReasonAmountMismatch ACHTransferSimulationDeclinedTransactionSourceCheckDeclineReason = "amount_mismatch"
- // The check attempting to be deposited does not belong to Increase.
+ // The check attempting to be deposited does not belong to Acme.
ACHTransferSimulationDeclinedTransactionSourceCheckDeclineReasonNotOurItem ACHTransferSimulationDeclinedTransactionSourceCheckDeclineReason = "not_our_item"
- // The account number on the check does not exist at Increase.
+ // The account number on the check does not exist at Acme.
ACHTransferSimulationDeclinedTransactionSourceCheckDeclineReasonNoAccountNumberFound ACHTransferSimulationDeclinedTransactionSourceCheckDeclineReason = "no_account_number_found"
)
@@ -1023,7 +1023,7 @@ type ACHTransferSimulationDeclinedTransactionSourceInternationalACHDecline struc
ReceiverStateOrProvince string `json:"receiver_state_or_province,required,nullable"`
// A portion of the receiver address. This may be incomplete.
ReceiverStreetAddress string `json:"receiver_street_address,required"`
- // The name of the receiver of the transfer. This is not verified by Increase.
+ // The name of the receiver of the transfer. This is not verified by Acme.
ReceivingCompanyOrIndividualName string `json:"receiving_company_or_individual_name,required"`
// The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
// country code of the receiving bank country.
@@ -1041,7 +1041,7 @@ type ACHTransferSimulationDeclinedTransactionSourceInternationalACHDecline struc
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
JSON achTransferSimulationDeclinedTransactionSourceInternationalACHDeclineJSON `json:"-"`
}
@@ -1213,7 +1213,7 @@ type ACHTransferSimulationDeclinedTransactionSourceWireDecline struct {
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the declined transaction.
+ // An Acme-constructed description of the declined transaction.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -1287,7 +1287,7 @@ const (
ACHTransferSimulationDeclinedTransactionSourceWireDeclineReasonGroupLocked ACHTransferSimulationDeclinedTransactionSourceWireDeclineReason = "group_locked"
// The beneficiary account number does not exist.
ACHTransferSimulationDeclinedTransactionSourceWireDeclineReasonNoAccountNumber ACHTransferSimulationDeclinedTransactionSourceWireDeclineReason = "no_account_number"
- // The transaction is not allowed per Increase's terms.
+ // The transaction is not allowed per Acme's terms.
ACHTransferSimulationDeclinedTransactionSourceWireDeclineReasonTransactionNotAllowed ACHTransferSimulationDeclinedTransactionSourceWireDeclineReason = "transaction_not_allowed"
)
@@ -1650,7 +1650,7 @@ type ACHTransferSimulationTransactionSourceACHTransferReturn struct {
// The three character ACH return code, in the range R01 to R85.
RawReturnReasonCode string `json:"raw_return_reason_code,required"`
// Why the ACH Transfer was returned. This reason code is sent by the receiving
- // bank back to Increase.
+ // bank back to Acme.
ReturnReasonCode ACHTransferSimulationTransactionSourceACHTransferReturnReturnReasonCode `json:"return_reason_code,required"`
// The identifier of the Transaction associated with this return.
TransactionID string `json:"transaction_id,required"`
@@ -1677,7 +1677,7 @@ func (r *ACHTransferSimulationTransactionSourceACHTransferReturn) UnmarshalJSON(
}
// Why the ACH Transfer was returned. This reason code is sent by the receiving
-// bank back to Increase.
+// bank back to Acme.
type ACHTransferSimulationTransactionSourceACHTransferReturnReturnReasonCode string
const (
@@ -3663,9 +3663,9 @@ type ACHTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReason
const (
// The check could not be delivered.
ACHTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReasonMailDeliveryFailed ACHTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReason = "mail_delivery_failed"
- // The check was canceled by an Increase operator who will provide details
+ // The check was canceled by an Acme operator who will provide details
// out-of-band.
- ACHTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReasonRejectedByIncrease ACHTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReason = "rejected_by_increase"
+ ACHTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReasonRejectedByAcme ACHTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReason = "rejected_by_acme"
// The check was stopped for another reason.
ACHTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReasonUnknown ACHTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReason = "unknown"
)
@@ -3745,13 +3745,13 @@ type ACHTransferSimulationTransactionSourceInboundACHTransfer struct {
// The originator's identifier for the transfer receipient.
ReceiverIDNumber string `json:"receiver_id_number,required,nullable"`
// The name of the transfer recipient. This value is informational and not verified
- // by Increase.
+ // by Acme.
ReceiverName string `json:"receiver_name,required,nullable"`
// A 15 digit number recorded in the Nacha file and available to both the
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
// The inbound ach transfer's identifier.
TransferID string `json:"transfer_id,required"`
@@ -3920,7 +3920,7 @@ type ACHTransferSimulationTransactionSourceInboundInternationalACHTransfer struc
ReceiverStateOrProvince string `json:"receiver_state_or_province,required,nullable"`
// A portion of the receiver address. This may be incomplete.
ReceiverStreetAddress string `json:"receiver_street_address,required"`
- // The name of the receiver of the transfer. This is not verified by Increase.
+ // The name of the receiver of the transfer. This is not verified by Acme.
ReceivingCompanyOrIndividualName string `json:"receiving_company_or_individual_name,required"`
// The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
// country code of the receiving bank country.
@@ -3938,7 +3938,7 @@ type ACHTransferSimulationTransactionSourceInboundInternationalACHTransfer struc
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
JSON achTransferSimulationTransactionSourceInboundInternationalACHTransferJSON `json:"-"`
}
@@ -4174,7 +4174,7 @@ type ACHTransferSimulationTransactionSourceInboundWireDrawdownPayment struct {
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the transfer.
+ // An Acme-constructed description of the transfer.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -4191,7 +4191,7 @@ type ACHTransferSimulationTransactionSourceInboundWireDrawdownPayment struct {
// The American Banking Association (ABA) routing number of the bank originating
// the transfer.
OriginatorRoutingNumber string `json:"originator_routing_number,required,nullable"`
- // An Increase-created concatenation of the Originator-to-Beneficiary lines.
+ // An Acme-created concatenation of the Originator-to-Beneficiary lines.
OriginatorToBeneficiaryInformation string `json:"originator_to_beneficiary_information,required,nullable"`
// A free-form message set by the wire originator.
OriginatorToBeneficiaryInformationLine1 string `json:"originator_to_beneficiary_information_line1,required,nullable"`
@@ -4373,7 +4373,7 @@ type ACHTransferSimulationTransactionSourceInboundWireTransfer struct {
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the transfer.
+ // An Acme-constructed description of the transfer.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -4390,7 +4390,7 @@ type ACHTransferSimulationTransactionSourceInboundWireTransfer struct {
// The American Banking Association (ABA) routing number of the bank originating
// the transfer.
OriginatorRoutingNumber string `json:"originator_routing_number,required,nullable"`
- // An Increase-created concatenation of the Originator-to-Beneficiary lines.
+ // An Acme-created concatenation of the Originator-to-Beneficiary lines.
OriginatorToBeneficiaryInformation string `json:"originator_to_beneficiary_information,required,nullable"`
// A free-form message set by the wire originator.
OriginatorToBeneficiaryInformationLine1 string `json:"originator_to_beneficiary_information_line1,required,nullable"`
@@ -4495,7 +4495,7 @@ type ACHTransferSimulationTransactionSourceInternalSource struct {
// The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
// currency.
Currency ACHTransferSimulationTransactionSourceInternalSourceCurrency `json:"currency,required"`
- // An Internal Source is a transaction between you and Increase. This describes the
+ // An Internal Source is a transaction between you and Acme. This describes the
// reason for the transaction.
Reason ACHTransferSimulationTransactionSourceInternalSourceReason `json:"reason,required"`
JSON achTransferSimulationTransactionSourceInternalSourceJSON `json:"-"`
@@ -4534,7 +4534,7 @@ const (
ACHTransferSimulationTransactionSourceInternalSourceCurrencyUsd ACHTransferSimulationTransactionSourceInternalSourceCurrency = "USD"
)
-// An Internal Source is a transaction between you and Increase. This describes the
+// An Internal Source is a transaction between you and Acme. This describes the
// reason for the transaction.
type ACHTransferSimulationTransactionSourceInternalSourceReason string
@@ -4887,7 +4887,7 @@ const (
ACHTransferSimulationTransferDeclineReasonACHRouteCanceled ACHTransferSimulationTransferDeclineReason = "ach_route_canceled"
// The account number is disabled.
ACHTransferSimulationTransferDeclineReasonACHRouteDisabled ACHTransferSimulationTransferDeclineReason = "ach_route_disabled"
- // The transaction would cause an Increase limit to be exceeded.
+ // The transaction would cause an Acme limit to be exceeded.
ACHTransferSimulationTransferDeclineReasonBreachesLimit ACHTransferSimulationTransferDeclineReason = "breaches_limit"
// A credit was refused. This is a reasonable default reason for decline of
// credits.
@@ -4909,7 +4909,7 @@ const (
ACHTransferSimulationTransferDeclineReasonNoACHRoute ACHTransferSimulationTransferDeclineReason = "no_ach_route"
// The originating financial institution asked for this transfer to be returned.
ACHTransferSimulationTransferDeclineReasonOriginatorRequest ACHTransferSimulationTransferDeclineReason = "originator_request"
- // The transaction is not allowed per Increase's terms.
+ // The transaction is not allowed per Acme's terms.
ACHTransferSimulationTransferDeclineReasonTransactionNotAllowed ACHTransferSimulationTransferDeclineReason = "transaction_not_allowed"
// The user initiated the decline.
ACHTransferSimulationTransferDeclineReasonUserInitiated ACHTransferSimulationTransferDeclineReason = "user_initiated"
diff --git a/simulationachtransfer_test.go b/simulationachtransfer_test.go
index 053c079b..1ee56a9a 100644
--- a/simulationachtransfer_test.go
+++ b/simulationachtransfer_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationACHTransferNewInboundWithOptionalParams(t *testing.T) {
@@ -22,22 +22,22 @@ func TestSimulationACHTransferNewInboundWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Simulations.ACHTransfers.NewInbound(context.TODO(), increase.SimulationACHTransferNewInboundParams{
- AccountNumberID: increase.F("account_number_v18nkfqm6afpsrvy82b2"),
- Amount: increase.F(int64(1000)),
- CompanyDescriptiveDate: increase.F("x"),
- CompanyDiscretionaryData: increase.F("x"),
- CompanyEntryDescription: increase.F("x"),
- CompanyID: increase.F("x"),
- CompanyName: increase.F("x"),
- ResolveAt: increase.F(time.Now()),
+ _, err := client.Simulations.ACHTransfers.NewInbound(context.TODO(), acme.SimulationACHTransferNewInboundParams{
+ AccountNumberID: acme.F("account_number_v18nkfqm6afpsrvy82b2"),
+ Amount: acme.F(int64(1000)),
+ CompanyDescriptiveDate: acme.F("x"),
+ CompanyDiscretionaryData: acme.F("x"),
+ CompanyEntryDescription: acme.F("x"),
+ CompanyID: acme.F("x"),
+ CompanyName: acme.F("x"),
+ ResolveAt: acme.F(time.Now()),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -54,19 +54,19 @@ func TestSimulationACHTransferReturnWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.ACHTransfers.Return(
context.TODO(),
"ach_transfer_uoxatyh3lt5evrsdvo7q",
- increase.SimulationACHTransferReturnParams{
- Reason: increase.F(increase.SimulationACHTransferReturnParamsReasonInsufficientFund),
+ acme.SimulationACHTransferReturnParams{
+ Reason: acme.F(acme.SimulationACHTransferReturnParamsReasonInsufficientFund),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -83,13 +83,13 @@ func TestSimulationACHTransferSubmit(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.ACHTransfers.Submit(context.TODO(), "ach_transfer_uoxatyh3lt5evrsdvo7q")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationcard.go b/simulationcard.go
index d32aa3f8..bfcfc20e 100644
--- a/simulationcard.go
+++ b/simulationcard.go
@@ -1,20 +1,20 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"net/http"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationCardService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewSimulationCardService] method
// instead.
@@ -285,7 +285,7 @@ const (
CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReasonACHRouteCanceled CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReason = "ach_route_canceled"
// The account number is disabled.
CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReasonACHRouteDisabled CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReason = "ach_route_disabled"
- // The transaction would cause an Increase limit to be exceeded.
+ // The transaction would cause an Acme limit to be exceeded.
CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReasonBreachesLimit CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReason = "breaches_limit"
// A credit was refused. This is a reasonable default reason for decline of
// credits.
@@ -307,7 +307,7 @@ const (
CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReasonNoACHRoute CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReason = "no_ach_route"
// The originating financial institution asked for this transfer to be returned.
CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReasonOriginatorRequest CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReason = "originator_request"
- // The transaction is not allowed per Increase's terms.
+ // The transaction is not allowed per Acme's terms.
CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReasonTransactionNotAllowed CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReason = "transaction_not_allowed"
// The user initiated the decline.
CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReasonUserInitiated CardAuthorizationSimulationDeclinedTransactionSourceACHDeclineReason = "user_initiated"
@@ -616,7 +616,7 @@ const (
CardAuthorizationSimulationDeclinedTransactionSourceCardDeclineReasonInsufficientFunds CardAuthorizationSimulationDeclinedTransactionSourceCardDeclineReason = "insufficient_funds"
// The given CVV2 did not match the card's value.
CardAuthorizationSimulationDeclinedTransactionSourceCardDeclineReasonCvv2Mismatch CardAuthorizationSimulationDeclinedTransactionSourceCardDeclineReason = "cvv2_mismatch"
- // The attempted card transaction is not allowed per Increase's terms.
+ // The attempted card transaction is not allowed per Acme's terms.
CardAuthorizationSimulationDeclinedTransactionSourceCardDeclineReasonTransactionNotAllowed CardAuthorizationSimulationDeclinedTransactionSourceCardDeclineReason = "transaction_not_allowed"
// The transaction was blocked by a Limit.
CardAuthorizationSimulationDeclinedTransactionSourceCardDeclineReasonBreachesLimit CardAuthorizationSimulationDeclinedTransactionSourceCardDeclineReason = "breaches_limit"
@@ -632,7 +632,7 @@ const (
// exist.
CardAuthorizationSimulationDeclinedTransactionSourceCardDeclineReasonMissingOriginalAuthorization CardAuthorizationSimulationDeclinedTransactionSourceCardDeclineReason = "missing_original_authorization"
// The transaction was suspected to be fraudulent. Please reach out to
- // support@increase.com for more information.
+ // support@acme.com for more information.
CardAuthorizationSimulationDeclinedTransactionSourceCardDeclineReasonSuspectedFraud CardAuthorizationSimulationDeclinedTransactionSourceCardDeclineReason = "suspected_fraud"
)
@@ -832,9 +832,9 @@ const (
// The amount the receiving bank is attempting to deposit does not match the amount
// on the check.
CardAuthorizationSimulationDeclinedTransactionSourceCheckDeclineReasonAmountMismatch CardAuthorizationSimulationDeclinedTransactionSourceCheckDeclineReason = "amount_mismatch"
- // The check attempting to be deposited does not belong to Increase.
+ // The check attempting to be deposited does not belong to Acme.
CardAuthorizationSimulationDeclinedTransactionSourceCheckDeclineReasonNotOurItem CardAuthorizationSimulationDeclinedTransactionSourceCheckDeclineReason = "not_our_item"
- // The account number on the check does not exist at Increase.
+ // The account number on the check does not exist at Acme.
CardAuthorizationSimulationDeclinedTransactionSourceCheckDeclineReasonNoAccountNumberFound CardAuthorizationSimulationDeclinedTransactionSourceCheckDeclineReason = "no_account_number_found"
)
@@ -1005,7 +1005,7 @@ type CardAuthorizationSimulationDeclinedTransactionSourceInternationalACHDecline
ReceiverStateOrProvince string `json:"receiver_state_or_province,required,nullable"`
// A portion of the receiver address. This may be incomplete.
ReceiverStreetAddress string `json:"receiver_street_address,required"`
- // The name of the receiver of the transfer. This is not verified by Increase.
+ // The name of the receiver of the transfer. This is not verified by Acme.
ReceivingCompanyOrIndividualName string `json:"receiving_company_or_individual_name,required"`
// The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
// country code of the receiving bank country.
@@ -1023,7 +1023,7 @@ type CardAuthorizationSimulationDeclinedTransactionSourceInternationalACHDecline
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
JSON cardAuthorizationSimulationDeclinedTransactionSourceInternationalACHDeclineJSON `json:"-"`
}
@@ -1195,7 +1195,7 @@ type CardAuthorizationSimulationDeclinedTransactionSourceWireDecline struct {
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the declined transaction.
+ // An Acme-constructed description of the declined transaction.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -1269,7 +1269,7 @@ const (
CardAuthorizationSimulationDeclinedTransactionSourceWireDeclineReasonGroupLocked CardAuthorizationSimulationDeclinedTransactionSourceWireDeclineReason = "group_locked"
// The beneficiary account number does not exist.
CardAuthorizationSimulationDeclinedTransactionSourceWireDeclineReasonNoAccountNumber CardAuthorizationSimulationDeclinedTransactionSourceWireDeclineReason = "no_account_number"
- // The transaction is not allowed per Increase's terms.
+ // The transaction is not allowed per Acme's terms.
CardAuthorizationSimulationDeclinedTransactionSourceWireDeclineReasonTransactionNotAllowed CardAuthorizationSimulationDeclinedTransactionSourceWireDeclineReason = "transaction_not_allowed"
)
diff --git a/simulationcard_test.go b/simulationcard_test.go
index 883791c5..d6ce3540 100644
--- a/simulationcard_test.go
+++ b/simulationcard_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationCardAuthorizeWithOptionalParams(t *testing.T) {
@@ -21,19 +21,19 @@ func TestSimulationCardAuthorizeWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Simulations.Cards.Authorize(context.TODO(), increase.SimulationCardAuthorizeParams{
- Amount: increase.F(int64(1000)),
- CardID: increase.F("card_oubs0hwk5rn6knuecxg2"),
- DigitalWalletTokenID: increase.F("string"),
- EventSubscriptionID: increase.F("event_subscription_001dzz0r20rcdxgb013zqb8m04g"),
- PhysicalCardID: increase.F("string"),
+ _, err := client.Simulations.Cards.Authorize(context.TODO(), acme.SimulationCardAuthorizeParams{
+ Amount: acme.F(int64(1000)),
+ CardID: acme.F("card_oubs0hwk5rn6knuecxg2"),
+ DigitalWalletTokenID: acme.F("string"),
+ EventSubscriptionID: acme.F("event_subscription_001dzz0r20rcdxgb013zqb8m04g"),
+ PhysicalCardID: acme.F("string"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -49,17 +49,17 @@ func TestSimulationCardSettlementWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Simulations.Cards.Settlement(context.TODO(), increase.SimulationCardSettlementParams{
- CardID: increase.F("card_oubs0hwk5rn6knuecxg2"),
- PendingTransactionID: increase.F("pending_transaction_k1sfetcau2qbvjbzgju4"),
- Amount: increase.F(int64(1)),
+ _, err := client.Simulations.Cards.Settlement(context.TODO(), acme.SimulationCardSettlementParams{
+ CardID: acme.F("card_oubs0hwk5rn6knuecxg2"),
+ PendingTransactionID: acme.F("pending_transaction_k1sfetcau2qbvjbzgju4"),
+ Amount: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationcarddispute.go b/simulationcarddispute.go
index 440334aa..2226ef3c 100644
--- a/simulationcarddispute.go
+++ b/simulationcarddispute.go
@@ -1,20 +1,20 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"fmt"
"net/http"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationCardDisputeService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewSimulationCardDisputeService]
// method instead.
diff --git a/simulationcarddispute_test.go b/simulationcarddispute_test.go
index fefbad01..4f7e8978 100644
--- a/simulationcarddispute_test.go
+++ b/simulationcarddispute_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationCardDisputeActionWithOptionalParams(t *testing.T) {
@@ -21,20 +21,20 @@ func TestSimulationCardDisputeActionWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.CardDisputes.Action(
context.TODO(),
"card_dispute_h9sc95nbl1cgltpp7men",
- increase.SimulationCardDisputeActionParams{
- Status: increase.F(increase.SimulationCardDisputeActionParamsStatusRejected),
- Explanation: increase.F("This was a valid recurring transaction"),
+ acme.SimulationCardDisputeActionParams{
+ Status: acme.F(acme.SimulationCardDisputeActionParamsStatusRejected),
+ Explanation: acme.F("This was a valid recurring transaction"),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationcardprofile.go b/simulationcardprofile.go
index 68099d28..3c2274c3 100644
--- a/simulationcardprofile.go
+++ b/simulationcardprofile.go
@@ -1,18 +1,18 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"fmt"
"net/http"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationCardProfileService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewSimulationCardProfileService]
// method instead.
@@ -32,7 +32,7 @@ func NewSimulationCardProfileService(opts ...option.RequestOption) (r *Simulatio
// After a [Card Profile](#card-profile) is created in production, the images will
// be uploaded to Visa within one day. Since Card Profiles are not uploaded to Visa
// in sandbox, this endpoint simulates that step. Invoking this simulation triggers
-// the webhooks Increase sends when the Card Profile is approved and updates the
+// the webhooks Acme sends when the Card Profile is approved and updates the
// status of the Card Profile.
func (r *SimulationCardProfileService) Approve(ctx context.Context, cardProfileID string, opts ...option.RequestOption) (res *CardProfile, err error) {
opts = append(r.Options[:], opts...)
diff --git a/simulationcardprofile_test.go b/simulationcardprofile_test.go
index 41b52415..bb8ca311 100644
--- a/simulationcardprofile_test.go
+++ b/simulationcardprofile_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationCardProfileApprove(t *testing.T) {
@@ -21,13 +21,13 @@ func TestSimulationCardProfileApprove(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.CardProfiles.Approve(context.TODO(), "card_profile_cox5y73lob2eqly18piy")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationcardrefund.go b/simulationcardrefund.go
index 0fdcc7b1..2641d463 100644
--- a/simulationcardrefund.go
+++ b/simulationcardrefund.go
@@ -1,19 +1,19 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"net/http"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationCardRefundService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewSimulationCardRefundService]
// method instead.
diff --git a/simulationcardrefund_test.go b/simulationcardrefund_test.go
index 9dfef8ae..e46726f1 100644
--- a/simulationcardrefund_test.go
+++ b/simulationcardrefund_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationCardRefundNew(t *testing.T) {
@@ -21,15 +21,15 @@ func TestSimulationCardRefundNew(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Simulations.CardRefunds.New(context.TODO(), increase.SimulationCardRefundNewParams{
- TransactionID: increase.F("transaction_uyrp7fld2ium70oa7oi"),
+ _, err := client.Simulations.CardRefunds.New(context.TODO(), acme.SimulationCardRefundNewParams{
+ TransactionID: acme.F("transaction_uyrp7fld2ium70oa7oi"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationcheckdeposit.go b/simulationcheckdeposit.go
index 34d892c7..e5575db6 100644
--- a/simulationcheckdeposit.go
+++ b/simulationcheckdeposit.go
@@ -1,18 +1,18 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"fmt"
"net/http"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationCheckDepositService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewSimulationCheckDepositService]
// method instead.
@@ -29,7 +29,7 @@ func NewSimulationCheckDepositService(opts ...option.RequestOption) (r *Simulati
return
}
-// Simulates the rejection of a [Check Deposit](#check-deposits) by Increase due to
+// Simulates the rejection of a [Check Deposit](#check-deposits) by Acme due to
// factors like poor image quality. This Check Deposit must first have a `status`
// of `pending`.
func (r *SimulationCheckDepositService) Reject(ctx context.Context, checkDepositID string, opts ...option.RequestOption) (res *CheckDeposit, err error) {
diff --git a/simulationcheckdeposit_test.go b/simulationcheckdeposit_test.go
index dedafd73..3f437c9a 100644
--- a/simulationcheckdeposit_test.go
+++ b/simulationcheckdeposit_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationCheckDepositReject(t *testing.T) {
@@ -22,13 +22,13 @@ func TestSimulationCheckDepositReject(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.CheckDeposits.Reject(context.TODO(), "check_deposit_f06n9gpg7sxn8t19lfc1")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -44,13 +44,13 @@ func TestSimulationCheckDepositReturn(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.CheckDeposits.Return(context.TODO(), "check_deposit_f06n9gpg7sxn8t19lfc1")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -67,13 +67,13 @@ func TestSimulationCheckDepositSubmit(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.CheckDeposits.Submit(context.TODO(), "check_deposit_f06n9gpg7sxn8t19lfc1")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationchecktransfer.go b/simulationchecktransfer.go
index d175a081..0923024c 100644
--- a/simulationchecktransfer.go
+++ b/simulationchecktransfer.go
@@ -1,18 +1,18 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"fmt"
"net/http"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationCheckTransferService contains methods and other services that help
-// with interacting with the increase API. Note, unlike clients, this service does
+// with interacting with the acme API. Note, unlike clients, this service does
// not read variables from the environment automatically. You should not
// instantiate this service directly, and instead use the
// [NewSimulationCheckTransferService] method instead.
diff --git a/simulationchecktransfer_test.go b/simulationchecktransfer_test.go
index 11860cf7..ce3b5ba8 100644
--- a/simulationchecktransfer_test.go
+++ b/simulationchecktransfer_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationCheckTransferDeposit(t *testing.T) {
@@ -21,13 +21,13 @@ func TestSimulationCheckTransferDeposit(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.CheckTransfers.Deposit(context.TODO(), "check_transfer_30b43acfu9vw8fyc4f5")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -44,13 +44,13 @@ func TestSimulationCheckTransferMail(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.CheckTransfers.Mail(context.TODO(), "check_transfer_30b43acfu9vw8fyc4f5")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationdigitalwallettokenrequest.go b/simulationdigitalwallettokenrequest.go
index d3f26ec0..c01b5d2c 100644
--- a/simulationdigitalwallettokenrequest.go
+++ b/simulationdigitalwallettokenrequest.go
@@ -1,19 +1,19 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"net/http"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationDigitalWalletTokenRequestService contains methods and other services
-// that help with interacting with the increase API. Note, unlike clients, this
+// that help with interacting with the acme API. Note, unlike clients, this
// service does not read variables from the environment automatically. You should
// not instantiate this service directly, and instead use the
// [NewSimulationDigitalWalletTokenRequestService] method instead.
diff --git a/simulationdigitalwallettokenrequest_test.go b/simulationdigitalwallettokenrequest_test.go
index 621f725a..81d7ec1b 100644
--- a/simulationdigitalwallettokenrequest_test.go
+++ b/simulationdigitalwallettokenrequest_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationDigitalWalletTokenRequestNew(t *testing.T) {
@@ -21,15 +21,15 @@ func TestSimulationDigitalWalletTokenRequestNew(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Simulations.DigitalWalletTokenRequests.New(context.TODO(), increase.SimulationDigitalWalletTokenRequestNewParams{
- CardID: increase.F("card_oubs0hwk5rn6knuecxg2"),
+ _, err := client.Simulations.DigitalWalletTokenRequests.New(context.TODO(), acme.SimulationDigitalWalletTokenRequestNewParams{
+ CardID: acme.F("card_oubs0hwk5rn6knuecxg2"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationdocument.go b/simulationdocument.go
index a7db2195..e6cd77b1 100644
--- a/simulationdocument.go
+++ b/simulationdocument.go
@@ -1,19 +1,19 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"net/http"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationDocumentService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewSimulationDocumentService] method
// instead.
diff --git a/simulationdocument_test.go b/simulationdocument_test.go
index 2a59295d..f43120ce 100644
--- a/simulationdocument_test.go
+++ b/simulationdocument_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationDocumentNew(t *testing.T) {
@@ -21,15 +21,15 @@ func TestSimulationDocumentNew(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Simulations.Documents.New(context.TODO(), increase.SimulationDocumentNewParams{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
+ _, err := client.Simulations.Documents.New(context.TODO(), acme.SimulationDocumentNewParams{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationinboundfundshold.go b/simulationinboundfundshold.go
index 3864ae1c..432cae5f 100644
--- a/simulationinboundfundshold.go
+++ b/simulationinboundfundshold.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -8,13 +8,13 @@ import (
"net/http"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationInboundFundsHoldService contains methods and other services that help
-// with interacting with the increase API. Note, unlike clients, this service does
+// with interacting with the acme API. Note, unlike clients, this service does
// not read variables from the environment automatically. You should not
// instantiate this service directly, and instead use the
// [NewSimulationInboundFundsHoldService] method instead.
diff --git a/simulationinboundfundshold_test.go b/simulationinboundfundshold_test.go
index e8f7f2c4..316f6396 100644
--- a/simulationinboundfundshold_test.go
+++ b/simulationinboundfundshold_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationInboundFundsHoldRelease(t *testing.T) {
@@ -21,13 +21,13 @@ func TestSimulationInboundFundsHoldRelease(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.InboundFundsHolds.Release(context.TODO(), "inbound_funds_hold_9vuasmywdo7xb3zt4071")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationinboundwiredrawdownrequest.go b/simulationinboundwiredrawdownrequest.go
index 9b4e69b6..6fe31f16 100644
--- a/simulationinboundwiredrawdownrequest.go
+++ b/simulationinboundwiredrawdownrequest.go
@@ -1,19 +1,19 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"net/http"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationInboundWireDrawdownRequestService contains methods and other services
-// that help with interacting with the increase API. Note, unlike clients, this
+// that help with interacting with the acme API. Note, unlike clients, this
// service does not read variables from the environment automatically. You should
// not instantiate this service directly, and instead use the
// [NewSimulationInboundWireDrawdownRequestService] method instead.
diff --git a/simulationinboundwiredrawdownrequest_test.go b/simulationinboundwiredrawdownrequest_test.go
index 1c9861d8..3cd9a8da 100644
--- a/simulationinboundwiredrawdownrequest_test.go
+++ b/simulationinboundwiredrawdownrequest_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationInboundWireDrawdownRequestNewWithOptionalParams(t *testing.T) {
@@ -21,34 +21,34 @@ func TestSimulationInboundWireDrawdownRequestNewWithOptionalParams(t *testing.T)
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Simulations.InboundWireDrawdownRequests.New(context.TODO(), increase.SimulationInboundWireDrawdownRequestNewParams{
- Amount: increase.F(int64(10000)),
- BeneficiaryAccountNumber: increase.F("987654321"),
- BeneficiaryRoutingNumber: increase.F("101050001"),
- Currency: increase.F("USD"),
- MessageToRecipient: increase.F("Invoice 29582"),
- OriginatorAccountNumber: increase.F("987654321"),
- OriginatorRoutingNumber: increase.F("101050001"),
- RecipientAccountNumberID: increase.F("account_number_v18nkfqm6afpsrvy82b2"),
- BeneficiaryAddressLine1: increase.F("33 Liberty Street"),
- BeneficiaryAddressLine2: increase.F("New York, NY, 10045"),
- BeneficiaryAddressLine3: increase.F("x"),
- BeneficiaryName: increase.F("Ian Crease"),
- OriginatorAddressLine1: increase.F("33 Liberty Street"),
- OriginatorAddressLine2: increase.F("New York, NY, 10045"),
- OriginatorAddressLine3: increase.F("x"),
- OriginatorName: increase.F("Ian Crease"),
- OriginatorToBeneficiaryInformationLine1: increase.F("x"),
- OriginatorToBeneficiaryInformationLine2: increase.F("x"),
- OriginatorToBeneficiaryInformationLine3: increase.F("x"),
- OriginatorToBeneficiaryInformationLine4: increase.F("x"),
+ _, err := client.Simulations.InboundWireDrawdownRequests.New(context.TODO(), acme.SimulationInboundWireDrawdownRequestNewParams{
+ Amount: acme.F(int64(10000)),
+ BeneficiaryAccountNumber: acme.F("987654321"),
+ BeneficiaryRoutingNumber: acme.F("101050001"),
+ Currency: acme.F("USD"),
+ MessageToRecipient: acme.F("Invoice 29582"),
+ OriginatorAccountNumber: acme.F("987654321"),
+ OriginatorRoutingNumber: acme.F("101050001"),
+ RecipientAccountNumberID: acme.F("account_number_v18nkfqm6afpsrvy82b2"),
+ BeneficiaryAddressLine1: acme.F("33 Liberty Street"),
+ BeneficiaryAddressLine2: acme.F("New York, NY, 10045"),
+ BeneficiaryAddressLine3: acme.F("x"),
+ BeneficiaryName: acme.F("Ian Crease"),
+ OriginatorAddressLine1: acme.F("33 Liberty Street"),
+ OriginatorAddressLine2: acme.F("New York, NY, 10045"),
+ OriginatorAddressLine3: acme.F("x"),
+ OriginatorName: acme.F("Ian Crease"),
+ OriginatorToBeneficiaryInformationLine1: acme.F("x"),
+ OriginatorToBeneficiaryInformationLine2: acme.F("x"),
+ OriginatorToBeneficiaryInformationLine3: acme.F("x"),
+ OriginatorToBeneficiaryInformationLine4: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationinterestpayment.go b/simulationinterestpayment.go
index 9ca2c7ff..26ecc13c 100644
--- a/simulationinterestpayment.go
+++ b/simulationinterestpayment.go
@@ -1,20 +1,20 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"net/http"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationInterestPaymentService contains methods and other services that help
-// with interacting with the increase API. Note, unlike clients, this service does
+// with interacting with the acme API. Note, unlike clients, this service does
// not read variables from the environment automatically. You should not
// instantiate this service directly, and instead use the
// [NewSimulationInterestPaymentService] method instead.
@@ -414,7 +414,7 @@ type InterestPaymentSimulationResultTransactionSourceACHTransferReturn struct {
// The three character ACH return code, in the range R01 to R85.
RawReturnReasonCode string `json:"raw_return_reason_code,required"`
// Why the ACH Transfer was returned. This reason code is sent by the receiving
- // bank back to Increase.
+ // bank back to Acme.
ReturnReasonCode InterestPaymentSimulationResultTransactionSourceACHTransferReturnReturnReasonCode `json:"return_reason_code,required"`
// The identifier of the Transaction associated with this return.
TransactionID string `json:"transaction_id,required"`
@@ -441,7 +441,7 @@ func (r *InterestPaymentSimulationResultTransactionSourceACHTransferReturn) Unma
}
// Why the ACH Transfer was returned. This reason code is sent by the receiving
-// bank back to Increase.
+// bank back to Acme.
type InterestPaymentSimulationResultTransactionSourceACHTransferReturnReturnReasonCode string
const (
@@ -2429,9 +2429,9 @@ type InterestPaymentSimulationResultTransactionSourceCheckTransferStopPaymentReq
const (
// The check could not be delivered.
InterestPaymentSimulationResultTransactionSourceCheckTransferStopPaymentRequestReasonMailDeliveryFailed InterestPaymentSimulationResultTransactionSourceCheckTransferStopPaymentRequestReason = "mail_delivery_failed"
- // The check was canceled by an Increase operator who will provide details
+ // The check was canceled by an Acme operator who will provide details
// out-of-band.
- InterestPaymentSimulationResultTransactionSourceCheckTransferStopPaymentRequestReasonRejectedByIncrease InterestPaymentSimulationResultTransactionSourceCheckTransferStopPaymentRequestReason = "rejected_by_increase"
+ InterestPaymentSimulationResultTransactionSourceCheckTransferStopPaymentRequestReasonRejectedByAcme InterestPaymentSimulationResultTransactionSourceCheckTransferStopPaymentRequestReason = "rejected_by_acme"
// The check was stopped for another reason.
InterestPaymentSimulationResultTransactionSourceCheckTransferStopPaymentRequestReasonUnknown InterestPaymentSimulationResultTransactionSourceCheckTransferStopPaymentRequestReason = "unknown"
)
@@ -2512,13 +2512,13 @@ type InterestPaymentSimulationResultTransactionSourceInboundACHTransfer struct {
// The originator's identifier for the transfer receipient.
ReceiverIDNumber string `json:"receiver_id_number,required,nullable"`
// The name of the transfer recipient. This value is informational and not verified
- // by Increase.
+ // by Acme.
ReceiverName string `json:"receiver_name,required,nullable"`
// A 15 digit number recorded in the Nacha file and available to both the
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
// The inbound ach transfer's identifier.
TransferID string `json:"transfer_id,required"`
@@ -2688,7 +2688,7 @@ type InterestPaymentSimulationResultTransactionSourceInboundInternationalACHTran
ReceiverStateOrProvince string `json:"receiver_state_or_province,required,nullable"`
// A portion of the receiver address. This may be incomplete.
ReceiverStreetAddress string `json:"receiver_street_address,required"`
- // The name of the receiver of the transfer. This is not verified by Increase.
+ // The name of the receiver of the transfer. This is not verified by Acme.
ReceivingCompanyOrIndividualName string `json:"receiving_company_or_individual_name,required"`
// The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
// country code of the receiving bank country.
@@ -2706,7 +2706,7 @@ type InterestPaymentSimulationResultTransactionSourceInboundInternationalACHTran
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
JSON interestPaymentSimulationResultTransactionSourceInboundInternationalACHTransferJSON `json:"-"`
}
@@ -2942,7 +2942,7 @@ type InterestPaymentSimulationResultTransactionSourceInboundWireDrawdownPayment
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the transfer.
+ // An Acme-constructed description of the transfer.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -2959,7 +2959,7 @@ type InterestPaymentSimulationResultTransactionSourceInboundWireDrawdownPayment
// The American Banking Association (ABA) routing number of the bank originating
// the transfer.
OriginatorRoutingNumber string `json:"originator_routing_number,required,nullable"`
- // An Increase-created concatenation of the Originator-to-Beneficiary lines.
+ // An Acme-created concatenation of the Originator-to-Beneficiary lines.
OriginatorToBeneficiaryInformation string `json:"originator_to_beneficiary_information,required,nullable"`
// A free-form message set by the wire originator.
OriginatorToBeneficiaryInformationLine1 string `json:"originator_to_beneficiary_information_line1,required,nullable"`
@@ -3141,7 +3141,7 @@ type InterestPaymentSimulationResultTransactionSourceInboundWireTransfer struct
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the transfer.
+ // An Acme-constructed description of the transfer.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -3158,7 +3158,7 @@ type InterestPaymentSimulationResultTransactionSourceInboundWireTransfer struct
// The American Banking Association (ABA) routing number of the bank originating
// the transfer.
OriginatorRoutingNumber string `json:"originator_routing_number,required,nullable"`
- // An Increase-created concatenation of the Originator-to-Beneficiary lines.
+ // An Acme-created concatenation of the Originator-to-Beneficiary lines.
OriginatorToBeneficiaryInformation string `json:"originator_to_beneficiary_information,required,nullable"`
// A free-form message set by the wire originator.
OriginatorToBeneficiaryInformationLine1 string `json:"originator_to_beneficiary_information_line1,required,nullable"`
@@ -3264,7 +3264,7 @@ type InterestPaymentSimulationResultTransactionSourceInternalSource struct {
// The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
// currency.
Currency InterestPaymentSimulationResultTransactionSourceInternalSourceCurrency `json:"currency,required"`
- // An Internal Source is a transaction between you and Increase. This describes the
+ // An Internal Source is a transaction between you and Acme. This describes the
// reason for the transaction.
Reason InterestPaymentSimulationResultTransactionSourceInternalSourceReason `json:"reason,required"`
JSON interestPaymentSimulationResultTransactionSourceInternalSourceJSON `json:"-"`
@@ -3304,7 +3304,7 @@ const (
InterestPaymentSimulationResultTransactionSourceInternalSourceCurrencyUsd InterestPaymentSimulationResultTransactionSourceInternalSourceCurrency = "USD"
)
-// An Internal Source is a transaction between you and Increase. This describes the
+// An Internal Source is a transaction between you and Acme. This describes the
// reason for the transaction.
type InterestPaymentSimulationResultTransactionSourceInternalSourceReason string
diff --git a/simulationinterestpayment_test.go b/simulationinterestpayment_test.go
index 6f376591..4446c1eb 100644
--- a/simulationinterestpayment_test.go
+++ b/simulationinterestpayment_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationInterestPaymentNewWithOptionalParams(t *testing.T) {
@@ -22,18 +22,18 @@ func TestSimulationInterestPaymentNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Simulations.InterestPayments.New(context.TODO(), increase.SimulationInterestPaymentNewParams{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
- Amount: increase.F(int64(1000)),
- PeriodEnd: increase.F(time.Now()),
- PeriodStart: increase.F(time.Now()),
+ _, err := client.Simulations.InterestPayments.New(context.TODO(), acme.SimulationInterestPaymentNewParams{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
+ Amount: acme.F(int64(1000)),
+ PeriodEnd: acme.F(time.Now()),
+ PeriodStart: acme.F(time.Now()),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationphysicalcard.go b/simulationphysicalcard.go
index a9a3538a..68b811e8 100644
--- a/simulationphysicalcard.go
+++ b/simulationphysicalcard.go
@@ -1,20 +1,20 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"fmt"
"net/http"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationPhysicalCardService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewSimulationPhysicalCardService]
// method instead.
diff --git a/simulationphysicalcard_test.go b/simulationphysicalcard_test.go
index 571c73a8..238ab05f 100644
--- a/simulationphysicalcard_test.go
+++ b/simulationphysicalcard_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationPhysicalCardShipmentAdvance(t *testing.T) {
@@ -21,19 +21,19 @@ func TestSimulationPhysicalCardShipmentAdvance(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.PhysicalCards.ShipmentAdvance(
context.TODO(),
"physical_card_ode8duyq5v2ynhjoharl",
- increase.SimulationPhysicalCardShipmentAdvanceParams{
- ShipmentStatus: increase.F(increase.SimulationPhysicalCardShipmentAdvanceParamsShipmentStatusShipped),
+ acme.SimulationPhysicalCardShipmentAdvanceParams{
+ ShipmentStatus: acme.F(acme.SimulationPhysicalCardShipmentAdvanceParamsShipmentStatusShipped),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationprogram.go b/simulationprogram.go
index c4b24792..b8f5db82 100644
--- a/simulationprogram.go
+++ b/simulationprogram.go
@@ -1,19 +1,19 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"net/http"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationProgramService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewSimulationProgramService] method
// instead.
diff --git a/simulationprogram_test.go b/simulationprogram_test.go
index 6dc3d1f7..b0de4962 100644
--- a/simulationprogram_test.go
+++ b/simulationprogram_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationProgramNew(t *testing.T) {
@@ -21,15 +21,15 @@ func TestSimulationProgramNew(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Simulations.Programs.New(context.TODO(), increase.SimulationProgramNewParams{
- Name: increase.F("For Benefit Of"),
+ _, err := client.Simulations.Programs.New(context.TODO(), acme.SimulationProgramNewParams{
+ Name: acme.F("For Benefit Of"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationrealtimepaymentstransfer.go b/simulationrealtimepaymentstransfer.go
index c08361ca..744ac1e7 100644
--- a/simulationrealtimepaymentstransfer.go
+++ b/simulationrealtimepaymentstransfer.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -8,14 +8,14 @@ import (
"net/http"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationRealTimePaymentsTransferService contains methods and other services
-// that help with interacting with the increase API. Note, unlike clients, this
+// that help with interacting with the acme API. Note, unlike clients, this
// service does not read variables from the environment automatically. You should
// not instantiate this service directly, and instead use the
// [NewSimulationRealTimePaymentsTransferService] method instead.
@@ -284,7 +284,7 @@ const (
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReasonACHRouteCanceled InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReason = "ach_route_canceled"
// The account number is disabled.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReasonACHRouteDisabled InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReason = "ach_route_disabled"
- // The transaction would cause an Increase limit to be exceeded.
+ // The transaction would cause an Acme limit to be exceeded.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReasonBreachesLimit InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReason = "breaches_limit"
// A credit was refused. This is a reasonable default reason for decline of
// credits.
@@ -306,7 +306,7 @@ const (
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReasonNoACHRoute InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReason = "no_ach_route"
// The originating financial institution asked for this transfer to be returned.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReasonOriginatorRequest InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReason = "originator_request"
- // The transaction is not allowed per Increase's terms.
+ // The transaction is not allowed per Acme's terms.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReasonTransactionNotAllowed InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReason = "transaction_not_allowed"
// The user initiated the decline.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReasonUserInitiated InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceACHDeclineReason = "user_initiated"
@@ -615,7 +615,7 @@ const (
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCardDeclineReasonInsufficientFunds InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCardDeclineReason = "insufficient_funds"
// The given CVV2 did not match the card's value.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCardDeclineReasonCvv2Mismatch InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCardDeclineReason = "cvv2_mismatch"
- // The attempted card transaction is not allowed per Increase's terms.
+ // The attempted card transaction is not allowed per Acme's terms.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCardDeclineReasonTransactionNotAllowed InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCardDeclineReason = "transaction_not_allowed"
// The transaction was blocked by a Limit.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCardDeclineReasonBreachesLimit InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCardDeclineReason = "breaches_limit"
@@ -631,7 +631,7 @@ const (
// exist.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCardDeclineReasonMissingOriginalAuthorization InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCardDeclineReason = "missing_original_authorization"
// The transaction was suspected to be fraudulent. Please reach out to
- // support@increase.com for more information.
+ // support@acme.com for more information.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCardDeclineReasonSuspectedFraud InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCardDeclineReason = "suspected_fraud"
)
@@ -831,9 +831,9 @@ const (
// The amount the receiving bank is attempting to deposit does not match the amount
// on the check.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCheckDeclineReasonAmountMismatch InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCheckDeclineReason = "amount_mismatch"
- // The check attempting to be deposited does not belong to Increase.
+ // The check attempting to be deposited does not belong to Acme.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCheckDeclineReasonNotOurItem InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCheckDeclineReason = "not_our_item"
- // The account number on the check does not exist at Increase.
+ // The account number on the check does not exist at Acme.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCheckDeclineReasonNoAccountNumberFound InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceCheckDeclineReason = "no_account_number_found"
)
@@ -1004,7 +1004,7 @@ type InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceInt
ReceiverStateOrProvince string `json:"receiver_state_or_province,required,nullable"`
// A portion of the receiver address. This may be incomplete.
ReceiverStreetAddress string `json:"receiver_street_address,required"`
- // The name of the receiver of the transfer. This is not verified by Increase.
+ // The name of the receiver of the transfer. This is not verified by Acme.
ReceivingCompanyOrIndividualName string `json:"receiving_company_or_individual_name,required"`
// The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
// country code of the receiving bank country.
@@ -1022,7 +1022,7 @@ type InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceInt
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
JSON inboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceInternationalACHDeclineJSON `json:"-"`
}
@@ -1194,7 +1194,7 @@ type InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceWir
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the declined transaction.
+ // An Acme-constructed description of the declined transaction.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -1268,7 +1268,7 @@ const (
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceWireDeclineReasonGroupLocked InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceWireDeclineReason = "group_locked"
// The beneficiary account number does not exist.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceWireDeclineReasonNoAccountNumber InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceWireDeclineReason = "no_account_number"
- // The transaction is not allowed per Increase's terms.
+ // The transaction is not allowed per Acme's terms.
InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceWireDeclineReasonTransactionNotAllowed InboundRealTimePaymentsTransferSimulationResultDeclinedTransactionSourceWireDeclineReason = "transaction_not_allowed"
)
@@ -1633,7 +1633,7 @@ type InboundRealTimePaymentsTransferSimulationResultTransactionSourceACHTransfer
// The three character ACH return code, in the range R01 to R85.
RawReturnReasonCode string `json:"raw_return_reason_code,required"`
// Why the ACH Transfer was returned. This reason code is sent by the receiving
- // bank back to Increase.
+ // bank back to Acme.
ReturnReasonCode InboundRealTimePaymentsTransferSimulationResultTransactionSourceACHTransferReturnReturnReasonCode `json:"return_reason_code,required"`
// The identifier of the Transaction associated with this return.
TransactionID string `json:"transaction_id,required"`
@@ -1660,7 +1660,7 @@ func (r *InboundRealTimePaymentsTransferSimulationResultTransactionSourceACHTran
}
// Why the ACH Transfer was returned. This reason code is sent by the receiving
-// bank back to Increase.
+// bank back to Acme.
type InboundRealTimePaymentsTransferSimulationResultTransactionSourceACHTransferReturnReturnReasonCode string
const (
@@ -3648,9 +3648,9 @@ type InboundRealTimePaymentsTransferSimulationResultTransactionSourceCheckTransf
const (
// The check could not be delivered.
InboundRealTimePaymentsTransferSimulationResultTransactionSourceCheckTransferStopPaymentRequestReasonMailDeliveryFailed InboundRealTimePaymentsTransferSimulationResultTransactionSourceCheckTransferStopPaymentRequestReason = "mail_delivery_failed"
- // The check was canceled by an Increase operator who will provide details
+ // The check was canceled by an Acme operator who will provide details
// out-of-band.
- InboundRealTimePaymentsTransferSimulationResultTransactionSourceCheckTransferStopPaymentRequestReasonRejectedByIncrease InboundRealTimePaymentsTransferSimulationResultTransactionSourceCheckTransferStopPaymentRequestReason = "rejected_by_increase"
+ InboundRealTimePaymentsTransferSimulationResultTransactionSourceCheckTransferStopPaymentRequestReasonRejectedByAcme InboundRealTimePaymentsTransferSimulationResultTransactionSourceCheckTransferStopPaymentRequestReason = "rejected_by_acme"
// The check was stopped for another reason.
InboundRealTimePaymentsTransferSimulationResultTransactionSourceCheckTransferStopPaymentRequestReasonUnknown InboundRealTimePaymentsTransferSimulationResultTransactionSourceCheckTransferStopPaymentRequestReason = "unknown"
)
@@ -3731,13 +3731,13 @@ type InboundRealTimePaymentsTransferSimulationResultTransactionSourceInboundACHT
// The originator's identifier for the transfer receipient.
ReceiverIDNumber string `json:"receiver_id_number,required,nullable"`
// The name of the transfer recipient. This value is informational and not verified
- // by Increase.
+ // by Acme.
ReceiverName string `json:"receiver_name,required,nullable"`
// A 15 digit number recorded in the Nacha file and available to both the
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
// The inbound ach transfer's identifier.
TransferID string `json:"transfer_id,required"`
@@ -3907,7 +3907,7 @@ type InboundRealTimePaymentsTransferSimulationResultTransactionSourceInboundInte
ReceiverStateOrProvince string `json:"receiver_state_or_province,required,nullable"`
// A portion of the receiver address. This may be incomplete.
ReceiverStreetAddress string `json:"receiver_street_address,required"`
- // The name of the receiver of the transfer. This is not verified by Increase.
+ // The name of the receiver of the transfer. This is not verified by Acme.
ReceivingCompanyOrIndividualName string `json:"receiving_company_or_individual_name,required"`
// The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
// country code of the receiving bank country.
@@ -3925,7 +3925,7 @@ type InboundRealTimePaymentsTransferSimulationResultTransactionSourceInboundInte
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
JSON inboundRealTimePaymentsTransferSimulationResultTransactionSourceInboundInternationalACHTransferJSON `json:"-"`
}
@@ -4161,7 +4161,7 @@ type InboundRealTimePaymentsTransferSimulationResultTransactionSourceInboundWire
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the transfer.
+ // An Acme-constructed description of the transfer.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -4178,7 +4178,7 @@ type InboundRealTimePaymentsTransferSimulationResultTransactionSourceInboundWire
// The American Banking Association (ABA) routing number of the bank originating
// the transfer.
OriginatorRoutingNumber string `json:"originator_routing_number,required,nullable"`
- // An Increase-created concatenation of the Originator-to-Beneficiary lines.
+ // An Acme-created concatenation of the Originator-to-Beneficiary lines.
OriginatorToBeneficiaryInformation string `json:"originator_to_beneficiary_information,required,nullable"`
// A free-form message set by the wire originator.
OriginatorToBeneficiaryInformationLine1 string `json:"originator_to_beneficiary_information_line1,required,nullable"`
@@ -4360,7 +4360,7 @@ type InboundRealTimePaymentsTransferSimulationResultTransactionSourceInboundWire
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the transfer.
+ // An Acme-constructed description of the transfer.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -4377,7 +4377,7 @@ type InboundRealTimePaymentsTransferSimulationResultTransactionSourceInboundWire
// The American Banking Association (ABA) routing number of the bank originating
// the transfer.
OriginatorRoutingNumber string `json:"originator_routing_number,required,nullable"`
- // An Increase-created concatenation of the Originator-to-Beneficiary lines.
+ // An Acme-created concatenation of the Originator-to-Beneficiary lines.
OriginatorToBeneficiaryInformation string `json:"originator_to_beneficiary_information,required,nullable"`
// A free-form message set by the wire originator.
OriginatorToBeneficiaryInformationLine1 string `json:"originator_to_beneficiary_information_line1,required,nullable"`
@@ -4483,7 +4483,7 @@ type InboundRealTimePaymentsTransferSimulationResultTransactionSourceInternalSou
// The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
// currency.
Currency InboundRealTimePaymentsTransferSimulationResultTransactionSourceInternalSourceCurrency `json:"currency,required"`
- // An Internal Source is a transaction between you and Increase. This describes the
+ // An Internal Source is a transaction between you and Acme. This describes the
// reason for the transaction.
Reason InboundRealTimePaymentsTransferSimulationResultTransactionSourceInternalSourceReason `json:"reason,required"`
JSON inboundRealTimePaymentsTransferSimulationResultTransactionSourceInternalSourceJSON `json:"-"`
@@ -4523,7 +4523,7 @@ const (
InboundRealTimePaymentsTransferSimulationResultTransactionSourceInternalSourceCurrencyUsd InboundRealTimePaymentsTransferSimulationResultTransactionSourceInternalSourceCurrency = "USD"
)
-// An Internal Source is a transaction between you and Increase. This describes the
+// An Internal Source is a transaction between you and Acme. This describes the
// reason for the transaction.
type InboundRealTimePaymentsTransferSimulationResultTransactionSourceInternalSourceReason string
@@ -4761,7 +4761,7 @@ const (
// The destination financial institution is currently signed off of Real-Time
// Payments. Corresponds to the Real-Time Payments reason code `9910`.
SimulationRealTimePaymentsTransferCompleteParamsRejectionRejectReasonCodeInstructedAgentSignedOff SimulationRealTimePaymentsTransferCompleteParamsRejectionRejectReasonCode = "instructed_agent_signed_off"
- // The transfer was rejected due to an internal Increase issue. We have been
+ // The transfer was rejected due to an internal Acme issue. We have been
// notified.
SimulationRealTimePaymentsTransferCompleteParamsRejectionRejectReasonCodeProcessingError SimulationRealTimePaymentsTransferCompleteParamsRejectionRejectReasonCode = "processing_error"
// Some other error or issue has occurred.
diff --git a/simulationrealtimepaymentstransfer_test.go b/simulationrealtimepaymentstransfer_test.go
index 2d921335..a74018c5 100644
--- a/simulationrealtimepaymentstransfer_test.go
+++ b/simulationrealtimepaymentstransfer_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationRealTimePaymentsTransferCompleteWithOptionalParams(t *testing.T) {
@@ -21,21 +21,21 @@ func TestSimulationRealTimePaymentsTransferCompleteWithOptionalParams(t *testing
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Simulations.RealTimePaymentsTransfers.Complete(
context.TODO(),
"real_time_payments_transfer_iyuhl5kdn7ssmup83mvq",
- increase.SimulationRealTimePaymentsTransferCompleteParams{
- Rejection: increase.F(increase.SimulationRealTimePaymentsTransferCompleteParamsRejection{
- RejectReasonCode: increase.F(increase.SimulationRealTimePaymentsTransferCompleteParamsRejectionRejectReasonCodeAccountClosed),
+ acme.SimulationRealTimePaymentsTransferCompleteParams{
+ Rejection: acme.F(acme.SimulationRealTimePaymentsTransferCompleteParamsRejection{
+ RejectReasonCode: acme.F(acme.SimulationRealTimePaymentsTransferCompleteParamsRejectionRejectReasonCodeAccountClosed),
}),
},
)
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -51,21 +51,21 @@ func TestSimulationRealTimePaymentsTransferNewInboundWithOptionalParams(t *testi
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Simulations.RealTimePaymentsTransfers.NewInbound(context.TODO(), increase.SimulationRealTimePaymentsTransferNewInboundParams{
- AccountNumberID: increase.F("account_number_v18nkfqm6afpsrvy82b2"),
- Amount: increase.F(int64(1000)),
- DebtorAccountNumber: increase.F("x"),
- DebtorName: increase.F("x"),
- DebtorRoutingNumber: increase.F("xxxxxxxxx"),
- RemittanceInformation: increase.F("x"),
- RequestForPaymentID: increase.F("real_time_payments_request_for_payment_28kcliz1oevcnqyn9qp7"),
+ _, err := client.Simulations.RealTimePaymentsTransfers.NewInbound(context.TODO(), acme.SimulationRealTimePaymentsTransferNewInboundParams{
+ AccountNumberID: acme.F("account_number_v18nkfqm6afpsrvy82b2"),
+ Amount: acme.F(int64(1000)),
+ DebtorAccountNumber: acme.F("x"),
+ DebtorName: acme.F("x"),
+ DebtorRoutingNumber: acme.F("xxxxxxxxx"),
+ RemittanceInformation: acme.F("x"),
+ RequestForPaymentID: acme.F("real_time_payments_request_for_payment_28kcliz1oevcnqyn9qp7"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/simulationwiretransfer.go b/simulationwiretransfer.go
index 50e49936..4c93e2ea 100644
--- a/simulationwiretransfer.go
+++ b/simulationwiretransfer.go
@@ -1,20 +1,20 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
"net/http"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/option"
)
// SimulationWireTransferService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewSimulationWireTransferService]
// method instead.
@@ -415,7 +415,7 @@ type WireTransferSimulationTransactionSourceACHTransferReturn struct {
// The three character ACH return code, in the range R01 to R85.
RawReturnReasonCode string `json:"raw_return_reason_code,required"`
// Why the ACH Transfer was returned. This reason code is sent by the receiving
- // bank back to Increase.
+ // bank back to Acme.
ReturnReasonCode WireTransferSimulationTransactionSourceACHTransferReturnReturnReasonCode `json:"return_reason_code,required"`
// The identifier of the Transaction associated with this return.
TransactionID string `json:"transaction_id,required"`
@@ -442,7 +442,7 @@ func (r *WireTransferSimulationTransactionSourceACHTransferReturn) UnmarshalJSON
}
// Why the ACH Transfer was returned. This reason code is sent by the receiving
-// bank back to Increase.
+// bank back to Acme.
type WireTransferSimulationTransactionSourceACHTransferReturnReturnReasonCode string
const (
@@ -2428,9 +2428,9 @@ type WireTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReaso
const (
// The check could not be delivered.
WireTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReasonMailDeliveryFailed WireTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReason = "mail_delivery_failed"
- // The check was canceled by an Increase operator who will provide details
+ // The check was canceled by an Acme operator who will provide details
// out-of-band.
- WireTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReasonRejectedByIncrease WireTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReason = "rejected_by_increase"
+ WireTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReasonRejectedByAcme WireTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReason = "rejected_by_acme"
// The check was stopped for another reason.
WireTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReasonUnknown WireTransferSimulationTransactionSourceCheckTransferStopPaymentRequestReason = "unknown"
)
@@ -2510,13 +2510,13 @@ type WireTransferSimulationTransactionSourceInboundACHTransfer struct {
// The originator's identifier for the transfer receipient.
ReceiverIDNumber string `json:"receiver_id_number,required,nullable"`
// The name of the transfer recipient. This value is informational and not verified
- // by Increase.
+ // by Acme.
ReceiverName string `json:"receiver_name,required,nullable"`
// A 15 digit number recorded in the Nacha file and available to both the
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
// The inbound ach transfer's identifier.
TransferID string `json:"transfer_id,required"`
@@ -2685,7 +2685,7 @@ type WireTransferSimulationTransactionSourceInboundInternationalACHTransfer stru
ReceiverStateOrProvince string `json:"receiver_state_or_province,required,nullable"`
// A portion of the receiver address. This may be incomplete.
ReceiverStreetAddress string `json:"receiver_street_address,required"`
- // The name of the receiver of the transfer. This is not verified by Increase.
+ // The name of the receiver of the transfer. This is not verified by Acme.
ReceivingCompanyOrIndividualName string `json:"receiving_company_or_individual_name,required"`
// The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
// country code of the receiving bank country.
@@ -2703,7 +2703,7 @@ type WireTransferSimulationTransactionSourceInboundInternationalACHTransfer stru
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
JSON wireTransferSimulationTransactionSourceInboundInternationalACHTransferJSON `json:"-"`
}
@@ -2939,7 +2939,7 @@ type WireTransferSimulationTransactionSourceInboundWireDrawdownPayment struct {
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the transfer.
+ // An Acme-constructed description of the transfer.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -2956,7 +2956,7 @@ type WireTransferSimulationTransactionSourceInboundWireDrawdownPayment struct {
// The American Banking Association (ABA) routing number of the bank originating
// the transfer.
OriginatorRoutingNumber string `json:"originator_routing_number,required,nullable"`
- // An Increase-created concatenation of the Originator-to-Beneficiary lines.
+ // An Acme-created concatenation of the Originator-to-Beneficiary lines.
OriginatorToBeneficiaryInformation string `json:"originator_to_beneficiary_information,required,nullable"`
// A free-form message set by the wire originator.
OriginatorToBeneficiaryInformationLine1 string `json:"originator_to_beneficiary_information_line1,required,nullable"`
@@ -3138,7 +3138,7 @@ type WireTransferSimulationTransactionSourceInboundWireTransfer struct {
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the transfer.
+ // An Acme-constructed description of the transfer.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -3155,7 +3155,7 @@ type WireTransferSimulationTransactionSourceInboundWireTransfer struct {
// The American Banking Association (ABA) routing number of the bank originating
// the transfer.
OriginatorRoutingNumber string `json:"originator_routing_number,required,nullable"`
- // An Increase-created concatenation of the Originator-to-Beneficiary lines.
+ // An Acme-created concatenation of the Originator-to-Beneficiary lines.
OriginatorToBeneficiaryInformation string `json:"originator_to_beneficiary_information,required,nullable"`
// A free-form message set by the wire originator.
OriginatorToBeneficiaryInformationLine1 string `json:"originator_to_beneficiary_information_line1,required,nullable"`
@@ -3260,7 +3260,7 @@ type WireTransferSimulationTransactionSourceInternalSource struct {
// The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
// currency.
Currency WireTransferSimulationTransactionSourceInternalSourceCurrency `json:"currency,required"`
- // An Internal Source is a transaction between you and Increase. This describes the
+ // An Internal Source is a transaction between you and Acme. This describes the
// reason for the transaction.
Reason WireTransferSimulationTransactionSourceInternalSourceReason `json:"reason,required"`
JSON wireTransferSimulationTransactionSourceInternalSourceJSON `json:"-"`
@@ -3299,7 +3299,7 @@ const (
WireTransferSimulationTransactionSourceInternalSourceCurrencyUsd WireTransferSimulationTransactionSourceInternalSourceCurrency = "USD"
)
-// An Internal Source is a transaction between you and Increase. This describes the
+// An Internal Source is a transaction between you and Acme. This describes the
// reason for the transaction.
type WireTransferSimulationTransactionSourceInternalSourceReason string
diff --git a/simulationwiretransfer_test.go b/simulationwiretransfer_test.go
index 3ecb3637..183f2351 100644
--- a/simulationwiretransfer_test.go
+++ b/simulationwiretransfer_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestSimulationWireTransferNewInboundWithOptionalParams(t *testing.T) {
@@ -21,30 +21,30 @@ func TestSimulationWireTransferNewInboundWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Simulations.WireTransfers.NewInbound(context.TODO(), increase.SimulationWireTransferNewInboundParams{
- AccountNumberID: increase.F("account_number_v18nkfqm6afpsrvy82b2"),
- Amount: increase.F(int64(1000)),
- BeneficiaryAddressLine1: increase.F("x"),
- BeneficiaryAddressLine2: increase.F("x"),
- BeneficiaryAddressLine3: increase.F("x"),
- BeneficiaryName: increase.F("x"),
- BeneficiaryReference: increase.F("x"),
- OriginatorAddressLine1: increase.F("x"),
- OriginatorAddressLine2: increase.F("x"),
- OriginatorAddressLine3: increase.F("x"),
- OriginatorName: increase.F("x"),
- OriginatorRoutingNumber: increase.F("x"),
- OriginatorToBeneficiaryInformationLine1: increase.F("x"),
- OriginatorToBeneficiaryInformationLine2: increase.F("x"),
- OriginatorToBeneficiaryInformationLine3: increase.F("x"),
- OriginatorToBeneficiaryInformationLine4: increase.F("x"),
+ _, err := client.Simulations.WireTransfers.NewInbound(context.TODO(), acme.SimulationWireTransferNewInboundParams{
+ AccountNumberID: acme.F("account_number_v18nkfqm6afpsrvy82b2"),
+ Amount: acme.F(int64(1000)),
+ BeneficiaryAddressLine1: acme.F("x"),
+ BeneficiaryAddressLine2: acme.F("x"),
+ BeneficiaryAddressLine3: acme.F("x"),
+ BeneficiaryName: acme.F("x"),
+ BeneficiaryReference: acme.F("x"),
+ OriginatorAddressLine1: acme.F("x"),
+ OriginatorAddressLine2: acme.F("x"),
+ OriginatorAddressLine3: acme.F("x"),
+ OriginatorName: acme.F("x"),
+ OriginatorRoutingNumber: acme.F("x"),
+ OriginatorToBeneficiaryInformationLine1: acme.F("x"),
+ OriginatorToBeneficiaryInformationLine2: acme.F("x"),
+ OriginatorToBeneficiaryInformationLine3: acme.F("x"),
+ OriginatorToBeneficiaryInformationLine4: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/transaction.go b/transaction.go
index 5c1e2f76..087084f7 100644
--- a/transaction.go
+++ b/transaction.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// TransactionService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewTransactionService] method
// instead.
@@ -412,7 +412,7 @@ type TransactionSourceACHTransferReturn struct {
// The three character ACH return code, in the range R01 to R85.
RawReturnReasonCode string `json:"raw_return_reason_code,required"`
// Why the ACH Transfer was returned. This reason code is sent by the receiving
- // bank back to Increase.
+ // bank back to Acme.
ReturnReasonCode TransactionSourceACHTransferReturnReturnReasonCode `json:"return_reason_code,required"`
// The identifier of the Transaction associated with this return.
TransactionID string `json:"transaction_id,required"`
@@ -438,7 +438,7 @@ func (r *TransactionSourceACHTransferReturn) UnmarshalJSON(data []byte) (err err
}
// Why the ACH Transfer was returned. This reason code is sent by the receiving
-// bank back to Increase.
+// bank back to Acme.
type TransactionSourceACHTransferReturnReturnReasonCode string
const (
@@ -2408,9 +2408,9 @@ type TransactionSourceCheckTransferStopPaymentRequestReason string
const (
// The check could not be delivered.
TransactionSourceCheckTransferStopPaymentRequestReasonMailDeliveryFailed TransactionSourceCheckTransferStopPaymentRequestReason = "mail_delivery_failed"
- // The check was canceled by an Increase operator who will provide details
+ // The check was canceled by an Acme operator who will provide details
// out-of-band.
- TransactionSourceCheckTransferStopPaymentRequestReasonRejectedByIncrease TransactionSourceCheckTransferStopPaymentRequestReason = "rejected_by_increase"
+ TransactionSourceCheckTransferStopPaymentRequestReasonRejectedByAcme TransactionSourceCheckTransferStopPaymentRequestReason = "rejected_by_acme"
// The check was stopped for another reason.
TransactionSourceCheckTransferStopPaymentRequestReasonUnknown TransactionSourceCheckTransferStopPaymentRequestReason = "unknown"
)
@@ -2490,13 +2490,13 @@ type TransactionSourceInboundACHTransfer struct {
// The originator's identifier for the transfer receipient.
ReceiverIDNumber string `json:"receiver_id_number,required,nullable"`
// The name of the transfer recipient. This value is informational and not verified
- // by Increase.
+ // by Acme.
ReceiverName string `json:"receiver_name,required,nullable"`
// A 15 digit number recorded in the Nacha file and available to both the
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
// The inbound ach transfer's identifier.
TransferID string `json:"transfer_id,required"`
@@ -2664,7 +2664,7 @@ type TransactionSourceInboundInternationalACHTransfer struct {
ReceiverStateOrProvince string `json:"receiver_state_or_province,required,nullable"`
// A portion of the receiver address. This may be incomplete.
ReceiverStreetAddress string `json:"receiver_street_address,required"`
- // The name of the receiver of the transfer. This is not verified by Increase.
+ // The name of the receiver of the transfer. This is not verified by Acme.
ReceivingCompanyOrIndividualName string `json:"receiving_company_or_individual_name,required"`
// The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
// country code of the receiving bank country.
@@ -2682,7 +2682,7 @@ type TransactionSourceInboundInternationalACHTransfer struct {
// originating and receiving bank. Along with the amount, date, and originating
// routing number, this can be used to identify the ACH transfer at either bank.
// ACH trace numbers are not unique, but are
- // [used to correlate returns](https://increase.com/documentation/ach#returns).
+ // [used to correlate returns](https://acme.com/documentation/ach#returns).
TraceNumber string `json:"trace_number,required"`
JSON transactionSourceInboundInternationalACHTransferJSON `json:"-"`
}
@@ -2917,7 +2917,7 @@ type TransactionSourceInboundWireDrawdownPayment struct {
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the transfer.
+ // An Acme-constructed description of the transfer.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -2934,7 +2934,7 @@ type TransactionSourceInboundWireDrawdownPayment struct {
// The American Banking Association (ABA) routing number of the bank originating
// the transfer.
OriginatorRoutingNumber string `json:"originator_routing_number,required,nullable"`
- // An Increase-created concatenation of the Originator-to-Beneficiary lines.
+ // An Acme-created concatenation of the Originator-to-Beneficiary lines.
OriginatorToBeneficiaryInformation string `json:"originator_to_beneficiary_information,required,nullable"`
// A free-form message set by the wire originator.
OriginatorToBeneficiaryInformationLine1 string `json:"originator_to_beneficiary_information_line1,required,nullable"`
@@ -3113,7 +3113,7 @@ type TransactionSourceInboundWireTransfer struct {
BeneficiaryName string `json:"beneficiary_name,required,nullable"`
// A free-form reference string set by the sender, to help identify the transfer.
BeneficiaryReference string `json:"beneficiary_reference,required,nullable"`
- // An Increase-constructed description of the transfer.
+ // An Acme-constructed description of the transfer.
Description string `json:"description,required"`
// A unique identifier available to the originating and receiving banks, commonly
// abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
@@ -3130,7 +3130,7 @@ type TransactionSourceInboundWireTransfer struct {
// The American Banking Association (ABA) routing number of the bank originating
// the transfer.
OriginatorRoutingNumber string `json:"originator_routing_number,required,nullable"`
- // An Increase-created concatenation of the Originator-to-Beneficiary lines.
+ // An Acme-created concatenation of the Originator-to-Beneficiary lines.
OriginatorToBeneficiaryInformation string `json:"originator_to_beneficiary_information,required,nullable"`
// A free-form message set by the wire originator.
OriginatorToBeneficiaryInformationLine1 string `json:"originator_to_beneficiary_information_line1,required,nullable"`
@@ -3234,7 +3234,7 @@ type TransactionSourceInternalSource struct {
// The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
// currency.
Currency TransactionSourceInternalSourceCurrency `json:"currency,required"`
- // An Internal Source is a transaction between you and Increase. This describes the
+ // An Internal Source is a transaction between you and Acme. This describes the
// reason for the transaction.
Reason TransactionSourceInternalSourceReason `json:"reason,required"`
JSON transactionSourceInternalSourceJSON `json:"-"`
@@ -3273,7 +3273,7 @@ const (
TransactionSourceInternalSourceCurrencyUsd TransactionSourceInternalSourceCurrency = "USD"
)
-// An Internal Source is a transaction between you and Increase. This describes the
+// An Internal Source is a transaction between you and Acme. This describes the
// reason for the transaction.
type TransactionSourceInternalSourceReason string
diff --git a/transaction_test.go b/transaction_test.go
index 312838c5..58cea972 100644
--- a/transaction_test.go
+++ b/transaction_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestTransactionGet(t *testing.T) {
@@ -22,13 +22,13 @@ func TestTransactionGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.Transactions.Get(context.TODO(), "transaction_uyrp7fld2ium70oa7oi")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -44,27 +44,27 @@ func TestTransactionListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.Transactions.List(context.TODO(), increase.TransactionListParams{
- AccountID: increase.F("string"),
- Category: increase.F(increase.TransactionListParamsCategory{
- In: increase.F([]increase.TransactionListParamsCategoryIn{increase.TransactionListParamsCategoryInAccountTransferIntention, increase.TransactionListParamsCategoryInACHTransferIntention, increase.TransactionListParamsCategoryInACHTransferRejection}),
+ _, err := client.Transactions.List(context.TODO(), acme.TransactionListParams{
+ AccountID: acme.F("string"),
+ Category: acme.F(acme.TransactionListParamsCategory{
+ In: acme.F([]acme.TransactionListParamsCategoryIn{acme.TransactionListParamsCategoryInAccountTransferIntention, acme.TransactionListParamsCategoryInACHTransferIntention, acme.TransactionListParamsCategoryInACHTransferRejection}),
}),
- CreatedAt: increase.F(increase.TransactionListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ CreatedAt: acme.F(acme.TransactionListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
- RouteID: increase.F("string"),
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ RouteID: acme.F("string"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/usage_test.go b/usage_test.go
index ee17688b..7c4095a3 100644
--- a/usage_test.go
+++ b/usage_test.go
@@ -1,15 +1,15 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestUsage(t *testing.T) {
@@ -20,12 +20,12 @@ func TestUsage(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- account, err := client.Accounts.New(context.TODO(), increase.AccountNewParams{
- Name: increase.F("My First Increase Account"),
+ account, err := client.Accounts.New(context.TODO(), acme.AccountNewParams{
+ Name: acme.F("My First Acme Account"),
})
if err != nil {
t.Error(err)
diff --git a/wiredrawdownrequest.go b/wiredrawdownrequest.go
index 96d1e765..d40db26e 100644
--- a/wiredrawdownrequest.go
+++ b/wiredrawdownrequest.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -8,16 +8,16 @@ import (
"net/http"
"net/url"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// WireDrawdownRequestService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewWireDrawdownRequestService]
// method instead.
@@ -75,7 +75,7 @@ func (r *WireDrawdownRequestService) ListAutoPaging(ctx context.Context, query W
// Wire drawdown requests enable you to request that someone else send you a wire.
// This feature is in beta; reach out to
-// [support@increase.com](mailto:support@increase.com) to learn more.
+// [support@acme.com](mailto:support@acme.com) to learn more.
type WireDrawdownRequest struct {
// The Wire drawdown request identifier.
ID string `json:"id,required"`
diff --git a/wiredrawdownrequest_test.go b/wiredrawdownrequest_test.go
index d6817a86..8630c7e7 100644
--- a/wiredrawdownrequest_test.go
+++ b/wiredrawdownrequest_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -8,9 +8,9 @@ import (
"os"
"testing"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestWireDrawdownRequestNewWithOptionalParams(t *testing.T) {
@@ -22,23 +22,23 @@ func TestWireDrawdownRequestNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.WireDrawdownRequests.New(context.TODO(), increase.WireDrawdownRequestNewParams{
- AccountNumberID: increase.F("account_number_v18nkfqm6afpsrvy82b2"),
- Amount: increase.F(int64(10000)),
- MessageToRecipient: increase.F("Invoice 29582"),
- RecipientAccountNumber: increase.F("987654321"),
- RecipientName: increase.F("Ian Crease"),
- RecipientRoutingNumber: increase.F("101050001"),
- RecipientAddressLine1: increase.F("33 Liberty Street"),
- RecipientAddressLine2: increase.F("New York, NY, 10045"),
- RecipientAddressLine3: increase.F("x"),
+ _, err := client.WireDrawdownRequests.New(context.TODO(), acme.WireDrawdownRequestNewParams{
+ AccountNumberID: acme.F("account_number_v18nkfqm6afpsrvy82b2"),
+ Amount: acme.F(int64(10000)),
+ MessageToRecipient: acme.F("Invoice 29582"),
+ RecipientAccountNumber: acme.F("987654321"),
+ RecipientName: acme.F("Ian Crease"),
+ RecipientRoutingNumber: acme.F("101050001"),
+ RecipientAddressLine1: acme.F("33 Liberty Street"),
+ RecipientAddressLine2: acme.F("New York, NY, 10045"),
+ RecipientAddressLine3: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -54,13 +54,13 @@ func TestWireDrawdownRequestGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.WireDrawdownRequests.Get(context.TODO(), "wire_drawdown_request_q6lmocus3glo0lr2bfv3")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -76,16 +76,16 @@ func TestWireDrawdownRequestListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.WireDrawdownRequests.List(context.TODO(), increase.WireDrawdownRequestListParams{
- Cursor: increase.F("string"),
- Limit: increase.F(int64(1)),
+ _, err := client.WireDrawdownRequests.List(context.TODO(), acme.WireDrawdownRequestListParams{
+ Cursor: acme.F("string"),
+ Limit: acme.F(int64(1)),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
diff --git a/wiretransfer.go b/wiretransfer.go
index 5dd96c02..5a7651f5 100644
--- a/wiretransfer.go
+++ b/wiretransfer.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase
+package acme
import (
"context"
@@ -9,16 +9,16 @@ import (
"net/url"
"time"
- "github.com/increase/increase-go/internal/apijson"
- "github.com/increase/increase-go/internal/apiquery"
- "github.com/increase/increase-go/internal/param"
- "github.com/increase/increase-go/internal/requestconfig"
- "github.com/increase/increase-go/internal/shared"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go/internal/apijson"
+ "github.com/acme/acme-go/internal/apiquery"
+ "github.com/acme/acme-go/internal/param"
+ "github.com/acme/acme-go/internal/requestconfig"
+ "github.com/acme/acme-go/internal/shared"
+ "github.com/acme/acme-go/option"
)
// WireTransferService contains methods and other services that help with
-// interacting with the increase API. Note, unlike clients, this service does not
+// interacting with the acme API. Note, unlike clients, this service does not
// read variables from the environment automatically. You should not instantiate
// this service directly, and instead use the [NewWireTransferService] method
// instead.
@@ -111,7 +111,7 @@ func (r *WireTransferService) Submit(ctx context.Context, wireTransferID string,
return
}
-// Wire transfers move funds between your Increase account and any other account
+// Wire transfers move funds between your Acme account and any other account
// accessible by Fedwire.
type WireTransfer struct {
// The wire transfer's identifier.
@@ -150,7 +150,7 @@ type WireTransfer struct {
Network WireTransferNetwork `json:"network,required"`
// The ID for the pending transaction representing the transfer. A pending
// transaction is created when the transfer
- // [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals)
+ // [requires approval](https://acme.com/documentation/transfer-approvals#transfer-approvals)
// by someone else in your organization.
PendingTransactionID string `json:"pending_transaction_id,required,nullable"`
// If your transfer is reversed, this will contain details of the reversal.
@@ -356,7 +356,7 @@ type WireTransferStatus string
const (
// The transfer has been canceled.
WireTransferStatusCanceled WireTransferStatus = "canceled"
- // The transfer requires attention from an Increase operator.
+ // The transfer requires attention from an Acme operator.
WireTransferStatusRequiresAttention WireTransferStatus = "requires_attention"
// The transfer is pending approval.
WireTransferStatusPendingApproval WireTransferStatus = "pending_approval"
diff --git a/wiretransfer_test.go b/wiretransfer_test.go
index 41f2e52b..2d0eb45b 100644
--- a/wiretransfer_test.go
+++ b/wiretransfer_test.go
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless.
-package increase_test
+package acme_test
import (
"context"
@@ -9,9 +9,9 @@ import (
"testing"
"time"
- "github.com/increase/increase-go"
- "github.com/increase/increase-go/internal/testutil"
- "github.com/increase/increase-go/option"
+ "github.com/acme/acme-go"
+ "github.com/acme/acme-go/internal/testutil"
+ "github.com/acme/acme-go/option"
)
func TestWireTransferNewWithOptionalParams(t *testing.T) {
@@ -22,26 +22,26 @@ func TestWireTransferNewWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.WireTransfers.New(context.TODO(), increase.WireTransferNewParams{
- AccountID: increase.F("account_in71c4amph0vgo2qllky"),
- Amount: increase.F(int64(100)),
- BeneficiaryName: increase.F("Ian Crease"),
- MessageToRecipient: increase.F("New account transfer"),
- AccountNumber: increase.F("987654321"),
- BeneficiaryAddressLine1: increase.F("33 Liberty Street"),
- BeneficiaryAddressLine2: increase.F("New York"),
- BeneficiaryAddressLine3: increase.F("NY 10045"),
- ExternalAccountID: increase.F("string"),
- RequireApproval: increase.F(true),
- RoutingNumber: increase.F("101050001"),
- UniqueIdentifier: increase.F("x"),
+ _, err := client.WireTransfers.New(context.TODO(), acme.WireTransferNewParams{
+ AccountID: acme.F("account_in71c4amph0vgo2qllky"),
+ Amount: acme.F(int64(100)),
+ BeneficiaryName: acme.F("Ian Crease"),
+ MessageToRecipient: acme.F("New account transfer"),
+ AccountNumber: acme.F("987654321"),
+ BeneficiaryAddressLine1: acme.F("33 Liberty Street"),
+ BeneficiaryAddressLine2: acme.F("New York"),
+ BeneficiaryAddressLine3: acme.F("NY 10045"),
+ ExternalAccountID: acme.F("string"),
+ RequireApproval: acme.F(true),
+ RoutingNumber: acme.F("101050001"),
+ UniqueIdentifier: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -57,13 +57,13 @@ func TestWireTransferGet(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.WireTransfers.Get(context.TODO(), "wire_transfer_5akynk7dqsq25qwk9q2u")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -79,25 +79,25 @@ func TestWireTransferListWithOptionalParams(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
- _, err := client.WireTransfers.List(context.TODO(), increase.WireTransferListParams{
- AccountID: increase.F("string"),
- CreatedAt: increase.F(increase.WireTransferListParamsCreatedAt{
- After: increase.F(time.Now()),
- Before: increase.F(time.Now()),
- OnOrAfter: increase.F(time.Now()),
- OnOrBefore: increase.F(time.Now()),
+ _, err := client.WireTransfers.List(context.TODO(), acme.WireTransferListParams{
+ AccountID: acme.F("string"),
+ CreatedAt: acme.F(acme.WireTransferListParamsCreatedAt{
+ After: acme.F(time.Now()),
+ Before: acme.F(time.Now()),
+ OnOrAfter: acme.F(time.Now()),
+ OnOrBefore: acme.F(time.Now()),
}),
- Cursor: increase.F("string"),
- ExternalAccountID: increase.F("string"),
- Limit: increase.F(int64(1)),
- UniqueIdentifier: increase.F("x"),
+ Cursor: acme.F("string"),
+ ExternalAccountID: acme.F("string"),
+ Limit: acme.F(int64(1)),
+ UniqueIdentifier: acme.F("x"),
})
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -113,13 +113,13 @@ func TestWireTransferApprove(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.WireTransfers.Approve(context.TODO(), "wire_transfer_5akynk7dqsq25qwk9q2u")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -135,13 +135,13 @@ func TestWireTransferCancel(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.WireTransfers.Cancel(context.TODO(), "wire_transfer_5akynk7dqsq25qwk9q2u")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -158,13 +158,13 @@ func TestWireTransferReverse(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.WireTransfers.Reverse(context.TODO(), "wire_transfer_5akynk7dqsq25qwk9q2u")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}
@@ -181,13 +181,13 @@ func TestWireTransferSubmit(t *testing.T) {
if !testutil.CheckTestServer(t, baseURL) {
return
}
- client := increase.NewClient(
+ client := acme.NewClient(
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
_, err := client.WireTransfers.Submit(context.TODO(), "wire_transfer_5akynk7dqsq25qwk9q2u")
if err != nil {
- var apierr *increase.Error
+ var apierr *acme.Error
if errors.As(err, &apierr) {
t.Log(string(apierr.DumpRequest(true)))
}