Commit c2db04d
feat: introduce new major version of the Square Ruby SDK (#158)
* do not merge: Square Ruby SDK
* Current gen status + initial integration tests (#159)
* ignore claude
* intiial test helpers file
* strongly type obj creation in helpers.rb
* add more test files
* bulk convert tests with cursor
* use typeful .new() factory methods
* regenerate with ruby v2
* restore gemfile and rakefile to main
* fix relative imports
* square.rb file
* find/replace 'module square' --> 'module Square'
* replace square::Internal --> Square::Internal
* replace ' Internal::' --> ' Square::Internal::'
* simplify square.rb
* add end statements to else blocks
* fix incorrect end statements in request types
* change square::internal::json::serializable from class to module
* update requirements in helpers.rb
* fix test helpers imports
* fix missing end after else in clients
* ensure request and response types extend model
* more requests extend model
* remove bad extensions
* fix bad class end formatting
* fix more bad class end formatting
* fix enum files
* migrate extends syntax
* update type references to error enums
* temp commit lib/squre.rb
* change tab size to 2
* fix internal lowercase square
* fix empty class end syntax
* regen
* fix else ends
* update type mapping
* revert type mapping change
* manually update gemfile, rakefile, and rubocop file from demo sdk
* remove generated code
* regen sdk
* remove square.rb file
* update module file
* remove ghost types
* fix enum include to extend
* disable tests
---------
Co-authored-by: jsklan <[email protected]>
* Pull in base test infra files from demo (#160)
* pull in test helper infra from demo
* pull in base catalog tests
---------
Co-authored-by: jsklan <[email protected]>
* manually fix circular references with forward declarations (#161)
Co-authored-by: jsklan <[email protected]>
* Updating Rakefile
* 🌿 Fern Regeneration -- August 18, 2025 (#164)
* update fernignore (#163)
* update fernignore
* remove ignores
---------
Co-authored-by: jsklan <[email protected]>
* SDK regeneration
---------
Co-authored-by: Fern Support <[email protected]>
Co-authored-by: jsklan <[email protected]>
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
* Partially enable tests (#166)
* tmp
* add ci test
* update rakefile
* update token name options
---------
Co-authored-by: jsklan <[email protected]>
* SDK regeneration
* SDK regeneration
* re-add .rubocop.yml
* SDK regeneration
* Adding back rubocop.yml
* Minor updates to gemspec for version and gemfile for matching dev and runtime libraries
* Adding Rubocop back to Rakefile for linting
* Fixing broken part of rubocop
* Adding CI for linting, testing and security checks
* SDK regeneration
* Enable catalog integration tests (#169)
* enable catalog test
* modify test setup
* messy status
* current state
* fix typo in multipart request
* simplify state
* progress, some nested values converting
* progress, some nested values converting
* log in coerce
* restore request
* request succeeds
* remove logging from client and raw client
* test passes, response parsed
* update catalog client
* add verbose mode handling in integration test helper
---------
Co-authored-by: jsklan <[email protected]>
* Adding back CI file and adding CI file to .fernignore to stop accidental deletion
* Restructure Integration Tests (#170)
* restructure directory
* migrate structure
* migrate inventory test
* fix client batch_upsert url
* skip all tests
* update verbose request logs
* simplify endpoint calls
* rake test passes, 63 tests skipped
* update inventory client and test
---------
Co-authored-by: jsklan <[email protected]>
* Manually Implement wrapped request example (#173)
* interim commit
* utils
* tests passing
* polish
---------
Co-authored-by: jsklan <[email protected]>
* Integration Test Polishing (#175)
* cash, catalog, customers groups
* cleanup
---------
Co-authored-by: jsklan <[email protected]>
* update endpoint call syntax (#176)
Co-authored-by: jsklan <[email protected]>
* SDK regeneration
* fix cash drawers
* SDK regeneration
* SDK regeneration
* SDK regeneration
* SDK regeneration
* feat: enabling more integration tests (#177) (#178)
* README updates with a license change to match the repo in gemspec file (#172)
* README updates with a license change to match the repoin gemspec file
* Removing duplicate block code start
---------
Co-authored-by: jsklan <[email protected]>
Co-authored-by: Chris Mallinson <[email protected]>
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>1 parent 9e38763 commit c2db04d
File tree
2,967 files changed
+177936
-68514
lines changed- .github
- ISSUE_TEMPLATE
- workflows
- .mock
- definition
- bookings
- cashDrawers
- catalog
- checkout
- customers
- devices
- disputes
- giftCards
- labor
- locations
- loyalty
- programs
- merchants
- orders
- teamMembers
- terminal
- webhooks
- openapi
- doc
- api
- auth
- models
- examples
- lib
- square
- apple_pay
- types
- bank_accounts
- types
- bookings
- custom_attribute_definitions
- types
- custom_attributes
- types
- location_profiles
- types
- team_member_profiles
- types
- types
- cards
- types
- cash_drawers
- shifts
- types
- catalog
- images
- types
- object
- types
- types
- checkout
- payment_links
- types
- types
- customers
- cards
- types
- custom_attribute_definitions
- types
- custom_attributes
- types
- groups
- types
- segments
- types
- types
- devices
- codes
- types
- types
- disputes
- evidence
- types
- types
- employees
- types
- events
- types
- gift_cards
- activities
- types
- types
- internal
- errors
- http
- json
- multipart
- types
- model
- inventory
- types
- invoices
- types
- labor
- break_types
- types
- employee_wages
- types
- shifts
- types
- team_member_wages
- types
- types
- workweek_configs
- types
- locations
- custom_attribute_definitions
- types
- custom_attributes
- types
- transactions
- types
- types
- loyalty
- accounts
- types
- programs
- promotions
- types
- types
- rewards
- types
- types
- merchants
- custom_attribute_definitions
- types
- custom_attributes
- types
- types
- mobile
- types
- o_auth
- types
- orders
- custom_attribute_definitions
- types
- custom_attributes
- types
- types
- payments
- types
- payouts
- types
- refunds
- types
- sites
- snippets
- types
- subscriptions
- types
- team_members
- types
- wage_setting
- types
- team
- types
- terminal
- actions
- types
- checkouts
- types
- refunds
- types
- types
- types
- v_1_transactions
- types
- vendors
- types
- webhooks
- event_types
- types
- subscriptions
- types
- spec
- test
- square_legacy
- api
- webhooks
- square
- integration
- client_tests
- testdata
- internal
- multipart
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
2,967 files changed
+177936
-68514
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
0 commit comments